xref: /aosp_15_r20/external/googleapis/google/maps/addressvalidation/v1/metadata.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.maps.addressvalidation.v1;
18
19option cc_enable_arenas = true;
20option csharp_namespace = "Google.Maps.AddressValidation.V1";
21option go_package = "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb;addressvalidationpb";
22option java_multiple_files = true;
23option java_outer_classname = "MetadataProto";
24option java_package = "com.google.maps.addressvalidation.v1";
25option objc_class_prefix = "GMPAVV1";
26option php_namespace = "Google\\Maps\\AddressValidation\\V1";
27option ruby_package = "Google::Maps::AddressValidation::V1";
28
29// The metadata for the address. `metadata` is not guaranteed to be fully
30// populated for every address sent to the Address Validation API.
31message AddressMetadata {
32  // Indicates that this is the address of a business.
33  // If unset, indicates that the value is unknown.
34  optional bool business = 2;
35
36  // Indicates that the address of a PO box.
37  // If unset, indicates that the value is unknown.
38  optional bool po_box = 3;
39
40  // Indicates that this is the address of a residence.
41  // If unset, indicates that the value is unknown.
42  optional bool residential = 6;
43}
44