- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzeSyntaxResponse.BuilderImplements
AnalyzeSyntaxResponseOrBuilderStatic 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.v1.Sentence sentences = 1;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.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.v1.Token tokens = 2;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Token> |
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse.Builder |
addSentences(Sentence value)
public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 |
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. |
clearSentences()
public AnalyzeSyntaxResponse.Builder clearSentences()
Sentences in the input document.
repeated .google.cloud.language.v1.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.v1.Token tokens = 2;
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse.Builder |
getDefaultInstanceForType()
public AnalyzeSyntaxResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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.v1.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.v1.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.v1.Sentence sentences = 1;
Returns | |
---|---|
Type | Description |
List<Builder> |
getSentencesCount()
public int getSentencesCount()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;
Returns | |
---|---|
Type | Description |
int |
getSentencesList()
public List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1.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.v1.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.v1.Sentence sentences = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Token tokens = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.language.v1.TokenOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AnalyzeSyntaxResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse.Builder |
removeSentences(int index)
public AnalyzeSyntaxResponse.Builder removeSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.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.v1.Token tokens = 2;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
AnalyzeSyntaxResponse.Builder |
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. |
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 | |
---|---|
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.v1.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.v1.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.v1.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 |