Package com.google.cloud.language.v1
Class AnalyzeSyntaxResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder>
com.google.cloud.language.v1.AnalyzeSyntaxResponse.Builder
- All Implemented Interfaces:
AnalyzeSyntaxResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalyzeSyntaxResponse
public static final class AnalyzeSyntaxResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder>
implements AnalyzeSyntaxResponseOrBuilder
The syntax analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeSyntaxResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllSentences(Iterable<? extends Sentence> values) Sentences in the input document.addAllTokens(Iterable<? extends Token> values) Tokens, along with their syntactic information, in the input document.addSentences(int index, Sentence value) Sentences in the input document.addSentences(int index, Sentence.Builder builderForValue) Sentences in the input document.addSentences(Sentence value) Sentences in the input document.addSentences(Sentence.Builder builderForValue) Sentences in the input document.Sentences in the input document.addSentencesBuilder(int index) Sentences in the input document.Tokens, along with their syntactic information, in the input document.addTokens(int index, Token.Builder builderForValue) Tokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.addTokens(Token.Builder builderForValue) Tokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.addTokensBuilder(int index) Tokens, along with their syntactic information, in the input document.build()clear()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.Sentences in the input document.Tokens, along with their syntactic information, in the input document.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe 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.ByteStringThe language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.getSentences(int index) Sentences in the input document.getSentencesBuilder(int index) Sentences in the input document.Sentences in the input document.intSentences in the input document.Sentences in the input document.getSentencesOrBuilder(int index) Sentences in the input document.List<? extends SentenceOrBuilder>Sentences in the input document.getTokens(int index) Tokens, along with their syntactic information, in the input document.getTokensBuilder(int index) Tokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.intTokens, along with their syntactic information, in the input document.Tokens, along with their syntactic information, in the input document.getTokensOrBuilder(int index) Tokens, along with their syntactic information, in the input document.List<? extends TokenOrBuilder>Tokens, along with their syntactic information, in the input document.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AnalyzeSyntaxResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSentences(int index) Sentences in the input document.removeTokens(int index) Tokens, along with their syntactic information, in the input document.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.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.setSentences(int index, Sentence value) Sentences in the input document.setSentences(int index, Sentence.Builder builderForValue) Sentences in the input document.Tokens, along with their syntactic information, in the input document.setTokens(int index, Token.Builder builderForValue) Tokens, along with their syntactic information, in the input document.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzeSyntaxResponse.Builder>
-
mergeFrom
public AnalyzeSyntaxResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>- Throws:
IOException
-
getSentencesList
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;- Specified by:
getSentencesListin interfaceAnalyzeSyntaxResponseOrBuilder
-
getSentencesCount
public int getSentencesCount()Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;- Specified by:
getSentencesCountin interfaceAnalyzeSyntaxResponseOrBuilder
-
getSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;- Specified by:
getSentencesin interfaceAnalyzeSyntaxResponseOrBuilder
-
setSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
setSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
addSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
addSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
addSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
addSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
addAllSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
clearSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
removeSentences
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentencesBuilder
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentencesOrBuilder
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;- Specified by:
getSentencesOrBuilderin interfaceAnalyzeSyntaxResponseOrBuilder
-
getSentencesOrBuilderList
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1;- Specified by:
getSentencesOrBuilderListin interfaceAnalyzeSyntaxResponseOrBuilder
-
addSentencesBuilder
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
addSentencesBuilder
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getSentencesBuilderList
Sentences in the input document.
repeated .google.cloud.language.v1.Sentence sentences = 1; -
getTokensList
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;- Specified by:
getTokensListin interfaceAnalyzeSyntaxResponseOrBuilder
-
getTokensCount
public int getTokensCount()Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;- Specified by:
getTokensCountin interfaceAnalyzeSyntaxResponseOrBuilder
-
getTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;- Specified by:
getTokensin interfaceAnalyzeSyntaxResponseOrBuilder
-
setTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
setTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
addTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
addTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
addTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
addTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
addAllTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
clearTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
removeTokens
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokensBuilder
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokensOrBuilder
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;- Specified by:
getTokensOrBuilderin interfaceAnalyzeSyntaxResponseOrBuilder
-
getTokensOrBuilderList
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2;- Specified by:
getTokensOrBuilderListin interfaceAnalyzeSyntaxResponseOrBuilder
-
addTokensBuilder
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
addTokensBuilder
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
getTokensBuilderList
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1.Token tokens = 2; -
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;- Specified by:
getLanguagein interfaceAnalyzeSyntaxResponseOrBuilder- Returns:
- The language.
-
getLanguageBytes
public 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;- Specified by:
getLanguageBytesin interfaceAnalyzeSyntaxResponseOrBuilder- Returns:
- The bytes for language.
-
setLanguage
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;- Parameters:
value- The language to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setLanguageBytes
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;- Parameters:
value- The bytes for language to set.- Returns:
- This builder for chaining.
-