Class AdGroupFeed.Builder

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

    public static final class AdGroupFeed.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AdGroupFeed.Builder>
    implements AdGroupFeedOrBuilder
     An ad group feed.
     
    Protobuf type google.ads.googleads.v14.resources.AdGroupFeed
    • 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<AdGroupFeed.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getResourceName()
         Immutable. The resource name of the ad group feed.
         Ad group feed resource names have the form:
        
         `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface AdGroupFeedOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

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

        public AdGroupFeed.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the ad group feed.
         Ad group feed resource names have the form:
        
         `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_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 AdGroupFeed.Builder clearResourceName()
         Immutable. The resource name of the ad group feed.
         Ad group feed resource names have the form:
        
         `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public AdGroupFeed.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the ad group feed.
         Ad group feed resource names have the form:
        
         `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_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.
      • hasFeed

        public boolean hasFeed()
         Immutable. The feed being linked to the ad group.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasFeed in interface AdGroupFeedOrBuilder
        Returns:
        Whether the feed field is set.
      • getFeed

        public java.lang.String getFeed()
         Immutable. The feed being linked to the ad group.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getFeed in interface AdGroupFeedOrBuilder
        Returns:
        The feed.
      • getFeedBytes

        public com.google.protobuf.ByteString getFeedBytes()
         Immutable. The feed being linked to the ad group.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getFeedBytes in interface AdGroupFeedOrBuilder
        Returns:
        The bytes for feed.
      • setFeed

        public AdGroupFeed.Builder setFeed​(java.lang.String value)
         Immutable. The feed being linked to the ad group.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The feed to set.
        Returns:
        This builder for chaining.
      • clearFeed

        public AdGroupFeed.Builder clearFeed()
         Immutable. The feed being linked to the ad group.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setFeedBytes

        public AdGroupFeed.Builder setFeedBytes​(com.google.protobuf.ByteString value)
         Immutable. The feed being linked to the ad group.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for feed to set.
        Returns:
        This builder for chaining.
      • hasAdGroup

        public boolean hasAdGroup()
         Immutable. The ad group being linked to the feed.
         
        optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasAdGroup in interface AdGroupFeedOrBuilder
        Returns:
        Whether the adGroup field is set.
      • getAdGroup

        public java.lang.String getAdGroup()
         Immutable. The ad group being linked to the feed.
         
        optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getAdGroup in interface AdGroupFeedOrBuilder
        Returns:
        The adGroup.
      • getAdGroupBytes

        public com.google.protobuf.ByteString getAdGroupBytes()
         Immutable. The ad group being linked to the feed.
         
        optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getAdGroupBytes in interface AdGroupFeedOrBuilder
        Returns:
        The bytes for adGroup.
      • setAdGroup

        public AdGroupFeed.Builder setAdGroup​(java.lang.String value)
         Immutable. The ad group being linked to the feed.
         
        optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The adGroup to set.
        Returns:
        This builder for chaining.
      • clearAdGroup

        public AdGroupFeed.Builder clearAdGroup()
         Immutable. The ad group being linked to the feed.
         
        optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setAdGroupBytes

        public AdGroupFeed.Builder setAdGroupBytes​(com.google.protobuf.ByteString value)
         Immutable. The ad group being linked to the feed.
         
        optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for adGroup to set.
        Returns:
        This builder for chaining.
      • getPlaceholderTypesList

        public java.util.List<PlaceholderTypeEnum.PlaceholderType> getPlaceholderTypesList()
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesList in interface AdGroupFeedOrBuilder
        Returns:
        A list containing the placeholderTypes.
      • getPlaceholderTypesCount

        public int getPlaceholderTypesCount()
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesCount in interface AdGroupFeedOrBuilder
        Returns:
        The count of placeholderTypes.
      • getPlaceholderTypes

        public PlaceholderTypeEnum.PlaceholderType getPlaceholderTypes​(int index)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypes in interface AdGroupFeedOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The placeholderTypes at the given index.
      • setPlaceholderTypes

        public AdGroupFeed.Builder setPlaceholderTypes​(int index,
                                                       PlaceholderTypeEnum.PlaceholderType value)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        index - The index to set the value at.
        value - The placeholderTypes to set.
        Returns:
        This builder for chaining.
      • addPlaceholderTypes

        public AdGroupFeed.Builder addPlaceholderTypes​(PlaceholderTypeEnum.PlaceholderType value)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        value - The placeholderTypes to add.
        Returns:
        This builder for chaining.
      • addAllPlaceholderTypes

        public AdGroupFeed.Builder addAllPlaceholderTypes​(java.lang.Iterable<? extends PlaceholderTypeEnum.PlaceholderType> values)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        values - The placeholderTypes to add.
        Returns:
        This builder for chaining.
      • clearPlaceholderTypes

        public AdGroupFeed.Builder clearPlaceholderTypes()
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Returns:
        This builder for chaining.
      • getPlaceholderTypesValueList

        public java.util.List<java.lang.Integer> getPlaceholderTypesValueList()
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesValueList in interface AdGroupFeedOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for placeholderTypes.
      • getPlaceholderTypesValue

        public int getPlaceholderTypesValue​(int index)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesValue in interface AdGroupFeedOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of placeholderTypes at the given index.
      • setPlaceholderTypesValue

        public AdGroupFeed.Builder setPlaceholderTypesValue​(int index,
                                                            int value)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for placeholderTypes to set.
        Returns:
        This builder for chaining.
      • addPlaceholderTypesValue

        public AdGroupFeed.Builder addPlaceholderTypesValue​(int value)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        value - The enum numeric value on the wire for placeholderTypes to add.
        Returns:
        This builder for chaining.
      • addAllPlaceholderTypesValue

        public AdGroupFeed.Builder addAllPlaceholderTypesValue​(java.lang.Iterable<java.lang.Integer> values)
         Indicates which placeholder types the feed may populate under the connected
         ad group. Required.
         
        repeated .google.ads.googleads.v14.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        values - The enum numeric values on the wire for placeholderTypes to add.
        Returns:
        This builder for chaining.
      • hasMatchingFunction

        public boolean hasMatchingFunction()
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
        Specified by:
        hasMatchingFunction in interface AdGroupFeedOrBuilder
        Returns:
        Whether the matchingFunction field is set.
      • getMatchingFunction

        public MatchingFunction getMatchingFunction()
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
        Specified by:
        getMatchingFunction in interface AdGroupFeedOrBuilder
        Returns:
        The matchingFunction.
      • setMatchingFunction

        public AdGroupFeed.Builder setMatchingFunction​(MatchingFunction value)
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
      • setMatchingFunction

        public AdGroupFeed.Builder setMatchingFunction​(MatchingFunction.Builder builderForValue)
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
      • mergeMatchingFunction

        public AdGroupFeed.Builder mergeMatchingFunction​(MatchingFunction value)
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
      • clearMatchingFunction

        public AdGroupFeed.Builder clearMatchingFunction()
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
      • getMatchingFunctionBuilder

        public MatchingFunction.Builder getMatchingFunctionBuilder()
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
      • getMatchingFunctionOrBuilder

        public MatchingFunctionOrBuilder getMatchingFunctionOrBuilder()
         Matching function associated with the AdGroupFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v14.common.MatchingFunction matching_function = 5;
        Specified by:
        getMatchingFunctionOrBuilder in interface AdGroupFeedOrBuilder
      • getStatusValue

        public int getStatusValue()
         Output only. Status of the ad group feed.
         This field is read-only.
         
        .google.ads.googleads.v14.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusValue in interface AdGroupFeedOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public AdGroupFeed.Builder setStatusValue​(int value)
         Output only. Status of the ad group feed.
         This field is read-only.
         
        .google.ads.googleads.v14.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.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

        public FeedLinkStatusEnum.FeedLinkStatus getStatus()
         Output only. Status of the ad group feed.
         This field is read-only.
         
        .google.ads.googleads.v14.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface AdGroupFeedOrBuilder
        Returns:
        The status.
      • setStatus

        public AdGroupFeed.Builder setStatus​(FeedLinkStatusEnum.FeedLinkStatus value)
         Output only. Status of the ad group feed.
         This field is read-only.
         
        .google.ads.googleads.v14.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public AdGroupFeed.Builder clearStatus()
         Output only. Status of the ad group feed.
         This field is read-only.
         
        .google.ads.googleads.v14.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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