Class Event.SlateTask.Builder (0.42.0)

public static final class Event.SlateTask.Builder extends GeneratedMessageV3.Builder<Event.SlateTask.Builder> implements Event.SlateTaskOrBuilder

Inserts a slate.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Event.SlateTask build()
Returns
TypeDescription
Event.SlateTask

buildPartial()

public Event.SlateTask buildPartial()
Returns
TypeDescription
Event.SlateTask

clear()

public Event.SlateTask.Builder clear()
Returns
TypeDescription
Event.SlateTask.Builder
Overrides

clearAsset()

public Event.SlateTask.Builder clearAsset()

Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then it will be looped. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string asset = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Event.SlateTask.Builder

This builder for chaining.

clearDuration()

public Event.SlateTask.Builder clearDuration()

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Event.SlateTask.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Event.SlateTask.Builder clone()
Returns
TypeDescription
Event.SlateTask.Builder
Overrides

getAsset()

public String getAsset()

Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then it will be looped. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string asset = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then it will be looped. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string asset = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for asset.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public Duration getDuration()

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
DurationOrBuilder

hasDuration()

public boolean hasDuration()

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.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

mergeDuration(Duration value)

public Event.SlateTask.Builder mergeDuration(Duration value)

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Event.SlateTask.Builder

mergeFrom(Event.SlateTask other)

public Event.SlateTask.Builder mergeFrom(Event.SlateTask other)
Parameter
NameDescription
otherEvent.SlateTask
Returns
TypeDescription
Event.SlateTask.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAsset(String value)

public Event.SlateTask.Builder setAsset(String value)

Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then it will be looped. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string asset = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The asset to set.

Returns
TypeDescription
Event.SlateTask.Builder

This builder for chaining.

setAssetBytes(ByteString value)

public Event.SlateTask.Builder setAssetBytes(ByteString value)

Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then it will be looped. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

string asset = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for asset to set.

Returns
TypeDescription
Event.SlateTask.Builder

This builder for chaining.

setDuration(Duration value)

public Event.SlateTask.Builder setDuration(Duration value)

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Event.SlateTask.Builder

setDuration(Duration.Builder builderForValue)

public Event.SlateTask.Builder setDuration(Duration.Builder builderForValue)

Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.

.google.protobuf.Duration duration = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.SlateTask.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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