UNPKG

@googlemaps/addressvalidation

Version:
1,530 lines (1,529 loc) 74.6 kB
{ "nested": { "google": { "nested": { "geo": { "nested": { "type": { "options": { "go_package": "google.golang.org/genproto/googleapis/geo/type/viewport;viewport", "java_multiple_files": true, "java_outer_classname": "ViewportProto", "java_package": "com.google.geo.type", "objc_class_prefix": "GGTP" }, "nested": { "Viewport": { "fields": { "low": { "type": "google.type.LatLng", "id": 1 }, "high": { "type": "google.type.LatLng", "id": 2 } } } } } } }, "type": { "options": { "cc_enable_arenas": true, "go_package": "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress", "java_multiple_files": true, "java_outer_classname": "PostalAddressProto", "java_package": "com.google.type", "objc_class_prefix": "GTP" }, "nested": { "LatLng": { "fields": { "latitude": { "type": "double", "id": 1 }, "longitude": { "type": "double", "id": 2 } } }, "PostalAddress": { "fields": { "revision": { "type": "int32", "id": 1 }, "regionCode": { "type": "string", "id": 2 }, "languageCode": { "type": "string", "id": 3 }, "postalCode": { "type": "string", "id": 4 }, "sortingCode": { "type": "string", "id": 5 }, "administrativeArea": { "type": "string", "id": 6 }, "locality": { "type": "string", "id": 7 }, "sublocality": { "type": "string", "id": 8 }, "addressLines": { "rule": "repeated", "type": "string", "id": 9 }, "recipients": { "rule": "repeated", "type": "string", "id": 10 }, "organization": { "type": "string", "id": 11 } } } } }, "maps": { "nested": { "addressvalidation": { "nested": { "v1": { "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.Maps.AddressValidation.V1", "go_package": "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb;addressvalidationpb", "java_multiple_files": true, "java_outer_classname": "UspsDataProto", "java_package": "com.google.maps.addressvalidation.v1", "objc_class_prefix": "GMPAVV1", "php_namespace": "Google\\Maps\\AddressValidation\\V1", "ruby_package": "Google::Maps::AddressValidation::V1" }, "nested": { "Address": { "fields": { "formattedAddress": { "type": "string", "id": 2 }, "postalAddress": { "type": "google.type.PostalAddress", "id": 3 }, "addressComponents": { "rule": "repeated", "type": "AddressComponent", "id": 4, "options": { "(google.api.field_behavior)": "UNORDERED_LIST" } }, "missingComponentTypes": { "rule": "repeated", "type": "string", "id": 5 }, "unconfirmedComponentTypes": { "rule": "repeated", "type": "string", "id": 6 }, "unresolvedTokens": { "rule": "repeated", "type": "string", "id": 7 } } }, "AddressComponent": { "fields": { "componentName": { "type": "ComponentName", "id": 1 }, "componentType": { "type": "string", "id": 2 }, "confirmationLevel": { "type": "ConfirmationLevel", "id": 3 }, "inferred": { "type": "bool", "id": 4 }, "spellCorrected": { "type": "bool", "id": 5 }, "replaced": { "type": "bool", "id": 6 }, "unexpected": { "type": "bool", "id": 7 } }, "nested": { "ConfirmationLevel": { "values": { "CONFIRMATION_LEVEL_UNSPECIFIED": 0, "CONFIRMED": 1, "UNCONFIRMED_BUT_PLAUSIBLE": 2, "UNCONFIRMED_AND_SUSPICIOUS": 3 } } } }, "ComponentName": { "fields": { "text": { "type": "string", "id": 1 }, "languageCode": { "type": "string", "id": 2 } } }, "AddressValidation": { "options": { "(google.api.default_host)": "addressvalidation.googleapis.com" }, "methods": { "ValidateAddress": { "requestType": "ValidateAddressRequest", "responseType": "ValidateAddressResponse", "options": { "(google.api.http).post": "/v1:validateAddress", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1:validateAddress", "body": "*" } } ] }, "ProvideValidationFeedback": { "requestType": "ProvideValidationFeedbackRequest", "responseType": "ProvideValidationFeedbackResponse", "options": { "(google.api.http).post": "/v1:provideValidationFeedback", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1:provideValidationFeedback", "body": "*" } } ] } } }, "ValidateAddressRequest": { "fields": { "address": { "type": "google.type.PostalAddress", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "previousResponseId": { "type": "string", "id": 2 }, "enableUspsCass": { "type": "bool", "id": 3 }, "sessionToken": { "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ValidateAddressResponse": { "fields": { "result": { "type": "ValidationResult", "id": 1 }, "responseId": { "type": "string", "id": 2 } } }, "ProvideValidationFeedbackRequest": { "fields": { "conclusion": { "type": "ValidationConclusion", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "responseId": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } }, "nested": { "ValidationConclusion": { "values": { "VALIDATION_CONCLUSION_UNSPECIFIED": 0, "VALIDATED_VERSION_USED": 1, "USER_VERSION_USED": 2, "UNVALIDATED_VERSION_USED": 3, "UNUSED": 4 } } } }, "ProvideValidationFeedbackResponse": { "fields": {} }, "ValidationResult": { "fields": { "verdict": { "type": "Verdict", "id": 1 }, "address": { "type": "Address", "id": 2 }, "geocode": { "type": "Geocode", "id": 3 }, "metadata": { "type": "AddressMetadata", "id": 4 }, "uspsData": { "type": "UspsData", "id": 5 } } }, "Verdict": { "fields": { "inputGranularity": { "type": "Granularity", "id": 1 }, "validationGranularity": { "type": "Granularity", "id": 2 }, "geocodeGranularity": { "type": "Granularity", "id": 3 }, "addressComplete": { "type": "bool", "id": 4 }, "hasUnconfirmedComponents": { "type": "bool", "id": 5 }, "hasInferredComponents": { "type": "bool", "id": 6 }, "hasReplacedComponents": { "type": "bool", "id": 7 } }, "nested": { "Granularity": { "values": { "GRANULARITY_UNSPECIFIED": 0, "SUB_PREMISE": 1, "PREMISE": 2, "PREMISE_PROXIMITY": 3, "BLOCK": 4, "ROUTE": 5, "OTHER": 6 } } } }, "Geocode": { "fields": { "location": { "type": "google.type.LatLng", "id": 1 }, "plusCode": { "type": "PlusCode", "id": 2 }, "bounds": { "type": "google.geo.type.Viewport", "id": 4 }, "featureSizeMeters": { "type": "float", "id": 5 }, "placeId": { "type": "string", "id": 6 }, "placeTypes": { "rule": "repeated", "type": "string", "id": 7 } } }, "PlusCode": { "fields": { "globalCode": { "type": "string", "id": 1 }, "compoundCode": { "type": "string", "id": 2 } } }, "AddressMetadata": { "oneofs": { "_business": { "oneof": [ "business" ] }, "_poBox": { "oneof": [ "poBox" ] }, "_residential": { "oneof": [ "residential" ] } }, "fields": { "business": { "type": "bool", "id": 2, "options": { "proto3_optional": true } }, "poBox": { "type": "bool", "id": 3, "options": { "proto3_optional": true } }, "residential": { "type": "bool", "id": 6, "options": { "proto3_optional": true } } } }, "UspsAddress": { "fields": { "firstAddressLine": { "type": "string", "id": 1 }, "firm": { "type": "string", "id": 2 }, "secondAddressLine": { "type": "string", "id": 3 }, "urbanization": { "type": "string", "id": 4 }, "cityStateZipAddressLine": { "type": "string", "id": 5 }, "city": { "type": "string", "id": 6 }, "state": { "type": "string", "id": 7 }, "zipCode": { "type": "string", "id": 8 }, "zipCodeExtension": { "type": "string", "id": 9 } } }, "UspsData": { "fields": { "standardizedAddress": { "type": "UspsAddress", "id": 1 }, "deliveryPointCode": { "type": "string", "id": 2 }, "deliveryPointCheckDigit": { "type": "string", "id": 3 }, "dpvConfirmation": { "type": "string", "id": 4 }, "dpvFootnote": { "type": "string", "id": 5 }, "dpvCmra": { "type": "string", "id": 6 }, "dpvVacant": { "type": "string", "id": 7 }, "dpvNoStat": { "type": "string", "id": 8 }, "dpvNoStatReasonCode": { "type": "int32", "id": 29 }, "dpvDrop": { "type": "string", "id": 30 }, "dpvThrowback": { "type": "string", "id": 31 }, "dpvNonDeliveryDays": { "type": "string", "id": 32 }, "dpvNonDeliveryDaysValues": { "type": "int32", "id": 33 }, "dpvNoSecureLocation": { "type": "string", "id": 34 }, "dpvPbsa": { "type": "string", "id": 35 }, "dpvDoorNotAccessible": { "type": "string", "id": 36 }, "dpvEnhancedDeliveryCode": { "type": "string", "id": 37 }, "carrierRoute": { "type": "string", "id": 9 }, "carrierRouteIndicator": { "type": "string", "id": 10 }, "ewsNoMatch": { "type": "bool", "id": 11 }, "postOfficeCity": { "type": "string", "id": 12 }, "postOfficeState": { "type": "string", "id": 13 }, "abbreviatedCity": { "type": "string", "id": 14 }, "fipsCountyCode": { "type": "string", "id": 15 }, "county": { "type": "string", "id": 16 }, "elotNumber": { "type": "string", "id": 17 }, "elotFlag": { "type": "string", "id": 18 }, "lacsLinkReturnCode": { "type": "string", "id": 19 }, "lacsLinkIndicator": { "type": "string", "id": 20 }, "poBoxOnlyPostalCode": { "type": "bool", "id": 21 }, "suitelinkFootnote": { "type": "string", "id": 22 }, "pmbDesignator": { "type": "string", "id": 23 }, "pmbNumber": { "type": "string", "id": 24 }, "addressRecordType": { "type": "string", "id": 25 }, "defaultAddress": { "type": "bool", "id": 26 }, "errorMessage": { "type": "string", "id": 27 }, "cassProcessed": { "type": "bool", "id": 28 } } } } } } } } }, "api": { "options": { "go_package": "google.golang.org/genproto/googleapis/api;api", "java_multiple_files": true, "java_outer_classname": "LaunchStageProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true }, "nested": { "fieldBehavior": { "rule": "repeated", "type": "google.api.FieldBehavior", "id": 1052, "extend": "google.protobuf.FieldOptions" }, "FieldBehavior": { "values": { "FIELD_BEHAVIOR_UNSPECIFIED": 0, "OPTIONAL": 1, "REQUIRED": 2, "OUTPUT_ONLY": 3, "INPUT_ONLY": 4, "IMMUTABLE": 5, "UNORDERED_LIST": 6, "NON_EMPTY_DEFAULT": 7, "IDENTIFIER": 8 } }, "http": { "type": "HttpRule", "id": 72295728, "extend": "google.protobuf.MethodOptions" }, "Http": { "fields": { "rules": { "rule": "repeated", "type": "HttpRule", "id": 1 }, "fullyDecodeReservedExpansion": { "type": "bool", "id": 2 } } }, "HttpRule": { "oneofs": { "pattern": { "oneof": [ "get", "put", "post", "delete", "patch", "custom" ] } }, "fields": { "selector": { "type": "string", "id": 1 }, "get": { "type": "string", "id": 2 }, "put": { "type": "string", "id": 3 }, "post": { "type": "string", "id": 4 }, "delete": { "type": "string", "id": 5 }, "patch": { "type": "string", "id": 6 }, "custom": { "type": "CustomHttpPattern", "id": 8 }, "body": { "type": "string", "id": 7 }, "responseBody": { "type": "string", "id": 12 }, "additionalBindings": { "rule": "repeated", "type": "HttpRule", "id": 11 } } }, "CustomHttpPattern": { "fields": { "kind": { "type": "string", "id": 1 }, "path": { "type": "string", "id": 2 } } }, "methodSignature": { "rule": "repeated", "type": "string", "id": 1051, "extend": "google.protobuf.MethodOptions" }, "defaultHost": { "type": "string", "id": 1049, "extend": "google.protobuf.ServiceOptions" }, "oauthScopes": { "type": "string", "id": 1050, "extend": "google.protobuf.ServiceOptions" }, "CommonLanguageSettings": { "fields": { "referenceDocsUri": { "type": "string", "id": 1, "options": { "deprecated": true } }, "destinations": { "rule": "repeated", "type": "ClientLibraryDestination", "id": 2 } } }, "ClientLibrarySettings": { "fields": { "version": { "type": "string", "id": 1 }, "launchStage": { "type": "LaunchStage", "id": 2 }, "restNumericEnums": { "type": "bool", "id": 3 }, "javaSettings": { "type": "JavaSettings", "id": 21 }, "cppSettings": { "type": "CppSettings", "id": 22 }, "phpSettings": { "type": "PhpSettings", "id": 23 }, "pythonSettings": { "type": "PythonSettings", "id": 24 }, "nodeSettings": { "type": "NodeSettings", "id": 25 }, "dotnetSettings": { "type": "DotnetSettings", "id": 26 }, "rubySettings": { "type": "RubySettings", "id": 27 }, "goSettings": { "type": "GoSettings", "id": 28 } } }, "Publishing": { "fields": { "methodSettings": { "rule": "repeated", "type": "MethodSettings", "id": 2 }, "newIssueUri": { "type": "string", "id": 101 }, "documentationUri": { "type": "string", "id": 102 }, "apiShortName": { "type": "string", "id": 103 }, "githubLabel": { "type": "string", "id": 104 }, "codeownerGithubTeams": { "rule": "repeated", "type": "string", "id": 105 }, "docTagPrefix": { "type": "string", "id": 106 }, "organization": { "type": "ClientLibraryOrganization", "id": 107 }, "librarySettings": { "rule": "repeated", "type": "ClientLibrarySettings", "id": 109 }, "protoReferenceDocumentationUri": { "type": "string", "id": 110 } } }, "JavaSettings": { "fields": { "libraryPackage": { "type": "string", "id": 1 }, "serviceClassNames": { "keyType": "string", "type": "string", "id": 2 }, "common": { "type": "CommonLanguageSettings", "id": 3 } } }, "CppSettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 } } }, "PhpSettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 } } }, "PythonSettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 } } }, "NodeSettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 } } }, "DotnetSettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 }, "renamedServices": { "keyType": "string", "type": "string", "id": 2 }, "renamedResources": { "keyType": "string", "type": "string", "id": 3 }, "ignoredResources": { "rule": "repeated", "type": "string", "id": 4 }, "forcedNamespaceAliases": { "rule": "repeated", "type": "string", "id": 5 }, "handwrittenSignatures": { "rule": "repeated", "type": "string", "id": 6 } } }, "RubySettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 } } }, "GoSettings": { "fields": { "common": { "type": "CommonLanguageSettings", "id": 1 } } }, "MethodSettings": { "fields": { "selector": { "type": "string", "id": 1 }, "longRunning": { "type": "LongRunning", "id": 2 }, "autoPopulatedFields": { "rule": "repeated", "type": "string", "id": 3 } }, "nested": { "LongRunning": { "fields": { "initialPollDelay": { "type": "google.protobuf.Duration", "id": 1 }, "pollDelayMultiplier": { "type": "float", "id": 2 }, "maxPollDelay": { "type": "google.protobuf.Duration", "id": 3 }, "totalPollTimeout": { "type": "google.protobuf.Duration", "id": 4 } } } } }, "ClientLibraryOrganization": { "values": { "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": 0, "CLOUD": 1, "ADS": 2, "PHOTOS": 3, "STREET_VIEW": 4, "SHOPPING": 5, "GEO": 6, "GENERATIVE_AI": 7 } }, "ClientLibraryDestination": { "values": { "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": 0, "GITHUB": 10, "PACKAGE_MANAGER": 20 } }, "LaunchStage": { "values": { "LAUNCH_STAGE_UNSPECIFIED": 0, "UNIMPLEMENTED": 6, "PRELAUNCH": 7, "EARLY_ACCESS": 1, "ALPHA": 2, "BETA": 3, "GA": 4, "DEPRECATED": 5 } } } }, "protobuf": { "options": { "go_package": "google.golang.org/protobuf/types/descriptorpb", "java_package": "com.google.protobuf", "java_outer_classname": "DescriptorProtos", "csharp_namespace": "Google.Protobuf.Reflection", "objc_class_prefix": "GPB", "cc_enable_arenas": true, "optimize_for": "SPEED" }, "nested": { "FileDescriptorSet": { "fields": { "file": { "rule": "repeated", "type": "FileDescriptorProto", "id": 1 } } }, "Edition": { "values": { "EDITION_UNKNOWN": 0, "EDITION_PROTO2": 998, "EDITION_PROTO3": 999, "EDITION_2023": 1000, "EDITION_2024": 1001, "EDITION_1_TEST_ONLY": 1, "EDITION_2_TEST_ONLY": 2, "EDITION_99997_TEST_ONLY": 99997, "EDITION_99998_TEST_ONLY": 99998, "EDITION_99999_TEST_ONLY": 99999, "EDITION_MAX": 2147483647 } }, "FileDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "package": { "type": "string", "id": 2 }, "dependency": { "rule": "repeated", "type": "string", "id": 3 }, "publicDependency": { "rule": "repeated", "type": "int32", "id": 10, "options": { "packed": false } }, "weakDependency": { "rule": "repeated", "type": "int32", "id": 11, "options": { "packed": false } }, "messageType": { "rule": "repeated", "type": "DescriptorProto", "id": 4 }, "enumType": { "rule": "repeated", "type": "EnumDescriptorProto", "id": 5 }, "service": { "rule": "repeated", "type": "ServiceDescriptorProto", "id": 6 }, "extension": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 7 }, "options": { "type": "FileOptions", "id": 8 }, "sourceCodeInfo": { "type": "SourceCodeInfo", "id": 9 }, "syntax": { "type": "string", "id": 12 }, "edition": { "type": "Edition", "id": 14 } } }, "DescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "field": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 2 }, "extension": { "rule": "repeated", "type": "FieldDescriptorProto", "id": 6 }, "nestedType": { "rule": "repeated", "type": "DescriptorProto", "id": 3 }, "enumType": { "rule": "repeated", "type": "EnumDescriptorProto", "id": 4 }, "extensionRange": { "rule": "repeated", "type": "ExtensionRange", "id": 5 }, "oneofDecl": { "rule": "repeated", "type": "OneofDescriptorProto", "id": 8 }, "options": { "type": "MessageOptions", "id": 7 }, "reservedRange": { "rule": "repeated", "type": "ReservedRange", "id": 9 }, "reservedName": { "rule": "repeated", "type": "string", "id": 10 } }, "nested": { "ExtensionRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 }, "options": { "type": "ExtensionRangeOptions", "id": 3 } } }, "ReservedRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 } } } } }, "ExtensionRangeOptions": { "fields": { "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", "id": 999 }, "declaration": { "rule": "repeated", "type": "Declaration", "id": 2, "options": { "retention": "RETENTION_SOURCE" } }, "features": { "type": "FeatureSet", "id": 50 }, "verification": { "type": "VerificationState", "id": 3, "options": { "default": "UNVERIFIED", "retention": "RETENTION_SOURCE" } } }, "extensions": [ [ 1000, 536870911 ] ], "nested": { "Declaration": { "fields": { "number": { "type": "int32", "id": 1 }, "fullName": { "type": "string", "id": 2 }, "type": { "type": "string", "id": 3 }, "reserved": { "type": "bool", "id": 5 }, "repeated": { "type": "bool", "id": 6 } }, "reserved": [ [ 4, 4 ] ] }, "VerificationState": { "values": { "DECLARATION": 0, "UNVERIFIED": 1 } } } }, "FieldDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "number": { "type": "int32", "id": 3 }, "label": { "type": "Label", "id": 4 }, "type": { "type": "Type", "id": 5 }, "typeName": { "type": "string", "id": 6 }, "extendee": { "type": "string", "id": 2 }, "defaultValue": { "type": "string", "id": 7 }, "oneofIndex": { "type": "int32", "id": 9 }, "jsonName": { "type": "string", "id": 10 }, "options": { "type": "FieldOptions", "id": 8 }, "proto3Optional": { "type": "bool", "id": 17 } }, "nested": { "Type": { "values": { "TYPE_DOUBLE": 1, "TYPE_FLOAT": 2, "TYPE_INT64": 3, "TYPE_UINT64": 4, "TYPE_INT32": 5, "TYPE_FIXED64": 6, "TYPE_FIXED32": 7, "TYPE_BOOL": 8, "TYPE_STRING": 9, "TYPE_GROUP": 10, "TYPE_MESSAGE": 11, "TYPE_BYTES": 12, "TYPE_UINT32": 13, "TYPE_ENUM": 14, "TYPE_SFIXED32": 15, "TYPE_SFIXED64": 16, "TYPE_SINT32": 17, "TYPE_SINT64": 18 } }, "Label": { "values": { "LABEL_OPTIONAL": 1, "LABEL_REPEATED": 3, "LABEL_REQUIRED": 2 } } } }, "OneofDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "options": { "type": "OneofOptions", "id": 2 } } }, "EnumDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "value": { "rule": "repeated", "type": "EnumValueDescriptorProto", "id": 2 }, "options": { "type": "EnumOptions", "id": 3 }, "reservedRange": { "rule": "repeated", "type": "EnumReservedRange", "id": 4 }, "reservedName": { "rule": "repeated", "type": "string", "id": 5 } }, "nested": { "EnumReservedRange": { "fields": { "start": { "type": "int32", "id": 1 }, "end": { "type": "int32", "id": 2 } } } } }, "EnumValueDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "number": { "type": "int32", "id": 2 }, "options": { "type": "EnumValueOptions", "id": 3 } } }, "ServiceDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "method": { "rule": "repeated", "type": "MethodDescriptorProto", "id": 2 }, "options": { "type": "ServiceOptions", "id": 3 } } }, "MethodDescriptorProto": { "fields": { "name": { "type": "string", "id": 1 }, "inputType": { "type": "string", "id": 2 }, "outputType": { "type": "string", "id": 3 }, "options": { "type": "MethodOptions", "id": 4 }, "clientStreaming": { "type": "bool", "id": 5, "options": {