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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeSyntaxResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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
|
addSentences(Sentence.Builder builderForValue)
public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
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;
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;
addSentencesBuilder()
public Sentence.Builder addSentencesBuilder()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
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
|
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
|
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;
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
|
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;
addTokensBuilder()
public Token.Builder addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
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
|
build()
public AnalyzeSyntaxResponse build()
buildPartial()
public AnalyzeSyntaxResponse buildPartial()
clear()
public AnalyzeSyntaxResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AnalyzeSyntaxResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public AnalyzeSyntaxResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSentences()
public AnalyzeSyntaxResponse.Builder clearSentences()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
clearTokens()
public AnalyzeSyntaxResponse.Builder clearTokens()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
clone()
public AnalyzeSyntaxResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public AnalyzeSyntaxResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
getSentencesBuilderList()
public List<Sentence.Builder> getSentencesBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
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;
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
|
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
|
getTokensBuilderList()
public List<Token.Builder> getTokensBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AnalyzeSyntaxResponse other)
public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
public AnalyzeSyntaxResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnalyzeSyntaxResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeSyntaxResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnalyzeSyntaxResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
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
|
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeSyntaxResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides