google-maps-fleet_engine-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/maps/fleet_engine/v1/rest.rb +38 -0
  6. data/lib/google/maps/fleet_engine/v1/trip_service/client.rb +996 -0
  7. data/lib/google/maps/fleet_engine/v1/trip_service/credentials.rb +47 -0
  8. data/lib/google/maps/fleet_engine/v1/trip_service/paths.rb +50 -0
  9. data/lib/google/maps/fleet_engine/v1/trip_service/rest/client.rb +930 -0
  10. data/lib/google/maps/fleet_engine/v1/trip_service/rest/service_stub.rb +368 -0
  11. data/lib/google/maps/fleet_engine/v1/trip_service/rest.rb +52 -0
  12. data/lib/google/maps/fleet_engine/v1/trip_service.rb +55 -0
  13. data/lib/google/maps/fleet_engine/v1/vehicle_service/client.rb +1639 -0
  14. data/lib/google/maps/fleet_engine/v1/vehicle_service/credentials.rb +47 -0
  15. data/lib/google/maps/fleet_engine/v1/vehicle_service/paths.rb +50 -0
  16. data/lib/google/maps/fleet_engine/v1/vehicle_service/rest/client.rb +1545 -0
  17. data/lib/google/maps/fleet_engine/v1/vehicle_service/rest/service_stub.rb +547 -0
  18. data/lib/google/maps/fleet_engine/v1/vehicle_service/rest.rb +52 -0
  19. data/lib/google/maps/fleet_engine/v1/vehicle_service.rb +55 -0
  20. data/lib/google/maps/fleet_engine/v1/version.rb +8 -3
  21. data/lib/google/maps/fleet_engine/v1.rb +46 -0
  22. data/lib/google/maps/fleetengine/v1/fleetengine_pb.rb +63 -0
  23. data/lib/google/maps/fleetengine/v1/header_pb.rb +46 -0
  24. data/lib/google/maps/fleetengine/v1/traffic_pb.rb +44 -0
  25. data/lib/google/maps/fleetengine/v1/trip_api_pb.rb +66 -0
  26. data/lib/google/maps/fleetengine/v1/trip_api_services_pb.rb +53 -0
  27. data/lib/google/maps/fleetengine/v1/trips_pb.rb +61 -0
  28. data/lib/google/maps/fleetengine/v1/vehicle_api_pb.rb +81 -0
  29. data/lib/google/maps/fleetengine/v1/vehicle_api_services_pb.rb +108 -0
  30. data/lib/google/maps/fleetengine/v1/vehicles_pb.rb +64 -0
  31. data/lib/google-maps-fleet_engine-v1.rb +21 -0
  32. data/proto_docs/README.md +4 -0
  33. data/proto_docs/google/api/client.rb +399 -0
  34. data/proto_docs/google/api/field_behavior.rb +85 -0
  35. data/proto_docs/google/api/launch_stage.rb +71 -0
  36. data/proto_docs/google/api/resource.rb +222 -0
  37. data/proto_docs/google/api/routing.rb +459 -0
  38. data/proto_docs/google/geo/type/viewport.rb +70 -0
  39. data/proto_docs/google/maps/fleetengine/v1/fleetengine.rb +342 -0
  40. data/proto_docs/google/maps/fleetengine/v1/header.rb +111 -0
  41. data/proto_docs/google/maps/fleetengine/v1/traffic.rb +76 -0
  42. data/proto_docs/google/maps/fleetengine/v1/trip_api.rb +296 -0
  43. data/proto_docs/google/maps/fleetengine/v1/trips.rb +286 -0
  44. data/proto_docs/google/maps/fleetengine/v1/vehicle_api.rb +684 -0
  45. data/proto_docs/google/maps/fleetengine/v1/vehicles.rb +358 -0
  46. data/proto_docs/google/protobuf/duration.rb +98 -0
  47. data/proto_docs/google/protobuf/empty.rb +34 -0
  48. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  49. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  50. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  51. data/proto_docs/google/type/latlng.rb +38 -0
  52. metadata +119 -13
