publicfinalclass ModerateTextResponseextendsGeneratedMessageV3implementsModerateTextResponseOrBuilder
The document moderation response message.
Protobuf type google.cloud.language.v2.ModerateTextResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
LANGUAGE_CODE_FIELD_NUMBER
publicstaticfinalintLANGUAGE_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
LANGUAGE_SUPPORTED_FIELD_NUMBER
publicstaticfinalintLANGUAGE_SUPPORTED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MODERATION_CATEGORIES_FIELD_NUMBER
publicstaticfinalintMODERATION_CATEGORIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticModerateTextResponsegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticModerateTextResponse.BuildernewBuilder()
newBuilder(ModerateTextResponse prototype)
publicstaticModerateTextResponse.BuildernewBuilder(ModerateTextResponseprototype)
parseDelimitedFrom(InputStream input)
publicstaticModerateTextResponseparseDelimitedFrom(InputStreaminput)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticModerateTextResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticModerateTextResponseparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticModerateTextResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticModerateTextResponseparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticModerateTextResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
parseFrom(CodedInputStream input)
publicstaticModerateTextResponseparseFrom(CodedInputStreaminput)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticModerateTextResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(InputStream input)
publicstaticModerateTextResponseparseFrom(InputStreaminput)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticModerateTextResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticModerateTextResponseparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticModerateTextResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ModerateTextResponse>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicModerateTextResponsegetDefaultInstanceForType()
getLanguageCode()
publicStringgetLanguageCode()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
| Returns |
| Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
publicByteStringgetLanguageCodeBytes()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for languageCode.
|
getLanguageSupported()
publicbooleangetLanguageSupported()
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
| Returns |
| Type |
Description |
boolean |
The languageSupported.
|
getModerationCategories(int index)
publicClassificationCategorygetModerationCategories(intindex)
Harmful and sensitive categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
getModerationCategoriesCount()
publicintgetModerationCategoriesCount()
Harmful and sensitive categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 1;
| Returns |
| Type |
Description |
int |
getModerationCategoriesList()
publicList<ClassificationCategory>getModerationCategoriesList()
Harmful and sensitive categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 1;
getModerationCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetModerationCategoriesOrBuilder(intindex)
Harmful and sensitive categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
getModerationCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>getModerationCategoriesOrBuilderList()
Harmful and sensitive categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory moderation_categories = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.language.v2.ClassificationCategoryOrBuilder> |
getParserForType()
publicParser<ModerateTextResponse>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicModerateTextResponse.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedModerateTextResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicModerateTextResponse.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides