Interface AddressComponentOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AddressComponent, AddressComponent.Builder

    public interface AddressComponentOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ComponentName getComponentName()
      The name for this component.
      ComponentNameOrBuilder getComponentNameOrBuilder()
      The name for this component.
      String getComponentType()
      The type of the address component.
      com.google.protobuf.ByteString getComponentTypeBytes()
      The type of the address component.
      AddressComponent.ConfirmationLevel getConfirmationLevel()
      Indicates the level of certainty that we have that the component is correct.
      int getConfirmationLevelValue()
      Indicates the level of certainty that we have that the component is correct.
      boolean getInferred()
      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.
      boolean getReplaced()
      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.
      boolean getSpellCorrected()
      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.
      boolean getUnexpected()
      Indicates an address component that is not expected to be present in a postal address for the given region.
      boolean hasComponentName()
      The name for this component.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasComponentName

        boolean hasComponentName()
         The name for this component.
         
        .google.maps.addressvalidation.v1.ComponentName component_name = 1;
        Returns:
        Whether the componentName field is set.
      • getComponentName

        ComponentName getComponentName()
         The name for this component.
         
        .google.maps.addressvalidation.v1.ComponentName component_name = 1;
        Returns:
        The componentName.
      • getComponentNameOrBuilder

        ComponentNameOrBuilder getComponentNameOrBuilder()
         The name for this component.
         
        .google.maps.addressvalidation.v1.ComponentName component_name = 1;
      • getComponentType

        String getComponentType()
         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.
         
        string component_type = 2;
        Returns:
        The componentType.
      • getComponentTypeBytes

        com.google.protobuf.ByteString getComponentTypeBytes()
         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.
         
        string component_type = 2;
        Returns:
        The bytes for componentType.
      • getConfirmationLevelValue

        int getConfirmationLevelValue()
         Indicates the level of certainty that we have that the component
         is correct.
         
        .google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
        Returns:
        The enum numeric value on the wire for confirmationLevel.
      • getConfirmationLevel

        AddressComponent.ConfirmationLevel getConfirmationLevel()
         Indicates the level of certainty that we have that the component
         is correct.
         
        .google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
        Returns:
        The confirmationLevel.
      • getInferred

        boolean getInferred()
         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.
         
        bool inferred = 4;
        Returns:
        The inferred.
      • getSpellCorrected

        boolean getSpellCorrected()
         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.
         
        bool spell_corrected = 5;
        Returns:
        The spellCorrected.
      • getReplaced

        boolean getReplaced()
         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.
         
        bool replaced = 6;
        Returns:
        The replaced.
      • getUnexpected

        boolean getUnexpected()
         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.
         
        bool unexpected = 7;
        Returns:
        The unexpected.