public static final class ValidateAddressRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder> implements ValidateAddressRequestOrBuilder
The request for validating an address.Protobuf type
google.maps.addressvalidation.v1.ValidateAddressRequest| Modifier and Type | Method and Description |
|---|---|
ValidateAddressRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ValidateAddressRequest |
build() |
ValidateAddressRequest |
buildPartial() |
ValidateAddressRequest.Builder |
clear() |
ValidateAddressRequest.Builder |
clearAddress()
Required.
|
ValidateAddressRequest.Builder |
clearEnableUspsCass()
Enables USPS CASS compatible mode.
|
ValidateAddressRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ValidateAddressRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ValidateAddressRequest.Builder |
clearPreviousResponseId()
This field must be empty for the first address validation request.
|
ValidateAddressRequest.Builder |
clone() |
com.google.type.PostalAddress |
getAddress()
Required.
|
com.google.type.PostalAddress.Builder |
getAddressBuilder()
Required.
|
com.google.type.PostalAddressOrBuilder |
getAddressOrBuilder()
Required.
|
ValidateAddressRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableUspsCass()
Enables USPS CASS compatible mode.
|
String |
getPreviousResponseId()
This field must be empty for the first address validation request.
|
com.google.protobuf.ByteString |
getPreviousResponseIdBytes()
This field must be empty for the first address validation request.
|
boolean |
hasAddress()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ValidateAddressRequest.Builder |
mergeAddress(com.google.type.PostalAddress value)
Required.
|
ValidateAddressRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ValidateAddressRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
ValidateAddressRequest.Builder |
mergeFrom(ValidateAddressRequest other) |
ValidateAddressRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ValidateAddressRequest.Builder |
setAddress(com.google.type.PostalAddress.Builder builderForValue)
Required.
|
ValidateAddressRequest.Builder |
setAddress(com.google.type.PostalAddress value)
Required.
|
ValidateAddressRequest.Builder |
setEnableUspsCass(boolean value)
Enables USPS CASS compatible mode.
|
ValidateAddressRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ValidateAddressRequest.Builder |
setPreviousResponseId(String value)
This field must be empty for the first address validation request.
|
ValidateAddressRequest.Builder |
setPreviousResponseIdBytes(com.google.protobuf.ByteString value)
This field must be empty for the first address validation request.
|
ValidateAddressRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ValidateAddressRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ValidateAddressRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ValidateAddressRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ValidateAddressRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder mergeFrom(ValidateAddressRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public ValidateAddressRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValidateAddressRequest.Builder>IOExceptionpublic boolean hasAddress()
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
hasAddress in interface ValidateAddressRequestOrBuilderpublic com.google.type.PostalAddress getAddress()
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
getAddress in interface ValidateAddressRequestOrBuilderpublic ValidateAddressRequest.Builder setAddress(com.google.type.PostalAddress value)
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
public ValidateAddressRequest.Builder setAddress(com.google.type.PostalAddress.Builder builderForValue)
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
public ValidateAddressRequest.Builder mergeAddress(com.google.type.PostalAddress value)
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
public ValidateAddressRequest.Builder clearAddress()
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
public com.google.type.PostalAddress.Builder getAddressBuilder()
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
public com.google.type.PostalAddressOrBuilder getAddressOrBuilder()
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.
.google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
getAddressOrBuilder in interface ValidateAddressRequestOrBuilderpublic String getPreviousResponseId()
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.
string previous_response_id = 2;getPreviousResponseId in interface ValidateAddressRequestOrBuilderpublic com.google.protobuf.ByteString getPreviousResponseIdBytes()
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.
string previous_response_id = 2;getPreviousResponseIdBytes in interface ValidateAddressRequestOrBuilderpublic ValidateAddressRequest.Builder setPreviousResponseId(String value)
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.
string previous_response_id = 2;value - The previousResponseId to set.public ValidateAddressRequest.Builder clearPreviousResponseId()
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.
string previous_response_id = 2;public ValidateAddressRequest.Builder setPreviousResponseIdBytes(com.google.protobuf.ByteString value)
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.
string previous_response_id = 2;value - The bytes for previousResponseId to set.public boolean getEnableUspsCass()
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.
bool enable_usps_cass = 3;getEnableUspsCass in interface ValidateAddressRequestOrBuilderpublic ValidateAddressRequest.Builder setEnableUspsCass(boolean value)
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.
bool enable_usps_cass = 3;value - The enableUspsCass to set.public ValidateAddressRequest.Builder clearEnableUspsCass()
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.
bool enable_usps_cass = 3;public final ValidateAddressRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>public final ValidateAddressRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateAddressRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.