public final class ClassifyTextResponse extends GeneratedMessageV3 implements ClassifyTextResponseOrBuilder
The document classification response message.
Protobuf type google.cloud.language.v1beta2.ClassifyTextResponse
Static Fields
CATEGORIES_FIELD_NUMBER
public static final int CATEGORIES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ClassifyTextResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ClassifyTextResponse.Builder newBuilder()
Returns
newBuilder(ClassifyTextResponse prototype)
public static ClassifyTextResponse.Builder newBuilder(ClassifyTextResponse prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static ClassifyTextResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ClassifyTextResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ClassifyTextResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassifyTextResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ClassifyTextResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassifyTextResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static ClassifyTextResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ClassifyTextResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static ClassifyTextResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ClassifyTextResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ClassifyTextResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassifyTextResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ClassifyTextResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCategories(int index)
public ClassificationCategory getCategories(int index)
Categories representing the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;
Parameter
Returns
getCategoriesCount()
public int getCategoriesCount()
Categories representing the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;
Returns
getCategoriesList()
public List<ClassificationCategory> getCategoriesList()
Categories representing the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;
Returns
getCategoriesOrBuilder(int index)
public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories representing the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;
Parameter
Returns
getCategoriesOrBuilderList()
public List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories representing the input document.
repeated .google.cloud.language.v1beta2.ClassificationCategory categories = 1;
Returns
Type | Description |
List<? extends com.google.cloud.language.v1beta2.ClassificationCategoryOrBuilder> | |
getDefaultInstanceForType()
public ClassifyTextResponse getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ClassifyTextResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ClassifyTextResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassifyTextResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ClassifyTextResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions