Class Event.AdBreakTask (0.25.0)

public static final class Event.AdBreakTask extends GeneratedMessageV3 implements Event.AdBreakTaskOrBuilder

Inserts a new ad opportunity.

Protobuf type google.cloud.video.livestream.v1.Event.AdBreakTask

Static Fields

DURATION_FIELD_NUMBER

public static final int DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Event.AdBreakTask getDefaultInstance()
Returns
TypeDescription
Event.AdBreakTask

getDescriptor()

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

newBuilder()

public static Event.AdBreakTask.Builder newBuilder()
Returns
TypeDescription
Event.AdBreakTask.Builder

newBuilder(Event.AdBreakTask prototype)

public static Event.AdBreakTask.Builder newBuilder(Event.AdBreakTask prototype)
Parameter
NameDescription
prototypeEvent.AdBreakTask
Returns
TypeDescription
Event.AdBreakTask.Builder

parseDelimitedFrom(InputStream input)

public static Event.AdBreakTask parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Event.AdBreakTask
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Event.AdBreakTask parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Event.AdBreakTask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Event.AdBreakTask parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Event.AdBreakTask
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Event.AdBreakTask parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Event.AdBreakTask
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Event.AdBreakTask parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Event.AdBreakTask
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Event.AdBreakTask> parser()
Returns
TypeDescription
Parser<AdBreakTask>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Event.AdBreakTask getDefaultInstanceForType()
Returns
TypeDescription
Event.AdBreakTask

getDuration()

public Duration getDuration()

Duration of an ad opportunity. Must be greater than 0.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Duration of an ad opportunity. Must be greater than 0.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
DurationOrBuilder

getParserForType()

public Parser<Event.AdBreakTask> getParserForType()
Returns
TypeDescription
Parser<AdBreakTask>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDuration()

public boolean hasDuration()

Duration of an ad opportunity. Must be greater than 0.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
boolean

Whether the duration 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 Event.AdBreakTask.Builder newBuilderForType()
Returns
TypeDescription
Event.AdBreakTask.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Event.AdBreakTask.Builder toBuilder()
Returns
TypeDescription
Event.AdBreakTask.Builder

writeTo(CodedOutputStream output)

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