diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto index eacff58e9ef..ee0bbeb72f9 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address.proto @@ -38,22 +38,21 @@ message Address { // The validated address represented as a postal address. google.type.PostalAddress postal_address = 3; - // The individual address components of the formatted and corrected address, + // Unordered list. The individual address components of the formatted and corrected address, // along with validation information. This provides information on the // validation status of the individual components. // - // Address components are not ordered in a particular way. DO NOT make any + // Address components are not ordered in a particular way. Do not make any // assumptions on the ordering of the address components in the list. - repeated AddressComponent address_components = 4 - [(google.api.field_behavior) = UNORDERED_LIST]; + repeated AddressComponent address_components = 4 [(google.api.field_behavior) = UNORDERED_LIST]; // The types of components that were expected to be present in a correctly // formatted mailing address but were not found in the input AND could // not be inferred. Components of this type are not present in // `formatted_address`, `postal_address`, or `address_components`. An // example might be `['street_number', 'route']` for an input like - // "Boulder, Colorado, 80301, USA." The list of possible types can be found - // [here](https://developers.google.com/maps/documentation/geocoding/overview#Types). + // "Boulder, Colorado, 80301, USA". The list of possible types can be found + // [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types). repeated string missing_component_types = 5; // The types of the components that are present in the `address_components` @@ -65,8 +64,8 @@ message Address { // [CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED] // or the // [inferred][google.maps.addressvalidation.v1.AddressComponent.inferred] - // flag is not set to `true`.The list of possible types can be found - // [here](https://developers.google.com/maps/documentation/geocoding/overview#Types). + // flag is not set to `true`. The list of possible types can be found + // [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types). repeated string unconfirmed_component_types = 6; // Any tokens in the input that could not be resolved. This might be an diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto index 4ccbc7eccd7..ee873b8aedd 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/address_validation_service.proto @@ -40,7 +40,8 @@ service AddressValidation { option (google.api.default_host) = "addressvalidation.googleapis.com"; // Validates an address. - rpc ValidateAddress(ValidateAddressRequest) returns (ValidateAddressResponse) { + rpc ValidateAddress(ValidateAddressRequest) + returns (ValidateAddressResponse) { option (google.api.http) = { post: "/v1:validateAddress" body: "*" @@ -52,7 +53,8 @@ service AddressValidation { // same address, and should be called once the transaction is concluded. This // should only be sent once for the sequence of `ValidateAddress` requests // needed to validate an address fully. - rpc ProvideValidationFeedback(ProvideValidationFeedbackRequest) returns (ProvideValidationFeedbackResponse) { + rpc ProvideValidationFeedback(ProvideValidationFeedbackRequest) + returns (ProvideValidationFeedbackResponse) { option (google.api.http) = { post: "/v1:provideValidationFeedback" body: "*" @@ -65,7 +67,7 @@ message ValidateAddressRequest { // Required. The address being validated. Unformatted addresses should be // submitted via [`address_lines`][google.type.PostalAddress.address_lines]. // - // The total length of the fields in this input must not exceed 300 + // The total length of the fields in this input must not exceed 280 // characters. // // Supported regions can be found in the @@ -80,7 +82,8 @@ message ValidateAddressRequest { // [recipients][google.type.PostalAddress.recipients] and // [organization][google.type.PostalAddress.organization]. Any values in those // fields will be discarded and not returned. Please do not set them. - google.type.PostalAddress address = 1 [(google.api.field_behavior) = REQUIRED]; + google.type.PostalAddress address = 1 + [(google.api.field_behavior) = REQUIRED]; // This field must be empty for the first address validation request. If // more requests are necessary to fully validate a single address (for @@ -149,7 +152,8 @@ message ProvideValidationFeedbackRequest { // `INVALID_ARGUMENT` error will be returned. ValidationConclusion conclusion = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The ID of the response that this feedback is for. This should be the + // Required. The ID of the response that this feedback is for. This should be + // the // [response_id][google.maps.addressvalidation.v1.ValidateAddressRequest.response_id] // from the first response in a series of address validation attempts. string response_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -158,9 +162,7 @@ message ProvideValidationFeedbackRequest { // The response for validation feedback. // // The response is empty if the feedback is sent successfully. -message ProvideValidationFeedbackResponse { - -} +message ProvideValidationFeedbackResponse {} // The result of validating an address. message ValidationResult { @@ -202,7 +204,7 @@ message Verdict { PREMISE = 2; // A geocode that should be very close to the building-level location of - // the address. Only used for geocodes and not for addresses. + // the address. PREMISE_PROXIMITY = 3; // The address or geocode indicates a block. Only used in regions which diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/geocode.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/geocode.proto index 2a7f86c5fc3..a2be0f9fb06 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/geocode.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/geocode.proto @@ -62,7 +62,7 @@ message Geocode { // The type(s) of place that the input geocoded to. For example, // `['locality', 'political']`. The full list of types can be found - // [here](https://developers.google.com/maps/documentation/geocoding/overview#Types). + // [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types). repeated string place_types = 7; } diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/metadata.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/metadata.proto index 625b32446d4..b016342baff 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/metadata.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/metadata.proto @@ -28,14 +28,6 @@ option ruby_package = "Google::Maps::AddressValidation::V1"; // The metadata for the address. message AddressMetadata { - // Indicates that this address is a high-rise building. - // If unset, indicates that the value is unknown. - // - // DEPRECATED: Please use - // [`address_record_type`](google.maps.addressvalidation.v1.ValidationResult.usps_data.address_record_type) - // instead. This field will be removed with the GA release. - optional bool highrise = 1 [deprecated = true]; - // Indicates that this is the address of a business. // If unset, indicates that the value is unknown. optional bool business = 2; @@ -44,12 +36,6 @@ message AddressMetadata { // If unset, indicates that the value is unknown. optional bool po_box = 3; - // Indicates that the address is of a multi-family building. - // If unset, indicates that the value is unknown. - // - // DEPRECATED: this field will be removed with the GA release. - optional bool multi_family = 4 [deprecated = true]; - // Indicates that this is the address of a residence. // If unset, indicates that the value is unknown. optional bool residential = 6; diff --git a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto index 8bd0cd5bf26..e0da74019d5 100644 --- a/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto +++ b/packages/google-maps-addressvalidation/protos/google/maps/addressvalidation/v1/usps_data.proto @@ -125,8 +125,8 @@ message UspsData { string dpv_no_stat = 8; // The carrier route code. - // A four character code--a one letter prefix and a three digit route - // designator. + // A four character code consisting of a one letter prefix and a three digit + // route designator. // // Prefixes: // @@ -210,7 +210,7 @@ message UspsData { // processing is suspended because of the detection of artificially created // addresses. // - // The USPS data fields may not be populated when this error is present. + // The USPS data fields might not be populated when this error is present. string error_message = 27; // Indicator that the request has been CASS processed. diff --git a/packages/google-maps-addressvalidation/protos/protos.d.ts b/packages/google-maps-addressvalidation/protos/protos.d.ts index b6d2a195f8a..101a10dbdf5 100644 --- a/packages/google-maps-addressvalidation/protos/protos.d.ts +++ b/packages/google-maps-addressvalidation/protos/protos.d.ts @@ -1760,18 +1760,12 @@ export namespace google { /** Properties of an AddressMetadata. */ interface IAddressMetadata { - /** AddressMetadata highrise */ - highrise?: (boolean|null); - /** AddressMetadata business */ business?: (boolean|null); /** AddressMetadata poBox */ poBox?: (boolean|null); - /** AddressMetadata multiFamily */ - multiFamily?: (boolean|null); - /** AddressMetadata residential */ residential?: (boolean|null); } @@ -1785,33 +1779,21 @@ export namespace google { */ constructor(properties?: google.maps.addressvalidation.v1.IAddressMetadata); - /** AddressMetadata highrise. */ - public highrise?: (boolean|null); - /** AddressMetadata business. */ public business?: (boolean|null); /** AddressMetadata poBox. */ public poBox?: (boolean|null); - /** AddressMetadata multiFamily. */ - public multiFamily?: (boolean|null); - /** AddressMetadata residential. */ public residential?: (boolean|null); - /** AddressMetadata _highrise. */ - public _highrise?: "highrise"; - /** AddressMetadata _business. */ public _business?: "business"; /** AddressMetadata _poBox. */ public _poBox?: "poBox"; - /** AddressMetadata _multiFamily. */ - public _multiFamily?: "multiFamily"; - /** AddressMetadata _residential. */ public _residential?: "residential"; diff --git a/packages/google-maps-addressvalidation/protos/protos.js b/packages/google-maps-addressvalidation/protos/protos.js index 4f33a204953..ed4aeaaac97 100644 --- a/packages/google-maps-addressvalidation/protos/protos.js +++ b/packages/google-maps-addressvalidation/protos/protos.js @@ -4497,10 +4497,8 @@ * Properties of an AddressMetadata. * @memberof google.maps.addressvalidation.v1 * @interface IAddressMetadata - * @property {boolean|null} [highrise] AddressMetadata highrise * @property {boolean|null} [business] AddressMetadata business * @property {boolean|null} [poBox] AddressMetadata poBox - * @property {boolean|null} [multiFamily] AddressMetadata multiFamily * @property {boolean|null} [residential] AddressMetadata residential */ @@ -4519,14 +4517,6 @@ this[keys[i]] = properties[keys[i]]; } - /** - * AddressMetadata highrise. - * @member {boolean|null|undefined} highrise - * @memberof google.maps.addressvalidation.v1.AddressMetadata - * @instance - */ - AddressMetadata.prototype.highrise = null; - /** * AddressMetadata business. * @member {boolean|null|undefined} business @@ -4543,14 +4533,6 @@ */ AddressMetadata.prototype.poBox = null; - /** - * AddressMetadata multiFamily. - * @member {boolean|null|undefined} multiFamily - * @memberof google.maps.addressvalidation.v1.AddressMetadata - * @instance - */ - AddressMetadata.prototype.multiFamily = null; - /** * AddressMetadata residential. * @member {boolean|null|undefined} residential @@ -4562,17 +4544,6 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * AddressMetadata _highrise. - * @member {"highrise"|undefined} _highrise - * @memberof google.maps.addressvalidation.v1.AddressMetadata - * @instance - */ - Object.defineProperty(AddressMetadata.prototype, "_highrise", { - get: $util.oneOfGetter($oneOfFields = ["highrise"]), - set: $util.oneOfSetter($oneOfFields) - }); - /** * AddressMetadata _business. * @member {"business"|undefined} _business @@ -4595,17 +4566,6 @@ set: $util.oneOfSetter($oneOfFields) }); - /** - * AddressMetadata _multiFamily. - * @member {"multiFamily"|undefined} _multiFamily - * @memberof google.maps.addressvalidation.v1.AddressMetadata - * @instance - */ - Object.defineProperty(AddressMetadata.prototype, "_multiFamily", { - get: $util.oneOfGetter($oneOfFields = ["multiFamily"]), - set: $util.oneOfSetter($oneOfFields) - }); - /** * AddressMetadata _residential. * @member {"residential"|undefined} _residential @@ -4641,14 +4601,10 @@ AddressMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.highrise != null && Object.hasOwnProperty.call(message, "highrise")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.highrise); if (message.business != null && Object.hasOwnProperty.call(message, "business")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.business); if (message.poBox != null && Object.hasOwnProperty.call(message, "poBox")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.poBox); - if (message.multiFamily != null && Object.hasOwnProperty.call(message, "multiFamily")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.multiFamily); if (message.residential != null && Object.hasOwnProperty.call(message, "residential")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.residential); return writer; @@ -4685,10 +4641,6 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.highrise = reader.bool(); - break; - } case 2: { message.business = reader.bool(); break; @@ -4697,10 +4649,6 @@ message.poBox = reader.bool(); break; } - case 4: { - message.multiFamily = reader.bool(); - break; - } case 6: { message.residential = reader.bool(); break; @@ -4741,11 +4689,6 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.highrise != null && message.hasOwnProperty("highrise")) { - properties._highrise = 1; - if (typeof message.highrise !== "boolean") - return "highrise: boolean expected"; - } if (message.business != null && message.hasOwnProperty("business")) { properties._business = 1; if (typeof message.business !== "boolean") @@ -4756,11 +4699,6 @@ if (typeof message.poBox !== "boolean") return "poBox: boolean expected"; } - if (message.multiFamily != null && message.hasOwnProperty("multiFamily")) { - properties._multiFamily = 1; - if (typeof message.multiFamily !== "boolean") - return "multiFamily: boolean expected"; - } if (message.residential != null && message.hasOwnProperty("residential")) { properties._residential = 1; if (typeof message.residential !== "boolean") @@ -4781,14 +4719,10 @@ if (object instanceof $root.google.maps.addressvalidation.v1.AddressMetadata) return object; var message = new $root.google.maps.addressvalidation.v1.AddressMetadata(); - if (object.highrise != null) - message.highrise = Boolean(object.highrise); if (object.business != null) message.business = Boolean(object.business); if (object.poBox != null) message.poBox = Boolean(object.poBox); - if (object.multiFamily != null) - message.multiFamily = Boolean(object.multiFamily); if (object.residential != null) message.residential = Boolean(object.residential); return message; @@ -4807,11 +4741,6 @@ if (!options) options = {}; var object = {}; - if (message.highrise != null && message.hasOwnProperty("highrise")) { - object.highrise = message.highrise; - if (options.oneofs) - object._highrise = "highrise"; - } if (message.business != null && message.hasOwnProperty("business")) { object.business = message.business; if (options.oneofs) @@ -4822,11 +4751,6 @@ if (options.oneofs) object._poBox = "poBox"; } - if (message.multiFamily != null && message.hasOwnProperty("multiFamily")) { - object.multiFamily = message.multiFamily; - if (options.oneofs) - object._multiFamily = "multiFamily"; - } if (message.residential != null && message.hasOwnProperty("residential")) { object.residential = message.residential; if (options.oneofs) diff --git a/packages/google-maps-addressvalidation/protos/protos.json b/packages/google-maps-addressvalidation/protos/protos.json index 9fc00e93996..f4c6ee28405 100644 --- a/packages/google-maps-addressvalidation/protos/protos.json +++ b/packages/google-maps-addressvalidation/protos/protos.json @@ -423,11 +423,6 @@ }, "AddressMetadata": { "oneofs": { - "_highrise": { - "oneof": [ - "highrise" - ] - }, "_business": { "oneof": [ "business" @@ -438,11 +433,6 @@ "poBox" ] }, - "_multiFamily": { - "oneof": [ - "multiFamily" - ] - }, "_residential": { "oneof": [ "residential" @@ -450,14 +440,6 @@ } }, "fields": { - "highrise": { - "type": "bool", - "id": 1, - "options": { - "deprecated": true, - "proto3_optional": true - } - }, "business": { "type": "bool", "id": 2, @@ -472,14 +454,6 @@ "proto3_optional": true } }, - "multiFamily": { - "type": "bool", - "id": 4, - "options": { - "deprecated": true, - "proto3_optional": true - } - }, "residential": { "type": "bool", "id": 6, diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.provide_validation_feedback.js b/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.provide_validation_feedback.js index fcbb0107bf3..b0c186c025c 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.provide_validation_feedback.js +++ b/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.provide_validation_feedback.js @@ -35,7 +35,8 @@ function main(conclusion, responseId) { */ // const conclusion = {} /** - * Required. The ID of the response that this feedback is for. This should be the + * Required. The ID of the response that this feedback is for. This should be + * the * response_id google.maps.addressvalidation.v1.ValidateAddressRequest.response_id * from the first response in a series of address validation attempts. */ diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js b/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js index 329fdee4783..fdea3685e8f 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js +++ b/packages/google-maps-addressvalidation/samples/generated/v1/address_validation.validate_address.js @@ -31,7 +31,7 @@ function main(address) { /** * Required. The address being validated. Unformatted addresses should be * submitted via `address_lines` google.type.PostalAddress.address_lines. - * The total length of the fields in this input must not exceed 300 + * The total length of the fields in this input must not exceed 280 * characters. * Supported regions can be found in the * FAQ (https://developers.google.com/maps/documentation/address-validation/faq#which_regions_are_currently_supported). diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json index 82fb95ef7d3..ed991351011 100644 --- a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json +++ b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata.google.maps.addressvalidation.v1.json @@ -70,7 +70,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 63, "type": "FULL" } ], diff --git a/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts b/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts index f88f883e73f..98832b93c48 100644 --- a/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts +++ b/packages/google-maps-addressvalidation/src/v1/address_validation_client.ts @@ -117,6 +117,9 @@ export class AddressValidationClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; @@ -313,7 +316,7 @@ export class AddressValidationClient { * Required. The address being validated. Unformatted addresses should be * submitted via {@link google.type.PostalAddress.address_lines|`address_lines`}. * - * The total length of the fields in this input must not exceed 300 + * The total length of the fields in this input must not exceed 280 * characters. * * Supported regions can be found in the @@ -450,7 +453,8 @@ export class AddressValidationClient { * If this field is set to `VALIDATION_CONCLUSION_UNSPECIFIED`, an * `INVALID_ARGUMENT` error will be returned. * @param {string} request.responseId - * Required. The ID of the response that this feedback is for. This should be the + * Required. The ID of the response that this feedback is for. This should be + * the * {@link google.maps.addressvalidation.v1.ValidateAddressRequest.response_id|response_id} * from the first response in a series of address validation attempts. * @param {object} [options]