google-maps-fleet_engine-v1 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/maps/fleet_engine/v1/trip_service/client.rb +13 -5
- data/lib/google/maps/fleet_engine/v1/trip_service/rest/client.rb +13 -5
- data/lib/google/maps/fleet_engine/v1/vehicle_service/client.rb +15 -340
- data/lib/google/maps/fleet_engine/v1/vehicle_service/rest/client.rb +15 -320
- data/lib/google/maps/fleet_engine/v1/vehicle_service/rest/service_stub.rb +0 -120
- data/lib/google/maps/fleet_engine/v1/version.rb +1 -1
- data/lib/google/maps/fleetengine/v1/fleetengine_pb.rb +1 -1
- data/lib/google/maps/fleetengine/v1/header_pb.rb +1 -1
- data/lib/google/maps/fleetengine/v1/traffic_pb.rb +1 -1
- data/lib/google/maps/fleetengine/v1/trip_api_pb.rb +1 -1
- data/lib/google/maps/fleetengine/v1/trips_pb.rb +1 -1
- data/lib/google/maps/fleetengine/v1/vehicle_api_pb.rb +2 -3
- data/lib/google/maps/fleetengine/v1/vehicle_api_services_pb.rb +0 -5
- data/lib/google/maps/fleetengine/v1/vehicles_pb.rb +1 -1
- data/proto_docs/google/maps/fleetengine/v1/fleetengine.rb +8 -4
- data/proto_docs/google/maps/fleetengine/v1/vehicle_api.rb +0 -25
- metadata +2 -2
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Vehicle management service.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "fleetengine.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -301,12 +304,13 @@ module Google
|
|
301
304
|
# Customize the options with defaults
|
302
305
|
call_metadata = @config.rpcs.create_vehicle.metadata.to_h
|
303
306
|
|
304
|
-
# Set x-goog-api-client
|
307
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
305
308
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
306
309
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
307
310
|
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
308
311
|
transports_version_send: [:rest]
|
309
312
|
|
313
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
310
314
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
311
315
|
|
312
316
|
options.apply_defaults timeout: @config.rpcs.create_vehicle.timeout,
|
@@ -396,12 +400,13 @@ module Google
|
|
396
400
|
# Customize the options with defaults
|
397
401
|
call_metadata = @config.rpcs.get_vehicle.metadata.to_h
|
398
402
|
|
399
|
-
# Set x-goog-api-client
|
403
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
400
404
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
401
405
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
402
406
|
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
403
407
|
transports_version_send: [:rest]
|
404
408
|
|
409
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
405
410
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
406
411
|
|
407
412
|
options.apply_defaults timeout: @config.rpcs.get_vehicle.timeout,
|
@@ -516,12 +521,13 @@ module Google
|
|
516
521
|
# Customize the options with defaults
|
517
522
|
call_metadata = @config.rpcs.update_vehicle.metadata.to_h
|
518
523
|
|
519
|
-
# Set x-goog-api-client
|
524
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
520
525
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
521
526
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
522
527
|
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
523
528
|
transports_version_send: [:rest]
|
524
529
|
|
530
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
525
531
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
526
532
|
|
527
533
|
options.apply_defaults timeout: @config.rpcs.update_vehicle.timeout,
|
@@ -540,97 +546,6 @@ module Google
|
|
540
546
|
raise ::Google::Cloud::Error.from_error(e)
|
541
547
|
end
|
542
548
|
|
543
|
-
##
|
544
|
-
# Deprecated: Use the `UpdateVehicle` method instead.
|
545
|
-
# UpdateVehicleLocation updates the location of the vehicle.
|
546
|
-
#
|
547
|
-
# @overload update_vehicle_location(request, options = nil)
|
548
|
-
# Pass arguments to `update_vehicle_location` via a request object, either of type
|
549
|
-
# {::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest} or an equivalent Hash.
|
550
|
-
#
|
551
|
-
# @param request [::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest, ::Hash]
|
552
|
-
# A request object representing the call parameters. Required. To specify no
|
553
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
554
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
555
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
556
|
-
#
|
557
|
-
# @overload update_vehicle_location(header: nil, name: nil, current_location: nil, current_state: nil)
|
558
|
-
# Pass arguments to `update_vehicle_location` via keyword arguments. Note that at
|
559
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
560
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
561
|
-
#
|
562
|
-
# @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
|
563
|
-
# The standard Fleet Engine request header.
|
564
|
-
# @param name [::String]
|
565
|
-
# Required. Must be in the format
|
566
|
-
# `providers/{provider}/vehicles/{vehicle}`.
|
567
|
-
# The \\{provider} must be the Project ID (for example, `sample-cloud-project`)
|
568
|
-
# of the Google Cloud Project of which the service account making
|
569
|
-
# this call is a member.
|
570
|
-
# @param current_location [::Google::Maps::FleetEngine::V1::VehicleLocation, ::Hash]
|
571
|
-
# Required. The vehicle's most recent location. The `location` and
|
572
|
-
# `update_time` subfields are required.
|
573
|
-
# @param current_state [::Google::Maps::FleetEngine::V1::VehicleState]
|
574
|
-
# Set the vehicle's state to either `ONLINE` or `OFFLINE`.
|
575
|
-
# If set to `UNKNOWN_VEHICLE_STATE`, the vehicle's state will not be altered.
|
576
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
577
|
-
# @yieldparam result [::Google::Maps::FleetEngine::V1::VehicleLocation]
|
578
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
579
|
-
#
|
580
|
-
# @return [::Google::Maps::FleetEngine::V1::VehicleLocation]
|
581
|
-
#
|
582
|
-
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
583
|
-
#
|
584
|
-
# @example Basic example
|
585
|
-
# require "google/maps/fleet_engine/v1"
|
586
|
-
#
|
587
|
-
# # Create a client object. The client can be reused for multiple calls.
|
588
|
-
# client = Google::Maps::FleetEngine::V1::VehicleService::Rest::Client.new
|
589
|
-
#
|
590
|
-
# # Create a request. To set request fields, pass in keyword arguments.
|
591
|
-
# request = Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest.new
|
592
|
-
#
|
593
|
-
# # Call the update_vehicle_location method.
|
594
|
-
# result = client.update_vehicle_location request
|
595
|
-
#
|
596
|
-
# # The returned object is of type Google::Maps::FleetEngine::V1::VehicleLocation.
|
597
|
-
# p result
|
598
|
-
#
|
599
|
-
def update_vehicle_location request, options = nil
|
600
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
601
|
-
|
602
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest
|
603
|
-
|
604
|
-
# Converts hash and nil to an options object
|
605
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
606
|
-
|
607
|
-
# Customize the options with defaults
|
608
|
-
call_metadata = @config.rpcs.update_vehicle_location.metadata.to_h
|
609
|
-
|
610
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
611
|
-
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
612
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
613
|
-
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
614
|
-
transports_version_send: [:rest]
|
615
|
-
|
616
|
-
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
617
|
-
|
618
|
-
options.apply_defaults timeout: @config.rpcs.update_vehicle_location.timeout,
|
619
|
-
metadata: call_metadata,
|
620
|
-
retry_policy: @config.rpcs.update_vehicle_location.retry_policy
|
621
|
-
|
622
|
-
options.apply_defaults timeout: @config.timeout,
|
623
|
-
metadata: @config.metadata,
|
624
|
-
retry_policy: @config.retry_policy
|
625
|
-
|
626
|
-
@vehicle_service_stub.update_vehicle_location request, options do |result, operation|
|
627
|
-
yield result, operation if block_given?
|
628
|
-
return result
|
629
|
-
end
|
630
|
-
rescue ::Gapic::Rest::Error => e
|
631
|
-
raise ::Google::Cloud::Error.from_error(e)
|
632
|
-
end
|
633
|
-
|
634
549
|
##
|
635
550
|
# Partially updates a vehicle's attributes.
|
636
551
|
# Only the attributes mentioned in the request will be updated, other
|
@@ -697,12 +612,13 @@ module Google
|
|
697
612
|
# Customize the options with defaults
|
698
613
|
call_metadata = @config.rpcs.update_vehicle_attributes.metadata.to_h
|
699
614
|
|
700
|
-
# Set x-goog-api-client
|
615
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
701
616
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
702
617
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
703
618
|
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
704
619
|
transports_version_send: [:rest]
|
705
620
|
|
621
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
706
622
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
707
623
|
|
708
624
|
options.apply_defaults timeout: @config.rpcs.update_vehicle_attributes.timeout,
|
@@ -896,12 +812,13 @@ module Google
|
|
896
812
|
# Customize the options with defaults
|
897
813
|
call_metadata = @config.rpcs.list_vehicles.metadata.to_h
|
898
814
|
|
899
|
-
# Set x-goog-api-client
|
815
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
900
816
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
901
817
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
902
818
|
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
903
819
|
transports_version_send: [:rest]
|
904
820
|
|
821
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
905
822
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
906
823
|
|
907
824
|
options.apply_defaults timeout: @config.rpcs.list_vehicles.timeout,
|
@@ -1106,12 +1023,13 @@ module Google
|
|
1106
1023
|
# Customize the options with defaults
|
1107
1024
|
call_metadata = @config.rpcs.search_vehicles.metadata.to_h
|
1108
1025
|
|
1109
|
-
# Set x-goog-api-client
|
1026
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1110
1027
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1111
1028
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1112
1029
|
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
1113
1030
|
transports_version_send: [:rest]
|
1114
1031
|
|
1032
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1115
1033
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1116
1034
|
|
1117
1035
|
options.apply_defaults timeout: @config.rpcs.search_vehicles.timeout,
|
@@ -1130,215 +1048,6 @@ module Google
|
|
1130
1048
|
raise ::Google::Cloud::Error.from_error(e)
|
1131
1049
|
end
|
1132
1050
|
|
1133
|
-
##
|
1134
|
-
# Deprecated: Use `SearchVehicles` instead.
|
1135
|
-
#
|
1136
|
-
# @overload search_fuzzed_vehicles(request, options = nil)
|
1137
|
-
# Pass arguments to `search_fuzzed_vehicles` via a request object, either of type
|
1138
|
-
# {::Google::Maps::FleetEngine::V1::SearchVehiclesRequest} or an equivalent Hash.
|
1139
|
-
#
|
1140
|
-
# @param request [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest, ::Hash]
|
1141
|
-
# A request object representing the call parameters. Required. To specify no
|
1142
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1143
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
1144
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1145
|
-
#
|
1146
|
-
# @overload search_fuzzed_vehicles(header: nil, parent: nil, pickup_point: nil, dropoff_point: nil, pickup_radius_meters: nil, count: nil, minimum_capacity: nil, trip_types: nil, maximum_staleness: nil, vehicle_types: nil, required_attributes: nil, required_one_of_attributes: nil, required_one_of_attribute_sets: nil, order_by: nil, include_back_to_back: nil, trip_id: nil, current_trips_present: nil, filter: nil)
|
1147
|
-
# Pass arguments to `search_fuzzed_vehicles` via keyword arguments. Note that at
|
1148
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
1149
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
1150
|
-
#
|
1151
|
-
# @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
|
1152
|
-
# The standard Fleet Engine request header.
|
1153
|
-
# @param parent [::String]
|
1154
|
-
# Required. Must be in the format `providers/{provider}`.
|
1155
|
-
# The provider must be the Project ID (for example, `sample-cloud-project`)
|
1156
|
-
# of the Google Cloud Project of which the service account making
|
1157
|
-
# this call is a member.
|
1158
|
-
# @param pickup_point [::Google::Maps::FleetEngine::V1::TerminalLocation, ::Hash]
|
1159
|
-
# Required. The pickup point to search near.
|
1160
|
-
# @param dropoff_point [::Google::Maps::FleetEngine::V1::TerminalLocation, ::Hash]
|
1161
|
-
# The customer's intended dropoff location. The field is required if
|
1162
|
-
# `trip_types` contains `TripType.SHARED`.
|
1163
|
-
# @param pickup_radius_meters [::Integer]
|
1164
|
-
# Required. Defines the vehicle search radius around the pickup point. Only
|
1165
|
-
# vehicles within the search radius will be returned. Value must be between
|
1166
|
-
# 400 and 10000 meters (inclusive).
|
1167
|
-
# @param count [::Integer]
|
1168
|
-
# Required. Specifies the maximum number of vehicles to return. The value
|
1169
|
-
# must be between 1 and 50 (inclusive).
|
1170
|
-
# @param minimum_capacity [::Integer]
|
1171
|
-
# Required. Specifies the number of passengers being considered for a trip.
|
1172
|
-
# The value must be greater than or equal to one. The driver is not
|
1173
|
-
# considered in the capacity value.
|
1174
|
-
# @param trip_types [::Array<::Google::Maps::FleetEngine::V1::TripType>]
|
1175
|
-
# Required. Represents the type of proposed trip. Must include exactly one
|
1176
|
-
# type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only
|
1177
|
-
# those vehicles that can support that trip type.
|
1178
|
-
# @param maximum_staleness [::Google::Protobuf::Duration, ::Hash]
|
1179
|
-
# Restricts the search to only those vehicles that have sent location updates
|
1180
|
-
# to Fleet Engine within the specified duration. Stationary vehicles still
|
1181
|
-
# transmitting their locations are not considered stale. If this field is not
|
1182
|
-
# set, the server uses five minutes as the default value.
|
1183
|
-
# @param vehicle_types [::Array<::Google::Maps::FleetEngine::V1::Vehicle::VehicleType, ::Hash>]
|
1184
|
-
# Required. Restricts the search to vehicles with one of the specified types.
|
1185
|
-
# At least one vehicle type must be specified. VehicleTypes with a category
|
1186
|
-
# of `UNKNOWN` are not allowed.
|
1187
|
-
# @param required_attributes [::Array<::Google::Maps::FleetEngine::V1::VehicleAttribute, ::Hash>]
|
1188
|
-
# Callers can form complex logical operations using any combination of the
|
1189
|
-
# `required_attributes`, `required_one_of_attributes`, and
|
1190
|
-
# `required_one_of_attribute_sets` fields.
|
1191
|
-
#
|
1192
|
-
# `required_attributes` is a list; `required_one_of_attributes` uses a
|
1193
|
-
# message which allows a list of lists. In combination, the two fields allow
|
1194
|
-
# the composition of this expression:
|
1195
|
-
#
|
1196
|
-
# ```
|
1197
|
-
# (required_attributes[0] AND required_attributes[1] AND ...)
|
1198
|
-
# AND
|
1199
|
-
# (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR
|
1200
|
-
# ...)
|
1201
|
-
# AND
|
1202
|
-
# (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR
|
1203
|
-
# ...)
|
1204
|
-
# ```
|
1205
|
-
#
|
1206
|
-
# Restricts the search to only those vehicles with the specified attributes.
|
1207
|
-
# This field is a conjunction/AND operation. A max of 50 required_attributes
|
1208
|
-
# is allowed. This matches the maximum number of attributes allowed on a
|
1209
|
-
# vehicle.
|
1210
|
-
# @param required_one_of_attributes [::Array<::Google::Maps::FleetEngine::V1::VehicleAttributeList, ::Hash>]
|
1211
|
-
# Restricts the search to only those vehicles with at least one of
|
1212
|
-
# the specified attributes in each `VehicleAttributeList`. Within each
|
1213
|
-
# list, a vehicle must match at least one of the attributes. This field is an
|
1214
|
-
# inclusive disjunction/OR operation in each `VehicleAttributeList` and a
|
1215
|
-
# conjunction/AND operation across the collection of `VehicleAttributeList`.
|
1216
|
-
# @param required_one_of_attribute_sets [::Array<::Google::Maps::FleetEngine::V1::VehicleAttributeList, ::Hash>]
|
1217
|
-
# `required_one_of_attribute_sets` provides additional functionality.
|
1218
|
-
#
|
1219
|
-
# Similar to `required_one_of_attributes`, `required_one_of_attribute_sets`
|
1220
|
-
# uses a message which allows a list of lists, allowing expressions such as
|
1221
|
-
# this one:
|
1222
|
-
#
|
1223
|
-
# ```
|
1224
|
-
# (required_attributes[0] AND required_attributes[1] AND ...)
|
1225
|
-
# AND
|
1226
|
-
# (
|
1227
|
-
# (required_one_of_attribute_sets[0][0] AND
|
1228
|
-
# required_one_of_attribute_sets[0][1] AND
|
1229
|
-
# ...)
|
1230
|
-
# OR
|
1231
|
-
# (required_one_of_attribute_sets[1][0] AND
|
1232
|
-
# required_one_of_attribute_sets[1][1] AND
|
1233
|
-
# ...)
|
1234
|
-
# )
|
1235
|
-
# ```
|
1236
|
-
#
|
1237
|
-
# Restricts the search to only those vehicles with all the attributes in a
|
1238
|
-
# `VehicleAttributeList`. Within each list, a
|
1239
|
-
# vehicle must match all of the attributes. This field is a conjunction/AND
|
1240
|
-
# operation in each `VehicleAttributeList` and inclusive disjunction/OR
|
1241
|
-
# operation across the collection of `VehicleAttributeList`.
|
1242
|
-
# @param order_by [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest::VehicleMatchOrder]
|
1243
|
-
# Required. Specifies the desired ordering criterion for results.
|
1244
|
-
# @param include_back_to_back [::Boolean]
|
1245
|
-
# This indicates if vehicles with a single active trip are eligible for this
|
1246
|
-
# search. This field is only used when `current_trips_present` is
|
1247
|
-
# unspecified. When `current_trips_present` is unspecified and this field
|
1248
|
-
# is `false`, vehicles with assigned trips are excluded from the search
|
1249
|
-
# results. When `current_trips_present` is unspecified and this field is
|
1250
|
-
# `true`, search results can include vehicles with one active trip that has a
|
1251
|
-
# status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified,
|
1252
|
-
# this field cannot be set to true.
|
1253
|
-
#
|
1254
|
-
# The default value is `false`.
|
1255
|
-
# @param trip_id [::String]
|
1256
|
-
# Indicates the trip associated with this `SearchVehicleRequest`.
|
1257
|
-
# @param current_trips_present [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest::CurrentTripsPresent]
|
1258
|
-
# This indicates if vehicles with active trips are eligible for this search.
|
1259
|
-
# This must be set to something other than
|
1260
|
-
# `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`.
|
1261
|
-
# @param filter [::String]
|
1262
|
-
# Optional. A filter query to apply when searching vehicles. See
|
1263
|
-
# http://aip.dev/160 for examples of the filter syntax.
|
1264
|
-
#
|
1265
|
-
# This field is designed to replace the `required_attributes`,
|
1266
|
-
# `required_one_of_attributes`, and `required_one_of_attributes_sets` fields.
|
1267
|
-
# If a non-empty value is specified here, the following fields must be empty:
|
1268
|
-
# `required_attributes`, `required_one_of_attributes`, and
|
1269
|
-
# `required_one_of_attributes_sets`.
|
1270
|
-
#
|
1271
|
-
# This filter functions as an AND clause with other constraints,
|
1272
|
-
# such as `minimum_capacity` or `vehicle_types`.
|
1273
|
-
#
|
1274
|
-
# Note that the only queries supported are on vehicle attributes (for
|
1275
|
-
# example, `attributes.<key> = <value>` or `attributes.<key1> = <value1> AND
|
1276
|
-
# attributes.<key2> = <value2>`). The maximum number of restrictions allowed
|
1277
|
-
# in a filter query is 50.
|
1278
|
-
#
|
1279
|
-
# Also, all attributes are stored as strings, so the only supported
|
1280
|
-
# comparisons against attributes are string comparisons. In order to compare
|
1281
|
-
# against number or boolean values, the values must be explicitly quoted to
|
1282
|
-
# be treated as strings (for example, `attributes.<key> = "10"` or
|
1283
|
-
# `attributes.<key> = "true"`).
|
1284
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
1285
|
-
# @yieldparam result [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
|
1286
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1287
|
-
#
|
1288
|
-
# @return [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
|
1289
|
-
#
|
1290
|
-
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1291
|
-
#
|
1292
|
-
# @example Basic example
|
1293
|
-
# require "google/maps/fleet_engine/v1"
|
1294
|
-
#
|
1295
|
-
# # Create a client object. The client can be reused for multiple calls.
|
1296
|
-
# client = Google::Maps::FleetEngine::V1::VehicleService::Rest::Client.new
|
1297
|
-
#
|
1298
|
-
# # Create a request. To set request fields, pass in keyword arguments.
|
1299
|
-
# request = Google::Maps::FleetEngine::V1::SearchVehiclesRequest.new
|
1300
|
-
#
|
1301
|
-
# # Call the search_fuzzed_vehicles method.
|
1302
|
-
# result = client.search_fuzzed_vehicles request
|
1303
|
-
#
|
1304
|
-
# # The returned object is of type Google::Maps::FleetEngine::V1::SearchVehiclesResponse.
|
1305
|
-
# p result
|
1306
|
-
#
|
1307
|
-
def search_fuzzed_vehicles request, options = nil
|
1308
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
1309
|
-
|
1310
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::SearchVehiclesRequest
|
1311
|
-
|
1312
|
-
# Converts hash and nil to an options object
|
1313
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1314
|
-
|
1315
|
-
# Customize the options with defaults
|
1316
|
-
call_metadata = @config.rpcs.search_fuzzed_vehicles.metadata.to_h
|
1317
|
-
|
1318
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
1319
|
-
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1320
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1321
|
-
gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
|
1322
|
-
transports_version_send: [:rest]
|
1323
|
-
|
1324
|
-
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1325
|
-
|
1326
|
-
options.apply_defaults timeout: @config.rpcs.search_fuzzed_vehicles.timeout,
|
1327
|
-
metadata: call_metadata,
|
1328
|
-
retry_policy: @config.rpcs.search_fuzzed_vehicles.retry_policy
|
1329
|
-
|
1330
|
-
options.apply_defaults timeout: @config.timeout,
|
1331
|
-
metadata: @config.metadata,
|
1332
|
-
retry_policy: @config.retry_policy
|
1333
|
-
|
1334
|
-
@vehicle_service_stub.search_fuzzed_vehicles request, options do |result, operation|
|
1335
|
-
yield result, operation if block_given?
|
1336
|
-
return result
|
1337
|
-
end
|
1338
|
-
rescue ::Gapic::Rest::Error => e
|
1339
|
-
raise ::Google::Cloud::Error.from_error(e)
|
1340
|
-
end
|
1341
|
-
|
1342
1051
|
##
|
1343
1052
|
# Configuration class for the VehicleService REST API.
|
1344
1053
|
#
|
@@ -1488,11 +1197,6 @@ module Google
|
|
1488
1197
|
#
|
1489
1198
|
attr_reader :update_vehicle
|
1490
1199
|
##
|
1491
|
-
# RPC-specific configuration for `update_vehicle_location`
|
1492
|
-
# @return [::Gapic::Config::Method]
|
1493
|
-
#
|
1494
|
-
attr_reader :update_vehicle_location
|
1495
|
-
##
|
1496
1200
|
# RPC-specific configuration for `update_vehicle_attributes`
|
1497
1201
|
# @return [::Gapic::Config::Method]
|
1498
1202
|
#
|
@@ -1507,11 +1211,6 @@ module Google
|
|
1507
1211
|
# @return [::Gapic::Config::Method]
|
1508
1212
|
#
|
1509
1213
|
attr_reader :search_vehicles
|
1510
|
-
##
|
1511
|
-
# RPC-specific configuration for `search_fuzzed_vehicles`
|
1512
|
-
# @return [::Gapic::Config::Method]
|
1513
|
-
#
|
1514
|
-
attr_reader :search_fuzzed_vehicles
|
1515
1214
|
|
1516
1215
|
# @private
|
1517
1216
|
def initialize parent_rpcs = nil
|
@@ -1521,16 +1220,12 @@ module Google
|
|
1521
1220
|
@get_vehicle = ::Gapic::Config::Method.new get_vehicle_config
|
1522
1221
|
update_vehicle_config = parent_rpcs.update_vehicle if parent_rpcs.respond_to? :update_vehicle
|
1523
1222
|
@update_vehicle = ::Gapic::Config::Method.new update_vehicle_config
|
1524
|
-
update_vehicle_location_config = parent_rpcs.update_vehicle_location if parent_rpcs.respond_to? :update_vehicle_location
|
1525
|
-
@update_vehicle_location = ::Gapic::Config::Method.new update_vehicle_location_config
|
1526
1223
|
update_vehicle_attributes_config = parent_rpcs.update_vehicle_attributes if parent_rpcs.respond_to? :update_vehicle_attributes
|
1527
1224
|
@update_vehicle_attributes = ::Gapic::Config::Method.new update_vehicle_attributes_config
|
1528
1225
|
list_vehicles_config = parent_rpcs.list_vehicles if parent_rpcs.respond_to? :list_vehicles
|
1529
1226
|
@list_vehicles = ::Gapic::Config::Method.new list_vehicles_config
|
1530
1227
|
search_vehicles_config = parent_rpcs.search_vehicles if parent_rpcs.respond_to? :search_vehicles
|
1531
1228
|
@search_vehicles = ::Gapic::Config::Method.new search_vehicles_config
|
1532
|
-
search_fuzzed_vehicles_config = parent_rpcs.search_fuzzed_vehicles if parent_rpcs.respond_to? :search_fuzzed_vehicles
|
1533
|
-
@search_fuzzed_vehicles = ::Gapic::Config::Method.new search_fuzzed_vehicles_config
|
1534
1229
|
|
1535
1230
|
yield self if block_given?
|
1536
1231
|
end
|
@@ -175,44 +175,6 @@ module Google
|
|
175
175
|
result
|
176
176
|
end
|
177
177
|
|
178
|
-
##
|
179
|
-
# Baseline implementation for the update_vehicle_location REST call
|
180
|
-
#
|
181
|
-
# @param request_pb [::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest]
|
182
|
-
# A request object representing the call parameters. Required.
|
183
|
-
# @param options [::Gapic::CallOptions]
|
184
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
185
|
-
#
|
186
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
187
|
-
# @yieldparam result [::Google::Maps::FleetEngine::V1::VehicleLocation]
|
188
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
189
|
-
#
|
190
|
-
# @return [::Google::Maps::FleetEngine::V1::VehicleLocation]
|
191
|
-
# A result object deserialized from the server's reply
|
192
|
-
def update_vehicle_location request_pb, options = nil
|
193
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
194
|
-
|
195
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_update_vehicle_location_request request_pb
|
196
|
-
query_string_params = if query_string_params.any?
|
197
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
198
|
-
else
|
199
|
-
{}
|
200
|
-
end
|
201
|
-
|
202
|
-
response = @client_stub.make_http_request(
|
203
|
-
verb,
|
204
|
-
uri: uri,
|
205
|
-
body: body || "",
|
206
|
-
params: query_string_params,
|
207
|
-
options: options
|
208
|
-
)
|
209
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
210
|
-
result = ::Google::Maps::FleetEngine::V1::VehicleLocation.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
yield result, operation if block_given?
|
213
|
-
result
|
214
|
-
end
|
215
|
-
|
216
178
|
##
|
217
179
|
# Baseline implementation for the update_vehicle_attributes REST call
|
218
180
|
#
|
@@ -327,44 +289,6 @@ module Google
|
|
327
289
|
result
|
328
290
|
end
|
329
291
|
|
330
|
-
##
|
331
|
-
# Baseline implementation for the search_fuzzed_vehicles REST call
|
332
|
-
#
|
333
|
-
# @param request_pb [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest]
|
334
|
-
# A request object representing the call parameters. Required.
|
335
|
-
# @param options [::Gapic::CallOptions]
|
336
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
337
|
-
#
|
338
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
339
|
-
# @yieldparam result [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
|
340
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
341
|
-
#
|
342
|
-
# @return [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
|
343
|
-
# A result object deserialized from the server's reply
|
344
|
-
def search_fuzzed_vehicles request_pb, options = nil
|
345
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
346
|
-
|
347
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_search_fuzzed_vehicles_request request_pb
|
348
|
-
query_string_params = if query_string_params.any?
|
349
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
350
|
-
else
|
351
|
-
{}
|
352
|
-
end
|
353
|
-
|
354
|
-
response = @client_stub.make_http_request(
|
355
|
-
verb,
|
356
|
-
uri: uri,
|
357
|
-
body: body || "",
|
358
|
-
params: query_string_params,
|
359
|
-
options: options
|
360
|
-
)
|
361
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
362
|
-
result = ::Google::Maps::FleetEngine::V1::SearchVehiclesResponse.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
yield result, operation if block_given?
|
365
|
-
result
|
366
|
-
end
|
367
|
-
|
368
292
|
##
|
369
293
|
# @private
|
370
294
|
#
|
@@ -430,28 +354,6 @@ module Google
|
|
430
354
|
transcoder.transcode request_pb
|
431
355
|
end
|
432
356
|
|
433
|
-
##
|
434
|
-
# @private
|
435
|
-
#
|
436
|
-
# GRPC transcoding helper method for the update_vehicle_location REST call
|
437
|
-
#
|
438
|
-
# @param request_pb [::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest]
|
439
|
-
# A request object representing the call parameters. Required.
|
440
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
441
|
-
# Uri, Body, Query string parameters
|
442
|
-
def self.transcode_update_vehicle_location_request request_pb
|
443
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
444
|
-
.with_bindings(
|
445
|
-
uri_method: :put,
|
446
|
-
uri_template: "/v1/{name}:updateLocation",
|
447
|
-
body: "*",
|
448
|
-
matches: [
|
449
|
-
["name", %r{^providers/[^/]+/vehicles/[^/]+/?$}, false]
|
450
|
-
]
|
451
|
-
)
|
452
|
-
transcoder.transcode request_pb
|
453
|
-
end
|
454
|
-
|
455
357
|
##
|
456
358
|
# @private
|
457
359
|
#
|
@@ -516,28 +418,6 @@ module Google
|
|
516
418
|
)
|
517
419
|
transcoder.transcode request_pb
|
518
420
|
end
|
519
|
-
|
520
|
-
##
|
521
|
-
# @private
|
522
|
-
#
|
523
|
-
# GRPC transcoding helper method for the search_fuzzed_vehicles REST call
|
524
|
-
#
|
525
|
-
# @param request_pb [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest]
|
526
|
-
# A request object representing the call parameters. Required.
|
527
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
528
|
-
# Uri, Body, Query string parameters
|
529
|
-
def self.transcode_search_fuzzed_vehicles_request request_pb
|
530
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
531
|
-
.with_bindings(
|
532
|
-
uri_method: :post,
|
533
|
-
uri_template: "/v1/{parent}/vehicles:searchFuzzed",
|
534
|
-
body: "*",
|
535
|
-
matches: [
|
536
|
-
["parent", %r{^providers/[^/]+/?$}, false]
|
537
|
-
]
|
538
|
-
)
|
539
|
-
transcoder.transcode request_pb
|
540
|
-
end
|
541
421
|
end
|
542
422
|
end
|
543
423
|
end
|
@@ -12,7 +12,7 @@ require 'google/protobuf/wrappers_pb'
|
|
12
12
|
require 'google/type/latlng_pb'
|
13
13
|
|
14
14
|
|
15
|
-
descriptor_data = "\n,google/maps/fleetengine/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\"
|
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\xd3\x01\n\x1agoogle.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
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n\'google/maps/fleetengine/v1/header.proto\x12\x13maps.fleetengine.v1\x1a\x1fgoogle/api/field_behavior.proto\"\x86\x04\n\rRequestHeader\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x18\n\x0bregion_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bsdk_version\x18\x03 \x01(\t\x12\x12\n\nos_version\x18\x04 \x01(\t\x12\x14\n\x0c\x64\x65vice_model\x18\x05 \x01(\t\x12<\n\x08sdk_type\x18\x06 \x01(\x0e\x32*.maps.fleetengine.v1.RequestHeader.SdkType\x12\x18\n\x10maps_sdk_version\x18\x07 \x01(\t\x12\x17\n\x0fnav_sdk_version\x18\x08 \x01(\t\x12=\n\x08platform\x18\t \x01(\x0e\x32+.maps.fleetengine.v1.RequestHeader.Platform\x12\x14\n\x0cmanufacturer\x18\n \x01(\t\x12\x19\n\x11\x61ndroid_api_level\x18\x0b \x01(\x05\x12\x10\n\x08trace_id\x18\x0c \x01(\t\"M\n\x07SdkType\x12\x18\n\x14SDK_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONSUMER\x10\x01\x12\n\n\x06\x44RIVER\x10\x02\x12\x0e\n\nJAVASCRIPT\x10\x03\"C\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41NDROID\x10\x01\x12\x07\n\x03IOS\x10\x02\x12\x07\n\x03WEB\x10\x03\x42\
|
10
|
+
descriptor_data = "\n\'google/maps/fleetengine/v1/header.proto\x12\x13maps.fleetengine.v1\x1a\x1fgoogle/api/field_behavior.proto\"\x86\x04\n\rRequestHeader\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\x18\n\x0bregion_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bsdk_version\x18\x03 \x01(\t\x12\x12\n\nos_version\x18\x04 \x01(\t\x12\x14\n\x0c\x64\x65vice_model\x18\x05 \x01(\t\x12<\n\x08sdk_type\x18\x06 \x01(\x0e\x32*.maps.fleetengine.v1.RequestHeader.SdkType\x12\x18\n\x10maps_sdk_version\x18\x07 \x01(\t\x12\x17\n\x0fnav_sdk_version\x18\x08 \x01(\t\x12=\n\x08platform\x18\t \x01(\x0e\x32+.maps.fleetengine.v1.RequestHeader.Platform\x12\x14\n\x0cmanufacturer\x18\n \x01(\t\x12\x19\n\x11\x61ndroid_api_level\x18\x0b \x01(\x05\x12\x10\n\x08trace_id\x18\x0c \x01(\t\"M\n\x07SdkType\x12\x18\n\x14SDK_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONSUMER\x10\x01\x12\n\n\x06\x44RIVER\x10\x02\x12\x0e\n\nJAVASCRIPT\x10\x03\"C\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41NDROID\x10\x01\x12\x07\n\x03IOS\x10\x02\x12\x07\n\x03WEB\x10\x03\x42\xcf\x01\n\x1agoogle.maps.fleetengine.v1B\x07HeadersP\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"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|