@@ -25,7 +25,6 @@ import "google/maps/addressvalidation/v1/metadata.proto";
2525import "google/maps/addressvalidation/v1/usps_data.proto" ;
2626import "google/type/postal_address.proto" ;
2727
28- option cc_enable_arenas = true ;
2928option csharp_namespace = "Google.Maps.AddressValidation.V1" ;
3029option go_package = "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb;addressvalidationpb" ;
3130option java_multiple_files = true ;
@@ -113,19 +112,19 @@ message ValidateAddressRequest {
113112 // ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
114113 // returned.
115114 //
116- // The session begins when the user starts typing a query, and concludes when
117- // they select a place and a call to Place Details or Address Validation is
118- // made. Each session can have multiple autocomplete queries, followed by one
119- // Place Details or Address Validation request. The credentials used for each
120- // request within a session must belong to the same Google Cloud Console
115+ // The session begins when the user makes an Autocomplete query, and concludes
116+ // when they select a place and a call to Place Details or Address Validation
117+ // is made. Each session can have multiple Autocomplete queries, followed by
118+ // one Place Details or Address Validation request. The credentials used for
119+ // each request within a session must belong to the same Google Cloud Console
121120 // project. Once a session has concluded, the token is no longer valid; your
122- // app must generate a fresh token for each session. If the `session_token `
121+ // app must generate a fresh token for each session. If the `sessionToken `
123122 // parameter is omitted, or if you reuse a session token, the session is
124123 // charged as if no session token was provided (each request is billed
125124 // separately).
126125 //
127126 // Note: Address Validation can only be used in sessions with the
128- // Autocomplete (New) API, not the old Autocomplete API. See
127+ // Autocomplete (New) API, not the Autocomplete API. See
129128 // https://developers.google.com/maps/documentation/places/web-service/session-pricing
130129 // for more details.
131130 string session_token = 5 [(google.api.field_behavior ) = OPTIONAL ];
@@ -247,14 +246,16 @@ message Verdict {
247246 // signals, refer to `validation_granularity` below.
248247 //
249248 // For example, if the input address includes a specific apartment number,
250- // then the `input_granularity` here will be `SUB_PREMISE`. If we cannot match
251- // the apartment number in the databases or the apartment number is invalid,
252- // the `validation_granularity` will likely be `PREMISE` or below.
249+ // then the `input_granularity` here will be `SUB_PREMISE`. If the address
250+ // validation service cannot match the apartment number in the databases or
251+ // the apartment number is invalid, the `validation_granularity` will likely
252+ // be `PREMISE` or more coarse.
253253 Granularity input_granularity = 1 ;
254254
255- // The granularity level that the API can fully **validate** the address to.
256- // For example, an `validation_granularity` of `PREMISE` indicates all address
257- // components at the level of `PREMISE` or more coarse can be validated.
255+ // The level of granularity for the post-processed address that the API can
256+ // fully validate. For example, a `validation_granularity` of `PREMISE`
257+ // indicates all address components at the level of `PREMISE` or more coarse
258+ // can be validated.
258259 //
259260 // Per address component validation result can be found in
260261 // [google.maps.addressvalidation.v1.Address.address_components].
@@ -272,8 +273,9 @@ message Verdict {
272273 // but the `geocode_granularity` will be `PREMISE`.
273274 Granularity geocode_granularity = 3 ;
274275
275- // The address is considered complete if there are no unresolved tokens, no
276- // unexpected or missing address components. See
276+ // The post-processed address is considered complete if there are no
277+ // unresolved tokens, no unexpected or missing address components. If unset,
278+ // indicates that the value is `false`. See
277279 // [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types],
278280 // [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens]
279281 // or
@@ -296,4 +298,9 @@ message Verdict {
296298 // [google.maps.addressvalidation.v1.Address.address_components] for
297299 // details.
298300 bool has_replaced_components = 7 ;
301+
302+ // At least one address component was spell-corrected, see
303+ // [google.maps.addressvalidation.v1.Address.address_components] for
304+ // details.
305+ bool has_spell_corrected_components = 9 ;
299306}
0 commit comments