Class UserInterest.Builder

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

public static final class UserInterest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UserInterest.Builder> implements UserInterestOrBuilder
 A user interest: a particular interest-based vertical to be targeted.
 
Protobuf type google.ads.googleads.v18.resources.UserInterest
  • 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<UserInterest.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public UserInterest.Builder mergeFrom(UserInterest other)
    • isInitialized

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

      public UserInterest.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<UserInterest.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Output only. The resource name of the user interest.
       User interest resource names have the form:
      
       `customers/{customer_id}/userInterests/{user_interest_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface UserInterestOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. The resource name of the user interest.
       User interest resource names have the form:
      
       `customers/{customer_id}/userInterests/{user_interest_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface UserInterestOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public UserInterest.Builder setResourceName(String value)
       Output only. The resource name of the user interest.
       User interest resource names have the form:
      
       `customers/{customer_id}/userInterests/{user_interest_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public UserInterest.Builder clearResourceName()
       Output only. The resource name of the user interest.
       User interest resource names have the form:
      
       `customers/{customer_id}/userInterests/{user_interest_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public UserInterest.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the user interest.
       User interest resource names have the form:
      
       `customers/{customer_id}/userInterests/{user_interest_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getTaxonomyTypeValue

      public int getTaxonomyTypeValue()
       Output only. Taxonomy type of the user interest.
       
      .google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTaxonomyTypeValue in interface UserInterestOrBuilder
      Returns:
      The enum numeric value on the wire for taxonomyType.
    • setTaxonomyTypeValue

      public UserInterest.Builder setTaxonomyTypeValue(int value)
       Output only. Taxonomy type of the user interest.
       
      .google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for taxonomyType to set.
      Returns:
      This builder for chaining.
    • getTaxonomyType

       Output only. Taxonomy type of the user interest.
       
      .google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTaxonomyType in interface UserInterestOrBuilder
      Returns:
      The taxonomyType.
    • setTaxonomyType

       Output only. Taxonomy type of the user interest.
       
      .google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The taxonomyType to set.
      Returns:
      This builder for chaining.
    • clearTaxonomyType

      public UserInterest.Builder clearTaxonomyType()
       Output only. Taxonomy type of the user interest.
       
      .google.ads.googleads.v18.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasUserInterestId

      public boolean hasUserInterestId()
       Output only. The ID of the user interest.
       
      optional int64 user_interest_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUserInterestId in interface UserInterestOrBuilder
      Returns:
      Whether the userInterestId field is set.
    • getUserInterestId

      public long getUserInterestId()
       Output only. The ID of the user interest.
       
      optional int64 user_interest_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUserInterestId in interface UserInterestOrBuilder
      Returns:
      The userInterestId.
    • setUserInterestId

      public UserInterest.Builder setUserInterestId(long value)
       Output only. The ID of the user interest.
       
      optional int64 user_interest_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The userInterestId to set.
      Returns:
      This builder for chaining.
    • clearUserInterestId

      public UserInterest.Builder clearUserInterestId()
       Output only. The ID of the user interest.
       
      optional int64 user_interest_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. The name of the user interest.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasName in interface UserInterestOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. The name of the user interest.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface UserInterestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the user interest.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface UserInterestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public UserInterest.Builder setName(String value)
       Output only. The name of the user interest.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public UserInterest.Builder clearName()
       Output only. The name of the user interest.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public UserInterest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the user interest.
       
      optional string name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasUserInterestParent

      public boolean hasUserInterestParent()
       Output only. The parent of the user interest.
       
      optional string user_interest_parent = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      hasUserInterestParent in interface UserInterestOrBuilder
      Returns:
      Whether the userInterestParent field is set.
    • getUserInterestParent

      public String getUserInterestParent()
       Output only. The parent of the user interest.
       
      optional string user_interest_parent = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getUserInterestParent in interface UserInterestOrBuilder
      Returns:
      The userInterestParent.
    • getUserInterestParentBytes

      public com.google.protobuf.ByteString getUserInterestParentBytes()
       Output only. The parent of the user interest.
       
      optional string user_interest_parent = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getUserInterestParentBytes in interface UserInterestOrBuilder
      Returns:
      The bytes for userInterestParent.
    • setUserInterestParent

      public UserInterest.Builder setUserInterestParent(String value)
       Output only. The parent of the user interest.
       
      optional string user_interest_parent = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The userInterestParent to set.
      Returns:
      This builder for chaining.
    • clearUserInterestParent

      public UserInterest.Builder clearUserInterestParent()
       Output only. The parent of the user interest.
       
      optional string user_interest_parent = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setUserInterestParentBytes

      public UserInterest.Builder setUserInterestParentBytes(com.google.protobuf.ByteString value)
       Output only. The parent of the user interest.
       
      optional string user_interest_parent = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for userInterestParent to set.
      Returns:
      This builder for chaining.
    • hasLaunchedToAll

      public boolean hasLaunchedToAll()
       Output only. True if the user interest is launched to all channels and
       locales.
       
      optional bool launched_to_all = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLaunchedToAll in interface UserInterestOrBuilder
      Returns:
      Whether the launchedToAll field is set.
    • getLaunchedToAll

      public boolean getLaunchedToAll()
       Output only. True if the user interest is launched to all channels and
       locales.
       
      optional bool launched_to_all = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLaunchedToAll in interface UserInterestOrBuilder
      Returns:
      The launchedToAll.
    • setLaunchedToAll

      public UserInterest.Builder setLaunchedToAll(boolean value)
       Output only. True if the user interest is launched to all channels and
       locales.
       
      optional bool launched_to_all = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The launchedToAll to set.
      Returns:
      This builder for chaining.
    • clearLaunchedToAll

      public UserInterest.Builder clearLaunchedToAll()
       Output only. True if the user interest is launched to all channels and
       locales.
       
      optional bool launched_to_all = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAvailabilitiesList

      public List<CriterionCategoryAvailability> getAvailabilitiesList()
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailabilitiesList in interface UserInterestOrBuilder
    • getAvailabilitiesCount

      public int getAvailabilitiesCount()
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailabilitiesCount in interface UserInterestOrBuilder
    • getAvailabilities

      public CriterionCategoryAvailability getAvailabilities(int index)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailabilities in interface UserInterestOrBuilder
    • setAvailabilities

      public UserInterest.Builder setAvailabilities(int index, CriterionCategoryAvailability value)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAvailabilities

      public UserInterest.Builder setAvailabilities(int index, CriterionCategoryAvailability.Builder builderForValue)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAvailabilities

      public UserInterest.Builder addAvailabilities(CriterionCategoryAvailability value)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAvailabilities

      public UserInterest.Builder addAvailabilities(int index, CriterionCategoryAvailability value)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAvailabilities

      public UserInterest.Builder addAvailabilities(CriterionCategoryAvailability.Builder builderForValue)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAvailabilities

      public UserInterest.Builder addAvailabilities(int index, CriterionCategoryAvailability.Builder builderForValue)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllAvailabilities

      public UserInterest.Builder addAllAvailabilities(Iterable<? extends CriterionCategoryAvailability> values)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAvailabilities

      public UserInterest.Builder clearAvailabilities()
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeAvailabilities

      public UserInterest.Builder removeAvailabilities(int index)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAvailabilitiesBuilder

      public CriterionCategoryAvailability.Builder getAvailabilitiesBuilder(int index)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAvailabilitiesOrBuilder

      public CriterionCategoryAvailabilityOrBuilder getAvailabilitiesOrBuilder(int index)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailabilitiesOrBuilder in interface UserInterestOrBuilder
    • getAvailabilitiesOrBuilderList

      public List<? extends CriterionCategoryAvailabilityOrBuilder> getAvailabilitiesOrBuilderList()
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailabilitiesOrBuilderList in interface UserInterestOrBuilder
    • addAvailabilitiesBuilder

      public CriterionCategoryAvailability.Builder addAvailabilitiesBuilder()
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAvailabilitiesBuilder

      public CriterionCategoryAvailability.Builder addAvailabilitiesBuilder(int index)
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAvailabilitiesBuilderList

      public List<CriterionCategoryAvailability.Builder> getAvailabilitiesBuilderList()
       Output only. Availability information of the user interest.
       
      repeated .google.ads.googleads.v18.common.CriterionCategoryAvailability availabilities = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUnknownFields

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

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