Class ClassifyTextRequest.Builder (2.95.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class ClassifyTextRequest.Builder extends GeneratedMessage.Builder<ClassifyTextRequest.Builder> implements ClassifyTextRequestOrBuilder
The document classification request message.
Protobuf type google.cloud.language.v2.ClassifyTextRequest
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public ClassifyTextRequest build()
buildPartial()
public ClassifyTextRequest buildPartial()
clear()
public ClassifyTextRequest.Builder clear()
Overrides
clearDocument()
public ClassifyTextRequest.Builder clearDocument()
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public ClassifyTextRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDocument()
public Document getDocument()
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Document |
The document.
|
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
hasDocument()
public boolean hasDocument()
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the document field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeDocument(Document value)
public ClassifyTextRequest.Builder mergeDocument(Document value)
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
value |
Document
|
mergeFrom(ClassifyTextRequest other)
public ClassifyTextRequest.Builder mergeFrom(ClassifyTextRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClassifyTextRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ClassifyTextRequest.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
setDocument(Document value)
public ClassifyTextRequest.Builder setDocument(Document value)
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
value |
Document
|
setDocument(Document.Builder builderForValue)
public ClassifyTextRequest.Builder setDocument(Document.Builder builderForValue)
Required. Input document.
.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
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 2026-08-04 UTC.
[null,null,["Last updated 2026-08-04 UTC."],[],[]]