Class GeoTargetConstantSuggestion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstantSuggestion.Builder>
com.google.ads.googleads.v18.services.GeoTargetConstantSuggestion.Builder
All Implemented Interfaces:
GeoTargetConstantSuggestionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GeoTargetConstantSuggestion

public static final class GeoTargetConstantSuggestion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GeoTargetConstantSuggestion.Builder> implements GeoTargetConstantSuggestionOrBuilder
 A geo target constant suggestion.
 
Protobuf type google.ads.googleads.v18.services.GeoTargetConstantSuggestion
  • Method Details

    • 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>
    • 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<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

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

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

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

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

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

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

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

    • 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 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:
      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 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(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

       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

       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 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(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.v18.resources.GeoTargetConstant geo_target_constant = 4;
      Specified by:
      hasGeoTargetConstant in interface GeoTargetConstantSuggestionOrBuilder
      Returns:
      Whether the geoTargetConstant field is set.
    • getGeoTargetConstant

      public GeoTargetConstant getGeoTargetConstant()
       The GeoTargetConstant result.
       
      .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant = 4;
      Specified by:
      getGeoTargetConstant in interface GeoTargetConstantSuggestionOrBuilder
      Returns:
      The geoTargetConstant.
    • setGeoTargetConstant

      public GeoTargetConstantSuggestion.Builder setGeoTargetConstant(GeoTargetConstant value)
       The GeoTargetConstant result.
       
      .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant = 4;
    • setGeoTargetConstant

      public GeoTargetConstantSuggestion.Builder setGeoTargetConstant(GeoTargetConstant.Builder builderForValue)
       The GeoTargetConstant result.
       
      .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant = 4;
    • mergeGeoTargetConstant

      public GeoTargetConstantSuggestion.Builder mergeGeoTargetConstant(GeoTargetConstant value)
       The GeoTargetConstant result.
       
      .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant = 4;
    • clearGeoTargetConstant

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

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

      public GeoTargetConstantOrBuilder getGeoTargetConstantOrBuilder()
       The GeoTargetConstant result.
       
      .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant = 4;
      Specified by:
      getGeoTargetConstantOrBuilder in interface GeoTargetConstantSuggestionOrBuilder
    • getGeoTargetConstantParentsList

      public List<GeoTargetConstant> getGeoTargetConstantParentsList()
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
      Specified by:
      getGeoTargetConstantParentsList in interface GeoTargetConstantSuggestionOrBuilder
    • getGeoTargetConstantParentsCount

      public int getGeoTargetConstantParentsCount()
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
      Specified by:
      getGeoTargetConstantParentsCount in interface GeoTargetConstantSuggestionOrBuilder
    • getGeoTargetConstantParents

      public GeoTargetConstant getGeoTargetConstantParents(int index)
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
      Specified by:
      getGeoTargetConstantParents in interface GeoTargetConstantSuggestionOrBuilder
    • setGeoTargetConstantParents

      public GeoTargetConstantSuggestion.Builder setGeoTargetConstantParents(int index, GeoTargetConstant value)
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.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.v18.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.v18.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.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
    • addGeoTargetConstantParents

      public GeoTargetConstantSuggestion.Builder addGeoTargetConstantParents(GeoTargetConstant.Builder builderForValue)
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.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.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
    • addAllGeoTargetConstantParents

      public GeoTargetConstantSuggestion.Builder addAllGeoTargetConstantParents(Iterable<? extends GeoTargetConstant> values)
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.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.v18.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.v18.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.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
    • getGeoTargetConstantParentsOrBuilder

      public GeoTargetConstantOrBuilder getGeoTargetConstantParentsOrBuilder(int index)
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
      Specified by:
      getGeoTargetConstantParentsOrBuilder in interface GeoTargetConstantSuggestionOrBuilder
    • getGeoTargetConstantParentsOrBuilderList

      public List<? extends GeoTargetConstantOrBuilder> getGeoTargetConstantParentsOrBuilderList()
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
      Specified by:
      getGeoTargetConstantParentsOrBuilderList in interface GeoTargetConstantSuggestionOrBuilder
    • addGeoTargetConstantParentsBuilder

      public GeoTargetConstant.Builder addGeoTargetConstantParentsBuilder()
       The list of parents of the geo target constant.
       
      repeated .google.ads.googleads.v18.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.v18.resources.GeoTargetConstant geo_target_constant_parents = 5;
    • getGeoTargetConstantParentsBuilderList

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

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