Interface ModerateTextResponseOrBuilder (2.48.0)

publicinterface ModerateTextResponseOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getModerationCategories(int index)

publicabstractClassificationCategorygetModerationCategories(intindex)

Harmful and sensitive categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
ClassificationCategory

getModerationCategoriesCount()

publicabstractintgetModerationCategoriesCount()

Harmful and sensitive categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 1;

Returns
Type Description
int

getModerationCategoriesList()

publicabstractList<ClassificationCategory>getModerationCategoriesList()

Harmful and sensitive categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 1;

Returns
Type Description
List<ClassificationCategory>

getModerationCategoriesOrBuilder(int index)

publicabstractClassificationCategoryOrBuildergetModerationCategoriesOrBuilder(intindex)

Harmful and sensitive categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 1;

Parameter
Name Description
index int
Returns
Type Description
ClassificationCategoryOrBuilder

getModerationCategoriesOrBuilderList()

publicabstractList<?extendsClassificationCategoryOrBuilder>getModerationCategoriesOrBuilderList()

Harmful and sensitive categories representing the input document.

repeated .google.cloud.language.v1beta2.ClassificationCategory moderation_categories = 1;

Returns
Type Description
List<? extends com.google.cloud.language.v1beta2.ClassificationCategoryOrBuilder>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.