Class AnalyzeSyntaxResponse (2.42.0)

public final class AnalyzeSyntaxResponse extends GeneratedMessageV3 implements AnalyzeSyntaxResponseOrBuilder

The syntax analysis response message.

Protobuf type google.cloud.language.v1beta2.AnalyzeSyntaxResponse

Static Fields

LANGUAGE_FIELD_NUMBER

public static final int LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SENTENCES_FIELD_NUMBER

public static final int SENTENCES_FIELD_NUMBER
Field Value
TypeDescription
int

TOKENS_FIELD_NUMBER

public static final int TOKENS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyzeSyntaxResponse getDefaultInstance()
Returns
TypeDescription
AnalyzeSyntaxResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AnalyzeSyntaxResponse.Builder newBuilder()
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

newBuilder(AnalyzeSyntaxResponse prototype)

public static AnalyzeSyntaxResponse.Builder newBuilder(AnalyzeSyntaxResponse prototype)
Parameter
NameDescription
prototypeAnalyzeSyntaxResponse
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

parseDelimitedFrom(InputStream input)

public static AnalyzeSyntaxResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeSyntaxResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AnalyzeSyntaxResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeSyntaxResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzeSyntaxResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeSyntaxResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzeSyntaxResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeSyntaxResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AnalyzeSyntaxResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeSyntaxResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AnalyzeSyntaxResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeSyntaxResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AnalyzeSyntaxResponse> parser()
Returns
TypeDescription
Parser<AnalyzeSyntaxResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AnalyzeSyntaxResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeSyntaxResponse

getLanguage()

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

string language = 3;

Returns
TypeDescription
String

The language.

getLanguageBytes()

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

string language = 3;

Returns
TypeDescription
ByteString

The bytes for language.

getParserForType()

public Parser<AnalyzeSyntaxResponse> getParserForType()
Returns
TypeDescription
Parser<AnalyzeSyntaxResponse>
Overrides

getSentences(int index)

public Sentence getSentences(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Sentence

getSentencesCount()

public int getSentencesCount()

Sentences in the input document.

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

Returns
TypeDescription
int

getSentencesList()

public List<Sentence> getSentencesList()

Sentences in the input document.

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

Returns
TypeDescription
List<Sentence>

getSentencesOrBuilder(int index)

public SentenceOrBuilder getSentencesOrBuilder(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SentenceOrBuilder

getSentencesOrBuilderList()

public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()

Sentences in the input document.

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

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTokens(int index)

public Token getTokens(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Token

getTokensCount()

public int getTokensCount()

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

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

Returns
TypeDescription
int

getTokensList()

public List<Token> getTokensList()

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

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

Returns
TypeDescription
List<Token>

getTokensOrBuilder(int index)

public TokenOrBuilder getTokensOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TokenOrBuilder

getTokensOrBuilderList()

public List<? extends TokenOrBuilder> getTokensOrBuilderList()

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

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

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AnalyzeSyntaxResponse.Builder newBuilderForType()
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzeSyntaxResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AnalyzeSyntaxResponse.Builder toBuilder()
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException