Class AdVideoAssetInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdVideoAssetInfo.Builder>
com.google.ads.googleads.v22.common.AdVideoAssetInfo.Builder
All Implemented Interfaces:
AdVideoAssetInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdVideoAssetInfo

public static final class AdVideoAssetInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdVideoAssetInfo.Builder> implements AdVideoAssetInfoOrBuilder
 Contains info fields for AdVideoAssets.
 
Protobuf type google.ads.googleads.v22.common.AdVideoAssetInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AdVideoAssetInfo.Builder>
    • clear

      public AdVideoAssetInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AdVideoAssetInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AdVideoAssetInfo.Builder>
    • getDefaultInstanceForType

      public AdVideoAssetInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AdVideoAssetInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AdVideoAssetInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AdVideoAssetInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdVideoAssetInfo.Builder>
    • mergeFrom

      public AdVideoAssetInfo.Builder mergeFrom(AdVideoAssetInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AdVideoAssetInfo.Builder>
    • mergeFrom

      public AdVideoAssetInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdVideoAssetInfo.Builder>
      Throws:
      IOException
    • hasAdVideoAssetInventoryPreferences

      public boolean hasAdVideoAssetInventoryPreferences()
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
      Specified by:
      hasAdVideoAssetInventoryPreferences in interface AdVideoAssetInfoOrBuilder
      Returns:
      Whether the adVideoAssetInventoryPreferences field is set.
    • getAdVideoAssetInventoryPreferences

      public AdVideoAssetInventoryPreferences getAdVideoAssetInventoryPreferences()
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
      Specified by:
      getAdVideoAssetInventoryPreferences in interface AdVideoAssetInfoOrBuilder
      Returns:
      The adVideoAssetInventoryPreferences.
    • setAdVideoAssetInventoryPreferences

      public AdVideoAssetInfo.Builder setAdVideoAssetInventoryPreferences(AdVideoAssetInventoryPreferences value)
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
    • setAdVideoAssetInventoryPreferences

      public AdVideoAssetInfo.Builder setAdVideoAssetInventoryPreferences(AdVideoAssetInventoryPreferences.Builder builderForValue)
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
    • mergeAdVideoAssetInventoryPreferences

      public AdVideoAssetInfo.Builder mergeAdVideoAssetInventoryPreferences(AdVideoAssetInventoryPreferences value)
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
    • clearAdVideoAssetInventoryPreferences

      public AdVideoAssetInfo.Builder clearAdVideoAssetInventoryPreferences()
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
    • getAdVideoAssetInventoryPreferencesBuilder

      public AdVideoAssetInventoryPreferences.Builder getAdVideoAssetInventoryPreferencesBuilder()
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
    • getAdVideoAssetInventoryPreferencesOrBuilder

      public AdVideoAssetInventoryPreferencesOrBuilder getAdVideoAssetInventoryPreferencesOrBuilder()
       List of inventory preferences for this AdVideoAsset. This field can only be
       set for DiscoveryVideoResponsiveAd. The video assets with an inventory
       asset preference set will be preferred over other videos from the same ad
       during serving time. For example, consider this ad being served for a
       specific inventory. The server will first try to match an eligible video
       with a matching preference for that inventory. Videos with no preferences
       are chosen only when a video with matching preference and eligible for a
       given ad slot can be found.
       
      optional .google.ads.googleads.v22.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
      Specified by:
      getAdVideoAssetInventoryPreferencesOrBuilder in interface AdVideoAssetInfoOrBuilder