Class AnalyzeSyntaxResponse.Builder (2.50.0)

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

The syntax analysis response message.

Protobuf type google.cloud.language.v1beta2.AnalyzeSyntaxResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSentences(Iterable<? extends Sentence> values)

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

Sentences in the input document.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.language.v1beta2.Sentence>
Returns
Type Description
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.v1beta2.Token tokens = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.language.v1beta2.Token>
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeSyntaxResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

addSentences(Sentence value)

public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)

Sentences in the input document.

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

Parameter
Name Description
value Sentence
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addSentences(Sentence.Builder builderForValue)

public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)

Sentences in the input document.

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

Parameter
Name Description
builderForValue Sentence.Builder
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addSentences(int index, Sentence value)

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

Sentences in the input document.

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

Parameters
Name Description
index int
value Sentence
Returns
Type Description
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.v1beta2.Sentence sentences = 1;

Parameters
Name Description
index int
builderForValue Sentence.Builder
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addSentencesBuilder()

public Sentence.Builder addSentencesBuilder()

Sentences in the input document.

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

Returns
Type Description
Sentence.Builder

addSentencesBuilder(int index)

public Sentence.Builder addSentencesBuilder(int index)

Sentences in the input document.

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

Parameter
Name Description
index int
Returns
Type Description
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.v1beta2.Token tokens = 2;

Parameter
Name Description
value Token
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addTokens(Token.Builder builderForValue)

public AnalyzeSyntaxResponse.Builder addTokens(Token.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Token.Builder
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addTokens(int index, Token value)

public AnalyzeSyntaxResponse.Builder addTokens(int index, Token value)

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

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

Parameters
Name Description
index int
value Token
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addTokens(int index, Token.Builder builderForValue)

public AnalyzeSyntaxResponse.Builder addTokens(int index, Token.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue Token.Builder
Returns
Type Description
AnalyzeSyntaxResponse.Builder

addTokensBuilder()

public Token.Builder addTokensBuilder()

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

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

Returns
Type Description
Token.Builder

addTokensBuilder(int index)

public Token.Builder addTokensBuilder(int index)

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.Builder

build()

public AnalyzeSyntaxResponse build()
Returns
Type Description
AnalyzeSyntaxResponse

buildPartial()

public AnalyzeSyntaxResponse buildPartial()
Returns
Type Description
AnalyzeSyntaxResponse

clear()

public AnalyzeSyntaxResponse.Builder clear()
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnalyzeSyntaxResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

clearLanguage()

public AnalyzeSyntaxResponse.Builder clearLanguage()

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
AnalyzeSyntaxResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeSyntaxResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

clearSentences()

public AnalyzeSyntaxResponse.Builder clearSentences()

Sentences in the input document.

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

Returns
Type Description
AnalyzeSyntaxResponse.Builder

clearTokens()

public AnalyzeSyntaxResponse.Builder clearTokens()

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

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

Returns
Type Description
AnalyzeSyntaxResponse.Builder

clone()

public AnalyzeSyntaxResponse.Builder clone()
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeSyntaxResponse getDefaultInstanceForType()
Returns
Type Description
AnalyzeSyntaxResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for language.

getSentences(int index)

public Sentence getSentences(int index)

Sentences in the input document.

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

Parameter
Name Description
index int
Returns
Type Description
Sentence

getSentencesBuilder(int index)

public Sentence.Builder getSentencesBuilder(int index)

Sentences in the input document.

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

Parameter
Name Description
index int
Returns
Type Description
Sentence.Builder

getSentencesBuilderList()

public List<Sentence.Builder> getSentencesBuilderList()

Sentences in the input document.

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

Returns
Type Description
List<Builder>

getSentencesCount()

public int getSentencesCount()

Sentences in the input document.

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

Returns
Type Description
int

getSentencesList()

public List<Sentence> getSentencesList()

Sentences in the input document.

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

Returns
Type Description
List<Sentence>

getSentencesOrBuilder(int index)

public SentenceOrBuilder getSentencesOrBuilder(int index)

Sentences in the input document.

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

Parameter
Name Description
index int
Returns
Type Description
SentenceOrBuilder

getSentencesOrBuilderList()

public List<? extends SentenceOrBuilder> 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>

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
Name Description
index int
Returns
Type Description
Token

getTokensBuilder(int index)

public Token.Builder getTokensBuilder(int index)

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.Builder

getTokensBuilderList()

public List<Token.Builder> getTokensBuilderList()

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

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

Returns
Type Description
List<Builder>

getTokensCount()

public int getTokensCount()

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

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

Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.language.v1beta2.TokenOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnalyzeSyntaxResponse other)

public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
Parameter
Name Description
other AnalyzeSyntaxResponse
Returns
Type Description
AnalyzeSyntaxResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeSyntaxResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalyzeSyntaxResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

removeSentences(int index)

public AnalyzeSyntaxResponse.Builder removeSentences(int index)

Sentences in the input document.

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

Parameter
Name Description
index int
Returns
Type Description
AnalyzeSyntaxResponse.Builder

removeTokens(int index)

public AnalyzeSyntaxResponse.Builder removeTokens(int index)

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
AnalyzeSyntaxResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeSyntaxResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

setLanguage(String value)

public AnalyzeSyntaxResponse.Builder setLanguage(String value)

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;

Parameter
Name Description
value String

The language to set.

Returns
Type Description
AnalyzeSyntaxResponse.Builder

This builder for chaining.

setLanguageBytes(ByteString value)

public AnalyzeSyntaxResponse.Builder setLanguageBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for language to set.

Returns
Type Description
AnalyzeSyntaxResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzeSyntaxResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides

setSentences(int index, Sentence value)

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

Sentences in the input document.

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

Parameters
Name Description
index int
value Sentence
Returns
Type Description
AnalyzeSyntaxResponse.Builder

setSentences(int index, Sentence.Builder builderForValue)

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

Sentences in the input document.

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

Parameters
Name Description
index int
builderForValue Sentence.Builder
Returns
Type Description
AnalyzeSyntaxResponse.Builder

setTokens(int index, Token value)

public AnalyzeSyntaxResponse.Builder setTokens(int index, Token value)

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

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

Parameters
Name Description
index int
value Token
Returns
Type Description
AnalyzeSyntaxResponse.Builder

setTokens(int index, Token.Builder builderForValue)

public AnalyzeSyntaxResponse.Builder setTokens(int index, Token.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue Token.Builder
Returns
Type Description
AnalyzeSyntaxResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeSyntaxResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeSyntaxResponse.Builder
Overrides