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.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()
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeSyntaxResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSentences(Sentence value)
public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addSentencesBuilder()
public Sentence.Builder addSentencesBuilder()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Returns
addSentencesBuilder(int index)
public Sentence.Builder addSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Parameter
Returns
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
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
Returns
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
Returns
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
Returns
addTokensBuilder()
public Token.Builder addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
Returns
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
Returns
build()
public AnalyzeSyntaxResponse build()
Returns
buildPartial()
public AnalyzeSyntaxResponse buildPartial()
Returns
clear()
public AnalyzeSyntaxResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AnalyzeSyntaxResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public AnalyzeSyntaxResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSentences()
public AnalyzeSyntaxResponse.Builder clearSentences()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Returns
clearTokens()
public AnalyzeSyntaxResponse.Builder clearTokens()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
Returns
clone()
public AnalyzeSyntaxResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AnalyzeSyntaxResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getSentences(int index)
public Sentence getSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Parameter
Returns
getSentencesBuilder(int index)
public Sentence.Builder getSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Parameter
Returns
getSentencesBuilderList()
public List<Sentence.Builder> getSentencesBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Returns
getSentencesCount()
public int getSentencesCount()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Returns
getSentencesList()
public List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Returns
getSentencesOrBuilder(int index)
public SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Parameter
Returns
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
Returns
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
Returns
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
getTokensCount()
public int getTokensCount()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
Returns
getTokensList()
public List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
Returns
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AnalyzeSyntaxResponse other)
public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
Parameter
Returns
public AnalyzeSyntaxResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AnalyzeSyntaxResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSentences(int index)
public AnalyzeSyntaxResponse.Builder removeSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeSyntaxResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnalyzeSyntaxResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeSyntaxResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides