Class ChangeEvent.ChangedResource

  • All Implemented Interfaces:
    ChangeEvent.ChangedResourceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable
    Enclosing class:
    ChangeEvent

    public static final class ChangeEvent.ChangedResource
    extends com.google.protobuf.GeneratedMessageV3
    implements ChangeEvent.ChangedResourceOrBuilder
     A wrapper proto presenting all supported resources.
     Only the resource of the change_resource_type will be set.
     
    Protobuf type google.ads.googleads.v10.resources.ChangeEvent.ChangedResource
    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
      • hasAd

        public boolean hasAd()
         Output only. Set if change_resource_type == AD.
         
        .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAd in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the ad field is set.
      • getAd

        public Ad getAd()
         Output only. Set if change_resource_type == AD.
         
        .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAd in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The ad.
      • hasAdGroup

        public boolean hasAdGroup()
         Output only. Set if change_resource_type == AD_GROUP.
         
        .google.ads.googleads.v10.resources.AdGroup ad_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAdGroup in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the adGroup field is set.
      • getAdGroup

        public AdGroup getAdGroup()
         Output only. Set if change_resource_type == AD_GROUP.
         
        .google.ads.googleads.v10.resources.AdGroup ad_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdGroup in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The adGroup.
      • hasAdGroupCriterion

        public boolean hasAdGroupCriterion()
         Output only. Set if change_resource_type == AD_GROUP_CRITERION.
         
        .google.ads.googleads.v10.resources.AdGroupCriterion ad_group_criterion = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAdGroupCriterion in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the adGroupCriterion field is set.
      • getAdGroupCriterion

        public AdGroupCriterion getAdGroupCriterion()
         Output only. Set if change_resource_type == AD_GROUP_CRITERION.
         
        .google.ads.googleads.v10.resources.AdGroupCriterion ad_group_criterion = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdGroupCriterion in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The adGroupCriterion.
      • hasCampaign

        public boolean hasCampaign()
         Output only. Set if change_resource_type == CAMPAIGN.
         
        .google.ads.googleads.v10.resources.Campaign campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCampaign in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the campaign field is set.
      • getCampaign

        public Campaign getCampaign()
         Output only. Set if change_resource_type == CAMPAIGN.
         
        .google.ads.googleads.v10.resources.Campaign campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCampaign in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The campaign.
      • hasCampaignBudget

        public boolean hasCampaignBudget()
         Output only. Set if change_resource_type == CAMPAIGN_BUDGET.
         
        .google.ads.googleads.v10.resources.CampaignBudget campaign_budget = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCampaignBudget in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the campaignBudget field is set.
      • getCampaignBudget

        public CampaignBudget getCampaignBudget()
         Output only. Set if change_resource_type == CAMPAIGN_BUDGET.
         
        .google.ads.googleads.v10.resources.CampaignBudget campaign_budget = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCampaignBudget in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The campaignBudget.
      • hasAdGroupBidModifier

        public boolean hasAdGroupBidModifier()
         Output only. Set if change_resource_type == AD_GROUP_BID_MODIFIER.
         
        .google.ads.googleads.v10.resources.AdGroupBidModifier ad_group_bid_modifier = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAdGroupBidModifier in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the adGroupBidModifier field is set.
      • getAdGroupBidModifier

        public AdGroupBidModifier getAdGroupBidModifier()
         Output only. Set if change_resource_type == AD_GROUP_BID_MODIFIER.
         
        .google.ads.googleads.v10.resources.AdGroupBidModifier ad_group_bid_modifier = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdGroupBidModifier in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The adGroupBidModifier.
      • hasCampaignCriterion

        public boolean hasCampaignCriterion()
         Output only. Set if change_resource_type == CAMPAIGN_CRITERION.
         
        .google.ads.googleads.v10.resources.CampaignCriterion campaign_criterion = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCampaignCriterion in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the campaignCriterion field is set.
      • getCampaignCriterion

        public CampaignCriterion getCampaignCriterion()
         Output only. Set if change_resource_type == CAMPAIGN_CRITERION.
         
        .google.ads.googleads.v10.resources.CampaignCriterion campaign_criterion = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCampaignCriterion in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The campaignCriterion.
      • hasFeed

        public boolean hasFeed()
         Output only. Set if change_resource_type == FEED.
         
        .google.ads.googleads.v10.resources.Feed feed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasFeed in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the feed field is set.
      • getFeed

        public Feed getFeed()
         Output only. Set if change_resource_type == FEED.
         
        .google.ads.googleads.v10.resources.Feed feed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFeed in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The feed.
      • hasFeedItem

        public boolean hasFeedItem()
         Output only. Set if change_resource_type == FEED_ITEM.
         
        .google.ads.googleads.v10.resources.FeedItem feed_item = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasFeedItem in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the feedItem field is set.
      • getFeedItem

        public FeedItem getFeedItem()
         Output only. Set if change_resource_type == FEED_ITEM.
         
        .google.ads.googleads.v10.resources.FeedItem feed_item = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFeedItem in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The feedItem.
      • hasCampaignFeed

        public boolean hasCampaignFeed()
         Output only. Set if change_resource_type == CAMPAIGN_FEED.
         
        .google.ads.googleads.v10.resources.CampaignFeed campaign_feed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCampaignFeed in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the campaignFeed field is set.
      • getCampaignFeed

        public CampaignFeed getCampaignFeed()
         Output only. Set if change_resource_type == CAMPAIGN_FEED.
         
        .google.ads.googleads.v10.resources.CampaignFeed campaign_feed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCampaignFeed in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The campaignFeed.
      • hasAdGroupFeed

        public boolean hasAdGroupFeed()
         Output only. Set if change_resource_type == AD_GROUP_FEED.
         
        .google.ads.googleads.v10.resources.AdGroupFeed ad_group_feed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAdGroupFeed in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the adGroupFeed field is set.
      • getAdGroupFeed

        public AdGroupFeed getAdGroupFeed()
         Output only. Set if change_resource_type == AD_GROUP_FEED.
         
        .google.ads.googleads.v10.resources.AdGroupFeed ad_group_feed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdGroupFeed in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The adGroupFeed.
      • hasAdGroupAd

        public boolean hasAdGroupAd()
         Output only. Set if change_resource_type == AD_GROUP_AD.
         
        .google.ads.googleads.v10.resources.AdGroupAd ad_group_ad = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAdGroupAd in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the adGroupAd field is set.
      • getAdGroupAd

        public AdGroupAd getAdGroupAd()
         Output only. Set if change_resource_type == AD_GROUP_AD.
         
        .google.ads.googleads.v10.resources.AdGroupAd ad_group_ad = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdGroupAd in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The adGroupAd.
      • hasAsset

        public boolean hasAsset()
         Output only. Set if change_resource_type == ASSET.
         
        .google.ads.googleads.v10.resources.Asset asset = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the asset field is set.
      • getAsset

        public Asset getAsset()
         Output only. Set if change_resource_type == ASSET.
         
        .google.ads.googleads.v10.resources.Asset asset = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The asset.
      • hasCustomerAsset

        public boolean hasCustomerAsset()
         Output only. Set if change_resource_type == CUSTOMER_ASSET.
         
        .google.ads.googleads.v10.resources.CustomerAsset customer_asset = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCustomerAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the customerAsset field is set.
      • getCustomerAsset

        public CustomerAsset getCustomerAsset()
         Output only. Set if change_resource_type == CUSTOMER_ASSET.
         
        .google.ads.googleads.v10.resources.CustomerAsset customer_asset = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCustomerAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The customerAsset.
      • hasCampaignAsset

        public boolean hasCampaignAsset()
         Output only. Set if change_resource_type == CAMPAIGN_ASSET.
         
        .google.ads.googleads.v10.resources.CampaignAsset campaign_asset = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCampaignAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the campaignAsset field is set.
      • getCampaignAsset

        public CampaignAsset getCampaignAsset()
         Output only. Set if change_resource_type == CAMPAIGN_ASSET.
         
        .google.ads.googleads.v10.resources.CampaignAsset campaign_asset = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCampaignAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The campaignAsset.
      • hasAdGroupAsset

        public boolean hasAdGroupAsset()
         Output only. Set if change_resource_type == AD_GROUP_ASSET.
         
        .google.ads.googleads.v10.resources.AdGroupAsset ad_group_asset = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAdGroupAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        Whether the adGroupAsset field is set.
      • getAdGroupAsset

        public AdGroupAsset getAdGroupAsset()
         Output only. Set if change_resource_type == AD_GROUP_ASSET.
         
        .google.ads.googleads.v10.resources.AdGroupAsset ad_group_asset = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAdGroupAsset in interface ChangeEvent.ChangedResourceOrBuilder
        Returns:
        The adGroupAsset.
      • 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 ChangeEvent.ChangedResource parseFrom​(java.nio.ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

        protected ChangeEvent.ChangedResource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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