apis

package
v1.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncAudioScanRequest added in v1.45.0

type AsyncAudioScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见audioTask。 (Optional) */
	Tasks []censor.AudioTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncAudioScanRequest added in v1.45.0

func NewAsyncAudioScanRequest() *AsyncAudioScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncAudioScanRequestWithAllParams added in v1.45.0

func NewAsyncAudioScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.AudioTask,
	callback *string,
	seed *string,
) *AsyncAudioScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见audioTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncAudioScanRequestWithoutParam added in v1.45.0

func NewAsyncAudioScanRequestWithoutParam() *AsyncAudioScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncAudioScanRequest) GetRegionId added in v1.45.0

func (r AsyncAudioScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncAudioScanRequest) SetBizType added in v1.56.0

func (r *AsyncAudioScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*AsyncAudioScanRequest) SetCallback added in v1.45.0

func (r *AsyncAudioScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncAudioScanRequest) SetScenes added in v1.45.0

func (r *AsyncAudioScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncAudioScanRequest) SetSeed added in v1.45.0

func (r *AsyncAudioScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncAudioScanRequest) SetTasks added in v1.45.0

func (r *AsyncAudioScanRequest) SetTasks(tasks []censor.AudioTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见audioTask。(Optional)

type AsyncAudioScanResponse added in v1.45.0

type AsyncAudioScanResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AsyncAudioScanResult `json:"result"`
}

type AsyncAudioScanResult added in v1.45.0

type AsyncAudioScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type AsyncAudioScanV2Request added in v1.56.0

type AsyncAudioScanV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 最大长度512, 语音文件url (Optional) */
	Url *string `json:"url"`

	/* 最大长度4,接口版本号,可选值 v3.5 (Optional) */
	Version *string `json:"version"`

	/* 最大长度512,文件标题 (Optional) */
	Title *string `json:"title"`

	/* 最大长度32,用户IP地址 (Optional) */
	Ip *string `json:"ip"`

	/* 最大长度128,用户唯一标识,如果无需登录则为空 (Optional) */
	Account *string `json:"account"`

	/* 最大长度128,用户设备 id,与设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送 (Optional) */
	DeviceId *string `json:"deviceId"`

	/* 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5 (Optional) */
	DeviceType *int `json:"deviceType"`

	/* 最大长度2^16-1,数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。 (Optional) */
	Callback *string `json:"callback"`

	/* 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional) */
	CallbackUrl *string `json:"callbackUrl"`
}

func NewAsyncAudioScanV2Request added in v1.56.0

func NewAsyncAudioScanV2Request() *AsyncAudioScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncAudioScanV2RequestWithAllParams added in v1.56.0

func NewAsyncAudioScanV2RequestWithAllParams(
	bizType *string,
	url *string,
	version *string,
	title *string,
	ip *string,
	account *string,
	deviceId *string,
	deviceType *int,
	callback *string,
	callbackUrl *string,
) *AsyncAudioScanV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param url: 最大长度512, 语音文件url (Optional) * param version: 最大长度4,接口版本号,可选值 v3.5 (Optional) * param title: 最大长度512,文件标题 (Optional) * param ip: 最大长度32,用户IP地址 (Optional) * param account: 最大长度128,用户唯一标识,如果无需登录则为空 (Optional) * param deviceId: 最大长度128,用户设备 id,与设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送 (Optional) * param deviceType: 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5 (Optional) * param callback: 最大长度2^16-1,数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。 (Optional) * param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional)

func NewAsyncAudioScanV2RequestWithoutParam added in v1.56.0

func NewAsyncAudioScanV2RequestWithoutParam() *AsyncAudioScanV2Request

This constructor has better compatible ability when API parameters changed

func (AsyncAudioScanV2Request) GetRegionId added in v1.56.0

func (r AsyncAudioScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncAudioScanV2Request) SetAccount added in v1.56.0

func (r *AsyncAudioScanV2Request) SetAccount(account string)

param account: 最大长度128,用户唯一标识,如果无需登录则为空(Optional)

func (*AsyncAudioScanV2Request) SetBizType added in v1.56.0

func (r *AsyncAudioScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AsyncAudioScanV2Request) SetCallback added in v1.56.0

func (r *AsyncAudioScanV2Request) SetCallback(callback string)

param callback: 最大长度2^16-1,数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。(Optional)

func (*AsyncAudioScanV2Request) SetCallbackUrl added in v1.56.0

func (r *AsyncAudioScanV2Request) SetCallbackUrl(callbackUrl string)

param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。(Optional)

func (*AsyncAudioScanV2Request) SetDeviceId added in v1.56.0

func (r *AsyncAudioScanV2Request) SetDeviceId(deviceId string)

param deviceId: 最大长度128,用户设备 id,与设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送(Optional)

func (*AsyncAudioScanV2Request) SetDeviceType added in v1.56.0

func (r *AsyncAudioScanV2Request) SetDeviceType(deviceType int)

param deviceType: 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5(Optional)

func (*AsyncAudioScanV2Request) SetIp added in v1.56.0

func (r *AsyncAudioScanV2Request) SetIp(ip string)

param ip: 最大长度32,用户IP地址(Optional)

func (*AsyncAudioScanV2Request) SetTitle added in v1.56.0

func (r *AsyncAudioScanV2Request) SetTitle(title string)

param title: 最大长度512,文件标题(Optional)

func (*AsyncAudioScanV2Request) SetUrl added in v1.56.0

func (r *AsyncAudioScanV2Request) SetUrl(url string)

param url: 最大长度512, 语音文件url(Optional)

func (*AsyncAudioScanV2Request) SetVersion added in v1.56.0

func (r *AsyncAudioScanV2Request) SetVersion(version string)

param version: 最大长度4,接口版本号,可选值 v3.5(Optional)

type AsyncAudioScanV2Response added in v1.56.0

type AsyncAudioScanV2Response struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    AsyncAudioScanV2Result `json:"result"`
}

type AsyncAudioScanV2Result added in v1.56.0

type AsyncAudioScanV2Result struct {
	Result censor.AudioTaskData `json:"result"`
}

type AsyncImageScanRequest

type AsyncImageScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。 (Optional) */
	Tasks []censor.ImageTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncImageScanRequest

func NewAsyncImageScanRequest() *AsyncImageScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncImageScanRequestWithAllParams

func NewAsyncImageScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.ImageTask,
	callback *string,
	seed *string,
) *AsyncImageScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncImageScanRequestWithoutParam

func NewAsyncImageScanRequestWithoutParam() *AsyncImageScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncImageScanRequest) GetRegionId

func (r AsyncImageScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncImageScanRequest) SetBizType added in v1.56.0

func (r *AsyncImageScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*AsyncImageScanRequest) SetCallback

func (r *AsyncImageScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncImageScanRequest) SetScenes

func (r *AsyncImageScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncImageScanRequest) SetSeed

func (r *AsyncImageScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncImageScanRequest) SetTasks

func (r *AsyncImageScanRequest) SetTasks(tasks []censor.ImageTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。(Optional)

type AsyncImageScanResponse

type AsyncImageScanResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AsyncImageScanResult `json:"result"`
}

type AsyncImageScanResult

type AsyncImageScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type AsyncVideoScanRequest added in v1.45.0

type AsyncVideoScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 是否直播。默认为false,表示为普通视频检测;若是直播检测,该值必须传入true。 (Optional) */
	Live *bool `json:"live"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 视频中语音的检测场景 (Optional) */
	AudioScenes []string `json:"audioScenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见videoTask。 (Optional) */
	Tasks []censor.VideoTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncVideoScanRequest added in v1.45.0

func NewAsyncVideoScanRequest() *AsyncVideoScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncVideoScanRequestWithAllParams added in v1.45.0

func NewAsyncVideoScanRequestWithAllParams(
	bizType *string,
	live *bool,
	scenes []string,
	audioScenes []string,
	tasks []censor.VideoTask,
	callback *string,
	seed *string,
) *AsyncVideoScanRequest

* param bizType: 机审策略,eg: default (Optional) * param live: 是否直播。默认为false,表示为普通视频检测;若是直播检测,该值必须传入true。 (Optional) * param scenes: 指定检测场景 (Optional) * param audioScenes: 视频中语音的检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见videoTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncVideoScanRequestWithoutParam added in v1.45.0

func NewAsyncVideoScanRequestWithoutParam() *AsyncVideoScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncVideoScanRequest) GetRegionId added in v1.45.0

func (r AsyncVideoScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncVideoScanRequest) SetAudioScenes added in v1.45.0

func (r *AsyncVideoScanRequest) SetAudioScenes(audioScenes []string)

param audioScenes: 视频中语音的检测场景(Optional)

func (*AsyncVideoScanRequest) SetBizType added in v1.56.0

func (r *AsyncVideoScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*AsyncVideoScanRequest) SetCallback added in v1.45.0

func (r *AsyncVideoScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncVideoScanRequest) SetLive added in v1.45.0

func (r *AsyncVideoScanRequest) SetLive(live bool)

param live: 是否直播。默认为false,表示为普通视频检测;若是直播检测,该值必须传入true。(Optional)

func (*AsyncVideoScanRequest) SetScenes added in v1.45.0

func (r *AsyncVideoScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncVideoScanRequest) SetSeed added in v1.45.0

func (r *AsyncVideoScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncVideoScanRequest) SetTasks added in v1.45.0

