addressComplete = $addressComplete; } /** * @return bool */ public function getAddressComplete() { return $this->addressComplete; } /** * Information about the granularity of the `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`. * * Accepted values: GRANULARITY_UNSPECIFIED, SUB_PREMISE, PREMISE, * PREMISE_PROXIMITY, BLOCK, ROUTE, OTHER * * @param self::GEOCODE_GRANULARITY_* $geocodeGranularity */ public function setGeocodeGranularity($geocodeGranularity) { $this->geocodeGranularity = $geocodeGranularity; } /** * @return self::GEOCODE_GRANULARITY_* */ public function getGeocodeGranularity() { return $this->geocodeGranularity; } /** * At least one address component was inferred (added) that wasn't in the * input, see [google.maps.addressvalidation.v1.Address.address_components] * for details. * * @param bool $hasInferredComponents */ public function setHasInferredComponents($hasInferredComponents) { $this->hasInferredComponents = $hasInferredComponents; } /** * @return bool */ public function getHasInferredComponents() { return $this->hasInferredComponents; } /** * At least one address component was replaced, see * [google.maps.addressvalidation.v1.Address.address_components] for details. * * @param bool $hasReplacedComponents */ public function setHasReplacedComponents($hasReplacedComponents) { $this->hasReplacedComponents = $hasReplacedComponents; } /** * @return bool */ public function getHasReplacedComponents() { return $this->hasReplacedComponents; } /** * At least one address component was spell-corrected, see * [google.maps.addressvalidation.v1.Address.address_components] for details. * * @param bool $hasSpellCorrectedComponents */ public function setHasSpellCorrectedComponents($hasSpellCorrectedComponents) { $this->hasSpellCorrectedComponents = $hasSpellCorrectedComponents; } /** * @return bool */ public function getHasSpellCorrectedComponents() { return $this->hasSpellCorrectedComponents; } /** * At least one address component cannot be categorized or validated, see * [google.maps.addressvalidation.v1.Address.address_components] for details. * * @param bool $hasUnconfirmedComponents */ public function setHasUnconfirmedComponents($hasUnconfirmedComponents) { $this->hasUnconfirmedComponents = $hasUnconfirmedComponents; } /** * @return bool */ public function getHasUnconfirmedComponents() { return $this->hasUnconfirmedComponents; } /** * 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 the address validation service cannot match * the apartment number in the databases or the apartment number is invalid, * the `validation_granularity` will likely be `PREMISE` or more coarse. * * Accepted values: GRANULARITY_UNSPECIFIED, SUB_PREMISE, PREMISE, * PREMISE_PROXIMITY, BLOCK, ROUTE, OTHER * * @param self::INPUT_GRANULARITY_* $inputGranularity */ public function setInputGranularity($inputGranularity) { $this->inputGranularity = $inputGranularity; } /** * @return self::INPUT_GRANULARITY_* */ public function getInputGranularity() { return $this->inputGranularity; } /** * Preview: This feature is in Preview (pre-GA). Pre-GA products and features * might have limited support, and changes to pre-GA products and features * might not be compatible with other pre-GA versions. Pre-GA Offerings are * covered by the [Google Maps Platform Service Specific * Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). * For more information, see the [launch stage * descriptions](https://developers.google.com/maps/launch-stages). Offers an * interpretive summary of the API response, intended to assist in determining * a potential subsequent action to take. This field is derived from other * fields in the API response and should not be considered as a guarantee of * address accuracy or deliverability. See [Build your validation * logic](https://developers.google.com/maps/documentation/address- * validation/build-validation-logic) for more details. * * Accepted values: POSSIBLE_NEXT_ACTION_UNSPECIFIED, FIX, * CONFIRM_ADD_SUBPREMISES, CONFIRM, ACCEPT * * @param self::POSSIBLE_NEXT_ACTION_* $possibleNextAction */ public function setPossibleNextAction($possibleNextAction) { $this->possibleNextAction = $possibleNextAction; } /** * @return self::POSSIBLE_NEXT_ACTION_* */ public function getPossibleNextAction() { return $this->possibleNextAction; } /** * The level of granularity for the post-processed address that the API can * fully validate. For example, a `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]. * * Accepted values: GRANULARITY_UNSPECIFIED, SUB_PREMISE, PREMISE, * PREMISE_PROXIMITY, BLOCK, ROUTE, OTHER * * @param self::VALIDATION_GRANULARITY_* $validationGranularity */ public function setValidationGranularity($validationGranularity) { $this->validationGranularity = $validationGranularity; } /** * @return self::VALIDATION_GRANULARITY_* */ public function getValidationGranularity() { return $this->validationGranularity; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleMapsAddressvalidationV1Verdict::class, 'Google_Service_AddressValidation_GoogleMapsAddressvalidationV1Verdict');