Class Verdict.Builder

  • All Implemented Interfaces:
    VerdictOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Verdict

    public static final class Verdict.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
    implements VerdictOrBuilder
     High level overview of the address validation result and geocode.
     
    Protobuf type google.maps.addressvalidation.v1.Verdict
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • clear

        public Verdict.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • getDefaultInstanceForType

        public Verdict getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Verdict build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Verdict buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Verdict.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • setField

        public Verdict.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • clearField

        public Verdict.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • clearOneof

        public Verdict.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • setRepeatedField

        public Verdict.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • addRepeatedField

        public Verdict.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • mergeFrom

        public Verdict.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Verdict.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • mergeFrom

        public Verdict.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Verdict.Builder>
        Throws:
        IOException
      • getInputGranularityValue

        public int getInputGranularityValue()
         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 we cannot match
         the apartment number in the databases or the apartment number is invalid,
         the `validation_granularity` will likely be `PREMISE` or below.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;
        Specified by:
        getInputGranularityValue in interface VerdictOrBuilder
        Returns:
        The enum numeric value on the wire for inputGranularity.
      • setInputGranularityValue

        public Verdict.Builder setInputGranularityValue​(int value)
         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 we cannot match
         the apartment number in the databases or the apartment number is invalid,
         the `validation_granularity` will likely be `PREMISE` or below.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;
        Parameters:
        value - The enum numeric value on the wire for inputGranularity to set.
        Returns:
        This builder for chaining.
      • getInputGranularity

        public Verdict.Granularity getInputGranularity()
         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 we cannot match
         the apartment number in the databases or the apartment number is invalid,
         the `validation_granularity` will likely be `PREMISE` or below.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;
        Specified by:
        getInputGranularity in interface VerdictOrBuilder
        Returns:
        The inputGranularity.
      • setInputGranularity

        public Verdict.Builder setInputGranularity​(Verdict.Granularity value)
         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 we cannot match
         the apartment number in the databases or the apartment number is invalid,
         the `validation_granularity` will likely be `PREMISE` or below.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;
        Parameters:
        value - The inputGranularity to set.
        Returns:
        This builder for chaining.
      • clearInputGranularity

        public Verdict.Builder clearInputGranularity()
         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 we cannot match
         the apartment number in the databases or the apartment number is invalid,
         the `validation_granularity` will likely be `PREMISE` or below.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;
        Returns:
        This builder for chaining.
      • getValidationGranularityValue

        public int getValidationGranularityValue()
         The granularity level that the API can fully **validate** the address to.
         For example, an `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].
         
        .google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;
        Specified by:
        getValidationGranularityValue in interface VerdictOrBuilder
        Returns:
        The enum numeric value on the wire for validationGranularity.
      • setValidationGranularityValue

        public Verdict.Builder setValidationGranularityValue​(int value)
         The granularity level that the API can fully **validate** the address to.
         For example, an `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].
         
        .google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;
        Parameters:
        value - The enum numeric value on the wire for validationGranularity to set.
        Returns:
        This builder for chaining.
      • getValidationGranularity

        public Verdict.Granularity getValidationGranularity()
         The granularity level that the API can fully **validate** the address to.
         For example, an `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].
         
        .google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;
        Specified by:
        getValidationGranularity in interface VerdictOrBuilder
        Returns:
        The validationGranularity.
      • setValidationGranularity

        public Verdict.Builder setValidationGranularity​(Verdict.Granularity value)
         The granularity level that the API can fully **validate** the address to.
         For example, an `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].
         
        .google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;
        Parameters:
        value - The validationGranularity to set.
        Returns:
        This builder for chaining.
      • clearValidationGranularity

        public Verdict.Builder clearValidationGranularity()
         The granularity level that the API can fully **validate** the address to.
         For example, an `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].
         
        .google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;
        Returns:
        This builder for chaining.
      • getGeocodeGranularityValue

        public int getGeocodeGranularityValue()
         Information about the granularity of the
         [`geocode`][google.maps.addressvalidation.v1.ValidationResult.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`.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;
        Specified by:
        getGeocodeGranularityValue in interface VerdictOrBuilder
        Returns:
        The enum numeric value on the wire for geocodeGranularity.
      • setGeocodeGranularityValue

        public Verdict.Builder setGeocodeGranularityValue​(int value)
         Information about the granularity of the
         [`geocode`][google.maps.addressvalidation.v1.ValidationResult.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`.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;
        Parameters:
        value - The enum numeric value on the wire for geocodeGranularity to set.
        Returns:
        This builder for chaining.
      • getGeocodeGranularity

        public Verdict.Granularity getGeocodeGranularity()
         Information about the granularity of the
         [`geocode`][google.maps.addressvalidation.v1.ValidationResult.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`.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;
        Specified by:
        getGeocodeGranularity in interface VerdictOrBuilder
        Returns:
        The geocodeGranularity.
      • setGeocodeGranularity

        public Verdict.Builder setGeocodeGranularity​(Verdict.Granularity value)
         Information about the granularity of the
         [`geocode`][google.maps.addressvalidation.v1.ValidationResult.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`.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;
        Parameters:
        value - The geocodeGranularity to set.
        Returns:
        This builder for chaining.
      • clearGeocodeGranularity

        public Verdict.Builder clearGeocodeGranularity()
         Information about the granularity of the
         [`geocode`][google.maps.addressvalidation.v1.ValidationResult.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`.
         
        .google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;
        Returns:
        This builder for chaining.
      • getAddressComplete

        public boolean getAddressComplete()
         The address is considered complete if there are no unresolved tokens, no
         unexpected or missing address components. See
         [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types],
         [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens]
         or
         [`unexpected`][google.maps.addressvalidation.v1.AddressComponent.unexpected]
         fields for more details.
         
        bool address_complete = 4;
        Specified by:
        getAddressComplete in interface VerdictOrBuilder
        Returns:
        The addressComplete.
      • setAddressComplete

        public Verdict.Builder setAddressComplete​(boolean value)
         The address is considered complete if there are no unresolved tokens, no
         unexpected or missing address components. See
         [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types],
         [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens]
         or
         [`unexpected`][google.maps.addressvalidation.v1.AddressComponent.unexpected]
         fields for more details.
         
        bool address_complete = 4;
        Parameters:
        value - The addressComplete to set.
        Returns:
        This builder for chaining.
      • clearAddressComplete

        public Verdict.Builder clearAddressComplete()
         The address is considered complete if there are no unresolved tokens, no
         unexpected or missing address components. See
         [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types],
         [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens]
         or
         [`unexpected`][google.maps.addressvalidation.v1.AddressComponent.unexpected]
         fields for more details.
         
        bool address_complete = 4;
        Returns:
        This builder for chaining.
      • getHasUnconfirmedComponents

        public boolean getHasUnconfirmedComponents()
         At least one address component cannot be categorized or validated, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_unconfirmed_components = 5;
        Specified by:
        getHasUnconfirmedComponents in interface VerdictOrBuilder
        Returns:
        The hasUnconfirmedComponents.
      • setHasUnconfirmedComponents

        public Verdict.Builder setHasUnconfirmedComponents​(boolean value)
         At least one address component cannot be categorized or validated, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_unconfirmed_components = 5;
        Parameters:
        value - The hasUnconfirmedComponents to set.
        Returns:
        This builder for chaining.
      • clearHasUnconfirmedComponents

        public Verdict.Builder clearHasUnconfirmedComponents()
         At least one address component cannot be categorized or validated, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_unconfirmed_components = 5;
        Returns:
        This builder for chaining.
      • getHasInferredComponents

        public boolean getHasInferredComponents()
         At least one address component was inferred (added) that wasn't in the
         input, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_inferred_components = 6;
        Specified by:
        getHasInferredComponents in interface VerdictOrBuilder
        Returns:
        The hasInferredComponents.
      • setHasInferredComponents

        public Verdict.Builder setHasInferredComponents​(boolean value)
         At least one address component was inferred (added) that wasn't in the
         input, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_inferred_components = 6;
        Parameters:
        value - The hasInferredComponents to set.
        Returns:
        This builder for chaining.
      • clearHasInferredComponents

        public Verdict.Builder clearHasInferredComponents()
         At least one address component was inferred (added) that wasn't in the
         input, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_inferred_components = 6;
        Returns:
        This builder for chaining.
      • getHasReplacedComponents

        public boolean getHasReplacedComponents()
         At least one address component was replaced, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_replaced_components = 7;
        Specified by:
        getHasReplacedComponents in interface VerdictOrBuilder
        Returns:
        The hasReplacedComponents.
      • setHasReplacedComponents

        public Verdict.Builder setHasReplacedComponents​(boolean value)
         At least one address component was replaced, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_replaced_components = 7;
        Parameters:
        value - The hasReplacedComponents to set.
        Returns:
        This builder for chaining.
      • clearHasReplacedComponents

        public Verdict.Builder clearHasReplacedComponents()
         At least one address component was replaced, see
         [google.maps.addressvalidation.v1.Address.address_components] for
         details.
         
        bool has_replaced_components = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Verdict.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>
      • mergeUnknownFields

        public final Verdict.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Verdict.Builder>