Class FeedItemSet.Builder

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

public static final class FeedItemSet.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FeedItemSet.Builder> implements FeedItemSetOrBuilder
 Represents a set of feed items. The set can be used and shared among certain
 feed item features. For instance, the set can be referenced within the
 matching functions of CustomerFeed, CampaignFeed, and AdGroupFeed.
 
Protobuf type google.ads.googleads.v18.resources.FeedItemSet
  • 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<FeedItemSet.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public FeedItemSet.Builder mergeFrom(FeedItemSet other)
    • isInitialized

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

      public FeedItemSet.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<FeedItemSet.Builder>
      Throws:
      IOException
    • getDynamicSetFilterCase

      public FeedItemSet.DynamicSetFilterCase getDynamicSetFilterCase()
      Specified by:
      getDynamicSetFilterCase in interface FeedItemSetOrBuilder
    • clearDynamicSetFilter

      public FeedItemSet.Builder clearDynamicSetFilter()
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the feed item set.
       Feed item set resource names have the form:
       `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface FeedItemSetOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the feed item set.
       Feed item set resource names have the form:
       `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface FeedItemSetOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public FeedItemSet.Builder setResourceName(String value)
       Immutable. The resource name of the feed item set.
       Feed item set resource names have the form:
       `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public FeedItemSet.Builder clearResourceName()
       Immutable. The resource name of the feed item set.
       Feed item set resource names have the form:
       `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public FeedItemSet.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the feed item set.
       Feed item set resource names have the form:
       `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getFeed

      public String getFeed()
       Immutable. The resource name of the feed containing the feed items in the
       set. Immutable. Required.
       
      string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getFeed in interface FeedItemSetOrBuilder
      Returns:
      The feed.
    • getFeedBytes

      public com.google.protobuf.ByteString getFeedBytes()
       Immutable. The resource name of the feed containing the feed items in the
       set. Immutable. Required.
       
      string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getFeedBytes in interface FeedItemSetOrBuilder
      Returns:
      The bytes for feed.
    • setFeed

      public FeedItemSet.Builder setFeed(String value)
       Immutable. The resource name of the feed containing the feed items in the
       set. Immutable. Required.
       
      string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The feed to set.
      Returns:
      This builder for chaining.
    • clearFeed

      public FeedItemSet.Builder clearFeed()
       Immutable. The resource name of the feed containing the feed items in the
       set. Immutable. Required.
       
      string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setFeedBytes

      public FeedItemSet.Builder setFeedBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the feed containing the feed items in the
       set. Immutable. Required.
       
      string feed = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for feed to set.
      Returns:
      This builder for chaining.
    • getFeedItemSetId

      public long getFeedItemSetId()
       Output only. ID of the set.
       
      int64 feed_item_set_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFeedItemSetId in interface FeedItemSetOrBuilder
      Returns:
      The feedItemSetId.
    • setFeedItemSetId

      public FeedItemSet.Builder setFeedItemSetId(long value)
       Output only. ID of the set.
       
      int64 feed_item_set_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The feedItemSetId to set.
      Returns:
      This builder for chaining.
    • clearFeedItemSetId

      public FeedItemSet.Builder clearFeedItemSetId()
       Output only. ID of the set.
       
      int64 feed_item_set_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Name of the set. Must be unique within the account.
       
      string display_name = 4;
      Specified by:
      getDisplayName in interface FeedItemSetOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Name of the set. Must be unique within the account.
       
      string display_name = 4;
      Specified by:
      getDisplayNameBytes in interface FeedItemSetOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public FeedItemSet.Builder setDisplayName(String value)
       Name of the set. Must be unique within the account.
       
      string display_name = 4;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public FeedItemSet.Builder clearDisplayName()
       Name of the set. Must be unique within the account.
       
      string display_name = 4;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public FeedItemSet.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Name of the set. Must be unique within the account.
       
      string display_name = 4;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Output only. Status of the feed item set.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface FeedItemSetOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public FeedItemSet.Builder setStatusValue(int value)
       Output only. Status of the feed item set.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       Output only. Status of the feed item set.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface FeedItemSetOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. Status of the feed item set.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public FeedItemSet.Builder clearStatus()
       Output only. Status of the feed item set.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasDynamicLocationSetFilter

      public boolean hasDynamicLocationSetFilter()
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
      Specified by:
      hasDynamicLocationSetFilter in interface FeedItemSetOrBuilder
      Returns:
      Whether the dynamicLocationSetFilter field is set.
    • getDynamicLocationSetFilter

      public DynamicLocationSetFilter getDynamicLocationSetFilter()
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
      Specified by:
      getDynamicLocationSetFilter in interface FeedItemSetOrBuilder
      Returns:
      The dynamicLocationSetFilter.
    • setDynamicLocationSetFilter

      public FeedItemSet.Builder setDynamicLocationSetFilter(DynamicLocationSetFilter value)
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
    • setDynamicLocationSetFilter

      public FeedItemSet.Builder setDynamicLocationSetFilter(DynamicLocationSetFilter.Builder builderForValue)
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
    • mergeDynamicLocationSetFilter

      public FeedItemSet.Builder mergeDynamicLocationSetFilter(DynamicLocationSetFilter value)
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
    • clearDynamicLocationSetFilter

      public FeedItemSet.Builder clearDynamicLocationSetFilter()
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
    • getDynamicLocationSetFilterBuilder

      public DynamicLocationSetFilter.Builder getDynamicLocationSetFilterBuilder()
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
    • getDynamicLocationSetFilterOrBuilder

      public DynamicLocationSetFilterOrBuilder getDynamicLocationSetFilterOrBuilder()
       Filter for dynamic location set.
       It is only used for sets of locations.
       
      .google.ads.googleads.v18.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
      Specified by:
      getDynamicLocationSetFilterOrBuilder in interface FeedItemSetOrBuilder
    • hasDynamicAffiliateLocationSetFilter

      public boolean hasDynamicAffiliateLocationSetFilter()
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
      Specified by:
      hasDynamicAffiliateLocationSetFilter in interface FeedItemSetOrBuilder
      Returns:
      Whether the dynamicAffiliateLocationSetFilter field is set.
    • getDynamicAffiliateLocationSetFilter

      public DynamicAffiliateLocationSetFilter getDynamicAffiliateLocationSetFilter()
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
      Specified by:
      getDynamicAffiliateLocationSetFilter in interface FeedItemSetOrBuilder
      Returns:
      The dynamicAffiliateLocationSetFilter.
    • setDynamicAffiliateLocationSetFilter

      public FeedItemSet.Builder setDynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter value)
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
    • setDynamicAffiliateLocationSetFilter

      public FeedItemSet.Builder setDynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter.Builder builderForValue)
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
    • mergeDynamicAffiliateLocationSetFilter

      public FeedItemSet.Builder mergeDynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter value)
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
    • clearDynamicAffiliateLocationSetFilter

      public FeedItemSet.Builder clearDynamicAffiliateLocationSetFilter()
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
    • getDynamicAffiliateLocationSetFilterBuilder

      public DynamicAffiliateLocationSetFilter.Builder getDynamicAffiliateLocationSetFilterBuilder()
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
    • getDynamicAffiliateLocationSetFilterOrBuilder

      public DynamicAffiliateLocationSetFilterOrBuilder getDynamicAffiliateLocationSetFilterOrBuilder()
       Filter for dynamic affiliate location set.
       This field doesn't apply generally to feed item sets. It is only used for
       sets of affiliate locations.
       
      .google.ads.googleads.v18.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
      Specified by:
      getDynamicAffiliateLocationSetFilterOrBuilder in interface FeedItemSetOrBuilder
    • setUnknownFields

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

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