Class VodSessionAdBreak (0.43.0)

public final class VodSessionAdBreak extends GeneratedMessageV3 implements VodSessionAdBreakOrBuilder

Metadata for an inserted ad break.

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

Static Fields

ADS_FIELD_NUMBER

public static final int ADS_FIELD_NUMBER
Field Value
Type Description
int

END_TIME_OFFSET_FIELD_NUMBER

public static final int END_TIME_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

PROGRESS_EVENTS_FIELD_NUMBER

public static final int PROGRESS_EVENTS_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_OFFSET_FIELD_NUMBER

public static final int START_TIME_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VodSessionAdBreak getDefaultInstance()
Returns
Type Description
VodSessionAdBreak

getDescriptor()

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

newBuilder()

public static VodSessionAdBreak.Builder newBuilder()
Returns
Type Description
VodSessionAdBreak.Builder

newBuilder(VodSessionAdBreak prototype)

public static VodSessionAdBreak.Builder newBuilder(VodSessionAdBreak prototype)
Parameter
Name Description
prototype VodSessionAdBreak
Returns
Type Description
VodSessionAdBreak.Builder

parseDelimitedFrom(InputStream input)

public static VodSessionAdBreak parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VodSessionAdBreak parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VodSessionAdBreak parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VodSessionAdBreak parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VodSessionAdBreak parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VodSessionAdBreak parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VodSessionAdBreak
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VodSessionAdBreak> parser()
Returns
Type Description
Parser<VodSessionAdBreak>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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.

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

getParserForType()

public Parser<VodSessionAdBreak> getParserForType()
Returns
Type Description
Parser<VodSessionAdBreak>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VodSessionAdBreak.Builder newBuilderForType()
Returns
Type Description
VodSessionAdBreak.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VodSessionAdBreak.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VodSessionAdBreak.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public VodSessionAdBreak.Builder toBuilder()
Returns
Type Description
VodSessionAdBreak.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException