model

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResultItemsBody

type CheckResultItemsBody struct {
	Url *string `json:"url,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`

	Detail *ImageDetectionResultDetail `json:"detail,omitempty"`

	CategorySuggestions map[string]string `json:"category_suggestions,omitempty"`
}

func (CheckResultItemsBody) String

func (o CheckResultItemsBody) String() string

type CheckResultResultBody

type CheckResultResultBody struct {
	JobId *string `json:"job_id,omitempty"`

	Status *string `json:"status,omitempty"`

	CreateTime *string `json:"create_time,omitempty"`

	UpdateTime *string `json:"update_time,omitempty"`

	Items *[]CheckResultItemsBody `json:"items,omitempty"`
}

func (CheckResultResultBody) String

func (o CheckResultResultBody) String() string

type CheckTaskJobsItemsBody

type CheckTaskJobsItemsBody struct {
	JobId *string `json:"job_id,omitempty"`

	Status *string `json:"status,omitempty"`

	CreateTime *string `json:"create_time,omitempty"`

	UpdateTime *string `json:"update_time,omitempty"`
}

func (CheckTaskJobsItemsBody) String

func (o CheckTaskJobsItemsBody) String() string

type ImageBatchModerationReq

type ImageBatchModerationReq struct {
	Urls []string `json:"urls"`

	Categories *[]ImageBatchModerationReqCategories `json:"categories,omitempty"`

	Threshold *float64 `json:"threshold,omitempty"`
}

func (ImageBatchModerationReq) String

func (o ImageBatchModerationReq) String() string

type ImageBatchModerationReqCategories

type ImageBatchModerationReqCategories struct {
	// contains filtered or unexported fields
}

func (ImageBatchModerationReqCategories) MarshalJSON

func (c ImageBatchModerationReqCategories) MarshalJSON() ([]byte, error)

func (*ImageBatchModerationReqCategories) UnmarshalJSON

func (c *ImageBatchModerationReqCategories) UnmarshalJSON(b []byte) error

type ImageBatchModerationResultBody

type ImageBatchModerationResultBody struct {
	Url *string `json:"url,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`

	Detail *ImageDetectionResultDetail `json:"detail,omitempty"`

	CategorySuggestions *interface{} `json:"category_suggestions,omitempty"`
}

func (ImageBatchModerationResultBody) String

type ImageDetectionReq

type ImageDetectionReq struct {
	Url *string `json:"url,omitempty"`

	Image *string `json:"image,omitempty"`

	ModerationRule *string `json:"moderation_rule,omitempty"`

	Categories *[]ImageDetectionReqCategories `json:"categories,omitempty"`

	AdGlossaries *[]string `json:"ad_glossaries,omitempty"`

	AdCategories *[]string `json:"ad_categories,omitempty"`

	Threshold *float32 `json:"threshold,omitempty"`
}

func (ImageDetectionReq) String

func (o ImageDetectionReq) String() string

type ImageDetectionReqCategories

type ImageDetectionReqCategories struct {
	// contains filtered or unexported fields
}

func (ImageDetectionReqCategories) MarshalJSON

func (c ImageDetectionReqCategories) MarshalJSON() ([]byte, error)

func (*ImageDetectionReqCategories) UnmarshalJSON

func (c *ImageDetectionReqCategories) UnmarshalJSON(b []byte) error

type ImageDetectionResultAdDetail

type ImageDetectionResultAdDetail struct {
	Confidence *float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`

	HitContexts *[]string `json:"hit_contexts,omitempty"`
}

广告检测详情

func (ImageDetectionResultAdDetail) String

type ImageDetectionResultBody

type ImageDetectionResultBody struct {
	Detail *ImageDetectionResultDetail `json:"detail,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`

	CategorySuggestions map[string]string `json:"category_suggestions,omitempty"`
}

func (ImageDetectionResultBody) String

func (o ImageDetectionResultBody) String() string

type ImageDetectionResultDetail

type ImageDetectionResultDetail struct {
	Politics *[]ImageDetectionResultDetailPolitics `json:"politics,omitempty"`

	Porn *[]ImageDetectionResultSimpleDetail `json:"porn,omitempty"`

	Terrorism *[]ImageDetectionResultSimpleDetail `json:"terrorism,omitempty"`

	Ad *[]ImageDetectionResultAdDetail `json:"ad,omitempty"`
}

func (ImageDetectionResultDetail) String

type ImageDetectionResultDetailFaceDetail

type ImageDetectionResultDetailFaceDetail struct {
	H *int32 `json:"h,omitempty"`

	W *int32 `json:"w,omitempty"`

	X *int32 `json:"x,omitempty"`

	Y *int32 `json:"y,omitempty"`
}

涉政场景中的人物面部信息。

func (ImageDetectionResultDetailFaceDetail) String

type ImageDetectionResultDetailPolitics

