Class ClickLocation.Builder

  • All Implemented Interfaces:
    ClickLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ClickLocation

    public static final class ClickLocation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
    implements ClickLocationOrBuilder
     Location criteria associated with a click.
     
    Protobuf type google.ads.googleads.v10.common.ClickLocation
    • 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<ClickLocation.Builder>
      • clear

        public ClickLocation.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<ClickLocation.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<ClickLocation.Builder>
      • getDefaultInstanceForType

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

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

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

        public ClickLocation.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<ClickLocation.Builder>
      • setField

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

        public ClickLocation.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<ClickLocation.Builder>
      • clearOneof

        public ClickLocation.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<ClickLocation.Builder>
      • setRepeatedField

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

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

        public ClickLocation.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<ClickLocation.Builder>
      • isInitialized

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

        public ClickLocation.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.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<ClickLocation.Builder>
        Throws:
        java.io.IOException
      • hasCity

        public boolean hasCity()
         The city location criterion associated with the impression.
         
        optional string city = 6;
        Specified by:
        hasCity in interface ClickLocationOrBuilder
        Returns:
        Whether the city field is set.
      • getCity

        public java.lang.String getCity()
         The city location criterion associated with the impression.
         
        optional string city = 6;
        Specified by:
        getCity in interface ClickLocationOrBuilder
        Returns:
        The city.
      • getCityBytes

        public com.google.protobuf.ByteString getCityBytes()
         The city location criterion associated with the impression.
         
        optional string city = 6;
        Specified by:
        getCityBytes in interface ClickLocationOrBuilder
        Returns:
        The bytes for city.
      • setCity

        public ClickLocation.Builder setCity​(java.lang.String value)
         The city location criterion associated with the impression.
         
        optional string city = 6;
        Parameters:
        value - The city to set.
        Returns:
        This builder for chaining.
      • clearCity

        public ClickLocation.Builder clearCity()
         The city location criterion associated with the impression.
         
        optional string city = 6;
        Returns:
        This builder for chaining.
      • setCityBytes

        public ClickLocation.Builder setCityBytes​(com.google.protobuf.ByteString value)
         The city location criterion associated with the impression.
         
        optional string city = 6;
        Parameters:
        value - The bytes for city to set.
        Returns:
        This builder for chaining.
      • hasCountry

        public boolean hasCountry()
         The country location criterion associated with the impression.
         
        optional string country = 7;
        Specified by:
        hasCountry in interface ClickLocationOrBuilder
        Returns:
        Whether the country field is set.
      • getCountry

        public java.lang.String getCountry()
         The country location criterion associated with the impression.
         
        optional string country = 7;
        Specified by:
        getCountry in interface ClickLocationOrBuilder
        Returns:
        The country.
      • getCountryBytes

        public com.google.protobuf.ByteString getCountryBytes()
         The country location criterion associated with the impression.
         
        optional string country = 7;
        Specified by:
        getCountryBytes in interface ClickLocationOrBuilder
        Returns:
        The bytes for country.
      • setCountry

        public ClickLocation.Builder setCountry​(java.lang.String value)
         The country location criterion associated with the impression.
         
        optional string country = 7;
        Parameters:
        value - The country to set.
        Returns:
        This builder for chaining.
      • clearCountry

        public ClickLocation.Builder clearCountry()
         The country location criterion associated with the impression.
         
        optional string country = 7;
        Returns:
        This builder for chaining.
      • setCountryBytes

        public ClickLocation.Builder setCountryBytes​(com.google.protobuf.ByteString value)
         The country location criterion associated with the impression.
         
        optional string country = 7;
        Parameters:
        value - The bytes for country to set.
        Returns:
        This builder for chaining.
      • hasMetro

        public boolean hasMetro()
         The metro location criterion associated with the impression.
         
        optional string metro = 8;
        Specified by:
        hasMetro in interface ClickLocationOrBuilder
        Returns:
        Whether the metro field is set.
      • getMetro

        public java.lang.String getMetro()
         The metro location criterion associated with the impression.
         
        optional string metro = 8;
        Specified by:
        getMetro in interface ClickLocationOrBuilder
        Returns:
        The metro.
      • getMetroBytes

        public com.google.protobuf.ByteString getMetroBytes()
         The metro location criterion associated with the impression.
         
        optional string metro = 8;
        Specified by:
        getMetroBytes in interface ClickLocationOrBuilder
        Returns:
        The bytes for metro.
      • setMetro

        public ClickLocation.Builder setMetro​(java.lang.String value)
         The metro location criterion associated with the impression.
         
        optional string metro = 8;
        Parameters:
        value - The metro to set.
        Returns:
        This builder for chaining.
      • clearMetro

        public ClickLocation.Builder clearMetro()
         The metro location criterion associated with the impression.
         
        optional string metro = 8;
        Returns:
        This builder for chaining.
      • setMetroBytes

        public ClickLocation.Builder setMetroBytes​(com.google.protobuf.ByteString value)
         The metro location criterion associated with the impression.
         
        optional string metro = 8;
        Parameters:
        value - The bytes for metro to set.
        Returns:
        This builder for chaining.
      • hasMostSpecific

        public boolean hasMostSpecific()
         The most specific location criterion associated with the impression.
         
        optional string most_specific = 9;
        Specified by:
        hasMostSpecific in interface ClickLocationOrBuilder
        Returns:
        Whether the mostSpecific field is set.
      • getMostSpecific

        public java.lang.String getMostSpecific()
         The most specific location criterion associated with the impression.
         
        optional string most_specific = 9;
        Specified by:
        getMostSpecific in interface ClickLocationOrBuilder
        Returns:
        The mostSpecific.
      • getMostSpecificBytes

        public com.google.protobuf.ByteString getMostSpecificBytes()
         The most specific location criterion associated with the impression.
         
        optional string most_specific = 9;
        Specified by:
        getMostSpecificBytes in interface ClickLocationOrBuilder
        Returns:
        The bytes for mostSpecific.
      • setMostSpecific

        public ClickLocation.Builder setMostSpecific​(java.lang.String value)
         The most specific location criterion associated with the impression.
         
        optional string most_specific = 9;
        Parameters:
        value - The mostSpecific to set.
        Returns:
        This builder for chaining.
      • clearMostSpecific

        public ClickLocation.Builder clearMostSpecific()
         The most specific location criterion associated with the impression.
         
        optional string most_specific = 9;
        Returns:
        This builder for chaining.
      • setMostSpecificBytes

        public ClickLocation.Builder setMostSpecificBytes​(com.google.protobuf.ByteString value)
         The most specific location criterion associated with the impression.
         
        optional string most_specific = 9;
        Parameters:
        value - The bytes for mostSpecific to set.
        Returns:
        This builder for chaining.
      • hasRegion

        public boolean hasRegion()
         The region location criterion associated with the impression.
         
        optional string region = 10;
        Specified by:
        hasRegion in interface ClickLocationOrBuilder
        Returns:
        Whether the region field is set.
      • getRegion

        public java.lang.String getRegion()
         The region location criterion associated with the impression.
         
        optional string region = 10;
        Specified by:
        getRegion in interface ClickLocationOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.ByteString getRegionBytes()
         The region location criterion associated with the impression.
         
        optional string region = 10;
        Specified by:
        getRegionBytes in interface ClickLocationOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public ClickLocation.Builder setRegion​(java.lang.String value)
         The region location criterion associated with the impression.
         
        optional string region = 10;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public ClickLocation.Builder clearRegion()
         The region location criterion associated with the impression.
         
        optional string region = 10;
        Returns:
        This builder for chaining.
      • setRegionBytes

        public ClickLocation.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         The region location criterion associated with the impression.
         
        optional string region = 10;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ClickLocation.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<ClickLocation.Builder>
      • mergeUnknownFields

        public final ClickLocation.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<ClickLocation.Builder>