Class GeoTargetConstantSuggestion.Builder

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

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

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

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

        public GeoTargetConstantSuggestion.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<GeoTargetConstantSuggestion.Builder>
      • addRepeatedField

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

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

        public GeoTargetConstantSuggestion.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<GeoTargetConstantSuggestion.Builder>
        Throws:
        java.io.IOException
      • hasLocale

        public boolean hasLocale()
         The language this GeoTargetConstantSuggestion is currently translated to.
         It affects the name of geo target fields. For example, if locale=en, then
         name=Spain. If locale=es, then name=España. The default locale will be
         returned if no translation exists for the locale in the request.
         
        optional string locale = 6;
        Specified by:
        hasLocale in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        Whether the locale field is set.
      • getLocale

        public java.lang.String getLocale()
         The language this GeoTargetConstantSuggestion is currently translated to.
         It affects the name of geo target fields. For example, if locale=en, then
         name=Spain. If locale=es, then name=España. The default locale will be
         returned if no translation exists for the locale in the request.
         
        optional string locale = 6;
        Specified by:
        getLocale in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        The locale.
      • getLocaleBytes

        public com.google.protobuf.ByteString getLocaleBytes()
         The language this GeoTargetConstantSuggestion is currently translated to.
         It affects the name of geo target fields. For example, if locale=en, then
         name=Spain. If locale=es, then name=España. The default locale will be
         returned if no translation exists for the locale in the request.
         
        optional string locale = 6;
        Specified by:
        getLocaleBytes in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        The bytes for locale.
      • setLocale

        public GeoTargetConstantSuggestion.Builder setLocale​(java.lang.String value)
         The language this GeoTargetConstantSuggestion is currently translated to.
         It affects the name of geo target fields. For example, if locale=en, then
         name=Spain. If locale=es, then name=España. The default locale will be
         returned if no translation exists for the locale in the request.
         
        optional string locale = 6;
        Parameters:
        value - The locale to set.
        Returns:
        This builder for chaining.
      • clearLocale

        public GeoTargetConstantSuggestion.Builder clearLocale()
         The language this GeoTargetConstantSuggestion is currently translated to.
         It affects the name of geo target fields. For example, if locale=en, then
         name=Spain. If locale=es, then name=España. The default locale will be
         returned if no translation exists for the locale in the request.
         
        optional string locale = 6;
        Returns:
        This builder for chaining.
      • setLocaleBytes

        public GeoTargetConstantSuggestion.Builder setLocaleBytes​(com.google.protobuf.ByteString value)
         The language this GeoTargetConstantSuggestion is currently translated to.
         It affects the name of geo target fields. For example, if locale=en, then
         name=Spain. If locale=es, then name=España. The default locale will be
         returned if no translation exists for the locale in the request.
         
        optional string locale = 6;
        Parameters:
        value - The bytes for locale to set.
        Returns:
        This builder for chaining.
      • hasReach

        public boolean hasReach()
         Approximate user population that will be targeted, rounded to the
         nearest 100.
         
        optional int64 reach = 7;
        Specified by:
        hasReach in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        Whether the reach field is set.
      • getReach

        public long getReach()
         Approximate user population that will be targeted, rounded to the
         nearest 100.
         
        optional int64 reach = 7;
        Specified by:
        getReach in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        The reach.
      • setReach

        public GeoTargetConstantSuggestion.Builder setReach​(long value)
         Approximate user population that will be targeted, rounded to the
         nearest 100.
         
        optional int64 reach = 7;
        Parameters:
        value - The reach to set.
        Returns:
        This builder for chaining.
      • clearReach

        public GeoTargetConstantSuggestion.Builder clearReach()
         Approximate user population that will be targeted, rounded to the
         nearest 100.
         
        optional int64 reach = 7;
        Returns:
        This builder for chaining.
      • hasSearchTerm

        public boolean hasSearchTerm()
         If the request searched by location name, this is the location name that
         matched the geo target.
         
        optional string search_term = 8;
        Specified by:
        hasSearchTerm in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        Whether the searchTerm field is set.
      • getSearchTerm

        public java.lang.String getSearchTerm()
         If the request searched by location name, this is the location name that
         matched the geo target.
         
        optional string search_term = 8;
        Specified by:
        getSearchTerm in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        The searchTerm.
      • getSearchTermBytes

        public com.google.protobuf.ByteString getSearchTermBytes()
         If the request searched by location name, this is the location name that
         matched the geo target.
         
        optional string search_term = 8;
        Specified by:
        getSearchTermBytes in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        The bytes for searchTerm.
      • setSearchTerm

        public GeoTargetConstantSuggestion.Builder setSearchTerm​(java.lang.String value)
         If the request searched by location name, this is the location name that
         matched the geo target.
         
        optional string search_term = 8;
        Parameters:
        value - The searchTerm to set.
        Returns:
        This builder for chaining.
      • clearSearchTerm

        public GeoTargetConstantSuggestion.Builder clearSearchTerm()
         If the request searched by location name, this is the location name that
         matched the geo target.
         
        optional string search_term = 8;
        Returns:
        This builder for chaining.
      • setSearchTermBytes

        public GeoTargetConstantSuggestion.Builder setSearchTermBytes​(com.google.protobuf.ByteString value)
         If the request searched by location name, this is the location name that
         matched the geo target.
         
        optional string search_term = 8;
        Parameters:
        value - The bytes for searchTerm to set.
        Returns:
        This builder for chaining.
      • hasGeoTargetConstant

        public boolean hasGeoTargetConstant()
         The GeoTargetConstant result.
         
        .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
        Specified by:
        hasGeoTargetConstant in interface GeoTargetConstantSuggestionOrBuilder
        Returns:
        Whether the geoTargetConstant field is set.
      • clearGeoTargetConstant

        public GeoTargetConstantSuggestion.Builder clearGeoTargetConstant()
         The GeoTargetConstant result.
         
        .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
      • getGeoTargetConstantBuilder

        public GeoTargetConstant.Builder getGeoTargetConstantBuilder()
         The GeoTargetConstant result.
         
        .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant = 4;
      • setGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder setGeoTargetConstantParents​(int index,
                                                                               GeoTargetConstant value)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • setGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder setGeoTargetConstantParents​(int index,
                                                                               GeoTargetConstant.Builder builderForValue)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • addGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder addGeoTargetConstantParents​(GeoTargetConstant value)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • addGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder addGeoTargetConstantParents​(int index,
                                                                               GeoTargetConstant value)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • addGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder addGeoTargetConstantParents​(int index,
                                                                               GeoTargetConstant.Builder builderForValue)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • addAllGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder addAllGeoTargetConstantParents​(java.lang.Iterable<? extends GeoTargetConstant> values)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • clearGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder clearGeoTargetConstantParents()
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • removeGeoTargetConstantParents

        public GeoTargetConstantSuggestion.Builder removeGeoTargetConstantParents​(int index)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • getGeoTargetConstantParentsBuilder

        public GeoTargetConstant.Builder getGeoTargetConstantParentsBuilder​(int index)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • addGeoTargetConstantParentsBuilder

        public GeoTargetConstant.Builder addGeoTargetConstantParentsBuilder()
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • addGeoTargetConstantParentsBuilder

        public GeoTargetConstant.Builder addGeoTargetConstantParentsBuilder​(int index)
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • getGeoTargetConstantParentsBuilderList

        public java.util.List<GeoTargetConstant.Builder> getGeoTargetConstantParentsBuilderList()
         The list of parents of the geo target constant.
         
        repeated .google.ads.googleads.v10.resources.GeoTargetConstant geo_target_constant_parents = 5;
      • mergeUnknownFields

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