Class FeedItemTarget

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

    public final class FeedItemTarget
    extends com.google.protobuf.GeneratedMessageV3
    implements FeedItemTargetOrBuilder
     A feed item target.
     
    Protobuf type google.ads.googleads.v10.resources.FeedItemTarget
    See Also:
    Serialized Form
    • 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 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 java.lang.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.v10.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.v10.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.v10.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.
      • 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 java.lang.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 java.lang.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.v10.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.v10.common.KeywordInfo keyword = 7 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getKeyword in interface FeedItemTargetOrBuilder
        Returns:
        The keyword.
      • 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 java.lang.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.v10.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.v10.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.
      • hasAdSchedule

        public boolean hasAdSchedule()
         Immutable. The targeted schedule.
         
        .google.ads.googleads.v10.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.v10.common.AdScheduleInfo ad_schedule = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getAdSchedule in interface FeedItemTargetOrBuilder
        Returns:
        The adSchedule.
      • 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 FeedItemTarget parseFrom​(java.nio.ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FeedItemTarget parseFrom​(java.nio.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​(java.io.InputStream input)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

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

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

        public FeedItemTarget.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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