Class Feed

  • All Implemented Interfaces:
    FeedOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class Feed
    extends com.google.protobuf.GeneratedMessageV3
    implements FeedOrBuilder
     A feed.
     
    Protobuf type google.ads.googleads.v10.resources.Feed
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

        public static final int RESOURCE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ATTRIBUTES_FIELD_NUMBER

        public static final int ATTRIBUTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ATTRIBUTE_OPERATIONS_FIELD_NUMBER

        public static final int ATTRIBUTE_OPERATIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PLACES_LOCATION_FEED_DATA_FIELD_NUMBER

        public static final int PLACES_LOCATION_FEED_DATA_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AFFILIATE_LOCATION_FEED_DATA_FIELD_NUMBER

        public static final int AFFILIATE_LOCATION_FEED_DATA_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getResourceName

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

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

        public boolean hasId()
         Output only. The ID of the feed.
         This field is read-only.
         
        optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasId in interface FeedOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         Output only. The ID of the feed.
         This field is read-only.
         
        optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface FeedOrBuilder
        Returns:
        The id.
      • hasName

        public boolean hasName()
         Immutable. Name of the feed. Required.
         
        optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasName in interface FeedOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         Immutable. Name of the feed. Required.
         
        optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getName in interface FeedOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Immutable. Name of the feed. Required.
         
        optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getNameBytes in interface FeedOrBuilder
        Returns:
        The bytes for name.
      • getAttributesList

        public java.util.List<FeedAttribute> getAttributesList()
         The Feed's attributes. Required on CREATE, unless
         system_feed_generation_data is provided, in which case Google Ads will
         update the feed with the correct attributes.
         Disallowed on UPDATE. Use attribute_operations to add new attributes.
         
        repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
        Specified by:
        getAttributesList in interface FeedOrBuilder
      • getAttributesOrBuilderList

        public java.util.List<? extends FeedAttributeOrBuilder> getAttributesOrBuilderList()
         The Feed's attributes. Required on CREATE, unless
         system_feed_generation_data is provided, in which case Google Ads will
         update the feed with the correct attributes.
         Disallowed on UPDATE. Use attribute_operations to add new attributes.
         
        repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
        Specified by:
        getAttributesOrBuilderList in interface FeedOrBuilder
      • getAttributesCount

        public int getAttributesCount()
         The Feed's attributes. Required on CREATE, unless
         system_feed_generation_data is provided, in which case Google Ads will
         update the feed with the correct attributes.
         Disallowed on UPDATE. Use attribute_operations to add new attributes.
         
        repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
        Specified by:
        getAttributesCount in interface FeedOrBuilder
      • getAttributes

        public FeedAttribute getAttributes​(int index)
         The Feed's attributes. Required on CREATE, unless
         system_feed_generation_data is provided, in which case Google Ads will
         update the feed with the correct attributes.
         Disallowed on UPDATE. Use attribute_operations to add new attributes.
         
        repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
        Specified by:
        getAttributes in interface FeedOrBuilder
      • getAttributesOrBuilder

        public FeedAttributeOrBuilder getAttributesOrBuilder​(int index)
         The Feed's attributes. Required on CREATE, unless
         system_feed_generation_data is provided, in which case Google Ads will
         update the feed with the correct attributes.
         Disallowed on UPDATE. Use attribute_operations to add new attributes.
         
        repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
        Specified by:
        getAttributesOrBuilder in interface FeedOrBuilder
      • getAttributeOperationsList

        public java.util.List<FeedAttributeOperation> getAttributeOperationsList()
         The list of operations changing the feed attributes. Attributes can only
         be added, not removed.
         
        repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
        Specified by:
        getAttributeOperationsList in interface FeedOrBuilder
      • getAttributeOperationsOrBuilderList

        public java.util.List<? extends FeedAttributeOperationOrBuilder> getAttributeOperationsOrBuilderList()
         The list of operations changing the feed attributes. Attributes can only
         be added, not removed.
         
        repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
        Specified by:
        getAttributeOperationsOrBuilderList in interface FeedOrBuilder
      • getAttributeOperationsCount

        public int getAttributeOperationsCount()
         The list of operations changing the feed attributes. Attributes can only
         be added, not removed.
         
        repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
        Specified by:
        getAttributeOperationsCount in interface FeedOrBuilder
      • getAttributeOperations

        public FeedAttributeOperation getAttributeOperations​(int index)
         The list of operations changing the feed attributes. Attributes can only
         be added, not removed.
         
        repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
        Specified by:
        getAttributeOperations in interface FeedOrBuilder
      • getAttributeOperationsOrBuilder

        public FeedAttributeOperationOrBuilder getAttributeOperationsOrBuilder​(int index)
         The list of operations changing the feed attributes. Attributes can only
         be added, not removed.
         
        repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
        Specified by:
        getAttributeOperationsOrBuilder in interface FeedOrBuilder
      • getOriginValue

        public int getOriginValue()
         Immutable. Specifies who manages the FeedAttributes for the Feed.
         
        .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getOriginValue in interface FeedOrBuilder
        Returns:
        The enum numeric value on the wire for origin.
      • getOrigin

        public FeedOriginEnum.FeedOrigin getOrigin()
         Immutable. Specifies who manages the FeedAttributes for the Feed.
         
        .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getOrigin in interface FeedOrBuilder
        Returns:
        The origin.
      • getStatusValue

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

        public FeedStatusEnum.FeedStatus getStatus()
         Output only. Status of the feed.
         This field is read-only.
         
        .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface FeedOrBuilder
        Returns:
        The status.
      • hasPlacesLocationFeedData

        public boolean hasPlacesLocationFeedData()
         Data used to configure a location feed populated from Business Profile.
         
        .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
        Specified by:
        hasPlacesLocationFeedData in interface FeedOrBuilder
        Returns:
        Whether the placesLocationFeedData field is set.
      • getPlacesLocationFeedData

        public Feed.PlacesLocationFeedData getPlacesLocationFeedData()
         Data used to configure a location feed populated from Business Profile.
         
        .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
        Specified by:
        getPlacesLocationFeedData in interface FeedOrBuilder
        Returns:
        The placesLocationFeedData.
      • hasAffiliateLocationFeedData

        public boolean hasAffiliateLocationFeedData()
         Data used to configure an affiliate location feed populated with
         the specified chains.
         
        .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
        Specified by:
        hasAffiliateLocationFeedData in interface FeedOrBuilder
        Returns:
        Whether the affiliateLocationFeedData field is set.
      • getAffiliateLocationFeedData

        public Feed.AffiliateLocationFeedData getAffiliateLocationFeedData()
         Data used to configure an affiliate location feed populated with
         the specified chains.
         
        .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
        Specified by:
        getAffiliateLocationFeedData in interface FeedOrBuilder
        Returns:
        The affiliateLocationFeedData.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Feed parseFrom​(java.nio.ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Feed parseFrom​(java.nio.ByteBuffer data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Feed parseFrom​(com.google.protobuf.ByteString data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Feed parseFrom​(com.google.protobuf.ByteString data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Feed parseFrom​(byte[] data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Feed parseFrom​(byte[] data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Feed parseFrom​(java.io.InputStream input)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Feed parseFrom​(java.io.InputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Feed parseDelimitedFrom​(java.io.InputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Feed parseDelimitedFrom​(java.io.InputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Feed parseFrom​(com.google.protobuf.CodedInputStream input)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Feed parseFrom​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Feed.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Feed.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Feed.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Feed getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Feed> parser()
      • getParserForType

        public com.google.protobuf.Parser<Feed> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Feed getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder