Class VodSessionAdBreak.Builder (0.53.0)

public static final class VodSessionAdBreak.Builder extends GeneratedMessageV3.Builder<VodSessionAdBreak.Builder> implements VodSessionAdBreakOrBuilder

Metadata for an inserted ad break.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAds(VodSessionAd value)

public VodSessionAdBreak.Builder addAds(VodSessionAd value)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
value VodSessionAd
Returns
Type Description
VodSessionAdBreak.Builder

addAds(VodSessionAd.Builder builderForValue)

public VodSessionAdBreak.Builder addAds(VodSessionAd.Builder builderForValue)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
builderForValue VodSessionAd.Builder
Returns
Type Description
VodSessionAdBreak.Builder

addAds(int index, VodSessionAd value)

public VodSessionAdBreak.Builder addAds(int index, VodSessionAd value)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameters
Name Description
index int
value VodSessionAd
Returns
Type Description
VodSessionAdBreak.Builder

addAds(int index, VodSessionAd.Builder builderForValue)

public VodSessionAdBreak.Builder addAds(int index, VodSessionAd.Builder builderForValue)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameters
Name Description
index int
builderForValue VodSessionAd.Builder
Returns
Type Description
VodSessionAdBreak.Builder

addAdsBuilder()

public VodSessionAd.Builder addAdsBuilder()

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Returns
Type Description
VodSessionAd.Builder

addAdsBuilder(int index)

public VodSessionAd.Builder addAdsBuilder(int index)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
index int
Returns
Type Description
VodSessionAd.Builder

addAllAds(Iterable<? extends VodSessionAd> values)

public VodSessionAdBreak.Builder addAllAds(Iterable<? extends VodSessionAd> values)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.video.stitcher.v1.VodSessionAd>
Returns
Type Description
VodSessionAdBreak.Builder

addAllProgressEvents(Iterable<? extends ProgressEvent> values)

public VodSessionAdBreak.Builder addAllProgressEvents(Iterable<? extends ProgressEvent> values)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.video.stitcher.v1.ProgressEvent>
Returns
Type Description
VodSessionAdBreak.Builder

addProgressEvents(ProgressEvent value)

public VodSessionAdBreak.Builder addProgressEvents(ProgressEvent value)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
value ProgressEvent
Returns
Type Description
VodSessionAdBreak.Builder

addProgressEvents(ProgressEvent.Builder builderForValue)

public VodSessionAdBreak.Builder addProgressEvents(ProgressEvent.Builder builderForValue)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
builderForValue ProgressEvent.Builder
Returns
Type Description
VodSessionAdBreak.Builder

addProgressEvents(int index, ProgressEvent value)

public VodSessionAdBreak.Builder addProgressEvents(int index, ProgressEvent value)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameters
Name Description
index int
value ProgressEvent
Returns
Type Description
VodSessionAdBreak.Builder

addProgressEvents(int index, ProgressEvent.Builder builderForValue)

public VodSessionAdBreak.Builder addProgressEvents(int index, ProgressEvent.Builder builderForValue)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameters
Name Description
index int
builderForValue ProgressEvent.Builder
Returns
Type Description
VodSessionAdBreak.Builder

addProgressEventsBuilder()

public ProgressEvent.Builder addProgressEventsBuilder()

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Returns
Type Description
ProgressEvent.Builder

addProgressEventsBuilder(int index)

public ProgressEvent.Builder addProgressEventsBuilder(int index)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
index int
Returns
Type Description
ProgressEvent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VodSessionAdBreak.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

build()

public VodSessionAdBreak build()
Returns
Type Description
VodSessionAdBreak

buildPartial()

public VodSessionAdBreak buildPartial()
Returns
Type Description
VodSessionAdBreak

clear()

public VodSessionAdBreak.Builder clear()
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

clearAds()

public VodSessionAdBreak.Builder clearAds()

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Returns
Type Description
VodSessionAdBreak.Builder