func (r *AsyncVideoScanRequest) SetTasks(tasks []censor.VideoTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见videoTask。(Optional)

type AsyncVideoScanResponse added in v1.45.0

type AsyncVideoScanResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AsyncVideoScanResult `json:"result"`
}

type AsyncVideoScanResult added in v1.45.0

type AsyncVideoScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type AsyncVideoScanV2Request added in v1.56.0

type AsyncVideoScanV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 最大长度512, 点播视频地址 (Optional) */
	Url *string `json:"url"`

	/* 最大长度128,点播视频唯一标识 (Optional) */
	DataId *string `json:"dataId"`

	/* 接口版本号,可选值 v3.2 (Optional) */
	Version *string `json:"version"`

	/* 最大长度512,视频名称 (Optional) */
	Title *string `json:"title"`

	/* 最大长度512,数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,内容安全服务会返回该字段 (Optional) */
	Callback *string `json:"callback"`

	/* 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional) */
	CallbackUrl *string `json:"callbackUrl"`

	/* 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) */
	UniqueKey *string `json:"uniqueKey"`

	/* 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) */
	ScFrequency *int `json:"scFrequency"`

	/* 高级截帧设置,此项填写,默认截帧策略失效 (Optional) */
	AdvancedFrequency *censor.AdvancedFrequency `json:"advancedFrequency"`
}

func NewAsyncVideoScanV2Request added in v1.56.0

func NewAsyncVideoScanV2Request() *AsyncVideoScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncVideoScanV2RequestWithAllParams added in v1.56.0

func NewAsyncVideoScanV2RequestWithAllParams(
	bizType *string,
	url *string,
	dataId *string,
	version *string,
	title *string,
	callback *string,
	callbackUrl *string,
	uniqueKey *string,
	scFrequency *int,
	advancedFrequency *censor.AdvancedFrequency,
) *AsyncVideoScanV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param url: 最大长度512, 点播视频地址 (Optional) * param dataId: 最大长度128,点播视频唯一标识 (Optional) * param version: 接口版本号,可选值 v3.2 (Optional) * param title: 最大长度512,视频名称 (Optional) * param callback: 最大长度512,数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,内容安全服务会返回该字段 (Optional) * param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional) * param uniqueKey: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) * param scFrequency: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) * param advancedFrequency: 高级截帧设置,此项填写,默认截帧策略失效 (Optional)

func NewAsyncVideoScanV2RequestWithoutParam added in v1.56.0

func NewAsyncVideoScanV2RequestWithoutParam() *AsyncVideoScanV2Request

This constructor has better compatible ability when API parameters changed

func (AsyncVideoScanV2Request) GetRegionId added in v1.56.0

func (r AsyncVideoScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncVideoScanV2Request) SetAdvancedFrequency added in v1.56.0

func (r *AsyncVideoScanV2Request) SetAdvancedFrequency(advancedFrequency *censor.AdvancedFrequency)

param advancedFrequency: 高级截帧设置,此项填写,默认截帧策略失效(Optional)

func (*AsyncVideoScanV2Request) SetBizType added in v1.56.0

func (r *AsyncVideoScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AsyncVideoScanV2Request) SetCallback added in v1.56.0

func (r *AsyncVideoScanV2Request) SetCallback(callback string)

param callback: 最大长度512,数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,内容安全服务会返回该字段(Optional)

func (*AsyncVideoScanV2Request) SetCallbackUrl added in v1.56.0

func (r *AsyncVideoScanV2Request) SetCallbackUrl(callbackUrl string)

param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。(Optional)

func (*AsyncVideoScanV2Request) SetDataId added in v1.56.0

func (r *AsyncVideoScanV2Request) SetDataId(dataId string)

param dataId: 最大长度128,点播视频唯一标识(Optional)

func (*AsyncVideoScanV2Request) SetScFrequency added in v1.56.0

func (r *AsyncVideoScanV2Request) SetScFrequency(scFrequency int)

param scFrequency: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例(Optional)

func (*AsyncVideoScanV2Request) SetTitle added in v1.56.0

func (r *AsyncVideoScanV2Request) SetTitle(title string)

param title: 最大长度512,视频名称(Optional)

func (*AsyncVideoScanV2Request) SetUniqueKey added in v1.56.0

func (r *AsyncVideoScanV2Request) SetUniqueKey(uniqueKey string)

param uniqueKey: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例(Optional)

func (*AsyncVideoScanV2Request) SetUrl added in v1.56.0

func (r *AsyncVideoScanV2Request) SetUrl(url string)

param url: 最大长度512, 点播视频地址(Optional)

func (*AsyncVideoScanV2Request) SetVersion added in v1.56.0

func (r *AsyncVideoScanV2Request) SetVersion(version string)

param version: 接口版本号,可选值 v3.2(Optional)

type AsyncVideoScanV2Response added in v1.56.0

type AsyncVideoScanV2Response struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    AsyncVideoScanV2Result `json:"result"`
}

type AsyncVideoScanV2Result added in v1.56.0

type AsyncVideoScanV2Result struct {
	Result censor.VideoTaskData `json:"result"`
}

type AudioCallbackV2Request added in v1.56.0

type AudioCallbackV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`
}

func NewAudioCallbackV2Request added in v1.56.0

func NewAudioCallbackV2Request() *AudioCallbackV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAudioCallbackV2RequestWithAllParams added in v1.56.0

func NewAudioCallbackV2RequestWithAllParams(
	bizType *string,
	version *string,
) *AudioCallbackV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional)

func NewAudioCallbackV2RequestWithoutParam added in v1.56.0

func NewAudioCallbackV2RequestWithoutParam() *AudioCallbackV2Request

This constructor has better compatible ability when API parameters changed

func (AudioCallbackV2Request) GetRegionId added in v1.56.0

func (r AudioCallbackV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AudioCallbackV2Request) SetBizType added in v1.56.0

func (r *AudioCallbackV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AudioCallbackV2Request) SetVersion added in v1.56.0

func (r *AudioCallbackV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type AudioCallbackV2Response added in v1.56.0

type AudioCallbackV2Response struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    AudioCallbackV2Result `json:"result"`
}

type AudioCallbackV2Result added in v1.56.0

type AudioCallbackV2Result struct {
	Antispam []censor.AudioAntispamResult `json:"antispam"`
	Asr      []censor.AudioASRResult      `json:"asr"`
	Language []censor.AudioLanguageResult `json:"language"`
	Voice    []censor.AudioVoiceResult    `json:"voice"`
}

type AudioResultsRequest added in v1.45.0

type AudioResultsRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewAudioResultsRequest added in v1.45.0

func NewAudioResultsRequest(
	taskIds []string,
) *AudioResultsRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAudioResultsRequestWithAllParams added in v1.45.0

func NewAudioResultsRequestWithAllParams(
	taskIds []string,
) *AudioResultsRequest

* param taskIds: (Required)

func NewAudioResultsRequestWithoutParam added in v1.45.0

func NewAudioResultsRequestWithoutParam() *AudioResultsRequest

This constructor has better compatible ability when API parameters changed

func (AudioResultsRequest) GetRegionId added in v1.45.0

func (r AudioResultsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AudioResultsRequest) SetTaskIds added in v1.45.0

func (r *AudioResultsRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type AudioResultsResponse added in v1.45.0

type AudioResultsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    AudioResultsResult `json:"result"`
}

type AudioResultsResult added in v1.45.0

type AudioResultsResult struct {
	Data []censor.AudioResult `json:"data"`
}

type AudioResultsV2Request added in v1.56.0

type AudioResultsV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`

	/* 要查询的taskId (Optional) */
	TaskIds []string `json:"taskIds"`
}

func NewAudioResultsV2Request added in v1.56.0

func NewAudioResultsV2Request() *AudioResultsV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAudioResultsV2RequestWithAllParams added in v1.56.0

func NewAudioResultsV2RequestWithAllParams(
	bizType *string,
	version *string,
	taskIds []string,
) *AudioResultsV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional) * param taskIds: 要查询的taskId (Optional)

func NewAudioResultsV2RequestWithoutParam added in v1.56.0

func NewAudioResultsV2RequestWithoutParam() *AudioResultsV2Request

This constructor has better compatible ability when API parameters changed

func (AudioResultsV2Request) GetRegionId added in v1.56.0

func (r AudioResultsV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AudioResultsV2Request) SetBizType added in v1.56.0

func (r *AudioResultsV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AudioResultsV2Request) SetTaskIds added in v1.56.0

func (r *AudioResultsV2Request) SetTaskIds(taskIds []string)

param taskIds: 要查询的taskId(Optional)

func (*AudioResultsV2Request) SetVersion added in v1.56.0

func (r *AudioResultsV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type AudioResultsV2Response added in v1.56.0

type AudioResultsV2Response struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AudioResultsV2Result `json:"result"`
}

type AudioResultsV2Result added in v1.56.0

type AudioResultsV2Result struct {
	Result []censor.AudioAntispamResult `json:"result"`
}

type DeleteCensorLibItemsRequest added in v1.45.0

type DeleteCensorLibItemsRequest struct {
	core.JDCloudRequest

	/* 实例所属的地域ID  */
	RegionId string `json:"regionId"`

	/* 敏感库id  */
	LibId string `json:"libId"`

	/* itemId,支持多个,用','分隔,表示批量删除  */
	ItemId string `json:"itemId"`
}

func NewDeleteCensorLibItemsRequest added in v1.45.0

