Class ValidationResult.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
- com.google.maps.addressvalidation.v1.ValidationResult.Builder
-
- All Implemented Interfaces:
ValidationResultOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ValidationResult
public static final class ValidationResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder> implements ValidationResultOrBuilder
The result of validating an address.
Protobuf typegoogle.maps.addressvalidation.v1.ValidationResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResult.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ValidationResult
build()
ValidationResult
buildPartial()
ValidationResult.Builder
clear()
ValidationResult.Builder
clearAddress()
Information about the address itself as opposed to the geocode.ValidationResult.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ValidationResult.Builder
clearGeocode()
Information about the location and place that the address geocoded to.ValidationResult.Builder
clearMetadata()
Other information relevant to deliverability.ValidationResult.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ValidationResult.Builder
clearUspsData()
Extra deliverability flags provided by USPS.ValidationResult.Builder
clearVerdict()
Overall verdict flagsValidationResult.Builder
clone()
Address
getAddress()
Information about the address itself as opposed to the geocode.Address.Builder
getAddressBuilder()
Information about the address itself as opposed to the geocode.AddressOrBuilder
getAddressOrBuilder()
Information about the address itself as opposed to the geocode.ValidationResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Geocode
getGeocode()
Information about the location and place that the address geocoded to.Geocode.Builder
getGeocodeBuilder()
Information about the location and place that the address geocoded to.GeocodeOrBuilder
getGeocodeOrBuilder()
Information about the location and place that the address geocoded to.AddressMetadata
getMetadata()
Other information relevant to deliverability.AddressMetadata.Builder
getMetadataBuilder()
Other information relevant to deliverability.AddressMetadataOrBuilder
getMetadataOrBuilder()
Other information relevant to deliverability.UspsData
getUspsData()
Extra deliverability flags provided by USPS.UspsData.Builder
getUspsDataBuilder()
Extra deliverability flags provided by USPS.UspsDataOrBuilder
getUspsDataOrBuilder()
Extra deliverability flags provided by USPS.Verdict
getVerdict()
Overall verdict flagsVerdict.Builder
getVerdictBuilder()
Overall verdict flagsVerdictOrBuilder
getVerdictOrBuilder()
Overall verdict flagsboolean
hasAddress()
Information about the address itself as opposed to the geocode.boolean
hasGeocode()
Information about the location and place that the address geocoded to.boolean
hasMetadata()
Other information relevant to deliverability.boolean
hasUspsData()
Extra deliverability flags provided by USPS.boolean
hasVerdict()
Overall verdict flagsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ValidationResult.Builder
mergeAddress(Address value)
Information about the address itself as opposed to the geocode.ValidationResult.Builder
mergeFrom(ValidationResult other)
ValidationResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ValidationResult.Builder
mergeFrom(com.google.protobuf.Message other)
ValidationResult.Builder
mergeGeocode(Geocode value)
Information about the location and place that the address geocoded to.ValidationResult.Builder
mergeMetadata(AddressMetadata value)
Other information relevant to deliverability.ValidationResult.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ValidationResult.Builder
mergeUspsData(UspsData value)
Extra deliverability flags provided by USPS.ValidationResult.Builder
mergeVerdict(Verdict value)
Overall verdict flagsValidationResult.Builder
setAddress(Address value)
Information about the address itself as opposed to the geocode.ValidationResult.Builder
setAddress(Address.Builder builderForValue)
Information about the address itself as opposed to the geocode.ValidationResult.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ValidationResult.Builder
setGeocode(Geocode value)
Information about the location and place that the address geocoded to.ValidationResult.Builder
setGeocode(Geocode.Builder builderForValue)
Information about the location and place that the address geocoded to.ValidationResult.Builder
setMetadata(AddressMetadata value)
Other information relevant to deliverability.ValidationResult.Builder
setMetadata(AddressMetadata.Builder builderForValue)
Other information relevant to deliverability.ValidationResult.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ValidationResult.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ValidationResult.Builder
setUspsData(UspsData value)
Extra deliverability flags provided by USPS.ValidationResult.Builder
setUspsData(UspsData.Builder builderForValue)
Extra deliverability flags provided by USPS.ValidationResult.Builder
setVerdict(Verdict value)
Overall verdict flagsValidationResult.Builder
setVerdict(Verdict.Builder builderForValue)
Overall verdict flags-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
clear
public ValidationResult.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
getDefaultInstanceForType
public ValidationResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ValidationResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ValidationResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ValidationResult.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
setField
public ValidationResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
clearField
public ValidationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
clearOneof
public ValidationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
setRepeatedField
public ValidationResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
addRepeatedField
public ValidationResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
mergeFrom
public ValidationResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValidationResult.Builder>
-
mergeFrom
public ValidationResult.Builder mergeFrom(ValidationResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
mergeFrom
public ValidationResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValidationResult.Builder>
- Throws:
IOException
-
hasVerdict
public boolean hasVerdict()
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
- Specified by:
hasVerdict
in interfaceValidationResultOrBuilder
- Returns:
- Whether the verdict field is set.
-
getVerdict
public Verdict getVerdict()
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
- Specified by:
getVerdict
in interfaceValidationResultOrBuilder
- Returns:
- The verdict.
-
setVerdict
public ValidationResult.Builder setVerdict(Verdict value)
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
-
setVerdict
public ValidationResult.Builder setVerdict(Verdict.Builder builderForValue)
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
-
mergeVerdict
public ValidationResult.Builder mergeVerdict(Verdict value)
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
-
clearVerdict
public ValidationResult.Builder clearVerdict()
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
-
getVerdictBuilder
public Verdict.Builder getVerdictBuilder()
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
-
getVerdictOrBuilder
public VerdictOrBuilder getVerdictOrBuilder()
Overall verdict flags
.google.maps.addressvalidation.v1.Verdict verdict = 1;
- Specified by:
getVerdictOrBuilder
in interfaceValidationResultOrBuilder
-
hasAddress
public boolean hasAddress()
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
- Specified by:
hasAddress
in interfaceValidationResultOrBuilder
- Returns:
- Whether the address field is set.
-
getAddress
public Address getAddress()
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
- Specified by:
getAddress
in interfaceValidationResultOrBuilder
- Returns:
- The address.
-
setAddress
public ValidationResult.Builder setAddress(Address value)
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
-
setAddress
public ValidationResult.Builder setAddress(Address.Builder builderForValue)
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
-
mergeAddress
public ValidationResult.Builder mergeAddress(Address value)
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
-
clearAddress
public ValidationResult.Builder clearAddress()
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
-
getAddressBuilder
public Address.Builder getAddressBuilder()
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
-
getAddressOrBuilder
public AddressOrBuilder getAddressOrBuilder()
Information about the address itself as opposed to the geocode.
.google.maps.addressvalidation.v1.Address address = 2;
- Specified by:
getAddressOrBuilder
in interfaceValidationResultOrBuilder
-
hasGeocode
public boolean hasGeocode()
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
- Specified by:
hasGeocode
in interfaceValidationResultOrBuilder
- Returns:
- Whether the geocode field is set.
-
getGeocode
public Geocode getGeocode()
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
- Specified by:
getGeocode
in interfaceValidationResultOrBuilder
- Returns:
- The geocode.
-
setGeocode
public ValidationResult.Builder setGeocode(Geocode value)
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
-
setGeocode
public ValidationResult.Builder setGeocode(Geocode.Builder builderForValue)
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
-
mergeGeocode
public ValidationResult.Builder mergeGeocode(Geocode value)
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
-
clearGeocode
public ValidationResult.Builder clearGeocode()
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
-
getGeocodeBuilder
public Geocode.Builder getGeocodeBuilder()
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
-
getGeocodeOrBuilder
public GeocodeOrBuilder getGeocodeOrBuilder()
Information about the location and place that the address geocoded to.
.google.maps.addressvalidation.v1.Geocode geocode = 3;
- Specified by:
getGeocodeOrBuilder
in interfaceValidationResultOrBuilder
-
hasMetadata
public boolean hasMetadata()
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
- Specified by:
hasMetadata
in interfaceValidationResultOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public AddressMetadata getMetadata()
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
- Specified by:
getMetadata
in interfaceValidationResultOrBuilder
- Returns:
- The metadata.
-
setMetadata
public ValidationResult.Builder setMetadata(AddressMetadata value)
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
-
setMetadata
public ValidationResult.Builder setMetadata(AddressMetadata.Builder builderForValue)
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
-
mergeMetadata
public ValidationResult.Builder mergeMetadata(AddressMetadata value)
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
-
clearMetadata
public ValidationResult.Builder clearMetadata()
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
-
getMetadataBuilder
public AddressMetadata.Builder getMetadataBuilder()
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
-
getMetadataOrBuilder
public AddressMetadataOrBuilder getMetadataOrBuilder()
Other information relevant to deliverability. `metadata` is not guaranteed to be fully populated for every address sent to the Address Validation API.
.google.maps.addressvalidation.v1.AddressMetadata metadata = 4;
- Specified by:
getMetadataOrBuilder
in interfaceValidationResultOrBuilder
-
hasUspsData
public boolean hasUspsData()
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
- Specified by:
hasUspsData
in interfaceValidationResultOrBuilder
- Returns:
- Whether the uspsData field is set.
-
getUspsData
public UspsData getUspsData()
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
- Specified by:
getUspsData
in interfaceValidationResultOrBuilder
- Returns:
- The uspsData.
-
setUspsData
public ValidationResult.Builder setUspsData(UspsData value)
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
-
setUspsData
public ValidationResult.Builder setUspsData(UspsData.Builder builderForValue)
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
-
mergeUspsData
public ValidationResult.Builder mergeUspsData(UspsData value)
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
-
clearUspsData
public ValidationResult.Builder clearUspsData()
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
-
getUspsDataBuilder
public UspsData.Builder getUspsDataBuilder()
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
-
getUspsDataOrBuilder
public UspsDataOrBuilder getUspsDataOrBuilder()
Extra deliverability flags provided by USPS. Only provided in region `US` and `PR`.
.google.maps.addressvalidation.v1.UspsData usps_data = 5;
- Specified by:
getUspsDataOrBuilder
in interfaceValidationResultOrBuilder
-
setUnknownFields
public final ValidationResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
mergeUnknownFields
public final ValidationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValidationResult.Builder>
-
-