clearEndTimeOffset()

public VodSessionAdBreak.Builder clearEndTimeOffset()

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Returns
Type Description
VodSessionAdBreak.Builder

clearField(Descriptors.FieldDescriptor field)

public VodSessionAdBreak.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VodSessionAdBreak.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

clearProgressEvents()

public VodSessionAdBreak.Builder clearProgressEvents()

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Returns
Type Description
VodSessionAdBreak.Builder

clearStartTimeOffset()

public VodSessionAdBreak.Builder clearStartTimeOffset()

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Returns
Type Description
VodSessionAdBreak.Builder

clone()

public VodSessionAdBreak.Builder clone()
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

getAds(int index)

public VodSessionAd getAds(int index)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
index int
Returns
Type Description
VodSessionAd

getAdsBuilder(int index)

public VodSessionAd.Builder getAdsBuilder(int index)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
index int
Returns
Type Description
VodSessionAd.Builder

getAdsBuilderList()

public List<VodSessionAd.Builder> getAdsBuilderList()

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Returns
Type Description
List<Builder>

getAdsCount()

public int getAdsCount()

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Returns
Type Description
int

getAdsList()

public List<VodSessionAd> getAdsList()

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Returns
Type Description
List<VodSessionAd>

getAdsOrBuilder(int index)

public VodSessionAdOrBuilder getAdsOrBuilder(int index)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
index int
Returns
Type Description
VodSessionAdOrBuilder

getAdsOrBuilderList()

public List<? extends VodSessionAdOrBuilder> getAdsOrBuilderList()

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Returns
Type Description
List<? extends com.google.cloud.video.stitcher.v1.VodSessionAdOrBuilder>

getDefaultInstanceForType()

public VodSessionAdBreak getDefaultInstanceForType()
Returns
Type Description
VodSessionAdBreak

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTimeOffset()

public Duration getEndTimeOffset()

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Returns
Type Description
Duration

The endTimeOffset.

getEndTimeOffsetBuilder()

public Duration.Builder getEndTimeOffsetBuilder()

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Returns
Type Description
Builder

getEndTimeOffsetOrBuilder()

public DurationOrBuilder getEndTimeOffsetOrBuilder()

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Returns
Type Description
DurationOrBuilder

getProgressEvents(int index)

public ProgressEvent getProgressEvents(int index)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
index int
Returns
Type Description
ProgressEvent

getProgressEventsBuilder(int index)

public ProgressEvent.Builder getProgressEventsBuilder(int index)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
index int
Returns
Type Description
ProgressEvent.Builder

getProgressEventsBuilderList()

public List<ProgressEvent.Builder> getProgressEventsBuilderList()

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Returns
Type Description
List<Builder>

getProgressEventsCount()

public int getProgressEventsCount()

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Returns
Type Description
int

getProgressEventsList()

public List<ProgressEvent> getProgressEventsList()

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Returns
Type Description
List<ProgressEvent>

getProgressEventsOrBuilder(int index)

public ProgressEventOrBuilder getProgressEventsOrBuilder(int index)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
index int
Returns
Type Description
ProgressEventOrBuilder

getProgressEventsOrBuilderList()

public List<? extends ProgressEventOrBuilder> getProgressEventsOrBuilderList()

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Returns
Type Description
List<? extends com.google.cloud.video.stitcher.v1.ProgressEventOrBuilder>

getStartTimeOffset()

public Duration getStartTimeOffset()

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Returns
Type Description
Duration

The startTimeOffset.

getStartTimeOffsetBuilder()

public Duration.Builder getStartTimeOffsetBuilder()

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Returns
Type Description
Builder

getStartTimeOffsetOrBuilder()

public DurationOrBuilder getStartTimeOffsetOrBuilder()

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Returns
Type Description
DurationOrBuilder

hasEndTimeOffset()

