Skip to content

Commit cd37f29

Browse files
AUTO GENERATED ELIXIR GOOGLEAPIS PROTOBUF (#734)
Co-authored-by: Hany Rock <rudebono@gmail.com>
1 parent c5c341c commit cd37f29

File tree

3 files changed

+197
-0
lines changed

3 files changed

+197
-0
lines changed

lib/google/maps/addressvalidation/v1/address_validation_service.pb.ex

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defmodule Google.Maps.Addressvalidation.V1.ValidateAddressRequest do
3232
field :address, 1, type: Google.Type.PostalAddress, deprecated: false
3333
field :previous_response_id, 2, type: :string, json_name: "previousResponseId"
3434
field :enable_usps_cass, 3, type: :bool, json_name: "enableUspsCass"
35+
field :session_token, 5, type: :string, json_name: "sessionToken", deprecated: false
3536
end
3637

3738
defmodule Google.Maps.Addressvalidation.V1.ValidateAddressResponse do

lib/google/maps/addressvalidation/v1/usps_data.pb.ex

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ defmodule Google.Maps.Addressvalidation.V1.UspsData do
3030
field :dpv_cmra, 6, type: :string, json_name: "dpvCmra"
3131
field :dpv_vacant, 7, type: :string, json_name: "dpvVacant"
3232
field :dpv_no_stat, 8, type: :string, json_name: "dpvNoStat"
33+
field :dpv_no_stat_reason_code, 29, type: :int32, json_name: "dpvNoStatReasonCode"
34+
field :dpv_drop, 30, type: :string, json_name: "dpvDrop"
35+
field :dpv_throwback, 31, type: :string, json_name: "dpvThrowback"
36+
field :dpv_non_delivery_days, 32, type: :string, json_name: "dpvNonDeliveryDays"
37+
field :dpv_non_delivery_days_values, 33, type: :int32, json_name: "dpvNonDeliveryDaysValues"
38+
field :dpv_no_secure_location, 34, type: :string, json_name: "dpvNoSecureLocation"
39+
field :dpv_pbsa, 35, type: :string, json_name: "dpvPbsa"
40+
field :dpv_door_not_accessible, 36, type: :string, json_name: "dpvDoorNotAccessible"
41+
field :dpv_enhanced_delivery_code, 37, type: :string, json_name: "dpvEnhancedDeliveryCode"
3342
field :carrier_route, 9, type: :string, json_name: "carrierRoute"
3443
field :carrier_route_indicator, 10, type: :string, json_name: "carrierRouteIndicator"
3544
field :ews_no_match, 11, type: :bool, json_name: "ewsNoMatch"

lib/google/maps/places/v1/places_service.pb.ex

+187
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,24 @@ defmodule Google.Maps.Places.V1.SearchTextRequest.LocationRestriction do
9090
field :rectangle, 1, type: Google.Geo.Type.Viewport, oneof: 0
9191
end
9292

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+
93111
defmodule Google.Maps.Places.V1.SearchTextRequest do
94112
@moduledoc false
95113

@@ -124,6 +142,11 @@ defmodule Google.Maps.Places.V1.SearchTextRequest do
124142
field :location_restriction, 14,
125143
type: Google.Maps.Places.V1.SearchTextRequest.LocationRestriction,
126144
json_name: "locationRestriction"
145+
146+
field :ev_options, 15,
147+
type: Google.Maps.Places.V1.SearchTextRequest.EVOptions,
148+
json_name: "evOptions",
149+
deprecated: false
127150
end
128151

129152
defmodule Google.Maps.Places.V1.SearchTextResponse do
@@ -162,6 +185,166 @@ defmodule Google.Maps.Places.V1.GetPlaceRequest do
162185
field :name, 1, type: :string, deprecated: false
163186
field :language_code, 2, type: :string, json_name: "languageCode", deprecated: false
164187
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
165348
end
166349

167350
defmodule Google.Maps.Places.V1.Places.Service do
@@ -180,6 +363,10 @@ defmodule Google.Maps.Places.V1.Places.Service do
180363
rpc :GetPhotoMedia, Google.Maps.Places.V1.GetPhotoMediaRequest, Google.Maps.Places.V1.PhotoMedia
181364

182365
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
183370
end
184371

185372
defmodule Google.Maps.Places.V1.Places.Stub do

0 commit comments

Comments
 (0)