Class VodSessionAd.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VodSessionAd.Builder>
com.google.cloud.video.stitcher.v1.VodSessionAd.Builder
All Implemented Interfaces:
VodSessionAdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VodSessionAd

public static final class VodSessionAd.Builder extends com.google.protobuf.GeneratedMessage.Builder<VodSessionAd.Builder> implements VodSessionAdOrBuilder
 Metadata for an inserted ad in a VOD session.
 
Protobuf type google.cloud.video.stitcher.v1.VodSessionAd
  • 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<VodSessionAd.Builder>
    • clear

      public VodSessionAd.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<VodSessionAd.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<VodSessionAd.Builder>
    • getDefaultInstanceForType

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

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

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

      public VodSessionAd.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<VodSessionAd.Builder>
    • mergeFrom

      public VodSessionAd.Builder mergeFrom(VodSessionAd other)
    • isInitialized

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

      public VodSessionAd.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<VodSessionAd.Builder>
      Throws:
      IOException
    • hasDuration

      public boolean hasDuration()
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
      Specified by:
      hasDuration in interface VodSessionAdOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
      Specified by:
      getDuration in interface VodSessionAdOrBuilder
      Returns:
      The duration.
    • setDuration

      public VodSessionAd.Builder setDuration(com.google.protobuf.Duration value)
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
    • setDuration

      public VodSessionAd.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
    • mergeDuration

      public VodSessionAd.Builder mergeDuration(com.google.protobuf.Duration value)
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
    • clearDuration

      public VodSessionAd.Builder clearDuration()
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
    • getDurationBuilder

      public com.google.protobuf.Duration.Builder getDurationBuilder()
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Duration in seconds of the ad.
       
      .google.protobuf.Duration duration = 1;
      Specified by:
      getDurationOrBuilder in interface VodSessionAdOrBuilder
    • hasCompanionAds

      public boolean hasCompanionAds()
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
      Specified by:
      hasCompanionAds in interface VodSessionAdOrBuilder
      Returns:
      Whether the companionAds field is set.
    • getCompanionAds

      public CompanionAds getCompanionAds()
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
      Specified by:
      getCompanionAds in interface VodSessionAdOrBuilder
      Returns:
      The companionAds.
    • setCompanionAds

      public VodSessionAd.Builder setCompanionAds(CompanionAds value)
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
    • setCompanionAds

      public VodSessionAd.Builder setCompanionAds(CompanionAds.Builder builderForValue)
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
    • mergeCompanionAds

      public VodSessionAd.Builder mergeCompanionAds(CompanionAds value)
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
    • clearCompanionAds

      public VodSessionAd.Builder clearCompanionAds()
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
    • getCompanionAdsBuilder

      public CompanionAds.Builder getCompanionAdsBuilder()
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
    • getCompanionAdsOrBuilder

      public CompanionAdsOrBuilder getCompanionAdsOrBuilder()
       Metadata of companion ads associated with the ad.
       
      .google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;
      Specified by:
      getCompanionAdsOrBuilder in interface VodSessionAdOrBuilder
    • getActivityEventsList

      public List<Event> getActivityEventsList()
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
      Specified by:
      getActivityEventsList in interface VodSessionAdOrBuilder
    • getActivityEventsCount

      public int getActivityEventsCount()
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
      Specified by:
      getActivityEventsCount in interface VodSessionAdOrBuilder
    • getActivityEvents

      public Event getActivityEvents(int index)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
      Specified by:
      getActivityEvents in interface VodSessionAdOrBuilder
    • setActivityEvents

      public VodSessionAd.Builder setActivityEvents(int index, Event value)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • setActivityEvents

      public VodSessionAd.Builder setActivityEvents(int index, Event.Builder builderForValue)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • addActivityEvents

      public VodSessionAd.Builder addActivityEvents(Event value)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • addActivityEvents

      public VodSessionAd.Builder addActivityEvents(int index, Event value)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • addActivityEvents

      public VodSessionAd.Builder addActivityEvents(Event.Builder builderForValue)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • addActivityEvents

      public VodSessionAd.Builder addActivityEvents(int index, Event.Builder builderForValue)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • addAllActivityEvents

      public VodSessionAd.Builder addAllActivityEvents(Iterable<? extends Event> values)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • clearActivityEvents

      public VodSessionAd.Builder clearActivityEvents()
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • removeActivityEvents

      public VodSessionAd.Builder removeActivityEvents(int index)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • getActivityEventsBuilder

      public Event.Builder getActivityEventsBuilder(int index)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • getActivityEventsOrBuilder

      public EventOrBuilder getActivityEventsOrBuilder(int index)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
      Specified by:
      getActivityEventsOrBuilder in interface VodSessionAdOrBuilder
    • getActivityEventsOrBuilderList

      public List<? extends EventOrBuilder> getActivityEventsOrBuilderList()
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
      Specified by:
      getActivityEventsOrBuilderList in interface VodSessionAdOrBuilder
    • addActivityEventsBuilder

      public Event.Builder addActivityEventsBuilder()
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • addActivityEventsBuilder

      public Event.Builder addActivityEventsBuilder(int index)
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;
    • getActivityEventsBuilderList

      public List<Event.Builder> getActivityEventsBuilderList()
       The list of progress tracking events for the ad break. These can be of
       the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
       `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
       `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
       `CLOSE_LINEAR`, `SKIP`.
       
      repeated .google.cloud.video.stitcher.v1.Event activity_events = 3;