@@ -0,0 +1,930 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/maps/fleetengine/v1/trip_api_pb"
21
+ require "google/maps/fleet_engine/v1/trip_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Maps
25
+ module FleetEngine
26
+ module V1
27
+ module TripService
28
+ module Rest
29
+ ##
30
+ # REST client for the TripService service.
31
+ #
32
+ # Trip management service.
33
+ #
34
+ class Client
35
+ # @private
36
+ DEFAULT_ENDPOINT_TEMPLATE = "fleetengine.$UNIVERSE_DOMAIN$"
37
+
38
+ include Paths
39
+
40
+ # @private
41
+ attr_reader :trip_service_stub
42
+
43
+ ##
44
+ # Configure the TripService Client class.
45
+ #
46
+ # See {::Google::Maps::FleetEngine::V1::TripService::Rest::Client::Configuration}
47
+ # for a description of the configuration fields.
48
+ #
49
+ # @example
50
+ #
51
+ # # Modify the configuration for all TripService clients
52
+ # ::Google::Maps::FleetEngine::V1::TripService::Rest::Client.configure do |config|
53
+ # config.timeout = 10.0
54
+ # end
55
+ #
56
+ # @yield [config] Configure the Client client.
57
+ # @yieldparam config [Client::Configuration]
58
+ #
59
+ # @return [Client::Configuration]
60
+ #
61
+ def self.configure
62
+ @configure ||= begin
63
+ namespace = ["Google", "Maps", "FleetEngine", "V1"]
64
+ parent_config = while namespace.any?
65
+ parent_name = namespace.join "::"
66
+ parent_const = const_get parent_name
67
+ break parent_const.configure if parent_const.respond_to? :configure
68
+ namespace.pop
69
+ end
70
+ default_config = Client::Configuration.new parent_config
71
+
72
+ default_config.rpcs.create_trip.timeout = 15.0
73
+ default_config.rpcs.create_trip.retry_policy = {
74
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
75
+ }
76
+
77
+ default_config.rpcs.get_trip.timeout = 15.0
78
+ default_config.rpcs.get_trip.retry_policy = {
79
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
80
+ }
81
+
82
+ default_config.rpcs.search_trips.timeout = 15.0
83
+ default_config.rpcs.search_trips.retry_policy = {
84
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
85
+ }
86
+
87
+ default_config.rpcs.update_trip.timeout = 15.0
88
+ default_config.rpcs.update_trip.retry_policy = {
89
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
90
+ }
91
+
92
+ default_config
93
+ end
94
+ yield @configure if block_given?
95
+ @configure
96
+ end
97
+
98
+ ##
99
+ # Configure the TripService Client instance.
100
+ #
101
+ # The configuration is set to the derived mode, meaning that values can be changed,
102
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
103
+ # should be made on {Client.configure}.
104
+ #
105
+ # See {::Google::Maps::FleetEngine::V1::TripService::Rest::Client::Configuration}
106
+ # for a description of the configuration fields.
107
+ #
108
+ # @yield [config] Configure the Client client.
109
+ # @yieldparam config [Client::Configuration]
110
+ #
111
+ # @return [Client::Configuration]
112
+ #
113
+ def configure
114
+ yield @config if block_given?
115
+ @config
116
+ end
117
+
118
+ ##
119
+ # The effective universe domain
120
+ #
121
+ # @return [String]
122
+ #
123
+ def universe_domain
124
+ @trip_service_stub.universe_domain
125
+ end
126
+
127
+ ##
128
+ # Create a new TripService REST client object.
129
+ #
130
+ # @example
131
+ #
132
+ # # Create a client using the default configuration
133
+ # client = ::Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
134
+ #
135
+ # # Create a client using a custom configuration
136
+ # client = ::Google::Maps::FleetEngine::V1::TripService::Rest::Client.new do |config|
137
+ # config.timeout = 10.0
138
+ # end
139
+ #
140
+ # @yield [config] Configure the TripService client.
141
+ # @yieldparam config [Client::Configuration]
142
+ #
143
+ def initialize
144
+ # Create the configuration object
145
+ @config = Configuration.new Client.configure
146
+
147
+ # Yield the configuration if needed
148
+ yield @config if block_given?
149
+
150
+ # Create credentials
151
+ credentials = @config.credentials
152
+ # Use self-signed JWT if the endpoint is unchanged from default,
153
+ # but only if the default endpoint does not have a region prefix.
154
+ enable_self_signed_jwt = @config.endpoint.nil? ||
155
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
156
+ !@config.endpoint.split(".").first.include?("-"))
157
+ credentials ||= Credentials.default scope: @config.scope,
158
+ enable_self_signed_jwt: enable_self_signed_jwt
159
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
160
+ credentials = Credentials.new credentials, scope: @config.scope
161
+ end
162
+
163
+ @quota_project_id = @config.quota_project
164
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
165
+
166
+ @trip_service_stub = ::Google::Maps::FleetEngine::V1::TripService::Rest::ServiceStub.new(
167
+ endpoint: @config.endpoint,
168
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
169
+ universe_domain: @config.universe_domain,
170
+ credentials: credentials
171
+ )
172
+ end
173
+
174
+ # Service calls
175
+
176
+ ##
177
+ # Creates a trip in the Fleet Engine and returns the new trip.
178
+ #
179
+ # @overload create_trip(request, options = nil)
180
+ # Pass arguments to `create_trip` via a request object, either of type
181
+ # {::Google::Maps::FleetEngine::V1::CreateTripRequest} or an equivalent Hash.
182
+ #
183
+ # @param request [::Google::Maps::FleetEngine::V1::CreateTripRequest, ::Hash]
184
+ # A request object representing the call parameters. Required. To specify no
185
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
186
+ # @param options [::Gapic::CallOptions, ::Hash]
187
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
188
+ #
189
+ # @overload create_trip(header: nil, parent: nil, trip_id: nil, trip: nil)
190
+ # Pass arguments to `create_trip` via keyword arguments. Note that at
191
+ # least one keyword argument is required. To specify no parameters, or to keep all
192
+ # the default parameter values, pass an empty Hash as a request object (see above).
193
+ #
194
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
195
+ # The standard Fleet Engine request header.
196
+ # @param parent [::String]
197
+ # Required. Must be in the format `providers/{provider}`.
198
+ # The provider must be the Project ID (for example, `sample-cloud-project`)
199
+ # of the Google Cloud Project of which the service account making
200
+ # this call is a member.
201
+ # @param trip_id [::String]
202
+ # Required. Unique Trip ID.
203
+ # Subject to the following restrictions:
204
+ #
205
+ # * Must be a valid Unicode string.
206
+ # * Limited to a maximum length of 64 characters.
207
+ # * Normalized according to [Unicode Normalization Form C]
208
+ # (http://www.unicode.org/reports/tr15/).
209
+ # * May not contain any of the following ASCII characters: '/', ':', '?',
210
+ # ',', or '#'.
211
+ # @param trip [::Google::Maps::FleetEngine::V1::Trip, ::Hash]
212
+ # Required. Trip entity to create.
213
+ #
214
+ # When creating a Trip, the following fields are required:
215
+ #
216
+ # * `trip_type`
217
+ # * `pickup_point`
218
+ #
219
+ # The following fields are used if you provide them:
220
+ #
221
+ # * `number_of_passengers`
222
+ # * `vehicle_id`
223
+ # * `dropoff_point`
224
+ # * `intermediate_destinations`
225
+ # * `vehicle_waypoints`
226
+ #
227
+ # All other Trip fields are ignored. For example, all trips start with a
228
+ # `trip_status` of `NEW` even if you pass in a `trip_status` of `CANCELED` in
229
+ # the creation request.
230
+ #
231
+ # Only `EXCLUSIVE` trips support `intermediate_destinations`.
232
+ #
233
+ # When `vehicle_id` is set for a shared trip, you must supply
234
+ # the list of `Trip.vehicle_waypoints` to specify the order of the remaining
235
+ # waypoints for the vehicle, otherwise the waypoint order will be
236
+ # undetermined.
237
+ #
238
+ # When you specify `Trip.vehicle_waypoints`, the list must contain all
239
+ # the remaining waypoints of the vehicle's trips, with no extra waypoints.
240
+ # You must order these waypoints such that for a given trip, the pickup
241
+ # point is before intermediate destinations, and all intermediate
242
+ # destinations come before the drop-off point. An `EXCLUSIVE` trip's
243
+ # waypoints must not interleave with any other trips.
244
+ #
245
+ # The `trip_id`, `waypoint_type` and `location` fields are used, and all
246
+ # other TripWaypoint fields in `vehicle_waypoints` are ignored.
247
+ # @yield [result, operation] Access the result along with the TransportOperation object
248
+ # @yieldparam result [::Google::Maps::FleetEngine::V1::Trip]
249
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
250
+ #
251
+ # @return [::Google::Maps::FleetEngine::V1::Trip]
252
+ #
253
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
254
+ #
255
+ # @example Basic example
256
+ # require "google/maps/fleet_engine/v1"
257
+ #
258
+ # # Create a client object. The client can be reused for multiple calls.
259
+ # client = Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
260
+ #
261
+ # # Create a request. To set request fields, pass in keyword arguments.
262
+ # request = Google::Maps::FleetEngine::V1::CreateTripRequest.new
263
+ #
264
+ # # Call the create_trip method.
265
+ # result = client.create_trip request
266
+ #
267
+ # # The returned object is of type Google::Maps::FleetEngine::V1::Trip.
268
+ # p result
269
+ #
270
+ def create_trip request, options = nil
271
+ raise ::ArgumentError, "request must be provided" if request.nil?
272
+
273
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::CreateTripRequest
274
+
275
+ # Converts hash and nil to an options object
276
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
277
+
278
+ # Customize the options with defaults
279
+ call_metadata = @config.rpcs.create_trip.metadata.to_h
280
+
281
+ # Set x-goog-api-client and x-goog-user-project headers
282
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
283
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
284
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
285
+ transports_version_send: [:rest]
286
+
287
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
288
+
289
+ options.apply_defaults timeout: @config.rpcs.create_trip.timeout,
290
+ metadata: call_metadata,
291
+ retry_policy: @config.rpcs.create_trip.retry_policy
292
+
293
+ options.apply_defaults timeout: @config.timeout,
294
+ metadata: @config.metadata,
295
+ retry_policy: @config.retry_policy
296
+
297
+ @trip_service_stub.create_trip request, options do |result, operation|
298
+ yield result, operation if block_given?
299
+ return result
300
+ end
301
+ rescue ::Gapic::Rest::Error => e
302
+ raise ::Google::Cloud::Error.from_error(e)
303
+ end
304
+
305
+ ##
306
+ # Get information about a single trip.
307
+ #
308
+ # @overload get_trip(request, options = nil)
309
+ # Pass arguments to `get_trip` via a request object, either of type
310
+ # {::Google::Maps::FleetEngine::V1::GetTripRequest} or an equivalent Hash.
311
+ #
312
+ # @param request [::Google::Maps::FleetEngine::V1::GetTripRequest, ::Hash]
313
+ # A request object representing the call parameters. Required. To specify no
314
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
315
+ # @param options [::Gapic::CallOptions, ::Hash]
316
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
317
+ #
318
+ # @overload get_trip(header: nil, name: nil, view: nil, current_route_segment_version: nil, remaining_waypoints_version: nil, route_format_type: nil, current_route_segment_traffic_version: nil, remaining_waypoints_route_version: nil)
319
+ # Pass arguments to `get_trip` via keyword arguments. Note that at
320
+ # least one keyword argument is required. To specify no parameters, or to keep all
321
+ # the default parameter values, pass an empty Hash as a request object (see above).
322
+ #
323
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
324
+ # The standard Fleet Engine request header.
325
+ # @param name [::String]
326
+ # Required. Must be in the format `providers/{provider}/trips/{trip}`.
327
+ # The provider must be the Project ID (for example, `sample-cloud-project`)
328
+ # of the Google Cloud Project of which the service account making
329
+ # this call is a member.
330
+ # @param view [::Google::Maps::FleetEngine::V1::TripView]
331
+ # The subset of Trip fields that should be returned and their interpretation.
332
+ # @param current_route_segment_version [::Google::Protobuf::Timestamp, ::Hash]
333
+ # Indicates the minimum timestamp (exclusive) for which `Trip.route` or
334
+ # `Trip.current_route_segment` data are retrieved. If route data are
335
+ # unchanged since this timestamp, the route field is not set in the response.
336
+ # If a minimum is unspecified, the route data are always retrieved.
337
+ # @param remaining_waypoints_version [::Google::Protobuf::Timestamp, ::Hash]
338
+ # Indicates the minimum timestamp (exclusive) for which
339
+ # `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
340
+ # timestamp, the `remaining_waypoints` are not set in the response. If this
341
+ # field is unspecified, `remaining_waypoints` is always retrieved.
342
+ # @param route_format_type [::Google::Maps::FleetEngine::V1::PolylineFormatType]
343
+ # The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`),
344
+ # or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default
345
+ # is `LAT_LNG_LIST_TYPE`.
346
+ # @param current_route_segment_traffic_version [::Google::Protobuf::Timestamp, ::Hash]
347
+ # Indicates the minimum timestamp (exclusive) for which
348
+ # `Trip.current_route_segment_traffic` is retrieved. If traffic data are
349
+ # unchanged since this timestamp, the `current_route_segment_traffic` field
350
+ # is not set in the response. If a minimum is unspecified, the traffic data
351
+ # are always retrieved. Note that traffic is only available for On-Demand
352
+ # Rides and Deliveries Solution customers.
353
+ # @param remaining_waypoints_route_version [::Google::Protobuf::Timestamp, ::Hash]
354
+ # Indicates the minimum timestamp (exclusive) for which
355
+ # `Trip.remaining_waypoints.traffic_to_waypoint` and
356
+ # `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are
357
+ # unchanged since this timestamp, the fields above are
358
+ # not set in the response. If `remaining_waypoints_route_version` is
359
+ # unspecified, traffic and path are always retrieved.
360
+ # @yield [result, operation] Access the result along with the TransportOperation object
361
+ # @yieldparam result [::Google::Maps::FleetEngine::V1::Trip]
362
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
363
+ #
364
+ # @return [::Google::Maps::FleetEngine::V1::Trip]
365
+ #
366
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
367
+ #
368
+ # @example Basic example
369
+ # require "google/maps/fleet_engine/v1"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Maps::FleetEngine::V1::GetTripRequest.new
376
+ #
377
+ # # Call the get_trip method.
378
+ # result = client.get_trip request
379
+ #
380
+ # # The returned object is of type Google::Maps::FleetEngine::V1::Trip.
381
+ # p result
382
+ #
383
+ def get_trip request, options = nil
384
+ raise ::ArgumentError, "request must be provided" if request.nil?
385
+
386
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::GetTripRequest
387
+
388
+ # Converts hash and nil to an options object
389
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
390
+
391
+ # Customize the options with defaults
392
+ call_metadata = @config.rpcs.get_trip.metadata.to_h
393
+
394
+ # Set x-goog-api-client and x-goog-user-project headers
395
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
396
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
397
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
398
+ transports_version_send: [:rest]
399
+
400
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
+
402
+ options.apply_defaults timeout: @config.rpcs.get_trip.timeout,
403
+ metadata: call_metadata,
404
+ retry_policy: @config.rpcs.get_trip.retry_policy
405
+
406
+ options.apply_defaults timeout: @config.timeout,
407
+ metadata: @config.metadata,
408
+ retry_policy: @config.retry_policy
409
+
410
+ @trip_service_stub.get_trip request, options do |result, operation|
411
+ yield result, operation if block_given?
412
+ return result
413
+ end
414
+ rescue ::Gapic::Rest::Error => e
415
+ raise ::Google::Cloud::Error.from_error(e)
416
+ end
417
+
418
+ ##
419
+ # Report billable trip usage.
420
+ #
421
+ # @overload report_billable_trip(request, options = nil)
422
+ # Pass arguments to `report_billable_trip` via a request object, either of type
423
+ # {::Google::Maps::FleetEngine::V1::ReportBillableTripRequest} or an equivalent Hash.
424
+ #
425
+ # @param request [::Google::Maps::FleetEngine::V1::ReportBillableTripRequest, ::Hash]
426
+ # A request object representing the call parameters. Required. To specify no
427
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
428
+ # @param options [::Gapic::CallOptions, ::Hash]
429
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
430
+ #
431
+ # @overload report_billable_trip(name: nil, country_code: nil, platform: nil, related_ids: nil, solution_type: nil)
432
+ # Pass arguments to `report_billable_trip` via keyword arguments. Note that at
433
+ # least one keyword argument is required. To specify no parameters, or to keep all
434
+ # the default parameter values, pass an empty Hash as a request object (see above).
435
+ #
436
+ # @param name [::String]
437
+ # Required. Must be in the format
438
+ # `providers/{provider}/billableTrips/{billable_trip}`. The
439
+ # provider must be the Project ID (for example, `sample-cloud-project`) of
440
+ # the Google Cloud Project of which the service account making this call is a
441
+ # member.
442
+ # @param country_code [::String]
443
+ # Required. Two letter country code of the country where the trip takes
444
+ # place. Price is defined according to country code.
445
+ # @param platform [::Google::Maps::FleetEngine::V1::BillingPlatformIdentifier]
446
+ # The platform upon which the request was issued.
447
+ # @param related_ids [::Array<::String>]
448
+ # The identifiers that are directly related to the trip being reported. These
449
+ # are usually IDs (for example, session IDs) of pre-booking operations done
450
+ # before the trip ID is available. The number of `related_ids` is
451
+ # limited to 50.
452
+ # @param solution_type [::Google::Maps::FleetEngine::V1::ReportBillableTripRequest::SolutionType]
453
+ # The type of GMP product solution (for example,
454
+ # `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip.
455
+ # @yield [result, operation] Access the result along with the TransportOperation object
456
+ # @yieldparam result [::Google::Protobuf::Empty]
457
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
458
+ #
459
+ # @return [::Google::Protobuf::Empty]
460
+ #
461
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
462
+ #
463
+ # @example Basic example
464
+ # require "google/maps/fleet_engine/v1"
465
+ #
466
+ # # Create a client object. The client can be reused for multiple calls.
467
+ # client = Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
468
+ #
469
+ # # Create a request. To set request fields, pass in keyword arguments.
470
+ # request = Google::Maps::FleetEngine::V1::ReportBillableTripRequest.new
471
+ #
472
+ # # Call the report_billable_trip method.
473
+ # result = client.report_billable_trip request
474
+ #
475
+ # # The returned object is of type Google::Protobuf::Empty.
476
+ # p result
477
+ #
478
+ def report_billable_trip request, options = nil
479
+ raise ::ArgumentError, "request must be provided" if request.nil?
480
+
481
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::ReportBillableTripRequest
482
+
483
+ # Converts hash and nil to an options object
484
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
485
+
486
+ # Customize the options with defaults
487
+ call_metadata = @config.rpcs.report_billable_trip.metadata.to_h
488
+
489
+ # Set x-goog-api-client and x-goog-user-project headers
490
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
491
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
492
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
493
+ transports_version_send: [:rest]
494
+
495
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
496
+
497
+ options.apply_defaults timeout: @config.rpcs.report_billable_trip.timeout,
498
+ metadata: call_metadata,
499
+ retry_policy: @config.rpcs.report_billable_trip.retry_policy
500
+
501
+ options.apply_defaults timeout: @config.timeout,
502
+ metadata: @config.metadata,
503
+ retry_policy: @config.retry_policy
504
+
505
+ @trip_service_stub.report_billable_trip request, options do |result, operation|
506
+ yield result, operation if block_given?
507
+ return result
508
+ end
509
+ rescue ::Gapic::Rest::Error => e
510
+ raise ::Google::Cloud::Error.from_error(e)
511
+ end
512
+
513
+ ##
514
+ # Get all the trips for a specific vehicle.
515
+ #
516
+ # @overload search_trips(request, options = nil)
517
+ # Pass arguments to `search_trips` via a request object, either of type
518
+ # {::Google::Maps::FleetEngine::V1::SearchTripsRequest} or an equivalent Hash.
519
+ #
520
+ # @param request [::Google::Maps::FleetEngine::V1::SearchTripsRequest, ::Hash]
521
+ # A request object representing the call parameters. Required. To specify no
522
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
523
+ # @param options [::Gapic::CallOptions, ::Hash]
524
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
525
+ #
526
+ # @overload search_trips(header: nil, parent: nil, vehicle_id: nil, active_trips_only: nil, page_size: nil, page_token: nil, minimum_staleness: nil)
527
+ # Pass arguments to `search_trips` via keyword arguments. Note that at
528
+ # least one keyword argument is required. To specify no parameters, or to keep all
529
+ # the default parameter values, pass an empty Hash as a request object (see above).
530
+ #
531
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
532
+ # The standard Fleet Engine request header.
533
+ # @param parent [::String]
534
+ # Required. Must be in the format `providers/{provider}`.
535
+ # The provider must be the Project ID (for example, `sample-cloud-project`)
536
+ # of the Google Cloud Project of which the service account making
537
+ # this call is a member.
538
+ # @param vehicle_id [::String]
539
+ # The vehicle associated with the trips in the request. If unspecified, the
540
+ # returned trips do not contain:
541
+ #
542
+ # * `current_route_segment`
543
+ # * `remaining_waypoints`
544
+ # * `remaining_distance_meters`
545
+ # * `eta_to_first_waypoint`
546
+ # @param active_trips_only [::Boolean]
547
+ # If set to true, the response includes Trips that influence a driver's
548
+ # route.
549
+ # @param page_size [::Integer]
550
+ # If not set, the server decides the number of results to return.
551
+ # @param page_token [::String]
552
+ # Set this to a value previously returned in the `SearchTripsResponse` to
553
+ # continue from previous results.
554
+ # @param minimum_staleness [::Google::Protobuf::Duration, ::Hash]
555
+ # If specified, returns the trips that have not been updated after the time
556
+ # `(current - minimum_staleness)`.
557
+ # @yield [result, operation] Access the result along with the TransportOperation object
558
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Maps::FleetEngine::V1::Trip>]
559
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
560
+ #
561
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Maps::FleetEngine::V1::Trip>]
562
+ #
563
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
564
+ #
565
+ # @example Basic example
566
+ # require "google/maps/fleet_engine/v1"
567
+ #
568
+ # # Create a client object. The client can be reused for multiple calls.
569
+ # client = Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
570
+ #
571
+ # # Create a request. To set request fields, pass in keyword arguments.
572
+ # request = Google::Maps::FleetEngine::V1::SearchTripsRequest.new
573
+ #
574
+ # # Call the search_trips method.
575
+ # result = client.search_trips request
576
+ #
577
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
578
+ # # over elements, and API calls will be issued to fetch pages as needed.
579
+ # result.each do |item|
580
+ # # Each element is of type ::Google::Maps::FleetEngine::V1::Trip.
581
+ # p item
582
+ # end
583
+ #
584
+ def search_trips request, options = nil
585
+ raise ::ArgumentError, "request must be provided" if request.nil?
586
+
587
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::SearchTripsRequest
588
+
589
+ # Converts hash and nil to an options object
590
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
591
+
592
+ # Customize the options with defaults
593
+ call_metadata = @config.rpcs.search_trips.metadata.to_h
594
+
595
+ # Set x-goog-api-client and x-goog-user-project headers
596
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
597
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
598
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
599
+ transports_version_send: [:rest]
600
+
601
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
602
+
603
+ options.apply_defaults timeout: @config.rpcs.search_trips.timeout,
604
+ metadata: call_metadata,
605
+ retry_policy: @config.rpcs.search_trips.retry_policy
606
+
607
+ options.apply_defaults timeout: @config.timeout,
608
+ metadata: @config.metadata,
609
+ retry_policy: @config.retry_policy
610
+
611
+ @trip_service_stub.search_trips request, options do |result, operation|
612
+ result = ::Gapic::Rest::PagedEnumerable.new @trip_service_stub, :search_trips, "trips", request, result, options
613
+ yield result, operation if block_given?
614
+ return result
615
+ end
616
+ rescue ::Gapic::Rest::Error => e
617
+ raise ::Google::Cloud::Error.from_error(e)
618
+ end
619
+
620
+ ##
621
+ # Updates trip data.
622
+ #
623
+ # @overload update_trip(request, options = nil)
624
+ # Pass arguments to `update_trip` via a request object, either of type
625
+ # {::Google::Maps::FleetEngine::V1::UpdateTripRequest} or an equivalent Hash.
626
+ #
627
+ # @param request [::Google::Maps::FleetEngine::V1::UpdateTripRequest, ::Hash]
628
+ # A request object representing the call parameters. Required. To specify no
629
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
630
+ # @param options [::Gapic::CallOptions, ::Hash]
631
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
632
+ #
633
+ # @overload update_trip(header: nil, name: nil, trip: nil, update_mask: nil)
634
+ # Pass arguments to `update_trip` via keyword arguments. Note that at
635
+ # least one keyword argument is required. To specify no parameters, or to keep all
636
+ # the default parameter values, pass an empty Hash as a request object (see above).
637
+ #
638
+ # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
639
+ # The standard Fleet Engine request header.
640
+ # @param name [::String]
641
+ # Required. Must be in the format
642
+ # `providers/{provider}/trips/{trip}`. The provider must
643
+ # be the Project ID (for example, `sample-consumer-project`) of the Google
644
+ # Cloud Project of which the service account making this call is a member.
645
+ # @param trip [::Google::Maps::FleetEngine::V1::Trip, ::Hash]
646
+ # Required. The Trip associated with the update.
647
+ #
648
+ # The following fields are maintained by the Fleet Engine. Do not update
649
+ # them using Trip.update.
650
+ #
651
+ # * `current_route_segment`
652
+ # * `current_route_segment_end_point`
653
+ # * `current_route_segment_traffic`
654
+ # * `current_route_segment_traffic_version`
655
+ # * `current_route_segment_version`
656
+ # * `dropoff_time`
657
+ # * `eta_to_next_waypoint`
658
+ # * `intermediate_destinations_version`
659
+ # * `last_location`
660
+ # * `name`
661
+ # * `number_of_passengers`
662
+ # * `pickup_time`
663
+ # * `remaining_distance_meters`
664
+ # * `remaining_time_to_first_waypoint`
665
+ # * `remaining_waypoints`
666
+ # * `remaining_waypoints_version`
667
+ # * `route`
668
+ #
669
+ # When you update the `Trip.vehicle_id` for a shared trip, you must supply
670
+ # the list of `Trip.vehicle_waypoints` to specify the order of the remaining
671
+ # waypoints, otherwise the order will be undetermined.
672
+ #
673
+ # When you specify `Trip.vehicle_waypoints`, the list must contain all
674
+ # the remaining waypoints of the vehicle's trips, with no extra waypoints.
675
+ # You must order these waypoints such that for a given trip, the pickup
676
+ # point is before intermediate destinations, and all intermediate
677
+ # destinations come before the drop-off point. An `EXCLUSIVE` trip's
678
+ # waypoints must not interleave with any other trips.
679
+ # The `trip_id`, `waypoint_type` and `location` fields are used, and all
680
+ # other TripWaypoint fields in `vehicle_waypoints` are ignored.
681
+ #
682
+ # To avoid a race condition for trips with multiple destinations, you
683
+ # should provide `Trip.intermediate_destinations_version` when updating
684
+ # the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The
685
+ # `Trip.intermediate_destinations_version` passed must be consistent with
686
+ # Fleet Engine's version. If it isn't, the request fails.
687
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
688
+ # Required. The field mask indicating which fields in Trip to update.
689
+ # The `update_mask` must contain at least one field.
690
+ # @yield [result, operation] Access the result along with the TransportOperation object
691
+ # @yieldparam result [::Google::Maps::FleetEngine::V1::Trip]
692
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
693
+ #
694
+ # @return [::Google::Maps::FleetEngine::V1::Trip]
695
+ #
696
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
697
+ #
698
+ # @example Basic example
699
+ # require "google/maps/fleet_engine/v1"
700
+ #
701
+ # # Create a client object. The client can be reused for multiple calls.
702
+ # client = Google::Maps::FleetEngine::V1::TripService::Rest::Client.new
703
+ #
704
+ # # Create a request. To set request fields, pass in keyword arguments.
705
+ # request = Google::Maps::FleetEngine::V1::UpdateTripRequest.new
706
+ #
707
+ # # Call the update_trip method.
708
+ # result = client.update_trip request
709
+ #
710
+ # # The returned object is of type Google::Maps::FleetEngine::V1::Trip.
711
+ # p result
712
+ #
713
+ def update_trip request, options = nil
714
+ raise ::ArgumentError, "request must be provided" if request.nil?
715
+
716
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::UpdateTripRequest
717
+
718
+ # Converts hash and nil to an options object
719
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
720
+
721
+ # Customize the options with defaults
722
+ call_metadata = @config.rpcs.update_trip.metadata.to_h
723
+
724
+ # Set x-goog-api-client and x-goog-user-project headers
725
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
726
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
727
+ gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
728
+ transports_version_send: [:rest]
729
+
730
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
731
+
732
+ options.apply_defaults timeout: @config.rpcs.update_trip.timeout,
733
+ metadata: call_metadata,
734
+ retry_policy: @config.rpcs.update_trip.retry_policy
735
+
736
+ options.apply_defaults timeout: @config.timeout,
737
+ metadata: @config.metadata,
738
+ retry_policy: @config.retry_policy
739
+
740
+ @trip_service_stub.update_trip request, options do |result, operation|
741
+ yield result, operation if block_given?
742
+ return result
743
+ end
744
+ rescue ::Gapic::Rest::Error => e
745
+ raise ::Google::Cloud::Error.from_error(e)
746
+ end
747
+
748
+ ##
749
+ # Configuration class for the TripService REST API.
750
+ #
751
+ # This class represents the configuration for TripService REST,
752
+ # providing control over timeouts, retry behavior, logging, transport
753
+ # parameters, and other low-level controls. Certain parameters can also be
754
+ # applied individually to specific RPCs. See
755
+ # {::Google::Maps::FleetEngine::V1::TripService::Rest::Client::Configuration::Rpcs}
756
+ # for a list of RPCs that can be configured independently.
757
+ #
758
+ # Configuration can be applied globally to all clients, or to a single client
759
+ # on construction.
760
+ #
761
+ # @example
762
+ #
763
+ # # Modify the global config, setting the timeout for
764
+ # # create_trip to 20 seconds,
765
+ # # and all remaining timeouts to 10 seconds.
766
+ # ::Google::Maps::FleetEngine::V1::TripService::Rest::Client.configure do |config|
767
+ # config.timeout = 10.0
768
+ # config.rpcs.create_trip.timeout = 20.0
769
+ # end
770
+ #
771
+ # # Apply the above configuration only to a new client.
772
+ # client = ::Google::Maps::FleetEngine::V1::TripService::Rest::Client.new do |config|
773
+ # config.timeout = 10.0
774
+ # config.rpcs.create_trip.timeout = 20.0
775
+ # end
776
+ #
777
+ # @!attribute [rw] endpoint
778
+ # A custom service endpoint, as a hostname or hostname:port. The default is
779
+ # nil, indicating to use the default endpoint in the current universe domain.
780
+ # @return [::String,nil]
781
+ # @!attribute [rw] credentials
782
+ # Credentials to send with calls. You may provide any of the following types:
783
+ # * (`String`) The path to a service account key file in JSON format
784
+ # * (`Hash`) A service account key as a Hash
785
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
786
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
787
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
788
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
789
+ # * (`nil`) indicating no credentials
790
+ # @return [::Object]
791
+ # @!attribute [rw] scope
792
+ # The OAuth scopes
793
+ # @return [::Array<::String>]
794
+ # @!attribute [rw] lib_name
795
+ # The library name as recorded in instrumentation and logging
796
+ # @return [::String]
797
+ # @!attribute [rw] lib_version
798
+ # The library version as recorded in instrumentation and logging
799
+ # @return [::String]
800
+ # @!attribute [rw] timeout
801
+ # The call timeout in seconds.
802
+ # @return [::Numeric]
803
+ # @!attribute [rw] metadata
804
+ # Additional headers to be sent with the call.
805
+ # @return [::Hash{::Symbol=>::String}]
806
+ # @!attribute [rw] retry_policy
807
+ # The retry policy. The value is a hash with the following keys:
808
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
809
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
810
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
811
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
812
+ # trigger a retry.
813
+ # @return [::Hash]
814
+ # @!attribute [rw] quota_project
815
+ # A separate project against which to charge quota.
816
+ # @return [::String]
817
+ # @!attribute [rw] universe_domain
818
+ # The universe domain within which to make requests. This determines the
819
+ # default endpoint URL. The default value of nil uses the environment
820
+ # universe (usually the default "googleapis.com" universe).
821
+ # @return [::String,nil]
822
+ #
823
+ class Configuration
824
+ extend ::Gapic::Config
825
+
826
+ # @private
827
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
828
+ DEFAULT_ENDPOINT = "fleetengine.googleapis.com"
829
+
830
+ config_attr :endpoint, nil, ::String, nil
831
+ config_attr :credentials, nil do |value|
832
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
833
+ allowed.any? { |klass| klass === value }
834
+ end
835
+ config_attr :scope, nil, ::String, ::Array, nil
836
+ config_attr :lib_name, nil, ::String, nil
837
+ config_attr :lib_version, nil, ::String, nil
838
+ config_attr :timeout, nil, ::Numeric, nil
839
+ config_attr :metadata, nil, ::Hash, nil
840
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
841
+ config_attr :quota_project, nil, ::String, nil
842
+ config_attr :universe_domain, nil, ::String, nil
843
+
844
+ # @private
845
+ def initialize parent_config = nil
846
+ @parent_config = parent_config unless parent_config.nil?
847
+
848
+ yield self if block_given?
849
+ end
850
+
851
+ ##
852
+ # Configurations for individual RPCs
853
+ # @return [Rpcs]
854
+ #
855
+ def rpcs
856
+ @rpcs ||= begin
857
+ parent_rpcs = nil
858
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
859
+ Rpcs.new parent_rpcs
860
+ end
861
+ end
862
+
863
+ ##
864
+ # Configuration RPC class for the TripService API.
865
+ #
866
+ # Includes fields providing the configuration for each RPC in this service.
867
+ # Each configuration object is of type `Gapic::Config::Method` and includes
868
+ # the following configuration fields:
869
+ #
870
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
871
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
872
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
873
+ # include the following keys:
874
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
875
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
876
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
877
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
878
+ # trigger a retry.
879
+ #
880
+ class Rpcs
881
+ ##
882
+ # RPC-specific configuration for `create_trip`
883
+ # @return [::Gapic::Config::Method]
884
+ #
885
+ attr_reader :create_trip
886
+ ##
887
+ # RPC-specific configuration for `get_trip`
888
+ # @return [::Gapic::Config::Method]
889
+ #
890
+ attr_reader :get_trip
891
+ ##
892
+ # RPC-specific configuration for `report_billable_trip`
893
+ # @return [::Gapic::Config::Method]
894
+ #
895
+ attr_reader :report_billable_trip
896
+ ##
897
+ # RPC-specific configuration for `search_trips`
898
+ # @return [::Gapic::Config::Method]
899
+ #
900
+ attr_reader :search_trips
901
+ ##
902
+ # RPC-specific configuration for `update_trip`
903
+ # @return [::Gapic::Config::Method]
904
+ #
905
+ attr_reader :update_trip
906
+
907
+ # @private
908
+ def initialize parent_rpcs = nil
909
+ create_trip_config = parent_rpcs.create_trip if parent_rpcs.respond_to? :create_trip
910
+ @create_trip = ::Gapic::Config::Method.new create_trip_config
911
+ get_trip_config = parent_rpcs.get_trip if parent_rpcs.respond_to? :get_trip
912
+ @get_trip = ::Gapic::Config::Method.new get_trip_config
913
+ report_billable_trip_config = parent_rpcs.report_billable_trip if parent_rpcs.respond_to? :report_billable_trip
914
+ @report_billable_trip = ::Gapic::Config::Method.new report_billable_trip_config
915
+ search_trips_config = parent_rpcs.search_trips if parent_rpcs.respond_to? :search_trips
916
+ @search_trips = ::Gapic::Config::Method.new search_trips_config
917
+ update_trip_config = parent_rpcs.update_trip if parent_rpcs.respond_to? :update_trip
918
+ @update_trip = ::Gapic::Config::Method.new update_trip_config
919
+
920
+ yield self if block_given?
921
+ end
922
+ end
923
+ end
924
+ end
925
+ end
926
+ end
927
+ end
928
+ end
929
+ end
930
+ end