@@ -90,6 +90,24 @@ defmodule Google.Maps.Places.V1.SearchTextRequest.LocationRestriction do
90
90
field :rectangle , 1 , type: Google.Geo.Type.Viewport , oneof: 0
91
91
end
92
92
93
+ defmodule Google.Maps.Places.V1.SearchTextRequest.EVOptions do
94
+ @ moduledoc false
95
+
96
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
97
+
98
+ field :minimum_charging_rate_kw , 1 ,
99
+ type: :double ,
100
+ json_name: "minimumChargingRateKw" ,
101
+ deprecated: false
102
+
103
+ field :connector_types , 2 ,
104
+ repeated: true ,
105
+ type: Google.Maps.Places.V1.EVConnectorType ,
106
+ json_name: "connectorTypes" ,
107
+ enum: true ,
108
+ deprecated: false
109
+ end
110
+
93
111
defmodule Google.Maps.Places.V1.SearchTextRequest do
94
112
@ moduledoc false
95
113
@@ -124,6 +142,11 @@ defmodule Google.Maps.Places.V1.SearchTextRequest do
124
142
field :location_restriction , 14 ,
125
143
type: Google.Maps.Places.V1.SearchTextRequest.LocationRestriction ,
126
144
json_name: "locationRestriction"
145
+
146
+ field :ev_options , 15 ,
147
+ type: Google.Maps.Places.V1.SearchTextRequest.EVOptions ,
148
+ json_name: "evOptions" ,
149
+ deprecated: false
127
150
end
128
151
129
152
defmodule Google.Maps.Places.V1.SearchTextResponse do
@@ -162,6 +185,166 @@ defmodule Google.Maps.Places.V1.GetPlaceRequest do
162
185
field :name , 1 , type: :string , deprecated: false
163
186
field :language_code , 2 , type: :string , json_name: "languageCode" , deprecated: false
164
187
field :region_code , 3 , type: :string , json_name: "regionCode" , deprecated: false
188
+ field :session_token , 4 , type: :string , json_name: "sessionToken" , deprecated: false
189
+ end
190
+
191
+ defmodule Google.Maps.Places.V1.AutocompletePlacesRequest.LocationBias do
192
+ @ moduledoc false
193
+
194
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
195
+
196
+ oneof :type , 0
197
+
198
+ field :rectangle , 1 , type: Google.Geo.Type.Viewport , oneof: 0
199
+ field :circle , 2 , type: Google.Maps.Places.V1.Circle , oneof: 0
200
+ end
201
+
202
+ defmodule Google.Maps.Places.V1.AutocompletePlacesRequest.LocationRestriction do
203
+ @ moduledoc false
204
+
205
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
206
+
207
+ oneof :type , 0
208
+
209
+ field :rectangle , 1 , type: Google.Geo.Type.Viewport , oneof: 0
210
+ field :circle , 2 , type: Google.Maps.Places.V1.Circle , oneof: 0
211
+ end
212
+
213
+ defmodule Google.Maps.Places.V1.AutocompletePlacesRequest do
214
+ @ moduledoc false
215
+
216
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
217
+
218
+ field :input , 1 , type: :string , deprecated: false
219
+
220
+ field :location_bias , 2 ,
221
+ type: Google.Maps.Places.V1.AutocompletePlacesRequest.LocationBias ,
222
+ json_name: "locationBias" ,
223
+ deprecated: false
224
+
225
+ field :location_restriction , 3 ,
226
+ type: Google.Maps.Places.V1.AutocompletePlacesRequest.LocationRestriction ,
227
+ json_name: "locationRestriction" ,
228
+ deprecated: false
229
+
230
+ field :included_primary_types , 4 ,
231
+ repeated: true ,
232
+ type: :string ,
233
+ json_name: "includedPrimaryTypes" ,
234
+ deprecated: false
235
+
236
+ field :included_region_codes , 5 ,
237
+ repeated: true ,
238
+ type: :string ,
239
+ json_name: "includedRegionCodes" ,
240
+ deprecated: false
241
+
242
+ field :language_code , 6 , type: :string , json_name: "languageCode" , deprecated: false
243
+ field :region_code , 7 , type: :string , json_name: "regionCode" , deprecated: false
244
+ field :origin , 8 , type: Google.Type.LatLng , deprecated: false
245
+ field :input_offset , 9 , type: :int32 , json_name: "inputOffset" , deprecated: false
246
+
247
+ field :include_query_predictions , 10 ,
248
+ type: :bool ,
249
+ json_name: "includeQueryPredictions" ,
250
+ deprecated: false
251
+
252
+ field :session_token , 11 , type: :string , json_name: "sessionToken" , deprecated: false
253
+ end
254
+
255
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.StringRange do
256
+ @ moduledoc false
257
+
258
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
259
+
260
+ field :start_offset , 1 , type: :int32 , json_name: "startOffset"
261
+ field :end_offset , 2 , type: :int32 , json_name: "endOffset"
262
+ end
263
+
264
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.FormattableText do
265
+ @ moduledoc false
266
+
267
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
268
+
269
+ field :text , 1 , type: :string
270
+
271
+ field :matches , 2 ,
272
+ repeated: true ,
273
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.StringRange
274
+ end
275
+
276
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.StructuredFormat do
277
+ @ moduledoc false
278
+
279
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
280
+
281
+ field :main_text , 1 ,
282
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.FormattableText ,
283
+ json_name: "mainText"
284
+
285
+ field :secondary_text , 2 ,
286
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.FormattableText ,
287
+ json_name: "secondaryText"
288
+ end
289
+
290
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.PlacePrediction do
291
+ @ moduledoc false
292
+
293
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
294
+
295
+ field :place , 1 , type: :string , deprecated: false
296
+ field :place_id , 2 , type: :string , json_name: "placeId"
297
+
298
+ field :text , 3 ,
299
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.FormattableText
300
+
301
+ field :structured_format , 4 ,
302
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.StructuredFormat ,
303
+ json_name: "structuredFormat"
304
+
305
+ field :types , 5 , repeated: true , type: :string
306
+ field :distance_meters , 6 , type: :int32 , json_name: "distanceMeters"
307
+ end
308
+
309
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.QueryPrediction do
310
+ @ moduledoc false
311
+
312
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
313
+
314
+ field :text , 1 ,
315
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.FormattableText
316
+
317
+ field :structured_format , 2 ,
318
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.StructuredFormat ,
319
+ json_name: "structuredFormat"
320
+ end
321
+
322
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion do
323
+ @ moduledoc false
324
+
325
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
326
+
327
+ oneof :kind , 0
328
+
329
+ field :place_prediction , 1 ,
330
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.PlacePrediction ,
331
+ json_name: "placePrediction" ,
332
+ oneof: 0
333
+
334
+ field :query_prediction , 2 ,
335
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion.QueryPrediction ,
336
+ json_name: "queryPrediction" ,
337
+ oneof: 0
338
+ end
339
+
340
+ defmodule Google.Maps.Places.V1.AutocompletePlacesResponse do
341
+ @ moduledoc false
342
+
343
+ use Protobuf , protoc_gen_elixir_version: "0.12.0" , syntax: :proto3
344
+
345
+ field :suggestions , 1 ,
346
+ repeated: true ,
347
+ type: Google.Maps.Places.V1.AutocompletePlacesResponse.Suggestion
165
348
end
166
349
167
350
defmodule Google.Maps.Places.V1.Places.Service do
@@ -180,6 +363,10 @@ defmodule Google.Maps.Places.V1.Places.Service do
180
363
rpc :GetPhotoMedia , Google.Maps.Places.V1.GetPhotoMediaRequest , Google.Maps.Places.V1.PhotoMedia
181
364
182
365
rpc :GetPlace , Google.Maps.Places.V1.GetPlaceRequest , Google.Maps.Places.V1.Place
366
+
367
+ rpc :AutocompletePlaces ,
368
+ Google.Maps.Places.V1.AutocompletePlacesRequest ,
369
+ Google.Maps.Places.V1.AutocompletePlacesResponse
183
370
end
184
371
185
372
defmodule Google.Maps.Places.V1.Places.Stub do
0 commit comments