public boolean hasEndTimeOffset()

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Returns
Type Description
boolean

Whether the endTimeOffset field is set.

hasStartTimeOffset()

public boolean hasStartTimeOffset()

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Returns
Type Description
boolean

Whether the startTimeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTimeOffset(Duration value)

public VodSessionAdBreak.Builder mergeEndTimeOffset(Duration value)

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Parameter
Name Description
value Duration
Returns
Type Description
VodSessionAdBreak.Builder

mergeFrom(VodSessionAdBreak other)

public VodSessionAdBreak.Builder mergeFrom(VodSessionAdBreak other)
Parameter
Name Description
other VodSessionAdBreak
Returns
Type Description
VodSessionAdBreak.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VodSessionAdBreak.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VodSessionAdBreak.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

mergeStartTimeOffset(Duration value)

public VodSessionAdBreak.Builder mergeStartTimeOffset(Duration value)

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Parameter
Name Description
value Duration
Returns
Type Description
VodSessionAdBreak.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VodSessionAdBreak.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

removeAds(int index)

public VodSessionAdBreak.Builder removeAds(int index)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameter
Name Description
index int
Returns
Type Description
VodSessionAdBreak.Builder

removeProgressEvents(int index)

public VodSessionAdBreak.Builder removeProgressEvents(int index)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameter
Name Description
index int
Returns
Type Description
VodSessionAdBreak.Builder

setAds(int index, VodSessionAd value)

public VodSessionAdBreak.Builder setAds(int index, VodSessionAd value)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameters
Name Description
index int
value VodSessionAd
Returns
Type Description
VodSessionAdBreak.Builder

setAds(int index, VodSessionAd.Builder builderForValue)

public VodSessionAdBreak.Builder setAds(int index, VodSessionAd.Builder builderForValue)

Ordered list of ads stitched into the ad break.

repeated .google.cloud.video.stitcher.v1.VodSessionAd ads = 2;

Parameters
Name Description
index int
builderForValue VodSessionAd.Builder
Returns
Type Description
VodSessionAdBreak.Builder

setEndTimeOffset(Duration value)

public VodSessionAdBreak.Builder setEndTimeOffset(Duration value)

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Parameter
Name Description
value Duration
Returns
Type Description
VodSessionAdBreak.Builder

setEndTimeOffset(Duration.Builder builderForValue)

public VodSessionAdBreak.Builder setEndTimeOffset(Duration.Builder builderForValue)

Ad break end time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration end_time_offset = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VodSessionAdBreak.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VodSessionAdBreak.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

setProgressEvents(int index, ProgressEvent value)

public VodSessionAdBreak.Builder setProgressEvents(int index, ProgressEvent value)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameters
Name Description
index int
value ProgressEvent
Returns
Type Description
VodSessionAdBreak.Builder

setProgressEvents(int index, ProgressEvent.Builder builderForValue)

public VodSessionAdBreak.Builder setProgressEvents(int index, ProgressEvent.Builder builderForValue)

List of events that are expected to be triggered, ordered by time.

repeated .google.cloud.video.stitcher.v1.ProgressEvent progress_events = 1;

Parameters
Name Description
index int
builderForValue ProgressEvent.Builder
Returns
Type Description
VodSessionAdBreak.Builder

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

public VodSessionAdBreak.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

setStartTimeOffset(Duration value)

public VodSessionAdBreak.Builder setStartTimeOffset(Duration value)

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Parameter
Name Description
value Duration
Returns
Type Description
VodSessionAdBreak.Builder

setStartTimeOffset(Duration.Builder builderForValue)

public VodSessionAdBreak.Builder setStartTimeOffset(Duration.Builder builderForValue)

Ad break start time in seconds relative to the start of the VOD asset.

.google.protobuf.Duration start_time_offset = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VodSessionAdBreak.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VodSessionAdBreak.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VodSessionAdBreak.Builder
Overrides