From 3e882501ea196ff4f122989e5726bfd4c72e5133 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Thu, 10 Nov 2022 15:42:06 -0700 Subject: [PATCH] feat(maps/addressvalidation): start generating apiv1 (#7012) --- .release-please-manifest-submodules.json | 1 + internal/.repo-metadata-full.json | 9 + internal/aliasfix/mappings.go | 4 + internal/gapicgen/generator/config.go | 9 + internal/gapicgen/go.mod | 2 +- internal/gapicgen/go.sum | 4 +- maps/CHANGES.md | 1 + maps/README.md | 44 + .../apiv1/address_validation_client.go | 258 ++++ .../address_validation_client_example_test.go | 91 ++ .../apiv1/addressvalidationpb/address.pb.go | 586 +++++++++ .../address_validation_service.pb.go | 1148 +++++++++++++++++ .../apiv1/addressvalidationpb/geocode.pb.go | 346 +++++ .../apiv1/addressvalidationpb/metadata.pb.go | 208 +++ .../apiv1/addressvalidationpb/usps_data.pb.go | 724 +++++++++++ maps/addressvalidation/apiv1/doc.go | 175 +++ .../apiv1/gapic_metadata.json | 28 + maps/addressvalidation/apiv1/version.go | 23 + maps/go.mod | 26 + maps/go.sum | 132 ++ maps/internal/version.go | 20 + release-please-config-yoshi-submodules.json | 3 + 22 files changed, 3839 insertions(+), 3 deletions(-) create mode 100644 maps/CHANGES.md create mode 100644 maps/README.md create mode 100644 maps/addressvalidation/apiv1/address_validation_client.go create mode 100644 maps/addressvalidation/apiv1/address_validation_client_example_test.go create mode 100644 maps/addressvalidation/apiv1/addressvalidationpb/address.pb.go create mode 100644 maps/addressvalidation/apiv1/addressvalidationpb/address_validation_service.pb.go create mode 100644 maps/addressvalidation/apiv1/addressvalidationpb/geocode.pb.go create mode 100644 maps/addressvalidation/apiv1/addressvalidationpb/metadata.pb.go create mode 100644 maps/addressvalidation/apiv1/addressvalidationpb/usps_data.pb.go create mode 100644 maps/addressvalidation/apiv1/doc.go create mode 100644 maps/addressvalidation/apiv1/gapic_metadata.json create mode 100644 maps/addressvalidation/apiv1/version.go create mode 100644 maps/go.mod create mode 100644 maps/go.sum create mode 100644 maps/internal/version.go diff --git a/.release-please-manifest-submodules.json b/.release-please-manifest-submodules.json index 2ef70b898ab0..db91415aa4a8 100644 --- a/.release-please-manifest-submodules.json +++ b/.release-please-manifest-submodules.json @@ -63,6 +63,7 @@ "lifesciences": "0.6.0", "longrunning": "0.3.0", "managedidentities": "1.4.0", + "maps": "0.0.0", "mediatranslation": "0.6.0", "memcache": "1.7.0", "metastore": "1.8.0", diff --git a/internal/.repo-metadata-full.json b/internal/.repo-metadata-full.json index 0da15ce1d7f0..b25dc3d2bb70 100644 --- a/internal/.repo-metadata-full.json +++ b/internal/.repo-metadata-full.json @@ -1052,6 +1052,15 @@ "release_level": "ga", "library_type": "GAPIC_AUTO" }, + "cloud.google.com/go/maps/addressvalidation/apiv1": { + "distribution_name": "cloud.google.com/go/maps/addressvalidation/apiv1", + "description": "Address Validation API", + "language": "Go", + "client_library_type": "generated", + "docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/maps/latest/addressvalidation/apiv1", + "release_level": "beta", + "library_type": "GAPIC_AUTO" + }, "cloud.google.com/go/mediatranslation/apiv1beta1": { "distribution_name": "cloud.google.com/go/mediatranslation/apiv1beta1", "description": "Media Translation API", diff --git a/internal/aliasfix/mappings.go b/internal/aliasfix/mappings.go index 14ac69fa9b15..35ef413a6ef5 100644 --- a/internal/aliasfix/mappings.go +++ b/internal/aliasfix/mappings.go @@ -834,4 +834,8 @@ var GenprotoPkgMigration map[string]Pkg = map[string]Pkg{ ImportPath: "cloud.google.com/go/dataform/apiv1beta1/dataformpb", Status: StatusMigrated, }, + "google.golang.org/genproto/googleapis/maps/addressvalidation/v1": { + ImportPath: "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb", + Status: StatusMigrated, + }, } diff --git a/internal/gapicgen/generator/config.go b/internal/gapicgen/generator/config.go index 121d98d78e9c..6aa39145edea 100644 --- a/internal/gapicgen/generator/config.go +++ b/internal/gapicgen/generator/config.go @@ -1774,6 +1774,15 @@ var MicrogenGapicConfigs = []*MicrogenConfig{ // GA after 2022/11/18 ReleaseLevel: "beta", }, + { + InputDirectoryPath: "google/maps/addressvalidation/v1", + Pkg: "addressvalidation", + ImportPath: "cloud.google.com/go/maps/addressvalidation/apiv1", + GRPCServiceConfigPath: "addressvalidation_grpc_service_config.json", + ApiServiceConfigPath: "addressvalidation_v1.yaml", + // GA after 2022/12/10 + ReleaseLevel: "beta", + }, // Non-Cloud APIs { diff --git a/internal/gapicgen/go.mod b/internal/gapicgen/go.mod index 9d2c399c6f91..b0fdf578db75 100644 --- a/internal/gapicgen/go.mod +++ b/internal/gapicgen/go.mod @@ -11,7 +11,7 @@ require ( golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 golang.org/x/sync v0.1.0 golang.org/x/sys v0.1.0 - google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c + google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66 google.golang.org/protobuf v1.28.1 gopkg.in/src-d/go-git.v4 v4.13.1 gopkg.in/yaml.v2 v2.4.0 diff --git a/internal/gapicgen/go.sum b/internal/gapicgen/go.sum index 85e6b3e4e663..de094fc92293 100644 --- a/internal/gapicgen/go.sum +++ b/internal/gapicgen/go.sum @@ -98,8 +98,8 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c h1:QgY/XxIAIeccR+Ca/rDdKubLIU9rcJ3xfy1DC/Wd2Oo= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66 h1:wx7sJ5GRBQLRcslTNcrTklsHhHevQvxgztW18txbbZM= +google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= google.golang.org/grpc v1.50.1 h1:DS/BukOZWp8s6p4Dt/tOaJaTQyPyOoCcrjroHuCeLzY= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= diff --git a/maps/CHANGES.md b/maps/CHANGES.md new file mode 100644 index 000000000000..b671f0bbcdd2 --- /dev/null +++ b/maps/CHANGES.md @@ -0,0 +1 @@ +# Changes diff --git a/maps/README.md b/maps/README.md new file mode 100644 index 000000000000..7d13da5fd4dc --- /dev/null +++ b/maps/README.md @@ -0,0 +1,44 @@ +# Google Maps Platform APIs + +[![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go/maps.svg)](https://pkg.go.dev/cloud.google.com/go/maps) + +Go Client Library for Google Maps Platform APIs. + +## Install + +```bash +go get cloud.google.com/go/maps +``` + +## Stability + +The stability of this module is indicated by SemVer. + +However, a `v1+` module may have breaking changes in two scenarios: + +* Packages with `alpha` or `beta` in the import path +* The GoDoc has an explicit stability disclaimer (for example, for an experimental feature). + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples?l=go). + +## Go Version Support + +See the [Go Versions Supported](https://github.com/googleapis/google-cloud-go#go-versions-supported) +section in the root directory's README. + +## Authorization + +See the [Authorization](https://github.com/googleapis/google-cloud-go#authorization) +section in the root directory's README. + +## Contributing + +Contributions are welcome. Please, see the [CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md) +document for details. + +Please note that this project is released with a Contributor Code of Conduct. +By participating in this project you agree to abide by its terms. See +[Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md#contributor-code-of-conduct) +for more information. diff --git a/maps/addressvalidation/apiv1/address_validation_client.go b/maps/addressvalidation/apiv1/address_validation_client.go new file mode 100644 index 000000000000..94a7a888ef09 --- /dev/null +++ b/maps/addressvalidation/apiv1/address_validation_client.go @@ -0,0 +1,258 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +package addressvalidation + +import ( + "context" + "math" + "time" + + addressvalidationpb "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb" + gax "github.com/googleapis/gax-go/v2" + "google.golang.org/api/option" + "google.golang.org/api/option/internaloption" + gtransport "google.golang.org/api/transport/grpc" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/metadata" +) + +var newClientHook clientHook + +// CallOptions contains the retry settings for each method of Client. +type CallOptions struct { + ValidateAddress []gax.CallOption + ProvideValidationFeedback []gax.CallOption +} + +func defaultGRPCClientOptions() []option.ClientOption { + return []option.ClientOption{ + internaloption.WithDefaultEndpoint("addressvalidation.googleapis.com:443"), + internaloption.WithDefaultMTLSEndpoint("addressvalidation.mtls.googleapis.com:443"), + internaloption.WithDefaultAudience("https://addressvalidation.googleapis.com/"), + internaloption.WithDefaultScopes(DefaultAuthScopes()...), + internaloption.EnableJwtWithScope(), + option.WithGRPCDialOption(grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(math.MaxInt32))), + } +} + +func defaultCallOptions() *CallOptions { + return &CallOptions{ + ValidateAddress: []gax.CallOption{ + gax.WithRetry(func() gax.Retryer { + return gax.OnCodes([]codes.Code{ + codes.Unavailable, + }, gax.Backoff{ + Initial: 1000 * time.Millisecond, + Max: 10000 * time.Millisecond, + Multiplier: 1.30, + }) + }), + }, + ProvideValidationFeedback: []gax.CallOption{ + gax.WithRetry(func() gax.Retryer { + return gax.OnCodes([]codes.Code{ + codes.Unavailable, + }, gax.Backoff{ + Initial: 1000 * time.Millisecond, + Max: 10000 * time.Millisecond, + Multiplier: 1.30, + }) + }), + }, + } +} + +// internalClient is an interface that defines the methods available from Address Validation API. +type internalClient interface { + Close() error + setGoogleClientInfo(...string) + Connection() *grpc.ClientConn + ValidateAddress(context.Context, *addressvalidationpb.ValidateAddressRequest, ...gax.CallOption) (*addressvalidationpb.ValidateAddressResponse, error) + ProvideValidationFeedback(context.Context, *addressvalidationpb.ProvideValidationFeedbackRequest, ...gax.CallOption) (*addressvalidationpb.ProvideValidationFeedbackResponse, error) +} + +// Client is a client for interacting with Address Validation API. +// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. +// +// The service for validating addresses. +type Client struct { + // The internal transport-dependent client. + internalClient internalClient + + // The call options for this service. + CallOptions *CallOptions +} + +// Wrapper methods routed to the internal client. + +// Close closes the connection to the API service. The user should invoke this when +// the client is no longer required. +func (c *Client) Close() error { + return c.internalClient.Close() +} + +// setGoogleClientInfo sets the name and version of the application in +// the `x-goog-api-client` header passed on each request. Intended for +// use by Google-written clients. +func (c *Client) setGoogleClientInfo(keyval ...string) { + c.internalClient.setGoogleClientInfo(keyval...) +} + +// Connection returns a connection to the API service. +// +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. +func (c *Client) Connection() *grpc.ClientConn { + return c.internalClient.Connection() +} + +// ValidateAddress validates an address. +func (c *Client) ValidateAddress(ctx context.Context, req *addressvalidationpb.ValidateAddressRequest, opts ...gax.CallOption) (*addressvalidationpb.ValidateAddressResponse, error) { + return c.internalClient.ValidateAddress(ctx, req, opts...) +} + +// ProvideValidationFeedback feedback about the outcome of the sequence of validation attempts. This +// should be the last call made after a sequence of validation calls for the +// 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. +func (c *Client) ProvideValidationFeedback(ctx context.Context, req *addressvalidationpb.ProvideValidationFeedbackRequest, opts ...gax.CallOption) (*addressvalidationpb.ProvideValidationFeedbackResponse, error) { + return c.internalClient.ProvideValidationFeedback(ctx, req, opts...) +} + +// gRPCClient is a client for interacting with Address Validation API over gRPC transport. +// +// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. +type gRPCClient struct { + // Connection pool of gRPC connections to the service. + connPool gtransport.ConnPool + + // flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE + disableDeadlines bool + + // Points back to the CallOptions field of the containing Client + CallOptions **CallOptions + + // The gRPC API client. + client addressvalidationpb.AddressValidationClient + + // The x-goog-* metadata to be sent with each request. + xGoogMetadata metadata.MD +} + +// NewClient creates a new address validation client based on gRPC. +// The returned client must be Closed when it is done being used to clean up its underlying connections. +// +// The service for validating addresses. +func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error) { + clientOpts := defaultGRPCClientOptions() + if newClientHook != nil { + hookOpts, err := newClientHook(ctx, clientHookParams{}) + if err != nil { + return nil, err + } + clientOpts = append(clientOpts, hookOpts...) + } + + disableDeadlines, err := checkDisableDeadlines() + if err != nil { + return nil, err + } + + connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) + if err != nil { + return nil, err + } + client := Client{CallOptions: defaultCallOptions()} + + c := &gRPCClient{ + connPool: connPool, + disableDeadlines: disableDeadlines, + client: addressvalidationpb.NewAddressValidationClient(connPool), + CallOptions: &client.CallOptions, + } + c.setGoogleClientInfo() + + client.internalClient = c + + return &client, nil +} + +// Connection returns a connection to the API service. +// +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. +func (c *gRPCClient) Connection() *grpc.ClientConn { + return c.connPool.Conn() +} + +// setGoogleClientInfo sets the name and version of the application in +// the `x-goog-api-client` header passed on each request. Intended for +// use by Google-written clients. +func (c *gRPCClient) setGoogleClientInfo(keyval ...string) { + kv := append([]string{"gl-go", versionGo()}, keyval...) + kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) + c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) +} + +// Close closes the connection to the API service. The user should invoke this when +// the client is no longer required. +func (c *gRPCClient) Close() error { + return c.connPool.Close() +} + +func (c *gRPCClient) ValidateAddress(ctx context.Context, req *addressvalidationpb.ValidateAddressRequest, opts ...gax.CallOption) (*addressvalidationpb.ValidateAddressResponse, error) { + if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { + cctx, cancel := context.WithTimeout(ctx, 60000*time.Millisecond) + defer cancel() + ctx = cctx + } + ctx = insertMetadata(ctx, c.xGoogMetadata) + opts = append((*c.CallOptions).ValidateAddress[0:len((*c.CallOptions).ValidateAddress):len((*c.CallOptions).ValidateAddress)], opts...) + var resp *addressvalidationpb.ValidateAddressResponse + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.client.ValidateAddress(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *gRPCClient) ProvideValidationFeedback(ctx context.Context, req *addressvalidationpb.ProvideValidationFeedbackRequest, opts ...gax.CallOption) (*addressvalidationpb.ProvideValidationFeedbackResponse, error) { + if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { + cctx, cancel := context.WithTimeout(ctx, 60000*time.Millisecond) + defer cancel() + ctx = cctx + } + ctx = insertMetadata(ctx, c.xGoogMetadata) + opts = append((*c.CallOptions).ProvideValidationFeedback[0:len((*c.CallOptions).ProvideValidationFeedback):len((*c.CallOptions).ProvideValidationFeedback)], opts...) + var resp *addressvalidationpb.ProvideValidationFeedbackResponse + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.client.ProvideValidationFeedback(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} diff --git a/maps/addressvalidation/apiv1/address_validation_client_example_test.go b/maps/addressvalidation/apiv1/address_validation_client_example_test.go new file mode 100644 index 000000000000..7906d34ff595 --- /dev/null +++ b/maps/addressvalidation/apiv1/address_validation_client_example_test.go @@ -0,0 +1,91 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +package addressvalidation_test + +import ( + "context" + + addressvalidation "cloud.google.com/go/maps/addressvalidation/apiv1" + addressvalidationpb "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb" +) + +func ExampleNewClient() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := addressvalidation.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + // TODO: Use client. + _ = c +} + +func ExampleClient_ValidateAddress() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := addressvalidation.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &addressvalidationpb.ValidateAddressRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb#ValidateAddressRequest. + } + resp, err := c.ValidateAddress(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleClient_ProvideValidationFeedback() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := addressvalidation.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &addressvalidationpb.ProvideValidationFeedbackRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb#ProvideValidationFeedbackRequest. + } + resp, err := c.ProvideValidationFeedback(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} diff --git a/maps/addressvalidation/apiv1/addressvalidationpb/address.pb.go b/maps/addressvalidation/apiv1/addressvalidationpb/address.pb.go new file mode 100644 index 000000000000..ac1ad1af5aac --- /dev/null +++ b/maps/addressvalidation/apiv1/addressvalidationpb/address.pb.go @@ -0,0 +1,586 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.19.4 +// source: google/maps/addressvalidation/v1/address.proto + +package addressvalidationpb + +import ( + reflect "reflect" + sync "sync" + + _ "google.golang.org/genproto/googleapis/api/annotations" + postaladdress "google.golang.org/genproto/googleapis/type/postaladdress" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The different possible values for confirmation levels. +type AddressComponent_ConfirmationLevel int32 + +const ( + // Default value. This value is unused. + AddressComponent_CONFIRMATION_LEVEL_UNSPECIFIED AddressComponent_ConfirmationLevel = 0 + // We were able to verify that this component exists and makes sense in the + // context of the rest of the address. + AddressComponent_CONFIRMED AddressComponent_ConfirmationLevel = 1 + // This component could not be confirmed, but it is plausible that it + // exists. For example, a street number within a known valid range of + // numbers on a street where specific house numbers are not known. + AddressComponent_UNCONFIRMED_BUT_PLAUSIBLE AddressComponent_ConfirmationLevel = 2 + // This component was not confirmed and is likely to be wrong. For + // example, a neighborhood that does not fit the rest of the address. + AddressComponent_UNCONFIRMED_AND_SUSPICIOUS AddressComponent_ConfirmationLevel = 3 +) + +// Enum value maps for AddressComponent_ConfirmationLevel. +var ( + AddressComponent_ConfirmationLevel_name = map[int32]string{ + 0: "CONFIRMATION_LEVEL_UNSPECIFIED", + 1: "CONFIRMED", + 2: "UNCONFIRMED_BUT_PLAUSIBLE", + 3: "UNCONFIRMED_AND_SUSPICIOUS", + } + AddressComponent_ConfirmationLevel_value = map[string]int32{ + "CONFIRMATION_LEVEL_UNSPECIFIED": 0, + "CONFIRMED": 1, + "UNCONFIRMED_BUT_PLAUSIBLE": 2, + "UNCONFIRMED_AND_SUSPICIOUS": 3, + } +) + +func (x AddressComponent_ConfirmationLevel) Enum() *AddressComponent_ConfirmationLevel { + p := new(AddressComponent_ConfirmationLevel) + *p = x + return p +} + +func (x AddressComponent_ConfirmationLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AddressComponent_ConfirmationLevel) Descriptor() protoreflect.EnumDescriptor { + return file_google_maps_addressvalidation_v1_address_proto_enumTypes[0].Descriptor() +} + +func (AddressComponent_ConfirmationLevel) Type() protoreflect.EnumType { + return &file_google_maps_addressvalidation_v1_address_proto_enumTypes[0] +} + +func (x AddressComponent_ConfirmationLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AddressComponent_ConfirmationLevel.Descriptor instead. +func (AddressComponent_ConfirmationLevel) EnumDescriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_proto_rawDescGZIP(), []int{1, 0} +} + +// Details of the address parsed from the input. +type Address struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The corrected address, formatted as a single-line address following the + // address formatting rules of the region where the address is located. + FormattedAddress string `protobuf:"bytes,2,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"` + // The validated address represented as a postal address. + PostalAddress *postaladdress.PostalAddress `protobuf:"bytes,3,opt,name=postal_address,json=postalAddress,proto3" json:"postal_address,omitempty"` + // 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 + // assumptions on the ordering of the address components in the list. + AddressComponents []*AddressComponent `protobuf:"bytes,4,rep,name=address_components,json=addressComponents,proto3" json:"address_components,omitempty"` + // 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/requests-geocoding#Types). + MissingComponentTypes []string `protobuf:"bytes,5,rep,name=missing_component_types,json=missingComponentTypes,proto3" json:"missing_component_types,omitempty"` + // The types of the components that are present in the `address_components` + // but could not be confirmed to be correct. This field is provided for the + // sake of convenience: its contents are equivalent to iterating through the + // `address_components` to find the types of all the components where the + // [confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level] + // is not + // [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/requests-geocoding#Types). + UnconfirmedComponentTypes []string `protobuf:"bytes,6,rep,name=unconfirmed_component_types,json=unconfirmedComponentTypes,proto3" json:"unconfirmed_component_types,omitempty"` + // Any tokens in the input that could not be resolved. This might be an + // input that was not recognized as a valid part of an address (for example + // in an input like "123235253253 Main St, San Francisco, CA, 94105", the + // unresolved tokens may look like `["123235253253"]` since that does not + // look like a valid street number. + UnresolvedTokens []string `protobuf:"bytes,7,rep,name=unresolved_tokens,json=unresolvedTokens,proto3" json:"unresolved_tokens,omitempty"` +} + +func (x *Address) Reset() { + *x = Address{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Address) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Address) ProtoMessage() {} + +func (x *Address) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Address.ProtoReflect.Descriptor instead. +func (*Address) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_proto_rawDescGZIP(), []int{0} +} + +func (x *Address) GetFormattedAddress() string { + if x != nil { + return x.FormattedAddress + } + return "" +} + +func (x *Address) GetPostalAddress() *postaladdress.PostalAddress { + if x != nil { + return x.PostalAddress + } + return nil +} + +func (x *Address) GetAddressComponents() []*AddressComponent { + if x != nil { + return x.AddressComponents + } + return nil +} + +func (x *Address) GetMissingComponentTypes() []string { + if x != nil { + return x.MissingComponentTypes + } + return nil +} + +func (x *Address) GetUnconfirmedComponentTypes() []string { + if x != nil { + return x.UnconfirmedComponentTypes + } + return nil +} + +func (x *Address) GetUnresolvedTokens() []string { + if x != nil { + return x.UnresolvedTokens + } + return nil +} + +// Represents an address component, such as a street, city, or state. +type AddressComponent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name for this component. + ComponentName *ComponentName `protobuf:"bytes,1,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` + // The type of the address component. See + // [Table 2: Additional types returned by the Places + // service](https://developers.google.com/places/web-service/supported_types#table2) + // for a list of possible types. + ComponentType string `protobuf:"bytes,2,opt,name=component_type,json=componentType,proto3" json:"component_type,omitempty"` + // Indicates the level of certainty that we have that the component + // is correct. + ConfirmationLevel AddressComponent_ConfirmationLevel `protobuf:"varint,3,opt,name=confirmation_level,json=confirmationLevel,proto3,enum=google.maps.addressvalidation.v1.AddressComponent_ConfirmationLevel" json:"confirmation_level,omitempty"` + // Indicates that the component was not part of the input, but we + // inferred it for the address location and believe it should be provided + // for a complete address. + Inferred bool `protobuf:"varint,4,opt,name=inferred,proto3" json:"inferred,omitempty"` + // Indicates the spelling of the component name was corrected in a minor way, + // for example by switching two characters that appeared in the wrong order. + // This indicates a cosmetic change. + SpellCorrected bool `protobuf:"varint,5,opt,name=spell_corrected,json=spellCorrected,proto3" json:"spell_corrected,omitempty"` + // Indicates the name of the component was replaced with a completely + // different one, for example a wrong postal code being replaced with one that + // is correct for the address. This is not a cosmetic change, the input + // component has been changed to a different one. + Replaced bool `protobuf:"varint,6,opt,name=replaced,proto3" json:"replaced,omitempty"` + // Indicates an address component that is not expected to be present in a + // postal address for the given region. We have retained it only because it + // was part of the input. + Unexpected bool `protobuf:"varint,7,opt,name=unexpected,proto3" json:"unexpected,omitempty"` +} + +func (x *AddressComponent) Reset() { + *x = AddressComponent{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddressComponent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddressComponent) ProtoMessage() {} + +func (x *AddressComponent) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddressComponent.ProtoReflect.Descriptor instead. +func (*AddressComponent) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_proto_rawDescGZIP(), []int{1} +} + +func (x *AddressComponent) GetComponentName() *ComponentName { + if x != nil { + return x.ComponentName + } + return nil +} + +func (x *AddressComponent) GetComponentType() string { + if x != nil { + return x.ComponentType + } + return "" +} + +func (x *AddressComponent) GetConfirmationLevel() AddressComponent_ConfirmationLevel { + if x != nil { + return x.ConfirmationLevel + } + return AddressComponent_CONFIRMATION_LEVEL_UNSPECIFIED +} + +func (x *AddressComponent) GetInferred() bool { + if x != nil { + return x.Inferred + } + return false +} + +func (x *AddressComponent) GetSpellCorrected() bool { + if x != nil { + return x.SpellCorrected + } + return false +} + +func (x *AddressComponent) GetReplaced() bool { + if x != nil { + return x.Replaced + } + return false +} + +func (x *AddressComponent) GetUnexpected() bool { + if x != nil { + return x.Unexpected + } + return false +} + +// A wrapper for the name of the component. +type ComponentName struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name text. For example, "5th Avenue" for a street name or "1253" for a + // street number. + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + // The BCP-47 language code. This will not be present if the component name is + // not associated with a language, such as a street number. + LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` +} + +func (x *ComponentName) Reset() { + *x = ComponentName{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComponentName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComponentName) ProtoMessage() {} + +func (x *ComponentName) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ComponentName.ProtoReflect.Descriptor instead. +func (*ComponentName) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_proto_rawDescGZIP(), []int{2} +} + +func (x *ComponentName) GetText() string { + if x != nil { + return x.Text + } + return "" +} + +func (x *ComponentName) GetLanguageCode() string { + if x != nil { + return x.LanguageCode + } + return "" +} + +var File_google_maps_addressvalidation_v1_address_proto protoreflect.FileDescriptor + +var file_google_maps_addressvalidation_v1_address_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x03, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, + 0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x0d, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x66, 0x0a, 0x12, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x42, 0x03, 0xe0, 0x41, 0x06, 0x52, 0x11, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x43, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x75, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, + 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x19, 0x75, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x75, 0x6e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x75, 0x6e, + 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x8f, + 0x04, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x12, 0x56, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0d, 0x63, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x73, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x44, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x66, 0x65, 0x72, + 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x6e, 0x66, 0x65, 0x72, + 0x72, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x70, 0x65, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x72, + 0x72, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x70, + 0x65, 0x6c, 0x6c, 0x43, 0x6f, 0x72, 0x72, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x65, 0x78, + 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x6e, + 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0x85, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x22, + 0x0a, 0x1e, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, + 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, + 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x4e, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, + 0x5f, 0x42, 0x55, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x55, 0x53, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x02, + 0x12, 0x1e, 0x0a, 0x1a, 0x55, 0x4e, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x5f, + 0x41, 0x4e, 0x44, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x49, 0x43, 0x49, 0x4f, 0x55, 0x53, 0x10, 0x03, + 0x22, 0x48, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, + 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, + 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x82, 0x02, 0x0a, 0x24, 0x63, + 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, + 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x07, 0x47, 0x4d, 0x50, 0x41, + 0x56, 0x56, 0x31, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, + 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x3a, 0x3a, 0x4d, 0x61, 0x70, 0x73, 0x3a, 0x3a, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_maps_addressvalidation_v1_address_proto_rawDescOnce sync.Once + file_google_maps_addressvalidation_v1_address_proto_rawDescData = file_google_maps_addressvalidation_v1_address_proto_rawDesc +) + +func file_google_maps_addressvalidation_v1_address_proto_rawDescGZIP() []byte { + file_google_maps_addressvalidation_v1_address_proto_rawDescOnce.Do(func() { + file_google_maps_addressvalidation_v1_address_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_addressvalidation_v1_address_proto_rawDescData) + }) + return file_google_maps_addressvalidation_v1_address_proto_rawDescData +} + +var file_google_maps_addressvalidation_v1_address_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_maps_addressvalidation_v1_address_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_google_maps_addressvalidation_v1_address_proto_goTypes = []interface{}{ + (AddressComponent_ConfirmationLevel)(0), // 0: google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel + (*Address)(nil), // 1: google.maps.addressvalidation.v1.Address + (*AddressComponent)(nil), // 2: google.maps.addressvalidation.v1.AddressComponent + (*ComponentName)(nil), // 3: google.maps.addressvalidation.v1.ComponentName + (*postaladdress.PostalAddress)(nil), // 4: google.type.PostalAddress +} +var file_google_maps_addressvalidation_v1_address_proto_depIdxs = []int32{ + 4, // 0: google.maps.addressvalidation.v1.Address.postal_address:type_name -> google.type.PostalAddress + 2, // 1: google.maps.addressvalidation.v1.Address.address_components:type_name -> google.maps.addressvalidation.v1.AddressComponent + 3, // 2: google.maps.addressvalidation.v1.AddressComponent.component_name:type_name -> google.maps.addressvalidation.v1.ComponentName + 0, // 3: google.maps.addressvalidation.v1.AddressComponent.confirmation_level:type_name -> google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_google_maps_addressvalidation_v1_address_proto_init() } +func file_google_maps_addressvalidation_v1_address_proto_init() { + if File_google_maps_addressvalidation_v1_address_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_maps_addressvalidation_v1_address_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Address); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressComponent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComponentName); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_maps_addressvalidation_v1_address_proto_rawDesc, + NumEnums: 1, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_maps_addressvalidation_v1_address_proto_goTypes, + DependencyIndexes: file_google_maps_addressvalidation_v1_address_proto_depIdxs, + EnumInfos: file_google_maps_addressvalidation_v1_address_proto_enumTypes, + MessageInfos: file_google_maps_addressvalidation_v1_address_proto_msgTypes, + }.Build() + File_google_maps_addressvalidation_v1_address_proto = out.File + file_google_maps_addressvalidation_v1_address_proto_rawDesc = nil + file_google_maps_addressvalidation_v1_address_proto_goTypes = nil + file_google_maps_addressvalidation_v1_address_proto_depIdxs = nil +} diff --git a/maps/addressvalidation/apiv1/addressvalidationpb/address_validation_service.pb.go b/maps/addressvalidation/apiv1/addressvalidationpb/address_validation_service.pb.go new file mode 100644 index 000000000000..d780df73906f --- /dev/null +++ b/maps/addressvalidation/apiv1/addressvalidationpb/address_validation_service.pb.go @@ -0,0 +1,1148 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.19.4 +// source: google/maps/addressvalidation/v1/address_validation_service.proto + +package addressvalidationpb + +import ( + context "context" + reflect "reflect" + sync "sync" + + _ "google.golang.org/genproto/googleapis/api/annotations" + postaladdress "google.golang.org/genproto/googleapis/type/postaladdress" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The possible final outcomes of the sequence of address validation requests +// needed to validate an address. +type ProvideValidationFeedbackRequest_ValidationConclusion int32 + +const ( + // This value is unused. + // If the `ProvideValidationFeedbackRequest.conclusion` field is set to + // `VALIDATION_CONCLUSION_UNSPECIFIED`, an `INVALID_ARGUMENT` error will be + // returned. + ProvideValidationFeedbackRequest_VALIDATION_CONCLUSION_UNSPECIFIED ProvideValidationFeedbackRequest_ValidationConclusion = 0 + // The version of the address returned by the Address Validation API was + // used for the transaction. + ProvideValidationFeedbackRequest_VALIDATED_VERSION_USED ProvideValidationFeedbackRequest_ValidationConclusion = 1 + // The version of the address provided by the user was used for the + // transaction + ProvideValidationFeedbackRequest_USER_VERSION_USED ProvideValidationFeedbackRequest_ValidationConclusion = 2 + // A version of the address that was entered after the last validation + // attempt but that was not re-validated was used for the transaction. + ProvideValidationFeedbackRequest_UNVALIDATED_VERSION_USED ProvideValidationFeedbackRequest_ValidationConclusion = 3 + // The transaction was abandoned and the address was not used. + ProvideValidationFeedbackRequest_UNUSED ProvideValidationFeedbackRequest_ValidationConclusion = 4 +) + +// Enum value maps for ProvideValidationFeedbackRequest_ValidationConclusion. +var ( + ProvideValidationFeedbackRequest_ValidationConclusion_name = map[int32]string{ + 0: "VALIDATION_CONCLUSION_UNSPECIFIED", + 1: "VALIDATED_VERSION_USED", + 2: "USER_VERSION_USED", + 3: "UNVALIDATED_VERSION_USED", + 4: "UNUSED", + } + ProvideValidationFeedbackRequest_ValidationConclusion_value = map[string]int32{ + "VALIDATION_CONCLUSION_UNSPECIFIED": 0, + "VALIDATED_VERSION_USED": 1, + "USER_VERSION_USED": 2, + "UNVALIDATED_VERSION_USED": 3, + "UNUSED": 4, + } +) + +func (x ProvideValidationFeedbackRequest_ValidationConclusion) Enum() *ProvideValidationFeedbackRequest_ValidationConclusion { + p := new(ProvideValidationFeedbackRequest_ValidationConclusion) + *p = x + return p +} + +func (x ProvideValidationFeedbackRequest_ValidationConclusion) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProvideValidationFeedbackRequest_ValidationConclusion) Descriptor() protoreflect.EnumDescriptor { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_enumTypes[0].Descriptor() +} + +func (ProvideValidationFeedbackRequest_ValidationConclusion) Type() protoreflect.EnumType { + return &file_google_maps_addressvalidation_v1_address_validation_service_proto_enumTypes[0] +} + +func (x ProvideValidationFeedbackRequest_ValidationConclusion) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProvideValidationFeedbackRequest_ValidationConclusion.Descriptor instead. +func (ProvideValidationFeedbackRequest_ValidationConclusion) EnumDescriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{2, 0} +} + +// The various granularities that an address or a geocode can have. +// When used to indicate granularity for an *address*, these values indicate +// with how fine a granularity the address identifies a mailing destination. +// For example, an address such as "123 Main Street, Redwood City, CA, 94061" +// identifies a `PREMISE` while something like "Redwood City, CA, 94061" +// identifies a `LOCALITY`. However, if we are unable to find a geocode for +// "123 Main Street" in Redwood City, the geocode returned might be of +// `LOCALITY` granularity even though the address is more granular. +type Verdict_Granularity int32 + +const ( + // Default value. This value is unused. + Verdict_GRANULARITY_UNSPECIFIED Verdict_Granularity = 0 + // Below-building level result, such as an apartment. + Verdict_SUB_PREMISE Verdict_Granularity = 1 + // Building-level result. + Verdict_PREMISE Verdict_Granularity = 2 + // A geocode that should be very close to the building-level location of + // the address. Only used for geocodes and not for addresses. + Verdict_PREMISE_PROXIMITY Verdict_Granularity = 3 + // The address or geocode indicates a block. Only used in regions which + // have block-level addressing, such as Japan. + Verdict_BLOCK Verdict_Granularity = 4 + // The geocode or address is granular to route, such as a street, road, or + // highway. + Verdict_ROUTE Verdict_Granularity = 5 + // All other granularities, which are bucketed together since they are not + // deliverable. + Verdict_OTHER Verdict_Granularity = 6 +) + +// Enum value maps for Verdict_Granularity. +var ( + Verdict_Granularity_name = map[int32]string{ + 0: "GRANULARITY_UNSPECIFIED", + 1: "SUB_PREMISE", + 2: "PREMISE", + 3: "PREMISE_PROXIMITY", + 4: "BLOCK", + 5: "ROUTE", + 6: "OTHER", + } + Verdict_Granularity_value = map[string]int32{ + "GRANULARITY_UNSPECIFIED": 0, + "SUB_PREMISE": 1, + "PREMISE": 2, + "PREMISE_PROXIMITY": 3, + "BLOCK": 4, + "ROUTE": 5, + "OTHER": 6, + } +) + +func (x Verdict_Granularity) Enum() *Verdict_Granularity { + p := new(Verdict_Granularity) + *p = x + return p +} + +func (x Verdict_Granularity) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Verdict_Granularity) Descriptor() protoreflect.EnumDescriptor { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_enumTypes[1].Descriptor() +} + +func (Verdict_Granularity) Type() protoreflect.EnumType { + return &file_google_maps_addressvalidation_v1_address_validation_service_proto_enumTypes[1] +} + +func (x Verdict_Granularity) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Verdict_Granularity.Descriptor instead. +func (Verdict_Granularity) EnumDescriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{5, 0} +} + +// The request for validating an address. +type ValidateAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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 280 + // characters. + // + // Supported regions can be found in the + // [FAQ](https://developers.google.com/maps/documentation/address-validation/faq#which_regions_are_currently_supported). + // + // The [language_code][google.type.PostalAddress.language_code] value in the + // input address is reserved for future uses and is ignored today. The + // validated address result will be populated based on the preferred language + // for the given address, as identified by the system. + // + // The Address Validation API ignores the values in + // [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. + Address *postaladdress.PostalAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // This field must be empty for the first address validation request. If + // more requests are necessary to fully validate a single address (for + // example if the changes the user makes after the initial validation need to + // be re-validated), then each followup request must populate this field with + // the + // [response_id][google.maps.addressvalidation.v1.ValidateAddressResponse.response_id] + // from the very first response in the validation sequence. + PreviousResponseId string `protobuf:"bytes,2,opt,name=previous_response_id,json=previousResponseId,proto3" json:"previous_response_id,omitempty"` + // Enables USPS CASS compatible mode. This affects _only_ the + // [google.maps.addressvalidation.v1.ValidationResult.usps_data] field of + // [google.maps.addressvalidation.v1.ValidationResult]. Note: for USPS CASS + // enabled requests for addresses in Puerto Rico, a + // [google.type.PostalAddress.region_code] of the `address` must be provided + // as "PR", or an [google.type.PostalAddress.administrative_area] of the + // `address` must be provided as "Puerto Rico" (case-insensitive) or "PR". + // + // It's recommended to use a componentized `address`, or alternatively specify + // at least two [google.type.PostalAddress.address_lines] where the first line + // contains the street number and name and the second line contains the city, + // state, and zip code. + EnableUspsCass bool `protobuf:"varint,3,opt,name=enable_usps_cass,json=enableUspsCass,proto3" json:"enable_usps_cass,omitempty"` +} + +func (x *ValidateAddressRequest) Reset() { + *x = ValidateAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateAddressRequest) ProtoMessage() {} + +func (x *ValidateAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateAddressRequest.ProtoReflect.Descriptor instead. +func (*ValidateAddressRequest) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{0} +} + +func (x *ValidateAddressRequest) GetAddress() *postaladdress.PostalAddress { + if x != nil { + return x.Address + } + return nil +} + +func (x *ValidateAddressRequest) GetPreviousResponseId() string { + if x != nil { + return x.PreviousResponseId + } + return "" +} + +func (x *ValidateAddressRequest) GetEnableUspsCass() bool { + if x != nil { + return x.EnableUspsCass + } + return false +} + +// The response to an address validation request. +type ValidateAddressResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The result of the address validation. + Result *ValidationResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + // The UUID that identifies this response. If the address needs to be + // re-validated, this UUID *must* accompany the new request. + ResponseId string `protobuf:"bytes,2,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"` +} + +func (x *ValidateAddressResponse) Reset() { + *x = ValidateAddressResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateAddressResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateAddressResponse) ProtoMessage() {} + +func (x *ValidateAddressResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateAddressResponse.ProtoReflect.Descriptor instead. +func (*ValidateAddressResponse) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{1} +} + +func (x *ValidateAddressResponse) GetResult() *ValidationResult { + if x != nil { + return x.Result + } + return nil +} + +func (x *ValidateAddressResponse) GetResponseId() string { + if x != nil { + return x.ResponseId + } + return "" +} + +// The request for sending validation feedback. +type ProvideValidationFeedbackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The outcome of the sequence of validation attempts. + // + // If this field is set to `VALIDATION_CONCLUSION_UNSPECIFIED`, an + // `INVALID_ARGUMENT` error will be returned. + Conclusion ProvideValidationFeedbackRequest_ValidationConclusion `protobuf:"varint,1,opt,name=conclusion,proto3,enum=google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest_ValidationConclusion" json:"conclusion,omitempty"` + // 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. + ResponseId string `protobuf:"bytes,2,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"` +} + +func (x *ProvideValidationFeedbackRequest) Reset() { + *x = ProvideValidationFeedbackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProvideValidationFeedbackRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProvideValidationFeedbackRequest) ProtoMessage() {} + +func (x *ProvideValidationFeedbackRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProvideValidationFeedbackRequest.ProtoReflect.Descriptor instead. +func (*ProvideValidationFeedbackRequest) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{2} +} + +func (x *ProvideValidationFeedbackRequest) GetConclusion() ProvideValidationFeedbackRequest_ValidationConclusion { + if x != nil { + return x.Conclusion + } + return ProvideValidationFeedbackRequest_VALIDATION_CONCLUSION_UNSPECIFIED +} + +func (x *ProvideValidationFeedbackRequest) GetResponseId() string { + if x != nil { + return x.ResponseId + } + return "" +} + +// The response for validation feedback. +// +// The response is empty if the feedback is sent successfully. +type ProvideValidationFeedbackResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProvideValidationFeedbackResponse) Reset() { + *x = ProvideValidationFeedbackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProvideValidationFeedbackResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProvideValidationFeedbackResponse) ProtoMessage() {} + +func (x *ProvideValidationFeedbackResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProvideValidationFeedbackResponse.ProtoReflect.Descriptor instead. +func (*ProvideValidationFeedbackResponse) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{3} +} + +// The result of validating an address. +type ValidationResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Overall verdict flags + Verdict *Verdict `protobuf:"bytes,1,opt,name=verdict,proto3" json:"verdict,omitempty"` + // Information about the address itself as opposed to the geocode. + Address *Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Information about the location and place that the address geocoded to. + Geocode *Geocode `protobuf:"bytes,3,opt,name=geocode,proto3" json:"geocode,omitempty"` + // Other information relevant to deliverability. + Metadata *AddressMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Extra deliverability flags provided by USPS. Only provided in region `US` + // and `PR`. + UspsData *UspsData `protobuf:"bytes,5,opt,name=usps_data,json=uspsData,proto3" json:"usps_data,omitempty"` +} + +func (x *ValidationResult) Reset() { + *x = ValidationResult{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidationResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidationResult) ProtoMessage() {} + +func (x *ValidationResult) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidationResult.ProtoReflect.Descriptor instead. +func (*ValidationResult) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{4} +} + +func (x *ValidationResult) GetVerdict() *Verdict { + if x != nil { + return x.Verdict + } + return nil +} + +func (x *ValidationResult) GetAddress() *Address { + if x != nil { + return x.Address + } + return nil +} + +func (x *ValidationResult) GetGeocode() *Geocode { + if x != nil { + return x.Geocode + } + return nil +} + +func (x *ValidationResult) GetMetadata() *AddressMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *ValidationResult) GetUspsData() *UspsData { + if x != nil { + return x.UspsData + } + return nil +} + +// High level overview of the address validation result and geocode. +type Verdict struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The granularity of the **input** address. This is the result of parsing the + // input address and does not give any validation signals. For validation + // signals, refer to `validation_granularity` below. + // + // For example, if the input address includes a specific apartment number, + // then the `input_granularity` here will be `SUB_PREMISE`. If we cannot match + // the apartment number in the databases or the apartment number is invalid, + // the `validation_granularity` will likely be `PREMISE` or below. + InputGranularity Verdict_Granularity `protobuf:"varint,1,opt,name=input_granularity,json=inputGranularity,proto3,enum=google.maps.addressvalidation.v1.Verdict_Granularity" json:"input_granularity,omitempty"` + // The granularity level that the API can fully **validate** the address to. + // For example, an `validation_granularity` of `PREMISE` indicates all address + // components at the level of `PREMISE` or more coarse can be validated. + // + // Per address component validation result can be found in + // [google.maps.addressvalidation.v1.Address.address_components]. + ValidationGranularity Verdict_Granularity `protobuf:"varint,2,opt,name=validation_granularity,json=validationGranularity,proto3,enum=google.maps.addressvalidation.v1.Verdict_Granularity" json:"validation_granularity,omitempty"` + // Information about the granularity of the + // [`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode]. + // This can be understood as the semantic meaning of how coarse or fine the + // geocoded location is. + // + // This can differ from the `validation_granularity` above occasionally. For + // example, our database might record the existence of an apartment number but + // do not have a precise location for the apartment within a big apartment + // complex. In that case, the `validation_granularity` will be `SUB_PREMISE` + // but the `geocode_granularity` will be `PREMISE`. + GeocodeGranularity Verdict_Granularity `protobuf:"varint,3,opt,name=geocode_granularity,json=geocodeGranularity,proto3,enum=google.maps.addressvalidation.v1.Verdict_Granularity" json:"geocode_granularity,omitempty"` + // The address is considered complete if there are no unresolved tokens, no + // unexpected or missing address components. See + // [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types], + // [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens] + // or + // [`unexpected`][google.maps.addressvalidation.v1.AddressComponent.unexpected] + // fields for more details. + AddressComplete bool `protobuf:"varint,4,opt,name=address_complete,json=addressComplete,proto3" json:"address_complete,omitempty"` + // At least one address component cannot be categorized or validated, see + // [google.maps.addressvalidation.v1.Address.address_components] for + // details. + HasUnconfirmedComponents bool `protobuf:"varint,5,opt,name=has_unconfirmed_components,json=hasUnconfirmedComponents,proto3" json:"has_unconfirmed_components,omitempty"` + // At least one address component was inferred (added) that wasn't in the + // input, see + // [google.maps.addressvalidation.v1.Address.address_components] for + // details. + HasInferredComponents bool `protobuf:"varint,6,opt,name=has_inferred_components,json=hasInferredComponents,proto3" json:"has_inferred_components,omitempty"` + // At least one address component was replaced, see + // [google.maps.addressvalidation.v1.Address.address_components] for + // details. + HasReplacedComponents bool `protobuf:"varint,7,opt,name=has_replaced_components,json=hasReplacedComponents,proto3" json:"has_replaced_components,omitempty"` +} + +func (x *Verdict) Reset() { + *x = Verdict{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Verdict) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Verdict) ProtoMessage() {} + +func (x *Verdict) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Verdict.ProtoReflect.Descriptor instead. +func (*Verdict) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP(), []int{5} +} + +func (x *Verdict) GetInputGranularity() Verdict_Granularity { + if x != nil { + return x.InputGranularity + } + return Verdict_GRANULARITY_UNSPECIFIED +} + +func (x *Verdict) GetValidationGranularity() Verdict_Granularity { + if x != nil { + return x.ValidationGranularity + } + return Verdict_GRANULARITY_UNSPECIFIED +} + +func (x *Verdict) GetGeocodeGranularity() Verdict_Granularity { + if x != nil { + return x.GeocodeGranularity + } + return Verdict_GRANULARITY_UNSPECIFIED +} + +func (x *Verdict) GetAddressComplete() bool { + if x != nil { + return x.AddressComplete + } + return false +} + +func (x *Verdict) GetHasUnconfirmedComponents() bool { + if x != nil { + return x.HasUnconfirmedComponents + } + return false +} + +func (x *Verdict) GetHasInferredComponents() bool { + if x != nil { + return x.HasInferredComponents + } + return false +} + +func (x *Verdict) GetHasReplacedComponents() bool { + if x != nil { + return x.HasReplacedComponents + } + return false +} + +var File_google_maps_addressvalidation_v1_address_validation_service_proto protoreflect.FileDescriptor + +var file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDesc = []byte{ + 0x0a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, + 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, + 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, + 0x67, 0x65, 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x2f, 0x75, 0x73, 0x70, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x70, 0x6f, + 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x6f, 0x73, + 0x74, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x75, 0x73, 0x70, 0x73, 0x5f, 0x63, 0x61, 0x73, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x70, 0x73, + 0x43, 0x61, 0x73, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4a, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x64, 0x22, 0xe3, 0x02, + 0x0a, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x7c, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x57, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, + 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x25, 0x0a, 0x21, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, + 0x4e, 0x43, 0x4c, 0x55, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, + 0x54, 0x45, 0x44, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x44, + 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x4e, 0x56, + 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, + 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e, 0x55, 0x53, 0x45, + 0x44, 0x10, 0x04, 0x22, 0x23, 0x0a, 0x21, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf9, 0x02, 0x0a, 0x10, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x43, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x52, 0x07, 0x76, 0x65, 0x72, 0x64, 0x69, + 0x63, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, + 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, 0x07, 0x67, 0x65, 0x6f, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6f, 0x63, + 0x6f, 0x64, 0x65, 0x52, 0x07, 0x67, 0x65, 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x4d, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x47, 0x0a, 0x09, 0x75, + 0x73, 0x70, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x55, 0x73, 0x70, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x75, 0x73, 0x70, 0x73, + 0x44, 0x61, 0x74, 0x61, 0x22, 0x9f, 0x05, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, + 0x12, 0x62, 0x0a, 0x11, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, + 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, + 0x74, 0x79, 0x52, 0x10, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, + 0x72, 0x69, 0x74, 0x79, 0x12, 0x6c, 0x0a, 0x16, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, + 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x2e, + 0x47, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x52, 0x15, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, + 0x74, 0x79, 0x12, 0x66, 0x0a, 0x13, 0x67, 0x65, 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x67, 0x72, + 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x75, + 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x52, 0x12, 0x67, 0x65, 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x47, + 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x68, 0x61, 0x73, 0x5f, 0x75, 0x6e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x68, 0x61, 0x73, 0x55, 0x6e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x68, 0x61, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, + 0x72, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x68, 0x61, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x72, 0x65, + 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x68, + 0x61, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x68, 0x61, + 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x0b, 0x47, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x52, 0x41, 0x4e, 0x55, 0x4c, 0x41, 0x52, 0x49, + 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x55, 0x42, 0x5f, 0x50, 0x52, 0x45, 0x4d, 0x49, 0x53, 0x45, 0x10, + 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x45, 0x4d, 0x49, 0x53, 0x45, 0x10, 0x02, 0x12, 0x15, + 0x0a, 0x11, 0x50, 0x52, 0x45, 0x4d, 0x49, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x49, 0x4d, + 0x49, 0x54, 0x59, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x04, + 0x12, 0x09, 0x0a, 0x05, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x4f, + 0x54, 0x48, 0x45, 0x52, 0x10, 0x06, 0x32, 0xb2, 0x03, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa6, 0x01, 0x0a, + 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, + 0x76, 0x31, 0x3a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0xce, 0x01, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, + 0x61, 0x63, 0x6b, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, + 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, + 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x3a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, + 0x61, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x1a, 0x23, 0xca, 0x41, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0x93, 0x02, 0x0a, 0x24, + 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x1d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, + 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, + 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x07, 0x47, 0x4d, + 0x50, 0x41, 0x56, 0x56, 0x31, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, + 0x61, 0x70, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x4d, 0x61, 0x70, 0x73, 0x3a, 0x3a, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescOnce sync.Once + file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescData = file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDesc +) + +func file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescGZIP() []byte { + file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescOnce.Do(func() { + file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescData) + }) + return file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDescData +} + +var file_google_maps_addressvalidation_v1_address_validation_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_google_maps_addressvalidation_v1_address_validation_service_proto_goTypes = []interface{}{ + (ProvideValidationFeedbackRequest_ValidationConclusion)(0), // 0: google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest.ValidationConclusion + (Verdict_Granularity)(0), // 1: google.maps.addressvalidation.v1.Verdict.Granularity + (*ValidateAddressRequest)(nil), // 2: google.maps.addressvalidation.v1.ValidateAddressRequest + (*ValidateAddressResponse)(nil), // 3: google.maps.addressvalidation.v1.ValidateAddressResponse + (*ProvideValidationFeedbackRequest)(nil), // 4: google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest + (*ProvideValidationFeedbackResponse)(nil), // 5: google.maps.addressvalidation.v1.ProvideValidationFeedbackResponse + (*ValidationResult)(nil), // 6: google.maps.addressvalidation.v1.ValidationResult + (*Verdict)(nil), // 7: google.maps.addressvalidation.v1.Verdict + (*postaladdress.PostalAddress)(nil), // 8: google.type.PostalAddress + (*Address)(nil), // 9: google.maps.addressvalidation.v1.Address + (*Geocode)(nil), // 10: google.maps.addressvalidation.v1.Geocode + (*AddressMetadata)(nil), // 11: google.maps.addressvalidation.v1.AddressMetadata + (*UspsData)(nil), // 12: google.maps.addressvalidation.v1.UspsData +} +var file_google_maps_addressvalidation_v1_address_validation_service_proto_depIdxs = []int32{ + 8, // 0: google.maps.addressvalidation.v1.ValidateAddressRequest.address:type_name -> google.type.PostalAddress + 6, // 1: google.maps.addressvalidation.v1.ValidateAddressResponse.result:type_name -> google.maps.addressvalidation.v1.ValidationResult + 0, // 2: google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest.conclusion:type_name -> google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest.ValidationConclusion + 7, // 3: google.maps.addressvalidation.v1.ValidationResult.verdict:type_name -> google.maps.addressvalidation.v1.Verdict + 9, // 4: google.maps.addressvalidation.v1.ValidationResult.address:type_name -> google.maps.addressvalidation.v1.Address + 10, // 5: google.maps.addressvalidation.v1.ValidationResult.geocode:type_name -> google.maps.addressvalidation.v1.Geocode + 11, // 6: google.maps.addressvalidation.v1.ValidationResult.metadata:type_name -> google.maps.addressvalidation.v1.AddressMetadata + 12, // 7: google.maps.addressvalidation.v1.ValidationResult.usps_data:type_name -> google.maps.addressvalidation.v1.UspsData + 1, // 8: google.maps.addressvalidation.v1.Verdict.input_granularity:type_name -> google.maps.addressvalidation.v1.Verdict.Granularity + 1, // 9: google.maps.addressvalidation.v1.Verdict.validation_granularity:type_name -> google.maps.addressvalidation.v1.Verdict.Granularity + 1, // 10: google.maps.addressvalidation.v1.Verdict.geocode_granularity:type_name -> google.maps.addressvalidation.v1.Verdict.Granularity + 2, // 11: google.maps.addressvalidation.v1.AddressValidation.ValidateAddress:input_type -> google.maps.addressvalidation.v1.ValidateAddressRequest + 4, // 12: google.maps.addressvalidation.v1.AddressValidation.ProvideValidationFeedback:input_type -> google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest + 3, // 13: google.maps.addressvalidation.v1.AddressValidation.ValidateAddress:output_type -> google.maps.addressvalidation.v1.ValidateAddressResponse + 5, // 14: google.maps.addressvalidation.v1.AddressValidation.ProvideValidationFeedback:output_type -> google.maps.addressvalidation.v1.ProvideValidationFeedbackResponse + 13, // [13:15] is the sub-list for method output_type + 11, // [11:13] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_google_maps_addressvalidation_v1_address_validation_service_proto_init() } +func file_google_maps_addressvalidation_v1_address_validation_service_proto_init() { + if File_google_maps_addressvalidation_v1_address_validation_service_proto != nil { + return + } + file_google_maps_addressvalidation_v1_address_proto_init() + file_google_maps_addressvalidation_v1_geocode_proto_init() + file_google_maps_addressvalidation_v1_metadata_proto_init() + file_google_maps_addressvalidation_v1_usps_data_proto_init() + if !protoimpl.UnsafeEnabled { + file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateAddressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateAddressResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProvideValidationFeedbackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProvideValidationFeedbackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidationResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Verdict); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDesc, + NumEnums: 2, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_google_maps_addressvalidation_v1_address_validation_service_proto_goTypes, + DependencyIndexes: file_google_maps_addressvalidation_v1_address_validation_service_proto_depIdxs, + EnumInfos: file_google_maps_addressvalidation_v1_address_validation_service_proto_enumTypes, + MessageInfos: file_google_maps_addressvalidation_v1_address_validation_service_proto_msgTypes, + }.Build() + File_google_maps_addressvalidation_v1_address_validation_service_proto = out.File + file_google_maps_addressvalidation_v1_address_validation_service_proto_rawDesc = nil + file_google_maps_addressvalidation_v1_address_validation_service_proto_goTypes = nil + file_google_maps_addressvalidation_v1_address_validation_service_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// AddressValidationClient is the client API for AddressValidation service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AddressValidationClient interface { + // Validates an address. + ValidateAddress(ctx context.Context, in *ValidateAddressRequest, opts ...grpc.CallOption) (*ValidateAddressResponse, error) + // Feedback about the outcome of the sequence of validation attempts. This + // should be the last call made after a sequence of validation calls for the + // 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. + ProvideValidationFeedback(ctx context.Context, in *ProvideValidationFeedbackRequest, opts ...grpc.CallOption) (*ProvideValidationFeedbackResponse, error) +} + +type addressValidationClient struct { + cc grpc.ClientConnInterface +} + +func NewAddressValidationClient(cc grpc.ClientConnInterface) AddressValidationClient { + return &addressValidationClient{cc} +} + +func (c *addressValidationClient) ValidateAddress(ctx context.Context, in *ValidateAddressRequest, opts ...grpc.CallOption) (*ValidateAddressResponse, error) { + out := new(ValidateAddressResponse) + err := c.cc.Invoke(ctx, "/google.maps.addressvalidation.v1.AddressValidation/ValidateAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *addressValidationClient) ProvideValidationFeedback(ctx context.Context, in *ProvideValidationFeedbackRequest, opts ...grpc.CallOption) (*ProvideValidationFeedbackResponse, error) { + out := new(ProvideValidationFeedbackResponse) + err := c.cc.Invoke(ctx, "/google.maps.addressvalidation.v1.AddressValidation/ProvideValidationFeedback", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AddressValidationServer is the server API for AddressValidation service. +type AddressValidationServer interface { + // Validates an address. + ValidateAddress(context.Context, *ValidateAddressRequest) (*ValidateAddressResponse, error) + // Feedback about the outcome of the sequence of validation attempts. This + // should be the last call made after a sequence of validation calls for the + // 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. + ProvideValidationFeedback(context.Context, *ProvideValidationFeedbackRequest) (*ProvideValidationFeedbackResponse, error) +} + +// UnimplementedAddressValidationServer can be embedded to have forward compatible implementations. +type UnimplementedAddressValidationServer struct { +} + +func (*UnimplementedAddressValidationServer) ValidateAddress(context.Context, *ValidateAddressRequest) (*ValidateAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateAddress not implemented") +} +func (*UnimplementedAddressValidationServer) ProvideValidationFeedback(context.Context, *ProvideValidationFeedbackRequest) (*ProvideValidationFeedbackResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProvideValidationFeedback not implemented") +} + +func RegisterAddressValidationServer(s *grpc.Server, srv AddressValidationServer) { + s.RegisterService(&_AddressValidation_serviceDesc, srv) +} + +func _AddressValidation_ValidateAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AddressValidationServer).ValidateAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.maps.addressvalidation.v1.AddressValidation/ValidateAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AddressValidationServer).ValidateAddress(ctx, req.(*ValidateAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AddressValidation_ProvideValidationFeedback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProvideValidationFeedbackRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AddressValidationServer).ProvideValidationFeedback(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.maps.addressvalidation.v1.AddressValidation/ProvideValidationFeedback", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AddressValidationServer).ProvideValidationFeedback(ctx, req.(*ProvideValidationFeedbackRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AddressValidation_serviceDesc = grpc.ServiceDesc{ + ServiceName: "google.maps.addressvalidation.v1.AddressValidation", + HandlerType: (*AddressValidationServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ValidateAddress", + Handler: _AddressValidation_ValidateAddress_Handler, + }, + { + MethodName: "ProvideValidationFeedback", + Handler: _AddressValidation_ProvideValidationFeedback_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "google/maps/addressvalidation/v1/address_validation_service.proto", +} diff --git a/maps/addressvalidation/apiv1/addressvalidationpb/geocode.pb.go b/maps/addressvalidation/apiv1/addressvalidationpb/geocode.pb.go new file mode 100644 index 000000000000..e1093c29e8cd --- /dev/null +++ b/maps/addressvalidation/apiv1/addressvalidationpb/geocode.pb.go @@ -0,0 +1,346 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.19.4 +// source: google/maps/addressvalidation/v1/geocode.proto + +package addressvalidationpb + +import ( + reflect "reflect" + sync "sync" + + viewport "google.golang.org/genproto/googleapis/geo/type/viewport" + latlng "google.golang.org/genproto/googleapis/type/latlng" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Contains information about the place the input was geocoded to. +type Geocode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The geocoded location of the input. + // + // Using place IDs is preferred over using addresses, + // latitude/longitude coordinates, or plus codes. Using coordinates when + // routing or calculating driving directions will always result in the point + // being snapped to the road nearest to those coordinates. This may not be a + // road that will quickly or safely lead to the destination and may not be + // near an access point to the property. Additionally, when a location is + // reverse geocoded, there is no guarantee that the returned address will + // match the original. + Location *latlng.LatLng `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` + // The plus code corresponding to the `location`. + PlusCode *PlusCode `protobuf:"bytes,2,opt,name=plus_code,json=plusCode,proto3" json:"plus_code,omitempty"` + // The bounds of the geocoded place. + Bounds *viewport.Viewport `protobuf:"bytes,4,opt,name=bounds,proto3" json:"bounds,omitempty"` + // The size of the geocoded place, in meters. This is another measure of the + // coarseness of the geocoded location, but in physical size rather than in + // semantic meaning. + FeatureSizeMeters float32 `protobuf:"fixed32,5,opt,name=feature_size_meters,json=featureSizeMeters,proto3" json:"feature_size_meters,omitempty"` + // The PlaceID of the place this input geocodes to. + // + // For more information about Place IDs see + // [here](https://developers.google.com/maps/documentation/places/web-service/place-id). + PlaceId string `protobuf:"bytes,6,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"` + // 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/requests-geocoding#Types). + PlaceTypes []string `protobuf:"bytes,7,rep,name=place_types,json=placeTypes,proto3" json:"place_types,omitempty"` +} + +func (x *Geocode) Reset() { + *x = Geocode{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_geocode_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Geocode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Geocode) ProtoMessage() {} + +func (x *Geocode) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_geocode_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Geocode.ProtoReflect.Descriptor instead. +func (*Geocode) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_geocode_proto_rawDescGZIP(), []int{0} +} + +func (x *Geocode) GetLocation() *latlng.LatLng { + if x != nil { + return x.Location + } + return nil +} + +func (x *Geocode) GetPlusCode() *PlusCode { + if x != nil { + return x.PlusCode + } + return nil +} + +func (x *Geocode) GetBounds() *viewport.Viewport { + if x != nil { + return x.Bounds + } + return nil +} + +func (x *Geocode) GetFeatureSizeMeters() float32 { + if x != nil { + return x.FeatureSizeMeters + } + return 0 +} + +func (x *Geocode) GetPlaceId() string { + if x != nil { + return x.PlaceId + } + return "" +} + +func (x *Geocode) GetPlaceTypes() []string { + if x != nil { + return x.PlaceTypes + } + return nil +} + +// Plus code (http://plus.codes) is a location reference with two formats: +// global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, +// and compound code, replacing the prefix with a reference location. +type PlusCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Place's global (full) code, such as "9FWM33GV+HQ", representing an + // 1/8000 by 1/8000 degree area (~14 by 14 meters). + GlobalCode string `protobuf:"bytes,1,opt,name=global_code,json=globalCode,proto3" json:"global_code,omitempty"` + // Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing + // the suffix of the global code and replacing the prefix with a formatted + // name of a reference entity. + CompoundCode string `protobuf:"bytes,2,opt,name=compound_code,json=compoundCode,proto3" json:"compound_code,omitempty"` +} + +func (x *PlusCode) Reset() { + *x = PlusCode{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_geocode_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlusCode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlusCode) ProtoMessage() {} + +func (x *PlusCode) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_geocode_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlusCode.ProtoReflect.Descriptor instead. +func (*PlusCode) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_geocode_proto_rawDescGZIP(), []int{1} +} + +func (x *PlusCode) GetGlobalCode() string { + if x != nil { + return x.GlobalCode + } + return "" +} + +func (x *PlusCode) GetCompoundCode() string { + if x != nil { + return x.CompoundCode + } + return "" +} + +var File_google_maps_addressvalidation_v1_geocode_proto protoreflect.FileDescriptor + +var file_google_maps_addressvalidation_v1_geocode_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x6f, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, + 0x6c, 0x61, 0x74, 0x6c, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x02, 0x0a, + 0x07, 0x47, 0x65, 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x61, 0x74, 0x4c, 0x6e, 0x67, 0x52, + 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x09, 0x70, 0x6c, 0x75, + 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x73, 0x43, 0x6f, + 0x64, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x65, 0x6f, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x62, + 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x11, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x22, 0x50, 0x0a, 0x08, 0x50, 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x75, 0x6e, 0x64, 0x43, + 0x6f, 0x64, 0x65, 0x42, 0x82, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, + 0x6f, 0x63, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, + 0x01, 0x01, 0xa2, 0x02, 0x07, 0x47, 0x4d, 0x50, 0x41, 0x56, 0x56, 0x31, 0xaa, 0x02, 0x20, 0x47, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, + 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x4d, 0x61, 0x70, + 0x73, 0x3a, 0x3a, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_maps_addressvalidation_v1_geocode_proto_rawDescOnce sync.Once + file_google_maps_addressvalidation_v1_geocode_proto_rawDescData = file_google_maps_addressvalidation_v1_geocode_proto_rawDesc +) + +func file_google_maps_addressvalidation_v1_geocode_proto_rawDescGZIP() []byte { + file_google_maps_addressvalidation_v1_geocode_proto_rawDescOnce.Do(func() { + file_google_maps_addressvalidation_v1_geocode_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_addressvalidation_v1_geocode_proto_rawDescData) + }) + return file_google_maps_addressvalidation_v1_geocode_proto_rawDescData +} + +var file_google_maps_addressvalidation_v1_geocode_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_google_maps_addressvalidation_v1_geocode_proto_goTypes = []interface{}{ + (*Geocode)(nil), // 0: google.maps.addressvalidation.v1.Geocode + (*PlusCode)(nil), // 1: google.maps.addressvalidation.v1.PlusCode + (*latlng.LatLng)(nil), // 2: google.type.LatLng + (*viewport.Viewport)(nil), // 3: google.geo.type.Viewport +} +var file_google_maps_addressvalidation_v1_geocode_proto_depIdxs = []int32{ + 2, // 0: google.maps.addressvalidation.v1.Geocode.location:type_name -> google.type.LatLng + 1, // 1: google.maps.addressvalidation.v1.Geocode.plus_code:type_name -> google.maps.addressvalidation.v1.PlusCode + 3, // 2: google.maps.addressvalidation.v1.Geocode.bounds:type_name -> google.geo.type.Viewport + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_google_maps_addressvalidation_v1_geocode_proto_init() } +func file_google_maps_addressvalidation_v1_geocode_proto_init() { + if File_google_maps_addressvalidation_v1_geocode_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_maps_addressvalidation_v1_geocode_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Geocode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_geocode_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlusCode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_maps_addressvalidation_v1_geocode_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_maps_addressvalidation_v1_geocode_proto_goTypes, + DependencyIndexes: file_google_maps_addressvalidation_v1_geocode_proto_depIdxs, + MessageInfos: file_google_maps_addressvalidation_v1_geocode_proto_msgTypes, + }.Build() + File_google_maps_addressvalidation_v1_geocode_proto = out.File + file_google_maps_addressvalidation_v1_geocode_proto_rawDesc = nil + file_google_maps_addressvalidation_v1_geocode_proto_goTypes = nil + file_google_maps_addressvalidation_v1_geocode_proto_depIdxs = nil +} diff --git a/maps/addressvalidation/apiv1/addressvalidationpb/metadata.pb.go b/maps/addressvalidation/apiv1/addressvalidationpb/metadata.pb.go new file mode 100644 index 000000000000..1afb4214b60d --- /dev/null +++ b/maps/addressvalidation/apiv1/addressvalidationpb/metadata.pb.go @@ -0,0 +1,208 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.19.4 +// source: google/maps/addressvalidation/v1/metadata.proto + +package addressvalidationpb + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The metadata for the address. +type AddressMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates that this is the address of a business. + // If unset, indicates that the value is unknown. + Business *bool `protobuf:"varint,2,opt,name=business,proto3,oneof" json:"business,omitempty"` + // Indicates that the address of a PO box. + // If unset, indicates that the value is unknown. + PoBox *bool `protobuf:"varint,3,opt,name=po_box,json=poBox,proto3,oneof" json:"po_box,omitempty"` + // Indicates that this is the address of a residence. + // If unset, indicates that the value is unknown. + Residential *bool `protobuf:"varint,6,opt,name=residential,proto3,oneof" json:"residential,omitempty"` +} + +func (x *AddressMetadata) Reset() { + *x = AddressMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddressMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddressMetadata) ProtoMessage() {} + +func (x *AddressMetadata) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_metadata_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddressMetadata.ProtoReflect.Descriptor instead. +func (*AddressMetadata) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_metadata_proto_rawDescGZIP(), []int{0} +} + +func (x *AddressMetadata) GetBusiness() bool { + if x != nil && x.Business != nil { + return *x.Business + } + return false +} + +func (x *AddressMetadata) GetPoBox() bool { + if x != nil && x.PoBox != nil { + return *x.PoBox + } + return false +} + +func (x *AddressMetadata) GetResidential() bool { + if x != nil && x.Residential != nil { + return *x.Residential + } + return false +} + +var File_google_maps_addressvalidation_v1_metadata_proto protoreflect.FileDescriptor + +var file_google_maps_addressvalidation_v1_metadata_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x08, 0x62, 0x75, 0x73, 0x69, 0x6e, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, 0x62, 0x75, 0x73, + 0x69, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x70, 0x6f, 0x5f, 0x62, + 0x6f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x05, 0x70, 0x6f, 0x42, 0x6f, + 0x78, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0b, 0x72, 0x65, 0x73, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x6f, 0x5f, + 0x62, 0x6f, 0x78, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x72, 0x65, 0x73, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x42, 0x83, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, + 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x07, 0x47, 0x4d, 0x50, 0x41, 0x56, 0x56, 0x31, 0xaa, 0x02, 0x20, + 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x4d, 0x61, + 0x70, 0x73, 0x3a, 0x3a, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_google_maps_addressvalidation_v1_metadata_proto_rawDescOnce sync.Once + file_google_maps_addressvalidation_v1_metadata_proto_rawDescData = file_google_maps_addressvalidation_v1_metadata_proto_rawDesc +) + +func file_google_maps_addressvalidation_v1_metadata_proto_rawDescGZIP() []byte { + file_google_maps_addressvalidation_v1_metadata_proto_rawDescOnce.Do(func() { + file_google_maps_addressvalidation_v1_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_addressvalidation_v1_metadata_proto_rawDescData) + }) + return file_google_maps_addressvalidation_v1_metadata_proto_rawDescData +} + +var file_google_maps_addressvalidation_v1_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_maps_addressvalidation_v1_metadata_proto_goTypes = []interface{}{ + (*AddressMetadata)(nil), // 0: google.maps.addressvalidation.v1.AddressMetadata +} +var file_google_maps_addressvalidation_v1_metadata_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_maps_addressvalidation_v1_metadata_proto_init() } +func file_google_maps_addressvalidation_v1_metadata_proto_init() { + if File_google_maps_addressvalidation_v1_metadata_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_maps_addressvalidation_v1_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddressMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_google_maps_addressvalidation_v1_metadata_proto_msgTypes[0].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_maps_addressvalidation_v1_metadata_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_maps_addressvalidation_v1_metadata_proto_goTypes, + DependencyIndexes: file_google_maps_addressvalidation_v1_metadata_proto_depIdxs, + MessageInfos: file_google_maps_addressvalidation_v1_metadata_proto_msgTypes, + }.Build() + File_google_maps_addressvalidation_v1_metadata_proto = out.File + file_google_maps_addressvalidation_v1_metadata_proto_rawDesc = nil + file_google_maps_addressvalidation_v1_metadata_proto_goTypes = nil + file_google_maps_addressvalidation_v1_metadata_proto_depIdxs = nil +} diff --git a/maps/addressvalidation/apiv1/addressvalidationpb/usps_data.pb.go b/maps/addressvalidation/apiv1/addressvalidationpb/usps_data.pb.go new file mode 100644 index 000000000000..2f9194eb0b08 --- /dev/null +++ b/maps/addressvalidation/apiv1/addressvalidationpb/usps_data.pb.go @@ -0,0 +1,724 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.19.4 +// source: google/maps/addressvalidation/v1/usps_data.proto + +package addressvalidationpb + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// USPS representation of a US address. +type UspsAddress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // First address line. + FirstAddressLine string `protobuf:"bytes,1,opt,name=first_address_line,json=firstAddressLine,proto3" json:"first_address_line,omitempty"` + // Firm name. + Firm string `protobuf:"bytes,2,opt,name=firm,proto3" json:"firm,omitempty"` + // Second address line. + SecondAddressLine string `protobuf:"bytes,3,opt,name=second_address_line,json=secondAddressLine,proto3" json:"second_address_line,omitempty"` + // Puerto Rican urbanization name. + Urbanization string `protobuf:"bytes,4,opt,name=urbanization,proto3" json:"urbanization,omitempty"` + // City + state + postal code. + CityStateZipAddressLine string `protobuf:"bytes,5,opt,name=city_state_zip_address_line,json=cityStateZipAddressLine,proto3" json:"city_state_zip_address_line,omitempty"` + // City name. + City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"` + // 2 letter state code. + State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` + // Postal code e.g. 10009. + ZipCode string `protobuf:"bytes,8,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` + // 4-digit postal code extension e.g. 5023. + ZipCodeExtension string `protobuf:"bytes,9,opt,name=zip_code_extension,json=zipCodeExtension,proto3" json:"zip_code_extension,omitempty"` +} + +func (x *UspsAddress) Reset() { + *x = UspsAddress{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UspsAddress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UspsAddress) ProtoMessage() {} + +func (x *UspsAddress) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UspsAddress.ProtoReflect.Descriptor instead. +func (*UspsAddress) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_usps_data_proto_rawDescGZIP(), []int{0} +} + +func (x *UspsAddress) GetFirstAddressLine() string { + if x != nil { + return x.FirstAddressLine + } + return "" +} + +func (x *UspsAddress) GetFirm() string { + if x != nil { + return x.Firm + } + return "" +} + +func (x *UspsAddress) GetSecondAddressLine() string { + if x != nil { + return x.SecondAddressLine + } + return "" +} + +func (x *UspsAddress) GetUrbanization() string { + if x != nil { + return x.Urbanization + } + return "" +} + +func (x *UspsAddress) GetCityStateZipAddressLine() string { + if x != nil { + return x.CityStateZipAddressLine + } + return "" +} + +func (x *UspsAddress) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *UspsAddress) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *UspsAddress) GetZipCode() string { + if x != nil { + return x.ZipCode + } + return "" +} + +func (x *UspsAddress) GetZipCodeExtension() string { + if x != nil { + return x.ZipCodeExtension + } + return "" +} + +// The USPS data for the address. +type UspsData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // USPS standardized address. + StandardizedAddress *UspsAddress `protobuf:"bytes,1,opt,name=standardized_address,json=standardizedAddress,proto3" json:"standardized_address,omitempty"` + // 2 digit delivery point code + DeliveryPointCode string `protobuf:"bytes,2,opt,name=delivery_point_code,json=deliveryPointCode,proto3" json:"delivery_point_code,omitempty"` + // The delivery point check digit. This number is added to the end of the + // delivery_point_barcode for mechanically scanned mail. Adding all the + // digits of the delivery_point_barcode, delivery_point_check_digit, postal + // code, and ZIP+4 together should yield a number divisible by 10. + DeliveryPointCheckDigit string `protobuf:"bytes,3,opt,name=delivery_point_check_digit,json=deliveryPointCheckDigit,proto3" json:"delivery_point_check_digit,omitempty"` + // The possible values for DPV confirmation. Returns a single character. + // + // * `Y`: Address was DPV confirmed for primary and any secondary numbers. + // * `N`: Primary and any secondary number information failed to + // DPV confirm. + // * `S`: Address was DPV confirmed for the primary number only, and the + // secondary number information was present by not confirmed. + // * `D`: Address was DPV confirmed for the primary number only, and the + // secondary number information was missing. + DpvConfirmation string `protobuf:"bytes,4,opt,name=dpv_confirmation,json=dpvConfirmation,proto3" json:"dpv_confirmation,omitempty"` + // The footnotes from delivery point validation. + // Multiple footnotes may be strung together in the same string. + // + // * `AA`: Input address matched to the ZIP+4 file + // * `A1`: Input address was not matched to the ZIP+4 file + // * `BB`: Matched to DPV (all components) + // * `CC`: Secondary number not matched (present but invalid) + // * `N1`: High-rise address missing secondary number + // * `M1`: Primary number missing + // * `M3`: Primary number invalid + // * `P1`: Input address RR or HC box number missing + // * `P3`: Input address PO, RR, or HC Box number invalid + // * `F1`: Input address matched to a military address + // * `G1`: Input address matched to a general delivery address + // * `U1`: Input address matched to a unique ZIP code + // * `PB`: Input address matched to PBSA record + // * `RR`: DPV confirmed address with PMB information + // * `R1`: DPV confirmed address without PMB information + // * `R7`: Carrier Route R777 or R779 record + DpvFootnote string `protobuf:"bytes,5,opt,name=dpv_footnote,json=dpvFootnote,proto3" json:"dpv_footnote,omitempty"` + // Indicates if the address is a CMRA (Commercial Mail Receiving Agency)--a + // private business receiving mail for clients. Returns a single character. + // + // * `Y`: The address is a CMRA + // * `N`: The address is not a CMRA + DpvCmra string `protobuf:"bytes,6,opt,name=dpv_cmra,json=dpvCmra,proto3" json:"dpv_cmra,omitempty"` + // Is this place vacant? + // Returns a single character. + // + // * `Y`: The address is vacant + // * `N`: The address is not vacant + DpvVacant string `protobuf:"bytes,7,opt,name=dpv_vacant,json=dpvVacant,proto3" json:"dpv_vacant,omitempty"` + // Is this a no stat address or an active address? + // No stat addresses are ones which are not continuously occupied or addresses + // that the USPS does not service. Returns a single character. + // + // * `Y`: The address is not active + // * `N`: The address is active + DpvNoStat string `protobuf:"bytes,8,opt,name=dpv_no_stat,json=dpvNoStat,proto3" json:"dpv_no_stat,omitempty"` + // The carrier route code. + // A four character code consisting of a one letter prefix and a three digit + // route designator. + // + // Prefixes: + // + // * `C`: Carrier route (or city route) + // * `R`: Rural route + // * `H`: Highway Contract Route + // * `B`: Post Office Box Section + // * `G`: General delivery unit + CarrierRoute string `protobuf:"bytes,9,opt,name=carrier_route,json=carrierRoute,proto3" json:"carrier_route,omitempty"` + // Carrier route rate sort indicator. + CarrierRouteIndicator string `protobuf:"bytes,10,opt,name=carrier_route_indicator,json=carrierRouteIndicator,proto3" json:"carrier_route_indicator,omitempty"` + // The delivery address is matchable, but the EWS file indicates that an exact + // match will be available soon. + EwsNoMatch bool `protobuf:"varint,11,opt,name=ews_no_match,json=ewsNoMatch,proto3" json:"ews_no_match,omitempty"` + // Main post office city. + PostOfficeCity string `protobuf:"bytes,12,opt,name=post_office_city,json=postOfficeCity,proto3" json:"post_office_city,omitempty"` + // Main post office state. + PostOfficeState string `protobuf:"bytes,13,opt,name=post_office_state,json=postOfficeState,proto3" json:"post_office_state,omitempty"` + // Abbreviated city. + AbbreviatedCity string `protobuf:"bytes,14,opt,name=abbreviated_city,json=abbreviatedCity,proto3" json:"abbreviated_city,omitempty"` + // FIPS county code. + FipsCountyCode string `protobuf:"bytes,15,opt,name=fips_county_code,json=fipsCountyCode,proto3" json:"fips_county_code,omitempty"` + // County name. + County string `protobuf:"bytes,16,opt,name=county,proto3" json:"county,omitempty"` + // Enhanced Line of Travel (eLOT) number. + ElotNumber string `protobuf:"bytes,17,opt,name=elot_number,json=elotNumber,proto3" json:"elot_number,omitempty"` + // eLOT Ascending/Descending Flag (A/D). + ElotFlag string `protobuf:"bytes,18,opt,name=elot_flag,json=elotFlag,proto3" json:"elot_flag,omitempty"` + // LACSLink return code. + LacsLinkReturnCode string `protobuf:"bytes,19,opt,name=lacs_link_return_code,json=lacsLinkReturnCode,proto3" json:"lacs_link_return_code,omitempty"` + // LACSLink indicator. + LacsLinkIndicator string `protobuf:"bytes,20,opt,name=lacs_link_indicator,json=lacsLinkIndicator,proto3" json:"lacs_link_indicator,omitempty"` + // PO Box only postal code. + PoBoxOnlyPostalCode bool `protobuf:"varint,21,opt,name=po_box_only_postal_code,json=poBoxOnlyPostalCode,proto3" json:"po_box_only_postal_code,omitempty"` + // Footnotes from matching a street or highrise record to suite information. + // If business name match is found, the secondary number is returned. + // + // * `A`: SuiteLink record match, business address improved. + // * `00`: No match, business address is not improved. + SuitelinkFootnote string `protobuf:"bytes,22,opt,name=suitelink_footnote,json=suitelinkFootnote,proto3" json:"suitelink_footnote,omitempty"` + // PMB (Private Mail Box) unit designator. + PmbDesignator string `protobuf:"bytes,23,opt,name=pmb_designator,json=pmbDesignator,proto3" json:"pmb_designator,omitempty"` + // PMB (Private Mail Box) number; + PmbNumber string `protobuf:"bytes,24,opt,name=pmb_number,json=pmbNumber,proto3" json:"pmb_number,omitempty"` + // Type of the address record that matches the input address. + // + // * `F`: FIRM. This is a match to a Firm Record, which is the finest level of + // match available for an address. + // * `G`: GENERAL DELIVERY. This is a match to a General Delivery record. + // * `H`: BUILDING / APARTMENT. This is a match to a Building or Apartment + // record. + // * `P`: POST OFFICE BOX. This is a match to a Post Office Box. + // * `R`: RURAL ROUTE or HIGHWAY CONTRACT: This is a match to either a Rural + // Route or a Highway Contract record, both of which may have associated Box + // Number ranges. + // * `S`: STREET RECORD: This is a match to a Street record containing a valid + // primary number range. + AddressRecordType string `protobuf:"bytes,25,opt,name=address_record_type,json=addressRecordType,proto3" json:"address_record_type,omitempty"` + // Indicator that a default address was found, but more specific addresses + // exists. + DefaultAddress bool `protobuf:"varint,26,opt,name=default_address,json=defaultAddress,proto3" json:"default_address,omitempty"` + // Error message for USPS data retrieval. This is populated when USPS + // processing is suspended because of the detection of artificially created + // addresses. + // + // The USPS data fields might not be populated when this error is present. + ErrorMessage string `protobuf:"bytes,27,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + // Indicator that the request has been CASS processed. + CassProcessed bool `protobuf:"varint,28,opt,name=cass_processed,json=cassProcessed,proto3" json:"cass_processed,omitempty"` +} + +func (x *UspsData) Reset() { + *x = UspsData{} + if protoimpl.UnsafeEnabled { + mi := &file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UspsData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UspsData) ProtoMessage() {} + +func (x *UspsData) ProtoReflect() protoreflect.Message { + mi := &file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UspsData.ProtoReflect.Descriptor instead. +func (*UspsData) Descriptor() ([]byte, []int) { + return file_google_maps_addressvalidation_v1_usps_data_proto_rawDescGZIP(), []int{1} +} + +func (x *UspsData) GetStandardizedAddress() *UspsAddress { + if x != nil { + return x.StandardizedAddress + } + return nil +} + +func (x *UspsData) GetDeliveryPointCode() string { + if x != nil { + return x.DeliveryPointCode + } + return "" +} + +func (x *UspsData) GetDeliveryPointCheckDigit() string { + if x != nil { + return x.DeliveryPointCheckDigit + } + return "" +} + +func (x *UspsData) GetDpvConfirmation() string { + if x != nil { + return x.DpvConfirmation + } + return "" +} + +func (x *UspsData) GetDpvFootnote() string { + if x != nil { + return x.DpvFootnote + } + return "" +} + +func (x *UspsData) GetDpvCmra() string { + if x != nil { + return x.DpvCmra + } + return "" +} + +func (x *UspsData) GetDpvVacant() string { + if x != nil { + return x.DpvVacant + } + return "" +} + +func (x *UspsData) GetDpvNoStat() string { + if x != nil { + return x.DpvNoStat + } + return "" +} + +func (x *UspsData) GetCarrierRoute() string { + if x != nil { + return x.CarrierRoute + } + return "" +} + +func (x *UspsData) GetCarrierRouteIndicator() string { + if x != nil { + return x.CarrierRouteIndicator + } + return "" +} + +func (x *UspsData) GetEwsNoMatch() bool { + if x != nil { + return x.EwsNoMatch + } + return false +} + +func (x *UspsData) GetPostOfficeCity() string { + if x != nil { + return x.PostOfficeCity + } + return "" +} + +func (x *UspsData) GetPostOfficeState() string { + if x != nil { + return x.PostOfficeState + } + return "" +} + +func (x *UspsData) GetAbbreviatedCity() string { + if x != nil { + return x.AbbreviatedCity + } + return "" +} + +func (x *UspsData) GetFipsCountyCode() string { + if x != nil { + return x.FipsCountyCode + } + return "" +} + +func (x *UspsData) GetCounty() string { + if x != nil { + return x.County + } + return "" +} + +func (x *UspsData) GetElotNumber() string { + if x != nil { + return x.ElotNumber + } + return "" +} + +func (x *UspsData) GetElotFlag() string { + if x != nil { + return x.ElotFlag + } + return "" +} + +func (x *UspsData) GetLacsLinkReturnCode() string { + if x != nil { + return x.LacsLinkReturnCode + } + return "" +} + +func (x *UspsData) GetLacsLinkIndicator() string { + if x != nil { + return x.LacsLinkIndicator + } + return "" +} + +func (x *UspsData) GetPoBoxOnlyPostalCode() bool { + if x != nil { + return x.PoBoxOnlyPostalCode + } + return false +} + +func (x *UspsData) GetSuitelinkFootnote() string { + if x != nil { + return x.SuitelinkFootnote + } + return "" +} + +func (x *UspsData) GetPmbDesignator() string { + if x != nil { + return x.PmbDesignator + } + return "" +} + +func (x *UspsData) GetPmbNumber() string { + if x != nil { + return x.PmbNumber + } + return "" +} + +func (x *UspsData) GetAddressRecordType() string { + if x != nil { + return x.AddressRecordType + } + return "" +} + +func (x *UspsData) GetDefaultAddress() bool { + if x != nil { + return x.DefaultAddress + } + return false +} + +func (x *UspsData) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage + } + return "" +} + +func (x *UspsData) GetCassProcessed() bool { + if x != nil { + return x.CassProcessed + } + return false +} + +var File_google_maps_addressvalidation_v1_usps_data_proto protoreflect.FileDescriptor + +var file_google_maps_addressvalidation_v1_usps_data_proto_rawDesc = []byte{ + 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x2f, 0x75, 0x73, 0x70, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x22, 0xd4, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x70, 0x73, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x66, 0x69, 0x72, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, + 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x66, 0x69, 0x72, 0x6d, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x72, 0x62, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x72, + 0x62, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1b, 0x63, 0x69, + 0x74, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x7a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x17, 0x63, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x5a, 0x69, 0x70, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x7a, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x7a, 0x69, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, + 0x12, 0x7a, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x7a, 0x69, 0x70, 0x43, 0x6f, + 0x64, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb4, 0x09, 0x0a, 0x08, + 0x55, 0x73, 0x70, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x60, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x6e, + 0x64, 0x61, 0x72, 0x64, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x70, 0x73, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x13, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x69, + 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x65, + 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, + 0x79, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x64, 0x65, + 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x5f, 0x64, 0x69, 0x67, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, + 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x44, 0x69, 0x67, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x70, 0x76, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x64, 0x70, 0x76, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x70, 0x76, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x6e, 0x6f, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x70, 0x76, 0x46, 0x6f, 0x6f, + 0x74, 0x6e, 0x6f, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x70, 0x76, 0x5f, 0x63, 0x6d, 0x72, + 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x70, 0x76, 0x43, 0x6d, 0x72, 0x61, + 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x70, 0x76, 0x5f, 0x76, 0x61, 0x63, 0x61, 0x6e, 0x74, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x70, 0x76, 0x56, 0x61, 0x63, 0x61, 0x6e, 0x74, 0x12, + 0x1e, 0x0a, 0x0b, 0x64, 0x70, 0x76, 0x5f, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x70, 0x76, 0x4e, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x72, 0x72, 0x69, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x61, 0x72, 0x72, 0x69, 0x65, 0x72, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x61, 0x72, 0x72, 0x69, 0x65, 0x72, 0x5f, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x61, 0x72, 0x72, 0x69, 0x65, 0x72, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0c, + 0x65, 0x77, 0x73, 0x5f, 0x6e, 0x6f, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x65, 0x77, 0x73, 0x4e, 0x6f, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x28, + 0x0a, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x69, + 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x74, 0x4f, 0x66, + 0x66, 0x69, 0x63, 0x65, 0x43, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, + 0x5f, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6f, 0x73, 0x74, 0x4f, 0x66, 0x66, 0x69, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x65, 0x64, 0x43, 0x69, 0x74, 0x79, 0x12, + 0x28, 0x0a, 0x10, 0x66, 0x69, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x79, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x70, 0x73, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6c, 0x6f, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6c, 0x6f, 0x74, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6c, 0x6f, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6c, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x12, + 0x31, 0x0a, 0x15, 0x6c, 0x61, 0x63, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x6c, 0x61, 0x63, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x43, 0x6f, + 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6c, 0x61, 0x63, 0x73, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, + 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x6c, 0x61, 0x63, 0x73, 0x4c, 0x69, 0x6e, 0x6b, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x17, 0x70, 0x6f, 0x5f, 0x62, 0x6f, 0x78, 0x5f, 0x6f, 0x6e, 0x6c, + 0x79, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x15, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x6f, 0x42, 0x6f, 0x78, 0x4f, 0x6e, 0x6c, 0x79, 0x50, 0x6f, + 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x75, 0x69, 0x74, + 0x65, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x66, 0x6f, 0x6f, 0x74, 0x6e, 0x6f, 0x74, 0x65, 0x18, 0x16, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x75, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x6e, 0x6b, 0x46, + 0x6f, 0x6f, 0x74, 0x6e, 0x6f, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6d, 0x62, 0x5f, 0x64, + 0x65, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x70, 0x6d, 0x62, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x6d, 0x62, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x18, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x6d, 0x62, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, + 0x13, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, + 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, + 0x61, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x1c, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x65, 0x64, 0x42, 0x83, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x55, 0x73, 0x70, + 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, + 0x01, 0x01, 0xa2, 0x02, 0x07, 0x47, 0x4d, 0x50, 0x41, 0x56, 0x56, 0x31, 0xaa, 0x02, 0x20, 0x47, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, + 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x4d, 0x61, 0x70, + 0x73, 0x3a, 0x3a, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_maps_addressvalidation_v1_usps_data_proto_rawDescOnce sync.Once + file_google_maps_addressvalidation_v1_usps_data_proto_rawDescData = file_google_maps_addressvalidation_v1_usps_data_proto_rawDesc +) + +func file_google_maps_addressvalidation_v1_usps_data_proto_rawDescGZIP() []byte { + file_google_maps_addressvalidation_v1_usps_data_proto_rawDescOnce.Do(func() { + file_google_maps_addressvalidation_v1_usps_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_addressvalidation_v1_usps_data_proto_rawDescData) + }) + return file_google_maps_addressvalidation_v1_usps_data_proto_rawDescData +} + +var file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_google_maps_addressvalidation_v1_usps_data_proto_goTypes = []interface{}{ + (*UspsAddress)(nil), // 0: google.maps.addressvalidation.v1.UspsAddress + (*UspsData)(nil), // 1: google.maps.addressvalidation.v1.UspsData +} +var file_google_maps_addressvalidation_v1_usps_data_proto_depIdxs = []int32{ + 0, // 0: google.maps.addressvalidation.v1.UspsData.standardized_address:type_name -> google.maps.addressvalidation.v1.UspsAddress + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_google_maps_addressvalidation_v1_usps_data_proto_init() } +func file_google_maps_addressvalidation_v1_usps_data_proto_init() { + if File_google_maps_addressvalidation_v1_usps_data_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UspsAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UspsData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_maps_addressvalidation_v1_usps_data_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_maps_addressvalidation_v1_usps_data_proto_goTypes, + DependencyIndexes: file_google_maps_addressvalidation_v1_usps_data_proto_depIdxs, + MessageInfos: file_google_maps_addressvalidation_v1_usps_data_proto_msgTypes, + }.Build() + File_google_maps_addressvalidation_v1_usps_data_proto = out.File + file_google_maps_addressvalidation_v1_usps_data_proto_rawDesc = nil + file_google_maps_addressvalidation_v1_usps_data_proto_goTypes = nil + file_google_maps_addressvalidation_v1_usps_data_proto_depIdxs = nil +} diff --git a/maps/addressvalidation/apiv1/doc.go b/maps/addressvalidation/apiv1/doc.go new file mode 100644 index 000000000000..d56158dab2ec --- /dev/null +++ b/maps/addressvalidation/apiv1/doc.go @@ -0,0 +1,175 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +// Package addressvalidation is an auto-generated package for the +// Address Validation API. +// +// The Address Validation API allows developers to verify the accuracy of +// addresses. Given an address, it returns information about the correctness +// of the components of the parsed address, a geocode, and a verdict on the +// deliverability of the parsed address. +// +// NOTE: This package is in beta. It is not stable, and may be subject to changes. +// +// # Example usage +// +// To get started with this package, create a client. +// +// ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options +// c, err := addressvalidation.NewClient(ctx) +// if err != nil { +// // TODO: Handle error. +// } +// defer c.Close() +// +// The client will use your default application credentials. Clients should be reused instead of created as needed. +// The methods of Client are safe for concurrent use by multiple goroutines. +// The returned client must be Closed when it is done being used. +// +// # Using the Client +// +// The following is an example of making an API call with the newly created client. +// +// ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options +// c, err := addressvalidation.NewClient(ctx) +// if err != nil { +// // TODO: Handle error. +// } +// defer c.Close() +// +// req := &addressvalidationpb.ValidateAddressRequest{ +// // TODO: Fill request struct fields. +// // See https://pkg.go.dev/cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb#ValidateAddressRequest. +// } +// resp, err := c.ValidateAddress(ctx, req) +// if err != nil { +// // TODO: Handle error. +// } +// // TODO: Use resp. +// _ = resp +// +// # Use of Context +// +// The ctx passed to NewClient is used for authentication requests and +// for creating the underlying connection, but is not used for subsequent calls. +// Individual methods on the client use the ctx given to them. +// +// To close the open connection, use the Close() method. +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +package addressvalidation // import "cloud.google.com/go/maps/addressvalidation/apiv1" + +import ( + "context" + "os" + "runtime" + "strconv" + "strings" + "unicode" + + "google.golang.org/api/option" + "google.golang.org/grpc/metadata" +) + +// For more information on implementing a client constructor hook, see +// https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors. +type clientHookParams struct{} +type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) + +var versionClient string + +func getVersionClient() string { + if versionClient == "" { + return "UNKNOWN" + } + return versionClient +} + +func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { + out, _ := metadata.FromOutgoingContext(ctx) + out = out.Copy() + for _, md := range mds { + for k, v := range md { + out[k] = append(out[k], v...) + } + } + return metadata.NewOutgoingContext(ctx, out) +} + +func checkDisableDeadlines() (bool, error) { + raw, ok := os.LookupEnv("GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE") + if !ok { + return false, nil + } + + b, err := strconv.ParseBool(raw) + return b, err +} + +// DefaultAuthScopes reports the default set of authentication scopes to use with this package. +func DefaultAuthScopes() []string { + return []string{ + "", + } +} + +// versionGo returns the Go runtime version. The returned string +// has no whitespace, suitable for reporting in header. +func versionGo() string { + const develPrefix = "devel +" + + s := runtime.Version() + if strings.HasPrefix(s, develPrefix) { + s = s[len(develPrefix):] + if p := strings.IndexFunc(s, unicode.IsSpace); p >= 0 { + s = s[:p] + } + return s + } + + notSemverRune := func(r rune) bool { + return !strings.ContainsRune("0123456789.", r) + } + + if strings.HasPrefix(s, "go1") { + s = s[2:] + var prerelease string + if p := strings.IndexFunc(s, notSemverRune); p >= 0 { + s, prerelease = s[:p], s[p:] + } + if strings.HasSuffix(s, ".") { + s += "0" + } else if strings.Count(s, ".") < 2 { + s += ".0" + } + if prerelease != "" { + s += "-" + prerelease + } + return s + } + return "UNKNOWN" +} diff --git a/maps/addressvalidation/apiv1/gapic_metadata.json b/maps/addressvalidation/apiv1/gapic_metadata.json new file mode 100644 index 000000000000..cfa315b7d69e --- /dev/null +++ b/maps/addressvalidation/apiv1/gapic_metadata.json @@ -0,0 +1,28 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods.", + "language": "go", + "protoPackage": "google.maps.addressvalidation.v1", + "libraryPackage": "cloud.google.com/go/maps/addressvalidation/apiv1", + "services": { + "AddressValidation": { + "clients": { + "grpc": { + "libraryClient": "Client", + "rpcs": { + "ProvideValidationFeedback": { + "methods": [ + "ProvideValidationFeedback" + ] + }, + "ValidateAddress": { + "methods": [ + "ValidateAddress" + ] + } + } + } + } + } + } +} diff --git a/maps/addressvalidation/apiv1/version.go b/maps/addressvalidation/apiv1/version.go new file mode 100644 index 000000000000..8d4c0286c802 --- /dev/null +++ b/maps/addressvalidation/apiv1/version.go @@ -0,0 +1,23 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by gapicgen. DO NOT EDIT. + +package addressvalidation + +import "cloud.google.com/go/maps/internal" + +func init() { + versionClient = internal.Version +} diff --git a/maps/go.mod b/maps/go.mod new file mode 100644 index 000000000000..5ec7fcf40092 --- /dev/null +++ b/maps/go.mod @@ -0,0 +1,26 @@ +module cloud.google.com/go/maps + +go 1.19 + +require ( + github.com/googleapis/gax-go/v2 v2.7.0 + google.golang.org/api v0.103.0 + google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66 + google.golang.org/grpc v1.50.1 + google.golang.org/protobuf v1.28.1 +) + +require ( + cloud.google.com/go/compute v1.12.1 // indirect + cloud.google.com/go/compute/metadata v0.2.1 // indirect + github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/google/go-cmp v0.5.9 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + go.opencensus.io v0.24.0 // indirect + golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect + golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect + golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect + golang.org/x/text v0.4.0 // indirect + google.golang.org/appengine v1.6.7 // indirect +) diff --git a/maps/go.sum b/maps/go.sum new file mode 100644 index 000000000000..828cfce589ea --- /dev/null +++ b/maps/go.sum @@ -0,0 +1,132 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= +cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= +cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= +cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= +github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b h1:tvrvnPFcdzp294diPnrdZZZ8XUt2Tyj7svb7X52iDuU= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 h1:nt+Q6cXKz4MosCSpnbMtqiQ8Oz0pxTef2B4Vca2lvfk= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= +google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66 h1:wx7sJ5GRBQLRcslTNcrTklsHhHevQvxgztW18txbbZM= +google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.50.1 h1:DS/BukOZWp8s6p4Dt/tOaJaTQyPyOoCcrjroHuCeLzY= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/maps/internal/version.go b/maps/internal/version.go new file mode 100644 index 000000000000..76e34d06e610 --- /dev/null +++ b/maps/internal/version.go @@ -0,0 +1,20 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by gapicgen. DO NOT EDIT. + +package internal + +// Version is the current tagged release of the library. +const Version = "0.0.0" diff --git a/release-please-config-yoshi-submodules.json b/release-please-config-yoshi-submodules.json index b6c845735c99..a0b54cb5de00 100644 --- a/release-please-config-yoshi-submodules.json +++ b/release-please-config-yoshi-submodules.json @@ -195,6 +195,9 @@ "managedidentities": { "component": "managedidentities" }, + "maps": { + "component": "maps" + }, "mediatranslation": { "component": "mediatranslation" },