Class AnalyzeSyntaxResponse (2.55.0)

publicfinalclass AnalyzeSyntaxResponseextendsGeneratedMessageV3implementsAnalyzeSyntaxResponseOrBuilder

The syntax analysis response message.

Protobuf type google.cloud.language.v1beta2.AnalyzeSyntaxResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

LANGUAGE_FIELD_NUMBER

publicstaticfinalintLANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

SENTENCES_FIELD_NUMBER

publicstaticfinalintSENTENCES_FIELD_NUMBER
Field Value
Type Description
int

TOKENS_FIELD_NUMBER

publicstaticfinalintTOKENS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAnalyzeSyntaxResponsegetDefaultInstance()
Returns
Type Description
AnalyzeSyntaxResponse

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAnalyzeSyntaxResponse.BuildernewBuilder()
Returns
Type Description
AnalyzeSyntaxResponse.Builder

newBuilder(AnalyzeSyntaxResponse prototype)

publicstaticAnalyzeSyntaxResponse.BuildernewBuilder(AnalyzeSyntaxResponseprototype)
Parameter
Name Description
prototype AnalyzeSyntaxResponse
Returns
Type Description
AnalyzeSyntaxResponse.Builder

parseDelimitedFrom(InputStream input)

publicstaticAnalyzeSyntaxResponseparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeSyntaxResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAnalyzeSyntaxResponseparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeSyntaxResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAnalyzeSyntaxResponseparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeSyntaxResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAnalyzeSyntaxResponseparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeSyntaxResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAnalyzeSyntaxResponseparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeSyntaxResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAnalyzeSyntaxResponseparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAnalyzeSyntaxResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AnalyzeSyntaxResponse>parser()
Returns
Type Description
Parser<AnalyzeSyntaxResponse>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAnalyzeSyntaxResponsegetDefaultInstanceForType()
Returns
Type Description
AnalyzeSyntaxResponse

getLanguage()

publicStringgetLanguage()

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 field for more details.

string language = 3;

Returns
Type Description
String

The language.

getLanguageBytes()

publicByteStringgetLanguageBytes()

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 field for more details.

string language = 3;

Returns
Type Description
ByteString

The bytes for language.

getParserForType()

publicParser<AnalyzeSyntaxResponse>getParserForType()
Returns
Type Description
Parser<AnalyzeSyntaxResponse>
Overrides

getSentences(int index)

publicSentencegetSentences(intindex)

Sentences in the input document.

repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Parameter
Name Description
index int
Returns
Type Description
Sentence

getSentencesCount()

publicintgetSentencesCount()

Sentences in the input document.

repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Returns
Type Description
int

getSentencesList()

publicList<Sentence>getSentencesList()

Sentences in the input document.

repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Returns
Type Description
List<Sentence>

getSentencesOrBuilder(int index)

publicSentenceOrBuildergetSentencesOrBuilder(intindex)

Sentences in the input document.

repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Parameter
Name Description
index int
Returns
Type Description
SentenceOrBuilder

getSentencesOrBuilderList()

publicList<?extendsSentenceOrBuilder>getSentencesOrBuilderList()

Sentences in the input document.

repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Returns
Type Description
List<? extends com.google.cloud.language.v1beta2.SentenceOrBuilder>

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTokens(int index)

publicTokengetTokens(intindex)

Tokens, along with their syntactic information, in the input document.

repeated .google.cloud.language.v1beta2.Token tokens = 2;

Parameter
Name Description
index int
Returns
Type Description
Token

getTokensCount()

publicintgetTokensCount()

Tokens, along with their syntactic information, in the input document.

repeated .google.cloud.language.v1beta2.Token tokens = 2;

Returns
Type Description
int

getTokensList()

publicList<Token>getTokensList()

Tokens, along with their syntactic information, in the input document.

repeated .google.cloud.language.v1beta2.Token tokens = 2;

Returns
Type Description
List<Token>

getTokensOrBuilder(int index)

publicTokenOrBuildergetTokensOrBuilder(intindex)

Tokens, along with their syntactic information, in the input document.

repeated .google.cloud.language.v1beta2.Token tokens = 2;

Parameter
Name Description
index int
Returns
Type Description
TokenOrBuilder

getTokensOrBuilderList()

publicList<?extendsTokenOrBuilder>getTokensOrBuilderList()

Tokens, along with their syntactic information, in the input document.

repeated .google.cloud.language.v1beta2.Token tokens = 2;

Returns
Type Description
List<? extends com.google.cloud.language.v1beta2.TokenOrBuilder>

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAnalyzeSyntaxResponse.BuildernewBuilderForType()
Returns
Type Description
AnalyzeSyntaxResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAnalyzeSyntaxResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAnalyzeSyntaxResponse.BuildertoBuilder()
Returns
Type Description
AnalyzeSyntaxResponse.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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 2025年10月30日 UTC.