Class AnalyzeSyntaxResponse.Builder (2.36.0)

public static final class AnalyzeSyntaxResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder> implements AnalyzeSyntaxResponseOrBuilder

The syntax analysis response message.

Protobuf type google.cloud.language.v1.AnalyzeSyntaxResponse

Static Methods

getDescriptor()

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

Methods

addAllSentences(Iterable<? extends Sentence> values)

public AnalyzeSyntaxResponse.Builder addAllSentences(Iterable<? extends Sentence> values)

Sentences in the input document.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.language.v1.Sentence>
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addAllTokens(Iterable<? extends Token> values)

public AnalyzeSyntaxResponse.Builder addAllTokens(Iterable<? extends Token> values)

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.language.v1.Token>
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeSyntaxResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

addSentences(Sentence value)

public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)

Sentences in the input document.

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

Parameter
NameDescription
valueSentence
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addSentences(Sentence.Builder builderForValue)

public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)

Sentences in the input document.

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

Parameter
NameDescription
builderForValueSentence.Builder
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addSentences(int index, Sentence value)

public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence value)

Sentences in the input document.

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

Parameters
NameDescription
indexint
valueSentence
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addSentences(int index, Sentence.Builder builderForValue)

public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence.Builder builderForValue)

Sentences in the input document.

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

Parameters
NameDescription
indexint
builderForValueSentence.Builder
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addSentencesBuilder()

public Sentence.Builder addSentencesBuilder()

Sentences in the input document.

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

Returns
TypeDescription
Sentence.Builder

addSentencesBuilder(int index)

public Sentence.Builder addSentencesBuilder(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Sentence.Builder

addTokens(Token value)

public AnalyzeSyntaxResponse.Builder addTokens(Token value)

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

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

Parameter
NameDescription
valueToken
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder<