Class AnalyzeSyntaxResponse.Builder (2.17.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

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.v1.Token tokens = 2;

Parameter
NameDescription
builderForValueToken.Builder
Returns
TypeDescription
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.v1.Token tokens = 2;

Parameters
NameDescription
indexint
valueToken
Returns
TypeDescription
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.v1.Token tokens = 2;

Parameters
NameDescription
indexint
builderForValueToken.Builder
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

addTokensBuilder()

public Token.Builder addTokensBuilder()

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

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

Returns
TypeDescription
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.v1.Token tokens = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Token.Builder

build()

public AnalyzeSyntaxResponse build()
Returns
TypeDescription
AnalyzeSyntaxResponse

buildPartial()

public AnalyzeSyntaxResponse buildPartial()
Returns
TypeDescription
AnalyzeSyntaxResponse

clear()

public AnalyzeSyntaxResponse.Builder clear()
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnalyzeSyntaxResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AnalyzeSyntaxResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeSyntaxResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

clearSentences()

public AnalyzeSyntaxResponse.Builder clearSentences()

Sentences in the input document.

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

Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

clearTokens()

public AnalyzeSyntaxResponse.Builder clearTokens()

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

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

Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

clone()

public AnalyzeSyntaxResponse.Builder clone()
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeSyntaxResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeSyntaxResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

getSentences(int index)

public Sentence getSentences(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Sentence

getSentencesBuilder(int index)

public Sentence.Builder getSentencesBuilder(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Sentence.Builder

getSentencesBuilderList()

public List<Sentence.Builder> getSentencesBuilderList()

Sentences in the input document.

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

Returns
TypeDescription
List<Builder>

getSentencesCount()

public int getSentencesCount()

Sentences in the input document.

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

Returns
TypeDescription
int

getSentencesList()

public List<Sentence> getSentencesList()

Sentences in the input document.

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

Returns
TypeDescription
List<Sentence>

getSentencesOrBuilder(int index)

public SentenceOrBuilder getSentencesOrBuilder(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SentenceOrBuilder

getSentencesOrBuilderList()

public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()

Sentences in the input document.

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

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

getTokens(int index)

public Token getTokens(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Token

getTokensBuilder(int index)

public Token.Builder getTokensBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Token.Builder

getTokensBuilderList()

public List<Token.Builder> getTokensBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getTokensCount()

public int getTokensCount()

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

repeated .google.cloud.language.v1.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.v1.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.v1.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.v1.Token tokens = 2;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyzeSyntaxResponse other)

public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
Parameter
NameDescription
otherAnalyzeSyntaxResponse
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeSyntaxResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalyzeSyntaxResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides

removeSentences(int index)

public AnalyzeSyntaxResponse.Builder removeSentences(int index)

Sentences in the input document.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Token tokens = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeSyntaxResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The language to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for language to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.Sentence sentences = 1;

Parameters
NameDescription
indexint
valueSentence
Returns
TypeDescription
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.v1.Sentence sentences = 1;

Parameters
NameDescription
indexint
builderForValueSentence.Builder
Returns
TypeDescription
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.v1.Token tokens = 2;

Parameters
NameDescription
indexint
valueToken
Returns
TypeDescription
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.v1.Token tokens = 2;

Parameters
NameDescription
indexint
builderForValueToken.Builder
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeSyntaxResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeSyntaxResponse.Builder
Overrides