Class Event.SlateTask.Builder (0.50.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Event.SlateTask.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Event.SlateTask.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Event.SlateTask.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Event.SlateTask.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Event.SlateTask.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Event.SlateTask.Builder
Overrides

clone()

public Event.SlateTask.Builder clone()
Returns
Type Description
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 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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Event.SlateTask.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public Event.SlateTask.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Event.SlateTask.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Event.SlateTask.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Event.SlateTask.Builder
Overrides