public static final class AnalyzeSyntaxResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder> implements AnalyzeSyntaxResponseOrBuilder
The syntax analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeSyntaxResponse| Modifier and Type | Method and Description |
|---|---|
AnalyzeSyntaxResponse.Builder |
addAllSentences(java.lang.Iterable<? extends Sentence> values)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
addAllTokens(java.lang.Iterable<? extends Token> values)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnalyzeSyntaxResponse.Builder |
addSentences(int index,
Sentence.Builder builderForValue)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
addSentences(int index,
Sentence value)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
addSentences(Sentence.Builder builderForValue)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
addSentences(Sentence value)
Sentences in the input document.
|
Sentence.Builder |
addSentencesBuilder()
Sentences in the input document.
|
Sentence.Builder |
addSentencesBuilder(int index)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
addTokens(int index,
Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
addTokens(int index,
Token value)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
addTokens(Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
addTokens(Token value)
Tokens, along with their syntactic information, in the input document.
|
Token.Builder |
addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
|
Token.Builder |
addTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse |
build() |
AnalyzeSyntaxResponse |
buildPartial() |
AnalyzeSyntaxResponse.Builder |
clear() |
AnalyzeSyntaxResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.
|
AnalyzeSyntaxResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AnalyzeSyntaxResponse.Builder |
clearSentences()
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
clearTokens()
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
clone() |
AnalyzeSyntaxResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.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.
|
com.google.protobuf.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.
|
Sentence |
getSentences(int index)
Sentences in the input document.
|
Sentence.Builder |
getSentencesBuilder(int index)
Sentences in the input document.
|
java.util.List<Sentence.Builder> |
getSentencesBuilderList()
Sentences in the input document.
|
int |
getSentencesCount()
Sentences in the input document.
|
java.util.List<Sentence> |
getSentencesList()
Sentences in the input document.
|
SentenceOrBuilder |
getSentencesOrBuilder(int index)
Sentences in the input document.
|
java.util.List<? extends SentenceOrBuilder> |
getSentencesOrBuilderList()
Sentences in the input document.
|
Token |
getTokens(int index)
Tokens, along with their syntactic information, in the input document.
|
Token.Builder |
getTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
java.util.List<Token.Builder> |
getTokensBuilderList()
Tokens, along with their syntactic information, in the input document.
|
int |
getTokensCount()
Tokens, along with their syntactic information, in the input document.
|
java.util.List<Token> |
getTokensList()
Tokens, along with their syntactic information, in the input document.
|
TokenOrBuilder |
getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
|
java.util.List<? extends TokenOrBuilder> |
getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnalyzeSyntaxResponse.Builder |
mergeFrom(AnalyzeSyntaxResponse other) |
AnalyzeSyntaxResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AnalyzeSyntaxResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
AnalyzeSyntaxResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AnalyzeSyntaxResponse.Builder |
removeSentences(int index)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
removeTokens(int index)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
AnalyzeSyntaxResponse.Builder |
setLanguage(java.lang.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.
|
AnalyzeSyntaxResponse.Builder |
setLanguageBytes(com.google.protobuf.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.
|
AnalyzeSyntaxResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AnalyzeSyntaxResponse.Builder |
setSentences(int index,
Sentence.Builder builderForValue)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
setSentences(int index,
Sentence value)
Sentences in the input document.
|
AnalyzeSyntaxResponse.Builder |
setTokens(int index,
Token.Builder builderForValue)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
setTokens(int index,
Token value)
Tokens, along with their syntactic information, in the input document.
|
AnalyzeSyntaxResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnalyzeSyntaxResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnalyzeSyntaxResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnalyzeSyntaxResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public AnalyzeSyntaxResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>java.io.IOExceptionpublic java.util.List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;getSentencesList in interface AnalyzeSyntaxResponseOrBuilderpublic int getSentencesCount()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;getSentencesCount in interface AnalyzeSyntaxResponseOrBuilderpublic Sentence getSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;getSentences in interface AnalyzeSyntaxResponseOrBuilderpublic AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder addAllSentences(java.lang.Iterable<? extends Sentence> values)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder clearSentences()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public AnalyzeSyntaxResponse.Builder removeSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public Sentence.Builder getSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;getSentencesOrBuilder in interface AnalyzeSyntaxResponseOrBuilderpublic java.util.List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;getSentencesOrBuilderList in interface AnalyzeSyntaxResponseOrBuilderpublic Sentence.Builder addSentencesBuilder()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public Sentence.Builder addSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public java.util.List<Sentence.Builder> getSentencesBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;public java.util.List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;getTokensList in interface AnalyzeSyntaxResponseOrBuilderpublic int getTokensCount()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;getTokensCount in interface AnalyzeSyntaxResponseOrBuilderpublic Token getTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;getTokens in interface AnalyzeSyntaxResponseOrBuilderpublic 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;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;public AnalyzeSyntaxResponse.Builder addTokens(Token value)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;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;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;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;public AnalyzeSyntaxResponse.Builder addAllTokens(java.lang.Iterable<? extends Token> values)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public AnalyzeSyntaxResponse.Builder clearTokens()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public AnalyzeSyntaxResponse.Builder removeTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public Token.Builder getTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public TokenOrBuilder getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;getTokensOrBuilder in interface AnalyzeSyntaxResponseOrBuilderpublic java.util.List<? extends TokenOrBuilder> getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;getTokensOrBuilderList in interface AnalyzeSyntaxResponseOrBuilderpublic Token.Builder addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public Token.Builder addTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public java.util.List<Token.Builder> getTokensBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;public java.lang.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][google.cloud.language.v1.Document.language] field for more details.
string language = 3;getLanguage in interface AnalyzeSyntaxResponseOrBuilderpublic com.google.protobuf.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][google.cloud.language.v1.Document.language] field for more details.
string language = 3;getLanguageBytes in interface AnalyzeSyntaxResponseOrBuilderpublic AnalyzeSyntaxResponse.Builder setLanguage(java.lang.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][google.cloud.language.v1.Document.language] field for more details.
string language = 3;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][google.cloud.language.v1.Document.language] field for more details.
string language = 3;public AnalyzeSyntaxResponse.Builder setLanguageBytes(com.google.protobuf.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][google.cloud.language.v1.Document.language] field for more details.
string language = 3;public final AnalyzeSyntaxResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>