func NewDeleteCensorLibItemsRequest(
	regionId string,
	libId string,
	itemId string,
) *DeleteCensorLibItemsRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required) * param itemId: itemId,支持多个,用','分隔,表示批量删除 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteCensorLibItemsRequestWithAllParams added in v1.45.0

func NewDeleteCensorLibItemsRequestWithAllParams(
	regionId string,
	libId string,
	itemId string,
) *DeleteCensorLibItemsRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required) * param itemId: itemId,支持多个,用','分隔,表示批量删除 (Required)

func NewDeleteCensorLibItemsRequestWithoutParam added in v1.45.0

func NewDeleteCensorLibItemsRequestWithoutParam() *DeleteCensorLibItemsRequest

This constructor has better compatible ability when API parameters changed

func (DeleteCensorLibItemsRequest) GetRegionId added in v1.45.0

func (r DeleteCensorLibItemsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteCensorLibItemsRequest) SetItemId added in v1.45.0

func (r *DeleteCensorLibItemsRequest) SetItemId(itemId string)

param itemId: itemId,支持多个,用','分隔,表示批量删除(Required)

func (*DeleteCensorLibItemsRequest) SetLibId added in v1.45.0

func (r *DeleteCensorLibItemsRequest) SetLibId(libId string)

param libId: 敏感库id(Required)

func (*DeleteCensorLibItemsRequest) SetRegionId added in v1.45.0

func (r *DeleteCensorLibItemsRequest) SetRegionId(regionId string)

param regionId: 实例所属的地域ID(Required)

type DeleteCensorLibItemsResponse added in v1.45.0

type DeleteCensorLibItemsResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DeleteCensorLibItemsResult `json:"result"`
}

type DeleteCensorLibItemsResult added in v1.45.0

type DeleteCensorLibItemsResult struct {
}

type DeleteCensorLibRequest added in v1.45.0

type DeleteCensorLibRequest struct {
	core.JDCloudRequest

	/* 实例所属的地域ID  */
	RegionId string `json:"regionId"`

	/* 敏感库id  */
	LibId string `json:"libId"`
}

func NewDeleteCensorLibRequest added in v1.45.0

func NewDeleteCensorLibRequest(
	regionId string,
	libId string,
) *DeleteCensorLibRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteCensorLibRequestWithAllParams added in v1.45.0

func NewDeleteCensorLibRequestWithAllParams(
	regionId string,
	libId string,
) *DeleteCensorLibRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required)

func NewDeleteCensorLibRequestWithoutParam added in v1.45.0

func NewDeleteCensorLibRequestWithoutParam() *DeleteCensorLibRequest

This constructor has better compatible ability when API parameters changed

func (DeleteCensorLibRequest) GetRegionId added in v1.45.0

func (r DeleteCensorLibRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteCensorLibRequest) SetLibId added in v1.45.0

func (r *DeleteCensorLibRequest) SetLibId(libId string)

param libId: 敏感库id(Required)

func (*DeleteCensorLibRequest) SetRegionId added in v1.45.0

func (r *DeleteCensorLibRequest) SetRegionId(regionId string)

param regionId: 实例所属的地域ID(Required)

type DeleteCensorLibResponse added in v1.45.0

type DeleteCensorLibResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DeleteCensorLibResult `json:"result"`
}

type DeleteCensorLibResult added in v1.45.0

type DeleteCensorLibResult struct {
}

type DeleteLimitRequest added in v1.45.0

type DeleteLimitRequest struct {
	core.JDCloudRequest

	/* 实例所属的地域ID  */
	RegionId string `json:"regionId"`

	/* 限制参数配置id  */
	LimitId string `json:"limitId"`
}

func NewDeleteLimitRequest added in v1.45.0

func NewDeleteLimitRequest(
	regionId string,
	limitId string,
) *DeleteLimitRequest

* param regionId: 实例所属的地域ID (Required) * param limitId: 限制参数配置id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteLimitRequestWithAllParams added in v1.45.0

func NewDeleteLimitRequestWithAllParams(
	regionId string,
	limitId string,
) *DeleteLimitRequest

* param regionId: 实例所属的地域ID (Required) * param limitId: 限制参数配置id (Required)

func NewDeleteLimitRequestWithoutParam added in v1.45.0

func NewDeleteLimitRequestWithoutParam() *DeleteLimitRequest

This constructor has better compatible ability when API parameters changed

func (DeleteLimitRequest) GetRegionId added in v1.45.0

func (r DeleteLimitRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteLimitRequest) SetLimitId added in v1.45.0

func (r *DeleteLimitRequest) SetLimitId(limitId string)

param limitId: 限制参数配置id(Required)

func (*DeleteLimitRequest) SetRegionId added in v1.45.0

func (r *DeleteLimitRequest) SetRegionId(regionId string)