type ImageDetectionResultDetailPolitics struct {
	Confidence *float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`

	FaceDetail *ImageDetectionResultDetailFaceDetail `json:"face_detail,omitempty"`
}

func (ImageDetectionResultDetailPolitics) String

type ImageDetectionResultSimpleDetail

type ImageDetectionResultSimpleDetail struct {
	Confidence *float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`
}

反黄,暴恐检测详情

func (ImageDetectionResultSimpleDetail) String

type PornModerationResultDetail added in v0.0.84

type PornModerationResultDetail struct {
	Confidence float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`
}

涉黄场景审核结果

func (PornModerationResultDetail) String added in v0.0.84

type RunCheckResultRequest

type RunCheckResultRequest struct {
	JobId string `json:"job_id"`
}

Request Object

func (RunCheckResultRequest) String

func (o RunCheckResultRequest) String() string

type RunCheckResultResponse

type RunCheckResultResponse struct {
	Result         *CheckResultResultBody `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (RunCheckResultResponse) String

func (o RunCheckResultResponse) String() string

type RunCheckTaskJobsRequest

type RunCheckTaskJobsRequest struct {
	Status *RunCheckTaskJobsRequestStatus `json:"status,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (RunCheckTaskJobsRequest) String

func (o RunCheckTaskJobsRequest) String() string

type RunCheckTaskJobsRequestStatus

type RunCheckTaskJobsRequestStatus struct {
	// contains filtered or unexported fields
}

func (RunCheckTaskJobsRequestStatus) MarshalJSON

func (c RunCheckTaskJobsRequestStatus) MarshalJSON() ([]byte, error)

func (*RunCheckTaskJobsRequestStatus) UnmarshalJSON

func (c *RunCheckTaskJobsRequestStatus) UnmarshalJSON(b []byte) error

type RunCheckTaskJobsResponse

type RunCheckTaskJobsResponse struct {
	Result *[]CheckTaskJobsItemsBody `json:"result,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (RunCheckTaskJobsResponse) String

func (o RunCheckTaskJobsResponse) String() string

type RunImageBatchModerationRequest

type RunImageBatchModerationRequest struct {
	Body *ImageBatchModerationReq `json:"body,omitempty"`
}

Request Object

func (RunImageBatchModerationRequest) String

type RunImageBatchModerationResponse

type RunImageBatchModerationResponse struct {
	Result         *[]ImageBatchModerationResultBody `json:"result,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (RunImageBatchModerationResponse) String

type RunImageModerationRequest

type RunImageModerationRequest struct {
	Body *ImageDetectionReq `json:"body,omitempty"`
}

Request Object

func (RunImageModerationRequest) String

func (o RunImageModerationRequest) String() string

type RunImageModerationResponse

type RunImageModerationResponse struct {
	Result         *ImageDetectionResultBody `json:"result,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (RunImageModerationResponse) String

type RunModerationAudioRequest added in v0.0.84

type RunModerationAudioRequest struct {
	Body *RunModerationAudioRequestBody `json:"body,omitempty"`
}

Request Object

func (RunModerationAudioRequest) String added in v0.0.84

func (o RunModerationAudioRequest) String() string

type RunModerationAudioRequestBody added in v0.0.84

type RunModerationAudioRequestBody struct {
	Data *string `json:"data,omitempty"`

	Url *string `json:"url,omitempty"`

	Config *RunModerationAudioRequestBodyConfig `json:"config"`

	Categories *[]string `json:"categories,omitempty"`
}

请求体

func (RunModerationAudioRequestBody) String added in v0.0.84

type RunModerationAudioRequestBodyConfig added in v0.0.84

type RunModerationAudioRequestBodyConfig struct {
	Format RunModerationAudioRequestBodyConfigFormat `json:"format"`

	Property RunModerationAudioRequestBodyConfigProperty `json:"property"`
}

语音文件配置信息

func (RunModerationAudioRequestBodyConfig) String added in v0.0.84

type RunModerationAudioRequestBodyConfigFormat added in v0.0.84

type RunModerationAudioRequestBodyConfigFormat struct {
	// contains filtered or unexported fields
}

func (RunModerationAudioRequestBodyConfigFormat) MarshalJSON added in v0.0.84

func (*RunModerationAudioRequestBodyConfigFormat) UnmarshalJSON added in v0.0.84

type RunModerationAudioRequestBodyConfigProperty added in v0.0.84

type RunModerationAudioRequestBodyConfigProperty struct {
	// contains filtered or unexported fields
}

func (RunModerationAudioRequestBodyConfigProperty) MarshalJSON added in v0.0.84

func (*RunModerationAudioRequestBodyConfigProperty) UnmarshalJSON added in v0.0.84

type RunModerationAudioRequestBodyConfigPropertyEnum added in v0.0.84

type RunModerationAudioRequestBodyConfigPropertyEnum struct {
	CHINESE_8K_COMMON  RunModerationAudioRequestBodyConfigProperty
	CHINESE_16K_COMMON RunModerationAudioRequestBodyConfigProperty
}

func GetRunModerationAudioRequestBodyConfigPropertyEnum added in v0.0.84

func GetRunModerationAudioRequestBodyConfigPropertyEnum() RunModerationAudioRequestBodyConfigPropertyEnum

type RunModerationAudioResponse added in v0.0.84

type RunModerationAudioResponse struct {
	Result         *RunModerationAudioResponseBodyResult `json:"result,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

Response Object

func (RunModerationAudioResponse) String added in v0.0.84

type RunModerationAudioResponseBodyResult added in v0.0.84

type RunModerationAudioResponseBodyResult struct {
	Detail *RunModerationAudioResponseBodyResultDetail `json:"detail,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`
}

调用成功时表示调用结果。 调用失败时无此字段。

func (RunModerationAudioResponseBodyResult) String added in v0.0.84

type RunModerationAudioResponseBodyResultDetail added in v0.0.84

type RunModerationAudioResponseBodyResultDetail struct {
	Text *interface{} `json:"text,omitempty"`

	Audio *RunModerationAudioResponseBodyResultDetailAudio `json:"audio,omitempty"`
}

审核结果列表,text为语音转文本后审核结果,audio为音频审核结果。

func (RunModerationAudioResponseBodyResultDetail) String added in v0.0.84

type RunModerationAudioResponseBodyResultDetailAudio added in v0.0.84

type RunModerationAudioResponseBodyResultDetailAudio struct {
	Porn *[]PornModerationResultDetail `json:"porn,omitempty"`
}

返回的音频审核结果列表,porn为涉黄场景审核结果; 当前仅支持porn场景。

func (RunModerationAudioResponseBodyResultDetailAudio) String added in v0.0.84

type RunTaskSumbitRequest

type RunTaskSumbitRequest struct {
	Body *TaskSumbitReq `json:"body,omitempty"`
}

Request Object

func (RunTaskSumbitRequest) String

func (o RunTaskSumbitRequest) String() string

type RunTaskSumbitResponse

type RunTaskSumbitResponse struct {
	Result         *TaskSumbitResponseResult `json:"result,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (RunTaskSumbitResponse) String

func (o RunTaskSumbitResponse) String() string

type RunTextModerationRequest

type RunTextModerationRequest struct {
	Body *TextDetectionReq `json:"body,omitempty"`
}

Request Object

func (RunTextModerationRequest) String

func (o RunTextModerationRequest) String() string

type RunTextModerationResponse

type RunTextModerationResponse struct {
	Result         *TextDetectionResponseResult `json:"result,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (RunTextModerationResponse) String

func (o RunTextModerationResponse) String() string

type TaskSumbitReq

type TaskSumbitReq struct {
	Urls []string `json:"urls"`

	Categories *[]TaskSumbitReqCategories `json:"categories,omitempty"`
}

func (TaskSumbitReq) String

func (o TaskSumbitReq) String() string

type TaskSumbitReqCategories

type TaskSumbitReqCategories struct {
	// contains filtered or unexported fields
}

func (TaskSumbitReqCategories) MarshalJSON

func (c TaskSumbitReqCategories) MarshalJSON() ([]byte, error)

func (*TaskSumbitReqCategories) UnmarshalJSON

func (c *TaskSumbitReqCategories) UnmarshalJSON(b []byte) error

type TaskSumbitReqCategoriesEnum

type TaskSumbitReqCategoriesEnum struct {
	POLITICS  TaskSumbitReqCategories
	PORN      TaskSumbitReqCategories
	TERRORISM TaskSumbitReqCategories
}

func GetTaskSumbitReqCategoriesEnum

func GetTaskSumbitReqCategoriesEnum() TaskSumbitReqCategoriesEnum

type TaskSumbitResponseResult

type TaskSumbitResponseResult struct {
	JobId *string `json:"job_id,omitempty"`
}

调用成功时表示调用结果。 调用失败时无此字段。

func (TaskSumbitResponseResult) String

func (o TaskSumbitResponseResult) String() string

type TextDetectionItemsReq

type TextDetectionItemsReq struct {
	Text string `json:"text"`

	Type *string `json:"type,omitempty"`
}

func (TextDetectionItemsReq) String

func (o TextDetectionItemsReq) String() string

type TextDetectionReq

type TextDetectionReq struct {
	Categories *[]string `json:"categories,omitempty"`

	Items []TextDetectionItemsReq `json:"items"`
}

func (TextDetectionReq) String

func (o TextDetectionReq) String() string

type TextDetectionResponseResult

type TextDetectionResponseResult struct {
	Suggestion *string `json:"suggestion,omitempty"`

	Detail *interface{} `json:"detail,omitempty"`
}

调用成功时表示调用结果。 调用失败时无此字段。

func (TextDetectionResponseResult) String

Source Files

Jump to

Keyboard shortcuts

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