public final class AnnotateTextRequest extends GeneratedMessageV3 implements AnnotateTextRequestOrBuilder
The request message for the text annotation API, which can perform multiple
analysis types (sentiment, entities, and syntax) in one call.
Protobuf type google.cloud.language.v1.AnnotateTextRequest
Static Fields
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
Field Value
ENCODING_TYPE_FIELD_NUMBER
public static final int ENCODING_TYPE_FIELD_NUMBER
Field Value
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnnotateTextRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnnotateTextRequest.Builder newBuilder()
Returns
newBuilder(AnnotateTextRequest prototype)
public static AnnotateTextRequest.Builder newBuilder(AnnotateTextRequest prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static AnnotateTextRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AnnotateTextRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnnotateTextRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotateTextRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnnotateTextRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotateTextRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static AnnotateTextRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AnnotateTextRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static AnnotateTextRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AnnotateTextRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnnotateTextRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotateTextRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnnotateTextRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AnnotateTextRequest getDefaultInstanceForType()
Returns
getDocument()
public Document getDocument()
Input document.
.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Input document.
.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getEncodingType()
public EncodingType getEncodingType()
The encoding type used by the API to calculate offsets.
.google.cloud.language.v1.EncodingType encoding_type = 3;
Returns
getEncodingTypeValue()
public int getEncodingTypeValue()
The encoding type used by the API to calculate offsets.
.google.cloud.language.v1.EncodingType encoding_type = 3;
Returns
Type | Description |
int | The enum numeric value on the wire for encodingType.
|
getFeatures()
public AnnotateTextRequest.Features getFeatures()
The enabled features.
.google.cloud.language.v1.AnnotateTextRequest.Features features = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getFeaturesOrBuilder()
public AnnotateTextRequest.FeaturesOrBuilder getFeaturesOrBuilder()
The enabled features.
.google.cloud.language.v1.AnnotateTextRequest.Features features = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParserForType()
public Parser<AnnotateTextRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDocument()
public boolean hasDocument()
Input document.
.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the document field is set.
|
hasFeatures()
public boolean hasFeatures()
The enabled features.
.google.cloud.language.v1.AnnotateTextRequest.Features features = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the features field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnnotateTextRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotateTextRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnnotateTextRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions