Class ClassifyTextRequest (2.5.0)

public final class ClassifyTextRequest extends GeneratedMessageV3 implements ClassifyTextRequestOrBuilder

The document classification request message.

Protobuf type google.cloud.language.v1.ClassifyTextRequest

Static Fields

CLASSIFICATION_MODEL_OPTIONS_FIELD_NUMBER

public static final int CLASSIFICATION_MODEL_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

DOCUMENT_FIELD_NUMBER

public static final int DOCUMENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClassifyTextRequest getDefaultInstance()
Returns
TypeDescription
ClassifyTextRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ClassifyTextRequest.Builder newBuilder()
Returns
TypeDescription
ClassifyTextRequest.Builder

newBuilder(ClassifyTextRequest prototype)

public static ClassifyTextRequest.Builder newBuilder(ClassifyTextRequest prototype)
Parameter
NameDescription
prototypeClassifyTextRequest
Returns
TypeDescription
ClassifyTextRequest.Builder

parseDelimitedFrom(InputStream input)

public static ClassifyTextRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassifyTextRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ClassifyTextRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClassifyTextRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClassifyTextRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClassifyTextRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClassifyTextRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassifyTextRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ClassifyTextRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassifyTextRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ClassifyTextRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClassifyTextRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassifyTextRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ClassifyTextRequest> parser()
Returns
TypeDescription
Parser<ClassifyTextRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getClassificationModelOptions()

public ClassificationModelOptions getClassificationModelOptions()

Model options to use for classification. Defaults to v1 options if not specified.

.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 3;

Returns
TypeDescription
ClassificationModelOptions

The classificationModelOptions.

getClassificationModelOptionsOrBuilder()

public ClassificationModelOptionsOrBuilder getClassificationModelOptionsOrBuilder()

Model options to use for classification. Defaults to v1 options if not specified.

.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 3;

Returns
TypeDescription
ClassificationModelOptionsOrBuilder

getDefaultInstanceForType()

public ClassifyTextRequest getDefaultInstanceForType()
Returns
TypeDescription
ClassifyTextRequest

getDocument()

public Document getDocument()

Required. Input document.

.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Document

The document.

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

Required. Input document.

.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DocumentOrBuilder

getParserForType()

public Parser<ClassifyTextRequest> getParserForType()
Returns
TypeDescription
Parser<ClassifyTextRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasClassificationModelOptions()

public boolean hasClassificationModelOptions()

Model options to use for classification. Defaults to v1 options if not specified.

.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 3;

Returns
TypeDescription
boolean

Whether the classificationModelOptions field is set.

hasDocument()

public boolean hasDocument()

Required. Input document.

.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the document field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ClassifyTextRequest.Builder newBuilderForType()
Returns
TypeDescription
ClassifyTextRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClassifyTextRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ClassifyTextRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ClassifyTextRequest.Builder toBuilder()
Returns
TypeDescription
ClassifyTextRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException