Class FeedItem

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

    public final class FeedItem
    extends com.google.protobuf.GeneratedMessageV3
    implements FeedItemOrBuilder
     A feed item.
     
    Protobuf type google.ads.googleads.v13.resources.FeedItem
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

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

        public static final int START_DATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • END_DATE_TIME_FIELD_NUMBER

        public static final int END_DATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ATTRIBUTE_VALUES_FIELD_NUMBER

        public static final int ATTRIBUTE_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GEO_TARGETING_RESTRICTION_FIELD_NUMBER

        public static final int GEO_TARGETING_RESTRICTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • URL_CUSTOM_PARAMETERS_FIELD_NUMBER

        public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • POLICY_INFOS_FIELD_NUMBER

        public static final int POLICY_INFOS_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
      • 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 item.
         Feed item resource names have the form:
        
         `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface FeedItemOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

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

        public boolean hasFeed()
         Immutable. The feed to which this feed item belongs.
         
        optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasFeed in interface FeedItemOrBuilder
        Returns:
        Whether the feed field is set.
      • getFeed

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

        public com.google.protobuf.ByteString getFeedBytes()
         Immutable. The feed to which this feed item belongs.
         
        optional string feed = 11 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getFeedBytes in interface FeedItemOrBuilder
        Returns:
        The bytes for feed.
      • hasId

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

        public long getId()
         Output only. The ID of this feed item.
         
        optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface FeedItemOrBuilder
        Returns:
        The id.
      • hasStartDateTime

        public boolean hasStartDateTime()
         Start time in which this feed item is effective and can begin serving. The
         time is in the customer's time zone.
         The format is "YYYY-MM-DD HH:MM:SS".
         Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
         
        optional string start_date_time = 13;
        Specified by:
        hasStartDateTime in interface FeedItemOrBuilder
        Returns:
        Whether the startDateTime field is set.
      • getStartDateTime

        public java.lang.String getStartDateTime()
         Start time in which this feed item is effective and can begin serving. The
         time is in the customer's time zone.
         The format is "YYYY-MM-DD HH:MM:SS".
         Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
         
        optional string start_date_time = 13;
        Specified by:
        getStartDateTime in interface FeedItemOrBuilder
        Returns:
        The startDateTime.
      • getStartDateTimeBytes

        public com.google.protobuf.ByteString getStartDateTimeBytes()
         Start time in which this feed item is effective and can begin serving. The
         time is in the customer's time zone.
         The format is "YYYY-MM-DD HH:MM:SS".
         Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
         
        optional string start_date_time = 13;
        Specified by:
        getStartDateTimeBytes in interface FeedItemOrBuilder
        Returns:
        The bytes for startDateTime.
      • hasEndDateTime

        public boolean hasEndDateTime()
         End time in which this feed item is no longer effective and will stop
         serving. The time is in the customer's time zone.
         The format is "YYYY-MM-DD HH:MM:SS".
         Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
         
        optional string end_date_time = 14;
        Specified by:
        hasEndDateTime in interface FeedItemOrBuilder
        Returns:
        Whether the endDateTime field is set.
      • getEndDateTime

        public java.lang.String getEndDateTime()
         End time in which this feed item is no longer effective and will stop
         serving. The time is in the customer's time zone.
         The format is "YYYY-MM-DD HH:MM:SS".
         Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
         
        optional string end_date_time = 14;
        Specified by:
        getEndDateTime in interface FeedItemOrBuilder
        Returns:
        The endDateTime.
      • getEndDateTimeBytes

        public com.google.protobuf.ByteString getEndDateTimeBytes()
         End time in which this feed item is no longer effective and will stop
         serving. The time is in the customer's time zone.
         The format is "YYYY-MM-DD HH:MM:SS".
         Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
         
        optional string end_date_time = 14;
        Specified by:
        getEndDateTimeBytes in interface FeedItemOrBuilder
        Returns:
        The bytes for endDateTime.
      • getAttributeValuesCount

        public int getAttributeValuesCount()
         The feed item's attribute values.
         
        repeated .google.ads.googleads.v13.resources.FeedItemAttributeValue attribute_values = 6;
        Specified by:
        getAttributeValuesCount in interface FeedItemOrBuilder
      • getGeoTargetingRestrictionValue

        public int getGeoTargetingRestrictionValue()
         Geo targeting restriction specifies the type of location that can be used
         for targeting.
         
        .google.ads.googleads.v13.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
        Specified by:
        getGeoTargetingRestrictionValue in interface FeedItemOrBuilder
        Returns:
        The enum numeric value on the wire for geoTargetingRestriction.
      • getUrlCustomParametersList

        public java.util.List<CustomParameter> getUrlCustomParametersList()
         The list of mappings used to substitute custom parameter tags in a
         `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
         
        repeated .google.ads.googleads.v13.common.CustomParameter url_custom_parameters = 8;
        Specified by:
        getUrlCustomParametersList in interface FeedItemOrBuilder
      • getUrlCustomParametersOrBuilderList

        public java.util.List<? extends CustomParameterOrBuilder> getUrlCustomParametersOrBuilderList()
         The list of mappings used to substitute custom parameter tags in a
         `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
         
        repeated .google.ads.googleads.v13.common.CustomParameter url_custom_parameters = 8;
        Specified by:
        getUrlCustomParametersOrBuilderList in interface FeedItemOrBuilder
      • getUrlCustomParametersCount

        public int getUrlCustomParametersCount()
         The list of mappings used to substitute custom parameter tags in a
         `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
         
        repeated .google.ads.googleads.v13.common.CustomParameter url_custom_parameters = 8;
        Specified by:
        getUrlCustomParametersCount in interface FeedItemOrBuilder
      • getUrlCustomParameters

        public CustomParameter getUrlCustomParameters​(int index)
         The list of mappings used to substitute custom parameter tags in a
         `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
         
        repeated .google.ads.googleads.v13.common.CustomParameter url_custom_parameters = 8;
        Specified by:
        getUrlCustomParameters in interface FeedItemOrBuilder
      • getUrlCustomParametersOrBuilder

        public CustomParameterOrBuilder getUrlCustomParametersOrBuilder​(int index)
         The list of mappings used to substitute custom parameter tags in a
         `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
         
        repeated .google.ads.googleads.v13.common.CustomParameter url_custom_parameters = 8;
        Specified by:
        getUrlCustomParametersOrBuilder in interface FeedItemOrBuilder
      • getStatusValue

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

        public FeedItemStatusEnum.FeedItemStatus getStatus()
         Output only. Status of the feed item.
         This field is read-only.
         
        .google.ads.googleads.v13.enums.FeedItemStatusEnum.FeedItemStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface FeedItemOrBuilder
        Returns:
        The status.
      • getPolicyInfosList

        public java.util.List<FeedItemPlaceholderPolicyInfo> getPolicyInfosList()
         Output only. List of info about a feed item's validation and approval state
         for active feed mappings. There will be an entry in the list for each type
         of feed mapping associated with the feed, for example, a feed with a
         sitelink and a call feed mapping would cause every feed item associated
         with that feed to have an entry in this list for both sitelink and call.
         This field is read-only.
         
        repeated .google.ads.googleads.v13.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPolicyInfosList in interface FeedItemOrBuilder
      • getPolicyInfosOrBuilderList

        public java.util.List<? extends FeedItemPlaceholderPolicyInfoOrBuilder> getPolicyInfosOrBuilderList()
         Output only. List of info about a feed item's validation and approval state
         for active feed mappings. There will be an entry in the list for each type
         of feed mapping associated with the feed, for example, a feed with a
         sitelink and a call feed mapping would cause every feed item associated
         with that feed to have an entry in this list for both sitelink and call.
         This field is read-only.
         
        repeated .google.ads.googleads.v13.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPolicyInfosOrBuilderList in interface FeedItemOrBuilder
      • getPolicyInfosCount

        public int getPolicyInfosCount()
         Output only. List of info about a feed item's validation and approval state
         for active feed mappings. There will be an entry in the list for each type
         of feed mapping associated with the feed, for example, a feed with a
         sitelink and a call feed mapping would cause every feed item associated
         with that feed to have an entry in this list for both sitelink and call.
         This field is read-only.
         
        repeated .google.ads.googleads.v13.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPolicyInfosCount in interface FeedItemOrBuilder
      • getPolicyInfos

        public FeedItemPlaceholderPolicyInfo getPolicyInfos​(int index)
         Output only. List of info about a feed item's validation and approval state
         for active feed mappings. There will be an entry in the list for each type
         of feed mapping associated with the feed, for example, a feed with a
         sitelink and a call feed mapping would cause every feed item associated
         with that feed to have an entry in this list for both sitelink and call.
         This field is read-only.
         
        repeated .google.ads.googleads.v13.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPolicyInfos in interface FeedItemOrBuilder
      • getPolicyInfosOrBuilder

        public FeedItemPlaceholderPolicyInfoOrBuilder getPolicyInfosOrBuilder​(int index)
         Output only. List of info about a feed item's validation and approval state
         for active feed mappings. There will be an entry in the list for each type
         of feed mapping associated with the feed, for example, a feed with a
         sitelink and a call feed mapping would cause every feed item associated
         with that feed to have an entry in this list for both sitelink and call.
         This field is read-only.
         
        repeated .google.ads.googleads.v13.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPolicyInfosOrBuilder in interface FeedItemOrBuilder
      • 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 FeedItem parseFrom​(java.nio.ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static FeedItem getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<FeedItem> 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 FeedItem getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder