Class CampaignFeed.Builder

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

    public static final class CampaignFeed.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CampaignFeed.Builder>
    implements CampaignFeedOrBuilder
     A campaign feed.
     
    Protobuf type google.ads.googleads.v10.resources.CampaignFeed
    • 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<CampaignFeed.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public CampaignFeed.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the campaign feed.
         Campaign feed resource names have the form:
         `customers/{customer_id}/campaignFeeds/{campaign_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 to which the CampaignFeed belongs.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasFeed in interface CampaignFeedOrBuilder
        Returns:
        Whether the feed field is set.
      • getFeed

        public java.lang.String getFeed()
         Immutable. The feed to which the CampaignFeed belongs.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getFeed in interface CampaignFeedOrBuilder
        Returns:
        The feed.
      • getFeedBytes

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

        public CampaignFeed.Builder setFeed​(java.lang.String value)
         Immutable. The feed to which the CampaignFeed belongs.
         
        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 CampaignFeed.Builder clearFeed()
         Immutable. The feed to which the CampaignFeed belongs.
         
        optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setFeedBytes

        public CampaignFeed.Builder setFeedBytes​(com.google.protobuf.ByteString value)
         Immutable. The feed to which the CampaignFeed belongs.
         
        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.
      • hasCampaign

        public boolean hasCampaign()
         Immutable. The campaign to which the CampaignFeed belongs.
         
        optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasCampaign in interface CampaignFeedOrBuilder
        Returns:
        Whether the campaign field is set.
      • getCampaign

        public java.lang.String getCampaign()
         Immutable. The campaign to which the CampaignFeed belongs.
         
        optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface CampaignFeedOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Immutable. The campaign to which the CampaignFeed belongs.
         
        optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface CampaignFeedOrBuilder
        Returns:
        The bytes for campaign.
      • setCampaign

        public CampaignFeed.Builder setCampaign​(java.lang.String value)
         Immutable. The campaign to which the CampaignFeed belongs.
         
        optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The campaign to set.
        Returns:
        This builder for chaining.
      • clearCampaign

        public CampaignFeed.Builder clearCampaign()
         Immutable. The campaign to which the CampaignFeed belongs.
         
        optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCampaignBytes

        public CampaignFeed.Builder setCampaignBytes​(com.google.protobuf.ByteString value)
         Immutable. The campaign to which the CampaignFeed belongs.
         
        optional string campaign = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for campaign 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
         campaign. Required.
         
        repeated .google.ads.googleads.v10.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesList in interface CampaignFeedOrBuilder
        Returns:
        A list containing the placeholderTypes.
      • getPlaceholderTypesCount

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

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

        public CampaignFeed.Builder setPlaceholderTypes​(int index,
                                                        PlaceholderTypeEnum.PlaceholderType value)
         Indicates which placeholder types the feed may populate under the connected
         campaign. Required.
         
        repeated .google.ads.googleads.v10.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 CampaignFeed.Builder addPlaceholderTypes​(PlaceholderTypeEnum.PlaceholderType value)
         Indicates which placeholder types the feed may populate under the connected
         campaign. Required.
         
        repeated .google.ads.googleads.v10.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        value - The placeholderTypes to add.
        Returns:
        This builder for chaining.
      • addAllPlaceholderTypes

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

        public CampaignFeed.Builder clearPlaceholderTypes()
         Indicates which placeholder types the feed may populate under the connected
         campaign. Required.
         
        repeated .google.ads.googleads.v10.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
         campaign. Required.
         
        repeated .google.ads.googleads.v10.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesValueList in interface CampaignFeedOrBuilder
        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
         campaign. Required.
         
        repeated .google.ads.googleads.v10.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Specified by:
        getPlaceholderTypesValue in interface CampaignFeedOrBuilder
        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 CampaignFeed.Builder setPlaceholderTypesValue​(int index,
                                                             int value)
         Indicates which placeholder types the feed may populate under the connected
         campaign. Required.
         
        repeated .google.ads.googleads.v10.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of placeholderTypes at the given index.
      • addPlaceholderTypesValue

        public CampaignFeed.Builder addPlaceholderTypesValue​(int value)
         Indicates which placeholder types the feed may populate under the connected
         campaign. Required.
         
        repeated .google.ads.googleads.v10.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 CampaignFeed.Builder addAllPlaceholderTypesValue​(java.lang.Iterable<java.lang.Integer> values)
         Indicates which placeholder types the feed may populate under the connected
         campaign. Required.
         
        repeated .google.ads.googleads.v10.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 CampaignFeed.
         The matching function is used to filter the set of feed items selected.
         Required.
         
        .google.ads.googleads.v10.common.MatchingFunction matching_function = 5;
        Specified by:
        hasMatchingFunction in interface CampaignFeedOrBuilder
        Returns:
        Whether the matchingFunction field is set.
      • getMatchingFunction

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

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

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

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

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

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

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

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

        public CampaignFeed.Builder setStatusValue​(int value)
         Output only. Status of the campaign feed.
         This field is read-only.
         
        .google.ads.googleads.v10.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 campaign feed.
         This field is read-only.
         
        .google.ads.googleads.v10.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface CampaignFeedOrBuilder
        Returns:
        The status.
      • setStatus

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

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

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

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