Class 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.GeneratedMessageV3.Builder<VodSessionAd.Builder>
    implements VodSessionAdOrBuilder
     Metadata for an inserted ad in a VOD session.
     
    Protobuf type google.cloud.video.stitcher.v1.VodSessionAd
    • Method Detail

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

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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;
      • 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;
      • setUnknownFields

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

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