Class FeedItemTarget

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

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

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • FEED_ITEM_FIELD_NUMBER

      public static final int FEED_ITEM_FIELD_NUMBER
      See Also:
    • FEED_ITEM_TARGET_TYPE_FIELD_NUMBER

      public static final int FEED_ITEM_TARGET_TYPE_FIELD_NUMBER
      See Also:
    • FEED_ITEM_TARGET_ID_FIELD_NUMBER

      public static final int FEED_ITEM_TARGET_ID_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • CAMPAIGN_FIELD_NUMBER

      public static final int CAMPAIGN_FIELD_NUMBER
      See Also:
    • AD_GROUP_FIELD_NUMBER

      public static final int AD_GROUP_FIELD_NUMBER
      See Also:
    • KEYWORD_FIELD_NUMBER

      public static final int KEYWORD_FIELD_NUMBER
      See Also:
    • GEO_TARGET_CONSTANT_FIELD_NUMBER

      public static final int GEO_TARGET_CONSTANT_FIELD_NUMBER
      See Also:
    • DEVICE_FIELD_NUMBER

      public static final int DEVICE_FIELD_NUMBER
      See Also:
    • AD_SCHEDULE_FIELD_NUMBER

      public static final int AD_SCHEDULE_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
    • getTargetCase

      public FeedItemTarget.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface FeedItemTargetOrBuilder
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the feed item target.
       Feed item target resource names have the form:
       `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface FeedItemTargetOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

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

      public boolean hasFeedItem()
       Immutable. The feed item to which this feed item target belongs.
       
      optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasFeedItem in interface FeedItemTargetOrBuilder
      Returns:
      Whether the feedItem field is set.
    • getFeedItem

      public String getFeedItem()
       Immutable. The feed item to which this feed item target belongs.
       
      optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getFeedItem in interface FeedItemTargetOrBuilder
      Returns:
      The feedItem.
    • getFeedItemBytes

      public com.google.protobuf.ByteString getFeedItemBytes()
       Immutable. The feed item to which this feed item target belongs.
       
      optional string feed_item = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getFeedItemBytes in interface FeedItemTargetOrBuilder
      Returns:
      The bytes for feedItem.
    • getFeedItemTargetTypeValue

      public int getFeedItemTargetTypeValue()
       Output only. The target type of this feed item target. This field is
       read-only.
       
      .google.ads.googleads.v18.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFeedItemTargetTypeValue in interface FeedItemTargetOrBuilder
      Returns:
      The enum numeric value on the wire for feedItemTargetType.
    • getFeedItemTargetType

      public FeedItemTargetTypeEnum.FeedItemTargetType getFeedItemTargetType()
       Output only. The target type of this feed item target. This field is
       read-only.
       
      .google.ads.googleads.v18.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFeedItemTargetType in interface FeedItemTargetOrBuilder
      Returns:
      The feedItemTargetType.
    • hasFeedItemTargetId

      public boolean hasFeedItemTargetId()
       Output only. The ID of the targeted resource. This field is read-only.
       
      optional int64 feed_item_target_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFeedItemTargetId in interface FeedItemTargetOrBuilder
      Returns:
      Whether the feedItemTargetId field is set.
    • getFeedItemTargetId

      public long getFeedItemTargetId()
       Output only. The ID of the targeted resource. This field is read-only.
       
      optional int64 feed_item_target_id = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFeedItemTargetId in interface FeedItemTargetOrBuilder
      Returns:
      The feedItemTargetId.
    • getStatusValue

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

       Output only. Status of the feed item target.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface FeedItemTargetOrBuilder
      Returns:
      The status.
    • hasCampaign

      public boolean hasCampaign()
       Immutable. The targeted campaign.
       
      string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasCampaign in interface FeedItemTargetOrBuilder
      Returns:
      Whether the campaign field is set.
    • getCampaign

      public String getCampaign()
       Immutable. The targeted campaign.
       
      string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaign in interface FeedItemTargetOrBuilder
      Returns:
      The campaign.
    • getCampaignBytes

      public com.google.protobuf.ByteString getCampaignBytes()
       Immutable. The targeted campaign.
       
      string campaign = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignBytes in interface FeedItemTargetOrBuilder
      Returns:
      The bytes for campaign.
    • hasAdGroup

      public boolean hasAdGroup()
       Immutable. The targeted ad group.
       
      string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasAdGroup in interface FeedItemTargetOrBuilder
      Returns:
      Whether the adGroup field is set.
    • getAdGroup

      public String getAdGroup()
       Immutable. The targeted ad group.
       
      string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getAdGroup in interface FeedItemTargetOrBuilder
      Returns:
      The adGroup.
    • getAdGroupBytes

      public com.google.protobuf.ByteString getAdGroupBytes()
       Immutable. The targeted ad group.
       
      string ad_group = 15 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getAdGroupBytes in interface FeedItemTargetOrBuilder
      Returns:
      The bytes for adGroup.
    • hasKeyword

      public boolean hasKeyword()
       Immutable. The targeted keyword.
       
      .google.ads.googleads.v18.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasKeyword in interface FeedItemTargetOrBuilder
      Returns:
      Whether the keyword field is set.
    • getKeyword

      public KeywordInfo getKeyword()
       Immutable. The targeted keyword.
       
      .google.ads.googleads.v18.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getKeyword in interface FeedItemTargetOrBuilder
      Returns:
      The keyword.
    • getKeywordOrBuilder

      public KeywordInfoOrBuilder getKeywordOrBuilder()
       Immutable. The targeted keyword.
       
      .google.ads.googleads.v18.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getKeywordOrBuilder in interface FeedItemTargetOrBuilder
    • hasGeoTargetConstant

      public boolean hasGeoTargetConstant()
       Immutable. The targeted geo target constant resource name.
       
      string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasGeoTargetConstant in interface FeedItemTargetOrBuilder
      Returns:
      Whether the geoTargetConstant field is set.
    • getGeoTargetConstant

      public String getGeoTargetConstant()
       Immutable. The targeted geo target constant resource name.
       
      string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getGeoTargetConstant in interface FeedItemTargetOrBuilder
      Returns:
      The geoTargetConstant.
    • getGeoTargetConstantBytes

      public com.google.protobuf.ByteString getGeoTargetConstantBytes()
       Immutable. The targeted geo target constant resource name.
       
      string geo_target_constant = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getGeoTargetConstantBytes in interface FeedItemTargetOrBuilder
      Returns:
      The bytes for geoTargetConstant.
    • hasDevice

      public boolean hasDevice()
       Immutable. The targeted device.
       
      .google.ads.googleads.v18.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasDevice in interface FeedItemTargetOrBuilder
      Returns:
      Whether the device field is set.
    • getDeviceValue

      public int getDeviceValue()
       Immutable. The targeted device.
       
      .google.ads.googleads.v18.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDeviceValue in interface FeedItemTargetOrBuilder
      Returns:
      The enum numeric value on the wire for device.
    • getDevice

       Immutable. The targeted device.
       
      .google.ads.googleads.v18.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDevice in interface FeedItemTargetOrBuilder
      Returns:
      The device.
    • hasAdSchedule

      public boolean hasAdSchedule()
       Immutable. The targeted schedule.
       
      .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasAdSchedule in interface FeedItemTargetOrBuilder
      Returns:
      Whether the adSchedule field is set.
    • getAdSchedule

      public AdScheduleInfo getAdSchedule()
       Immutable. The targeted schedule.
       
      .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAdSchedule in interface FeedItemTargetOrBuilder
      Returns:
      The adSchedule.
    • getAdScheduleOrBuilder

      public AdScheduleInfoOrBuilder getAdScheduleOrBuilder()
       Immutable. The targeted schedule.
       
      .google.ads.googleads.v18.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAdScheduleOrBuilder in interface FeedItemTargetOrBuilder
    • 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 FeedItemTarget parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeedItemTarget parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

      public static FeedItemTarget parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

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

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

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

      public static FeedItemTarget.Builder newBuilder()
    • newBuilder

      public static FeedItemTarget.Builder newBuilder(FeedItemTarget prototype)
    • toBuilder

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

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

      public static FeedItemTarget getDefaultInstance()
    • parser

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

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