Class AdVideoAssetInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
com.google.ads.googleads.v18.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.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder> implements AdVideoAssetInfoOrBuilder
 Contains info fields for AdVideoAssets.
 
Protobuf type google.ads.googleads.v18.common.AdVideoAssetInfo
  • Method Details

    • 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.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.GeneratedMessageV3.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.GeneratedMessageV3.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
    • clone

      public AdVideoAssetInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
    • setField

      public AdVideoAssetInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
    • clearField

      public AdVideoAssetInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
    • clearOneof

      public AdVideoAssetInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
    • setRepeatedField

      public AdVideoAssetInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
    • addRepeatedField

      public AdVideoAssetInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.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.GeneratedMessageV3.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.common.AdVideoAssetInventoryPreferences ad_video_asset_inventory_preferences = 1;
      Specified by:
      getAdVideoAssetInventoryPreferencesOrBuilder in interface AdVideoAssetInfoOrBuilder
    • setUnknownFields

      public final AdVideoAssetInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>
    • mergeUnknownFields

      public final AdVideoAssetInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdVideoAssetInfo.Builder>