param regionId: 实例所属的地域ID(Required)

type DeleteLimitResponse added in v1.45.0

type DeleteLimitResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteLimitResult  `json:"result"`
}

type DeleteLimitResult added in v1.45.0

type DeleteLimitResult struct {
}

type ImageResultsRequest

type ImageResultsRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewImageResultsRequest

func NewImageResultsRequest(
	taskIds []string,
) *ImageResultsRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewImageResultsRequestWithAllParams

func NewImageResultsRequestWithAllParams(
	taskIds []string,
) *ImageResultsRequest

* param taskIds: (Required)

func NewImageResultsRequestWithoutParam

func NewImageResultsRequestWithoutParam() *ImageResultsRequest

This constructor has better compatible ability when API parameters changed

func (ImageResultsRequest) GetRegionId

func (r ImageResultsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImageResultsRequest) SetTaskIds

func (r *ImageResultsRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type ImageResultsResponse

type ImageResultsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImageResultsResult `json:"result"`
}

type ImageResultsResult

type ImageResultsResult struct {
	Data []censor.ImageResult `json:"data"`
}

type ImageScanRequest

type ImageScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。 (Optional) */
	Tasks []censor.ImageTask `json:"tasks"`
}

func NewImageScanRequest

func NewImageScanRequest() *ImageScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewImageScanRequestWithAllParams

func NewImageScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.ImageTask,
) *ImageScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。 (Optional)

func NewImageScanRequestWithoutParam

func NewImageScanRequestWithoutParam() *ImageScanRequest

This constructor has better compatible ability when API parameters changed

func (ImageScanRequest) GetRegionId

func (r ImageScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImageScanRequest) SetBizType added in v1.56.0

func (r *ImageScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*ImageScanRequest) SetScenes

func (r *ImageScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*ImageScanRequest) SetTasks

func (r *ImageScanRequest) SetTasks(tasks []censor.ImageTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。(Optional)

type ImageScanResponse

type ImageScanResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImageScanResult    `json:"result"`
}

type ImageScanResult

type ImageScanResult struct {
	Data []censor.ImageResult `json:"data"`
}

type ImageScanV2Request added in v1.56.0

type ImageScanV2Request struct {
	core.JDCloudRequest

	/* 指定检测场景 (Optional) */
	Images []censor.ImageTaskV2 `json:"images"`

	/* 接口版本v4.1 (Optional) */
	Version *string `json:"version"`

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观响应结果 (Optional) */
	CheckLabels []string `json:"checkLabels"`
}

func NewImageScanV2Request added in v1.56.0

func NewImageScanV2Request() *ImageScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewImageScanV2RequestWithAllParams added in v1.56.0

func NewImageScanV2RequestWithAllParams(
	images []censor.ImageTaskV2,
	version *string,
	bizType *string,
	checkLabels []string,
) *ImageScanV2Request

* param images: 指定检测场景 (Optional) * param version: 接口版本v4.1 (Optional) * param bizType: 业务bizType,请联系客户经理获取 (Optional) * param checkLabels: 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观响应结果 (Optional)

func NewImageScanV2RequestWithoutParam added in v1.56.0

func NewImageScanV2RequestWithoutParam() *ImageScanV2Request

This constructor has better compatible ability when API parameters changed

func (ImageScanV2Request) GetRegionId added in v1.56.0

func (r ImageScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImageScanV2Request) SetBizType added in v1.56.0

func (r *ImageScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*ImageScanV2Request) SetCheckLabels added in v1.56.0

func (r *ImageScanV2Request) SetCheckLabels(checkLabels []string)

param checkLabels: 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观响应结果(Optional)

func (*ImageScanV2Request) SetImages added in v1.56.0

func (r *ImageScanV2Request) SetImages(images []censor.ImageTaskV2)

param images: 指定检测场景(Optional)

func (*ImageScanV2Request) SetVersion added in v1.56.0

func (r *ImageScanV2Request) SetVersion(version string)

param version: 接口版本v4.1(Optional)

type ImageScanV2Response added in v1.56.0

type ImageScanV2Response struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImageScanV2Result  `json:"result"`
}

type ImageScanV2Result added in v1.56.0

type ImageScanV2Result struct {
	Antispam []censor.ImageAntispamResult `json:"antispam"`
	Ocr      []censor.OCRResult           `json:"ocr"`
	Face     []censor.FaceResult          `json:"face"`
	Quality  []censor.QualityResult       `json:"quality"`
	Scene    []censor.SceneResult         `json:"scene"`
}

type InnerTextScanRequest added in v1.45.0

type InnerTextScanRequest struct {
	core.JDCloudRequest

	/* 指定检测场景,固定值:antispam (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional) */
	Tasks []censor.TextTask `json:"tasks"`
}

