public final class AnalyzeSyntaxResponse extends GeneratedMessageV3 implements AnalyzeSyntaxResponseOrBuilder
The syntax analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeSyntaxResponse
Modifier and Type | Class and Description |
---|---|
static class |
AnalyzeSyntaxResponse.Builder
The syntax analysis response message.
|
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 |
LANGUAGE_FIELD_NUMBER |
static int |
SENTENCES_FIELD_NUMBER |
static int |
TOKENS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static AnalyzeSyntaxResponse |
getDefaultInstance() |
AnalyzeSyntaxResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getLanguage()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
ByteString |
getLanguageBytes()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
|
Parser<AnalyzeSyntaxResponse> |
getParserForType() |
Sentence |
getSentences(int index)
Sentences in the input document.
|
int |
getSentencesCount()
Sentences in the input document.
|
java.util.List<Sentence> |
getSentencesList()
Sentences in the input document.
|
SentenceOrBuilder |
getSentencesOrBuilder(int index)
Sentences in the input document.
|
java.util.List<? extends SentenceOrBuilder> |
getSentencesOrBuilderList()
Sentences in the input document.
|
int |
getSerializedSize() |
Token |
getTokens(int index)
Tokens, along with their syntactic information, in the input document.
|
int |
getTokensCount()
Tokens, along with their syntactic information, in the input document.
|
java.util.List<Token> |
getTokensList()
Tokens, along with their syntactic information, in the input document.
|
TokenOrBuilder |
getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
java.util.List<? extends TokenOrBuilder> |
getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnalyzeSyntaxResponse.Builder |
newBuilder() |
static AnalyzeSyntaxResponse.Builder |
newBuilder(AnalyzeSyntaxResponse prototype) |
AnalyzeSyntaxResponse.Builder |
newBuilderForType() |
protected AnalyzeSyntaxResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static AnalyzeSyntaxResponse |
parseDelimitedFrom(java.io.InputStream input) |
static AnalyzeSyntaxResponse |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnalyzeSyntaxResponse |
parseFrom(byte[] data) |
static AnalyzeSyntaxResponse |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static AnalyzeSyntaxResponse |
parseFrom(java.nio.ByteBuffer data) |
static AnalyzeSyntaxResponse |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static AnalyzeSyntaxResponse |
parseFrom(ByteString data) |
static AnalyzeSyntaxResponse |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static AnalyzeSyntaxResponse |
parseFrom(CodedInputStream input) |
static AnalyzeSyntaxResponse |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static AnalyzeSyntaxResponse |
parseFrom(java.io.InputStream input) |
static AnalyzeSyntaxResponse |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<AnalyzeSyntaxResponse> |
parser() |
AnalyzeSyntaxResponse.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SENTENCES_FIELD_NUMBER
public static final int TOKENS_FIELD_NUMBER
public static final int LANGUAGE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.util.List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesList
in interface AnalyzeSyntaxResponseOrBuilder
public java.util.List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesOrBuilderList
in interface AnalyzeSyntaxResponseOrBuilder
public int getSentencesCount()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesCount
in interface AnalyzeSyntaxResponseOrBuilder
public Sentence getSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentences
in interface AnalyzeSyntaxResponseOrBuilder
public SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesOrBuilder
in interface AnalyzeSyntaxResponseOrBuilder
public java.util.List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensList
in interface AnalyzeSyntaxResponseOrBuilder
public java.util.List<? extends TokenOrBuilder> getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensOrBuilderList
in interface AnalyzeSyntaxResponseOrBuilder
public int getTokensCount()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensCount
in interface AnalyzeSyntaxResponseOrBuilder
public Token getTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;
getTokens
in interface AnalyzeSyntaxResponseOrBuilder
public TokenOrBuilder getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;
getTokensOrBuilder
in interface AnalyzeSyntaxResponseOrBuilder
public java.lang.String getLanguage()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 3;
getLanguage
in interface AnalyzeSyntaxResponseOrBuilder
public ByteString getLanguageBytes()
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 3;
getLanguageBytes
in interface AnalyzeSyntaxResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AnalyzeSyntaxResponse parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AnalyzeSyntaxResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AnalyzeSyntaxResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static AnalyzeSyntaxResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static AnalyzeSyntaxResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static AnalyzeSyntaxResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public AnalyzeSyntaxResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AnalyzeSyntaxResponse.Builder newBuilder()
public static AnalyzeSyntaxResponse.Builder newBuilder(AnalyzeSyntaxResponse prototype)
public AnalyzeSyntaxResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AnalyzeSyntaxResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AnalyzeSyntaxResponse getDefaultInstance()
public static Parser<AnalyzeSyntaxResponse> parser()
public Parser<AnalyzeSyntaxResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AnalyzeSyntaxResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder