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.v1beta2.AnnotateTextRequest| Modifier and Type | Class and Description | 
|---|---|
| static class  | AnnotateTextRequest.Builder
 The request message for the text annotation API, which can perform multiple
 analysis types (sentiment, entities, and syntax) in one call. | 
| static class  | AnnotateTextRequest.Features
 All available features for sentiment, syntax, and semantic analysis. | 
| static interface  | AnnotateTextRequest.FeaturesOrBuilder | 
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description | 
|---|---|
| static int | DOCUMENT_FIELD_NUMBER | 
| static int | ENCODING_TYPE_FIELD_NUMBER | 
| static int | FEATURES_FIELD_NUMBER | 
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int DOCUMENT_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
public static final int ENCODING_TYPE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean hasDocument()
Input document.
.google.cloud.language.v1beta2.Document document = 1;hasDocument in interface AnnotateTextRequestOrBuilderpublic Document getDocument()
Input document.
.google.cloud.language.v1beta2.Document document = 1;getDocument in interface AnnotateTextRequestOrBuilderpublic DocumentOrBuilder getDocumentOrBuilder()
Input document.
.google.cloud.language.v1beta2.Document document = 1;getDocumentOrBuilder in interface AnnotateTextRequestOrBuilderpublic boolean hasFeatures()
The enabled features.
.google.cloud.language.v1beta2.AnnotateTextRequest.Features features = 2;hasFeatures in interface AnnotateTextRequestOrBuilderpublic AnnotateTextRequest.Features getFeatures()
The enabled features.
.google.cloud.language.v1beta2.AnnotateTextRequest.Features features = 2;getFeatures in interface AnnotateTextRequestOrBuilderpublic AnnotateTextRequest.FeaturesOrBuilder getFeaturesOrBuilder()
The enabled features.
.google.cloud.language.v1beta2.AnnotateTextRequest.Features features = 2;getFeaturesOrBuilder in interface AnnotateTextRequestOrBuilderpublic int getEncodingTypeValue()
The encoding type used by the API to calculate offsets.
.google.cloud.language.v1beta2.EncodingType encoding_type = 3;getEncodingTypeValue in interface AnnotateTextRequestOrBuilderpublic EncodingType getEncodingType()
The encoding type used by the API to calculate offsets.
.google.cloud.language.v1beta2.EncodingType encoding_type = 3;getEncodingType in interface AnnotateTextRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static AnnotateTextRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateTextRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateTextRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateTextRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateTextRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateTextRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static AnnotateTextRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AnnotateTextRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AnnotateTextRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static AnnotateTextRequest.Builder newBuilder()
public static AnnotateTextRequest.Builder newBuilder(AnnotateTextRequest prototype)
public AnnotateTextRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected AnnotateTextRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static AnnotateTextRequest getDefaultInstance()
public static Parser<AnnotateTextRequest> parser()
public Parser<AnnotateTextRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public AnnotateTextRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder