Class VodSessionAd.Builder (0.17.0)

public static final class VodSessionAd.Builder extends GeneratedMessageV3.Builder<VodSessionAd.Builder> implements VodSessionAdOrBuilder

Metadata for an inserted ad in a VOD session.

Protobuf type google.cloud.video.stitcher.v1.VodSessionAd

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addActivityEvents(Event value)

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;

Parameter
NameDescription
valueEvent
Returns
TypeDescription
VodSessionAd.Builder

addActivityEvents(Event.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueEvent.Builder
Returns
TypeDescription
VodSessionAd.Builder

addActivityEvents(int index, Event value)

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;

Parameters
NameDescription
indexint
valueEvent
Returns
TypeDescription
VodSessionAd.Builder

addActivityEvents(int index, Event.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueEvent.Builder
Returns
TypeDescription
VodSessionAd.Builder

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;

Returns
TypeDescription
Event.Builder

addActivityEventsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Event.Builder

addAllActivityEvents(Iterable<? extends Event> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.video.stitcher.v1.Event>
Returns
TypeDescription
VodSessionAd.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VodSessionAd.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VodSessionAd.Builder
Overrides

build()

public VodSessionAd build()
Returns
TypeDescription
VodSessionAd

buildPartial()

public VodSessionAd buildPartial()
Returns
TypeDescription
VodSessionAd

clear()

public VodSessionAd.Builder clear()
Returns
TypeDescription
VodSessionAd.Builder
Overrides

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;

Returns
TypeDescription
VodSessionAd.Builder

clearCompanionAds()

public VodSessionAd.Builder clearCompanionAds()

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Returns
TypeDescription
VodSessionAd.Builder

clearDuration()

public VodSessionAd.Builder clearDuration()

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
VodSessionAd.Builder

clearField(Descriptors.FieldDescriptor field)

public VodSessionAd.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VodSessionAd.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VodSessionAd.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VodSessionAd.Builder
Overrides

clone()

public VodSessionAd.Builder clone()
Returns
TypeDescription
VodSessionAd.Builder
Overrides

getActivityEvents(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Event

getActivityEventsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Event.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<Event>

getActivityEventsOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
EventOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.video.stitcher.v1.EventOrBuilder>

getCompanionAds()

public CompanionAds getCompanionAds()

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Returns
TypeDescription
CompanionAds

The companionAds.

getCompanionAdsBuilder()

public CompanionAds.Builder getCompanionAdsBuilder()

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Returns
TypeDescription
CompanionAds.Builder

getCompanionAdsOrBuilder()

public CompanionAdsOrBuilder getCompanionAdsOrBuilder()

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Returns
TypeDescription
CompanionAdsOrBuilder

getDefaultInstanceForType()

public VodSessionAd getDefaultInstanceForType()
Returns
TypeDescription
VodSessionAd

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public Duration getDuration()

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
DurationOrBuilder

hasCompanionAds()

public boolean hasCompanionAds()

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Returns
TypeDescription
boolean

Whether the companionAds field is set.

hasDuration()

public boolean hasDuration()

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
boolean

Whether the duration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCompanionAds(CompanionAds value)

public VodSessionAd.Builder mergeCompanionAds(CompanionAds value)

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Parameter
NameDescription
valueCompanionAds
Returns
TypeDescription
VodSessionAd.Builder

mergeDuration(Duration value)

public VodSessionAd.Builder mergeDuration(Duration value)

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
VodSessionAd.Builder

mergeFrom(VodSessionAd other)

public VodSessionAd.Builder mergeFrom(VodSessionAd other)
Parameter
NameDescription
otherVodSessionAd
Returns
TypeDescription
VodSessionAd.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VodSessionAd.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAd.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VodSessionAd.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VodSessionAd.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VodSessionAd.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VodSessionAd.Builder
Overrides

removeActivityEvents(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
VodSessionAd.Builder

setActivityEvents(int index, Event value)

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;

Parameters
NameDescription
indexint
valueEvent
Returns
TypeDescription
VodSessionAd.Builder

setActivityEvents(int index, Event.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueEvent.Builder
Returns
TypeDescription
VodSessionAd.Builder

setCompanionAds(CompanionAds value)

public VodSessionAd.Builder setCompanionAds(CompanionAds value)

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Parameter
NameDescription
valueCompanionAds
Returns
TypeDescription
VodSessionAd.Builder

setCompanionAds(CompanionAds.Builder builderForValue)

public VodSessionAd.Builder setCompanionAds(CompanionAds.Builder builderForValue)

Metadata of companion ads associated with the ad.

.google.cloud.video.stitcher.v1.CompanionAds companion_ads = 2;

Parameter
NameDescription
builderForValueCompanionAds.Builder
Returns
TypeDescription
VodSessionAd.Builder

setDuration(Duration value)

public VodSessionAd.Builder setDuration(Duration value)

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
VodSessionAd.Builder

setDuration(Duration.Builder builderForValue)

public VodSessionAd.Builder setDuration(Duration.Builder builderForValue)

Duration in seconds of the ad.

.google.protobuf.Duration duration = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VodSessionAd.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VodSessionAd.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VodSessionAd.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VodSessionAd.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VodSessionAd.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VodSessionAd.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VodSessionAd.Builder
Overrides