Class Event.SlateTask.Builder (0.85.0)

public static final class Event.SlateTask.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public Event.SlateTask build()
Returns
Type Description
Event.SlateTask

buildPartial()

public Event.SlateTask buildPartial()
Returns
Type Description
Event.SlateTask

clear()

public Event.SlateTask.Builder clear()
Returns
Type Description
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 the slate loops. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

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

Returns
Type Description
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
Type Description
Event.SlateTask.Builder

getAsset()

public String getAsset()

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

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

Returns
Type Description
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 the slate loops. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

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

Returns
Type Description
ByteString

The bytes for asset.

getDefaultInstanceForType()

public Event.SlateTask getDefaultInstanceForType()
Returns
Type Description
Event.SlateTask

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the duration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
Event.SlateTask.Builder

mergeFrom(Event.SlateTask other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Event.SlateTask.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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 the slate loops. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

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

Parameter
Name Description
value String

The asset to set.

Returns
Type Description
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 the slate loops. The slate must be represented in the form of: projects/{project}/locations/{location}/assets/{assetId}.

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

Parameter
Name Description
value ByteString

The bytes for asset to set.

Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Event.SlateTask.Builder