func NewInnerTextScanRequest added in v1.45.0

func NewInnerTextScanRequest() *InnerTextScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewInnerTextScanRequestWithAllParams added in v1.45.0

func NewInnerTextScanRequestWithAllParams(
	scenes []string,
	tasks []censor.TextTask,
) *InnerTextScanRequest

* param scenes: 指定检测场景,固定值:antispam (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional)

func NewInnerTextScanRequestWithoutParam added in v1.45.0

func NewInnerTextScanRequestWithoutParam() *InnerTextScanRequest

This constructor has better compatible ability when API parameters changed

func (InnerTextScanRequest) GetRegionId added in v1.45.0

func (r InnerTextScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*InnerTextScanRequest) SetScenes added in v1.45.0

func (r *InnerTextScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景,固定值:antispam(Optional)

func (*InnerTextScanRequest) SetTasks added in v1.45.0

func (r *InnerTextScanRequest) SetTasks(tasks []censor.TextTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。(Optional)

type InnerTextScanResponse added in v1.45.0

type InnerTextScanResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    InnerTextScanResult `json:"result"`
}

type InnerTextScanResult added in v1.45.0

type InnerTextScanResult struct {
	Data []censor.TextResult `json:"data"`
}

type TextResultsV2Request added in v1.56.0

type TextResultsV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v4 (Optional) */
	Version *string `json:"version"`
}

func NewTextResultsV2Request added in v1.56.0

func NewTextResultsV2Request() *TextResultsV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextResultsV2RequestWithAllParams added in v1.56.0

func NewTextResultsV2RequestWithAllParams(
	bizType *string,
	version *string,
) *TextResultsV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v4 (Optional)

func NewTextResultsV2RequestWithoutParam added in v1.56.0

func NewTextResultsV2RequestWithoutParam() *TextResultsV2Request

This constructor has better compatible ability when API parameters changed

func (TextResultsV2Request) GetRegionId added in v1.56.0

func (r TextResultsV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TextResultsV2Request) SetBizType added in v1.56.0

func (r *TextResultsV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*TextResultsV2Request) SetVersion added in v1.56.0

func (r *TextResultsV2Request) SetVersion(version string)

param version: 接口版本v4(Optional)

type TextResultsV2Response added in v1.56.0

type TextResultsV2Response struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    TextResultsV2Result `json:"result"`
}

type TextResultsV2Result added in v1.56.0

type TextResultsV2Result struct {
	Result []censor.TextResultDetailV2 `json:"result"`
}

type TextScanRequest

type TextScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景,固定值:antispam (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional) */
	Tasks []censor.TextTask `json:"tasks"`
}

func NewTextScanRequest

func NewTextScanRequest() *TextScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextScanRequestWithAllParams

func NewTextScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.TextTask,
) *TextScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景,固定值:antispam (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional)

func NewTextScanRequestWithoutParam

func NewTextScanRequestWithoutParam() *TextScanRequest

This constructor has better compatible ability when API parameters changed

func (TextScanRequest) GetRegionId

func (r TextScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TextScanRequest) SetBizType added in v1.56.0

func (r *TextScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*TextScanRequest) SetScenes

func (r *TextScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景,固定值:antispam(Optional)

func (*TextScanRequest) SetTasks

func (r *TextScanRequest) SetTasks(tasks []censor.TextTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。(Optional)

type TextScanResponse

type TextScanResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    TextScanResult     `json:"result"`
}

type TextScanResult

type TextScanResult struct {
	Data []censor.TextResult `json:"data"`
}

type TextScanV2Request added in v1.56.0

type TextScanV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本号,固定值 v4 (Optional) */
	Version *string `json:"version"`

	/* 可指定多个垃圾类别进行机器检测,多个垃圾类别以逗号分隔("100,200") (Optional) */
	CheckLabels *string `json:"checkLabels"`

	/* 1-100条文本数据。 (Optional) */
	Texts []censor.TextTaskV2 `json:"texts"`
}

func NewTextScanV2Request added in v1.56.0

func NewTextScanV2Request() *TextScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextScanV2RequestWithAllParams added in v1.56.0

func NewTextScanV2RequestWithAllParams(
	bizType *string,
	version *string,
	checkLabels *string,
	texts []censor.TextTaskV2,
) *TextScanV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本号,固定值 v4 (Optional) * param checkLabels: 可指定多个垃圾类别进行机器检测,多个垃圾类别以逗号分隔("100,200") (Optional) * param texts: 1-100条文本数据。 (Optional)

func NewTextScanV2RequestWithoutParam added in v1.56.0

func NewTextScanV2RequestWithoutParam() *TextScanV2Request

This constructor has better compatible ability when API parameters changed

func (TextScanV2Request) GetRegionId added in v1.56.0

func (r TextScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TextScanV2Request) SetBizType added in v1.56.0

func (r *TextScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*TextScanV2Request) SetCheckLabels added in v1.56.0

func (r *TextScanV2Request) SetCheckLabels(checkLabels string)

param checkLabels: 可指定多个垃圾类别进行机器检测,多个垃圾类别以逗号分隔("100,200")(Optional)

func (*TextScanV2Request) SetTexts added in v1.56.0

func (r *TextScanV2Request) SetTexts(texts []censor.TextTaskV2)

param texts: 1-100条文本数据。(Optional)

func (*TextScanV2Request) SetVersion added in v1.56.0

func (r *TextScanV2Request) SetVersion(version string)

param version: 接口版本号,固定值 v4(Optional)

type TextScanV2Response added in v1.56.0

type TextScanV2Response struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    TextScanV2Result   `json:"result"`
}

type TextScanV2Result added in v1.56.0

type TextScanV2Result struct {
	Result []censor.TextResultDetailV2 `json:"result"`
}

type VideoCallbackV2Request added in v1.56.0

type VideoCallbackV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`
}

func NewVideoCallbackV2Request added in v1.56.0

func NewVideoCallbackV2Request() *VideoCallbackV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewVideoCallbackV2RequestWithAllParams added in v1.56.0

func NewVideoCallbackV2RequestWithAllParams(
	bizType *string,
	version *string,
) *VideoCallbackV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional)

func NewVideoCallbackV2RequestWithoutParam added in v1.56.0

func NewVideoCallbackV2RequestWithoutParam() *VideoCallbackV2Request

This constructor has better compatible ability when API parameters changed

func (VideoCallbackV2Request) GetRegionId added in v1.56.0

func (r VideoCallbackV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*VideoCallbackV2Request) SetBizType added in v1.56.0

func (r *VideoCallbackV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*VideoCallbackV2Request) SetVersion added in v1.56.0

func (r *VideoCallbackV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type VideoCallbackV2Response added in v1.56.0

type VideoCallbackV2Response struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    VideoCallbackV2Result `json:"result"`
}

type VideoCallbackV2Result added in v1.56.0

type VideoCallbackV2Result struct {
	Result []censor.VideoResultV2 `json:"result"`
}

type VideoResultsRequest added in v1.45.0

type VideoResultsRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewVideoResultsRequest added in v1.45.0

func NewVideoResultsRequest(
	taskIds []string,
) *VideoResultsRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewVideoResultsRequestWithAllParams added in v1.45.0

func NewVideoResultsRequestWithAllParams(
	taskIds []string,
) *VideoResultsRequest

* param taskIds: (Required)

func NewVideoResultsRequestWithoutParam added in v1.45.0

func NewVideoResultsRequestWithoutParam() *VideoResultsRequest

This constructor has better compatible ability when API parameters changed

func (VideoResultsRequest) GetRegionId added in v1.45.0

func (r VideoResultsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*VideoResultsRequest) SetTaskIds added in v1.45.0

func (r *VideoResultsRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type VideoResultsResponse added in v1.45.0

type VideoResultsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    VideoResultsResult `json:"result"`
}

type VideoResultsResult added in v1.45.0

type VideoResultsResult struct {
	Data []censor.VideoResult `json:"data"`
}

type VideoResultsV2Request added in v1.56.0

type VideoResultsV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`

	/* 要查询的taskId (Optional) */
	TaskIds []string `json:"taskIds"`
}

func NewVideoResultsV2Request added in v1.56.0

func NewVideoResultsV2Request() *VideoResultsV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewVideoResultsV2RequestWithAllParams added in v1.56.0

func NewVideoResultsV2RequestWithAllParams(
	bizType *string,
	version *string,
	taskIds []string,
) *VideoResultsV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional) * param taskIds: 要查询的taskId (Optional)

func NewVideoResultsV2RequestWithoutParam added in v1.56.0

func NewVideoResultsV2RequestWithoutParam() *VideoResultsV2Request

This constructor has better compatible ability when API parameters changed

func (VideoResultsV2Request) GetRegionId added in v1.56.0

func (r VideoResultsV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*VideoResultsV2Request) SetBizType added in v1.56.0

func (r *VideoResultsV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*VideoResultsV2Request) SetTaskIds added in v1.56.0

func (r *VideoResultsV2Request) SetTaskIds(taskIds []string)

param taskIds: 要查询的taskId(Optional)

func (*VideoResultsV2Request) SetVersion added in v1.56.0

func (r *VideoResultsV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type VideoResultsV2Response added in v1.56.0

type VideoResultsV2Response struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    VideoResultsV2Result `json:"result"`
}

type VideoResultsV2Result added in v1.56.0

type VideoResultsV2Result struct {
	Result []censor.VideoResultV2 `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL