Class FeedItem

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.FeedItem
All Implemented Interfaces:
FeedItemOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

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

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • FEED_FIELD_NUMBER

      public static final int FEED_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • START_DATE_TIME_FIELD_NUMBER

      public static final int START_DATE_TIME_FIELD_NUMBER
      See Also:
    • END_DATE_TIME_FIELD_NUMBER

      public static final int END_DATE_TIME_FIELD_NUMBER
      See Also:
    • ATTRIBUTE_VALUES_FIELD_NUMBER

      public static final int ATTRIBUTE_VALUES_FIELD_NUMBER
      See Also:
    • GEO_TARGETING_RESTRICTION_FIELD_NUMBER

      public static final int GEO_TARGETING_RESTRICTION_FIELD_NUMBER
      See Also:
    • URL_CUSTOM_PARAMETERS_FIELD_NUMBER

      public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • POLICY_INFOS_FIELD_NUMBER

      public static final int POLICY_INFOS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected 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 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 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 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 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.
    • getAttributeValuesList

      public List<FeedItemAttributeValue> getAttributeValuesList()
       The feed item's attribute values.
       
      repeated .google.ads.googleads.v18.resources.FeedItemAttributeValue attribute_values = 6;
      Specified by:
      getAttributeValuesList in interface FeedItemOrBuilder
    • getAttributeValuesOrBuilderList

      public List<? extends FeedItemAttributeValueOrBuilder> getAttributeValuesOrBuilderList()
       The feed item's attribute values.
       
      repeated .google.ads.googleads.v18.resources.FeedItemAttributeValue attribute_values = 6;
      Specified by:
      getAttributeValuesOrBuilderList in interface FeedItemOrBuilder
    • getAttributeValuesCount

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

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

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

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

      public GeoTargetingRestrictionEnum.GeoTargetingRestriction getGeoTargetingRestriction()
       Geo targeting restriction specifies the type of location that can be used
       for targeting.
       
      .google.ads.googleads.v18.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction geo_targeting_restriction = 7;
      Specified by:
      getGeoTargetingRestriction in interface FeedItemOrBuilder
      Returns:
      The geoTargetingRestriction.
    • getUrlCustomParametersList

      public 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.v18.common.CustomParameter url_custom_parameters = 8;
      Specified by:
      getUrlCustomParametersList in interface FeedItemOrBuilder
    • getUrlCustomParametersOrBuilderList

      public 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.v18.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.v18.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.v18.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.v18.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.v18.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

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

      public 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.v18.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyInfosList in interface FeedItemOrBuilder
    • getPolicyInfosOrBuilderList

      public 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.v18.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.v18.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.v18.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.v18.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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      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(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeedItem parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static FeedItem parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static FeedItem.Builder newBuilder()
    • newBuilder

      public static FeedItem.Builder newBuilder(FeedItem prototype)
    • 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