public class SearchMaterialRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| SearchMaterialRequest() | 
| SearchMaterialRequest(SearchMaterialRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| TimeRange | getCreateTimeRange()Get 按照媒体创建时间检索。 | 
| IntegerRange | getDurationRange()Get 按媒体时长检索,单位s。 | 
| Long | getLimit()Get 返回记录条数,默认值:50。 | 
| String[] | getMaterialTypes()Get 媒体类型,可取值有:
AUDIO:音频;
VIDEO:视频 ;
IMAGE:图片;
VIDEO_EDIT_TEMPLATE:剪辑模板。 | 
| Long | getOffset()Get 偏移量。默认值:0。 | 
| String | getOperator()Get 操作者。如不填,默认为 `cmeid_system`,表示平台管理员操作,可以搜索任意媒体的信息。如果指定操作者,则操作者必须对媒体有读权限。 | 
| String | getPlatform()Get 平台 Id,指定访问的平台。关于平台概念,请参见文档 [平台](https://cloud.tencent.com/document/product/1156/43767)。 | 
| String | getResolution()Get 按画质检索,取值为:LD/SD/HD/FHD/2K/4K。 | 
| SearchScope[] | getSearchScopes()Get 指定搜索空间,数组长度不得超过5。 | 
| SortBy | getSort()Get 排序方式。Sort.Field 可选值:CreateTime。指定 Text 搜索时,将根据匹配度排序,该字段无效。 | 
| String[] | getTags()Get 按标签检索,填入检索的标签名。 | 
| String | getText()Get 搜索文本,模糊匹配媒体名称或描述信息,匹配项越多,匹配度越高,排序越优先。长度限制:15个字符。 | 
| void | setCreateTimeRange(TimeRange CreateTimeRange)Set 按照媒体创建时间检索。 | 
| void | setDurationRange(IntegerRange DurationRange)Set 按媒体时长检索,单位s。 | 
| void | setLimit(Long Limit)Set 返回记录条数,默认值:50。 | 
| void | setMaterialTypes(String[] MaterialTypes)Set 媒体类型,可取值有:
AUDIO:音频;
VIDEO:视频 ;
IMAGE:图片;
VIDEO_EDIT_TEMPLATE:剪辑模板。 | 
| void | setOffset(Long Offset)Set 偏移量。默认值:0。 | 
| void | setOperator(String Operator)Set 操作者。如不填,默认为 `cmeid_system`,表示平台管理员操作,可以搜索任意媒体的信息。如果指定操作者,则操作者必须对媒体有读权限。 | 
| void | setPlatform(String Platform)Set 平台 Id,指定访问的平台。关于平台概念,请参见文档 [平台](https://cloud.tencent.com/document/product/1156/43767)。 | 
| void | setResolution(String Resolution)Set 按画质检索,取值为:LD/SD/HD/FHD/2K/4K。 | 
| void | setSearchScopes(SearchScope[] SearchScopes)Set 指定搜索空间,数组长度不得超过5。 | 
| void | setSort(SortBy Sort)Set 排序方式。Sort.Field 可选值:CreateTime。指定 Text 搜索时,将根据匹配度排序,该字段无效。 | 
| void | setTags(String[] Tags)Set 按标签检索,填入检索的标签名。 | 
| void | setText(String Text)Set 搜索文本,模糊匹配媒体名称或描述信息,匹配项越多,匹配度越高,排序越优先。长度限制:15个字符。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic SearchMaterialRequest()
public SearchMaterialRequest(SearchMaterialRequest source)
public String getPlatform()
public void setPlatform(String Platform)
Platform - 平台 Id,指定访问的平台。关于平台概念,请参见文档 [平台](https://cloud.tencent.com/document/product/1156/43767)。public SearchScope[] getSearchScopes()
public void setSearchScopes(SearchScope[] SearchScopes)
SearchScopes - 指定搜索空间,数组长度不得超过5。public String[] getMaterialTypes()
public void setMaterialTypes(String[] MaterialTypes)
MaterialTypes - 媒体类型,可取值有:
public String getText()
public void setText(String Text)
Text - 搜索文本,模糊匹配媒体名称或描述信息,匹配项越多,匹配度越高,排序越优先。长度限制:15个字符。public String getResolution()
public void setResolution(String Resolution)
Resolution - 按画质检索,取值为:LD/SD/HD/FHD/2K/4K。public IntegerRange getDurationRange()
public void setDurationRange(IntegerRange DurationRange)
DurationRange - 按媒体时长检索,单位s。public TimeRange getCreateTimeRange()
public void setCreateTimeRange(TimeRange CreateTimeRange)
CreateTimeRange - 按照媒体创建时间检索。public String[] getTags()
public void setTags(String[] Tags)
Tags - 按标签检索,填入检索的标签名。public SortBy getSort()
public void setSort(SortBy Sort)
Sort - 排序方式。Sort.Field 可选值:CreateTime。指定 Text 搜索时,将根据匹配度排序,该字段无效。public Long getOffset()
public void setOffset(Long Offset)
Offset - 偏移量。默认值:0。public Long getLimit()
public void setLimit(Long Limit)
Limit - 返回记录条数,默认值:50。public String getOperator()
public void setOperator(String Operator)
Operator - 操作者。如不填,默认为 `cmeid_system`,表示平台管理员操作,可以搜索任意媒体的信息。如果指定操作者,则操作者必须对媒体有读权限。Copyright © 2025. All rights reserved.