Class VodSessionAdBreak (0.36.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
TypeDescription
int

END_TIME_OFFSET_FIELD_NUMBER

public static final int END_TIME_OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

PROGRESS_EVENTS_FIELD_NUMBER

public static final int PROGRESS_EVENTS_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_OFFSET_FIELD_NUMBER

public static final int START_TIME_OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VodSessionAdBreak getDefaultInstance()
Returns
TypeDescription
VodSessionAdBreak

getDescriptor()

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

newBuilder()

public static VodSessionAdBreak.Builder newBuilder()
Returns
TypeDescription
VodSessionAdBreak.Builder

newBuilder(VodSessionAdBreak prototype)

public static VodSessionAdBreak.Builder newBuilder(VodSessionAdBreak prototype)
Parameter
NameDescription
prototypeVodSessionAdBreak
Returns
TypeDescription
VodSessionAdBreak.Builder

parseDelimitedFrom(InputStream input)

public static VodSessionAdBreak parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VodSessionAdBreak parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VodSessionAdBreak parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VodSessionAdBreak parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VodSessionAdBreak parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VodSessionAdBreak parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VodSessionAdBreak parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VodSessionAdBreak
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VodSessionAdBreak> parser()
Returns
TypeDescription
Parser<VodSessionAdBreak>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VodSessionAd

getAdsCount()

public int getAdsCount()

Ordered list of ads stitched into the ad break.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.video.stitcher.v1.VodSessionAdOrBuilder>

getDefaultInstanceForType()

public VodSessionAdBreak getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getParserForType()

public Parser<VodSessionAdBreak> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.video.stitcher.v1.ProgressEventOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTimeOffset field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VodSessionAdBreak.Builder newBuilderForType()
Returns
TypeDescription
VodSessionAdBreak.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VodSessionAdBreak.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VodSessionAdBreak.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VodSessionAdBreak.Builder toBuilder()
Returns
TypeDescription
VodSessionAdBreak.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException