Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate.
↳ asset
string
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}.
getDuration
Optional. Duration of the slate. Must be greater than 0 if specified.
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}.
Returns
Type
Description
string
setAsset
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}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class SlateTask (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.Event.SlateTask)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.Event.SlateTask)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.Event.SlateTask)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.Event.SlateTask)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.Event.SlateTask)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.Event.SlateTask)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.Event.SlateTask)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.Event.SlateTask)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.Event.SlateTask)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.Event.SlateTask) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class SlateTask.\n\nInserts a slate.\n\nGenerated from protobuf message `google.cloud.video.livestream.v1.Event.SlateTask`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1 \\\\ Event\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDuration\n\nOptional. Duration of the slate. Must be greater than 0 if specified.\n\nOmit this field for a long running slate.\n\n### hasDuration\n\n### clearDuration\n\n### setDuration\n\nOptional. Duration of the slate. Must be greater than 0 if specified.\n\nOmit this field for a long running slate.\n\n### getAsset\n\nSlate asset to use for the duration. If its duration is less than the\nduration of the SlateTask, then the slate loops. The slate must be\nrepresented in the form of:\n`projects/{project}/locations/{location}/assets/{assetId}`.\n\n### setAsset\n\nSlate asset to use for the duration. If its duration is less than the\nduration of the SlateTask, then the slate loops. The slate must be\nrepresented in the form of:\n`projects/{project}/locations/{location}/assets/{assetId}`."]]