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, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
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
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
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 List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
getSentencesList
in interface AnalyzeSyntaxResponseOrBuilder
public 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 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 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 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 IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(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(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AnalyzeSyntaxResponse parseFrom(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(InputStream input) throws IOException
IOException
public static AnalyzeSyntaxResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnalyzeSyntaxResponse parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AnalyzeSyntaxResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AnalyzeSyntaxResponse parseFrom(CodedInputStream input) throws IOException
IOException
public static AnalyzeSyntaxResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
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
Copyright © 2022 Google LLC. All rights reserved.