Documentation ¶
Index ¶
- type AsyncAudioScanRequest
- type AsyncAudioScanResponse
- type AsyncAudioScanResult
- type AsyncImageScanRequest
- type AsyncImageScanResponse
- type AsyncImageScanResult
- type AsyncVideoScanRequest
- func (r AsyncVideoScanRequest) GetRegionId() string
- func (r *AsyncVideoScanRequest) SetAudioScenes(audioScenes []string)
- func (r *AsyncVideoScanRequest) SetCallback(callback string)
- func (r *AsyncVideoScanRequest) SetLive(live bool)
- func (r *AsyncVideoScanRequest) SetScenes(scenes []string)
- func (r *AsyncVideoScanRequest) SetSeed(seed string)
- func (r *AsyncVideoScanRequest) SetTasks(tasks []censor.VideoTask)
- type AsyncVideoScanResponse
- type AsyncVideoScanResult
- type AudioResultsRequest
- type AudioResultsResponse
- type AudioResultsResult
- type DeleteCensorLibItemsRequest
- func NewDeleteCensorLibItemsRequest(regionId string, libId string, itemId string) *DeleteCensorLibItemsRequest
- func NewDeleteCensorLibItemsRequestWithAllParams(regionId string, libId string, itemId string) *DeleteCensorLibItemsRequest
- func NewDeleteCensorLibItemsRequestWithoutParam() *DeleteCensorLibItemsRequest
- type DeleteCensorLibItemsResponse
- type DeleteCensorLibItemsResult
- type DeleteCensorLibRequest
- type DeleteCensorLibResponse
- type DeleteCensorLibResult
- type DeleteLimitRequest
- type DeleteLimitResponse
- type DeleteLimitResult
- type ImageResultsRequest
- type ImageResultsResponse
- type ImageResultsResult
- type ImageScanRequest
- type ImageScanResponse
- type ImageScanResult
- type InnerTextScanRequest
- type InnerTextScanResponse
- type InnerTextScanResult
- type TextScanRequest
- type TextScanResponse
- type TextScanResult
- type VideoResultsRequest
- type VideoResultsResponse
- type VideoResultsResult
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 /* 指定检测场景 (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( scenes []string, tasks []censor.AudioTask, callback *string, seed *string, ) *AsyncAudioScanRequest
* 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) 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 AsyncImageScanRequest ¶
type AsyncImageScanRequest struct { core.JDCloudRequest /* 指定检测场景 (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( scenes []string, tasks []censor.ImageTask, callback *string, seed *string, ) *AsyncImageScanRequest
* 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) 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 AsyncVideoScanRequest ¶ added in v1.45.0
type AsyncVideoScanRequest struct { core.JDCloudRequest /* 是否直播。默认为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( live *bool, scenes []string, audioScenes []string, tasks []censor.VideoTask, callback *string, seed *string, ) *AsyncVideoScanRequest
* 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) 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 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 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 /* 指定检测场景 (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( scenes []string, tasks []censor.ImageTask, ) *ImageScanRequest
* 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) 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 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 TextScanRequest ¶
type TextScanRequest struct { core.JDCloudRequest /* 指定检测场景,固定值: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( scenes []string, tasks []censor.TextTask, ) *TextScanRequest
* 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) 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 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"`
}