Class AnalyzeSyntaxResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
- com.google.cloud.language.v1beta2.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.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder> implements AnalyzeSyntaxResponseOrBuilder
The syntax analysis response message.
Protobuf typegoogle.cloud.language.v1beta2.AnalyzeSyntaxResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeSyntaxResponse.BuilderaddAllSentences(Iterable<? extends Sentence> values)Sentences in the input document.AnalyzeSyntaxResponse.BuilderaddAllTokens(Iterable<? extends Token> values)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AnalyzeSyntaxResponse.BuilderaddSentences(int index, Sentence value)Sentences in the input document.AnalyzeSyntaxResponse.BuilderaddSentences(int index, Sentence.Builder builderForValue)Sentences in the input document.AnalyzeSyntaxResponse.BuilderaddSentences(Sentence value)Sentences in the input document.AnalyzeSyntaxResponse.BuilderaddSentences(Sentence.Builder builderForValue)Sentences in the input document.Sentence.BuilderaddSentencesBuilder()Sentences in the input document.Sentence.BuilderaddSentencesBuilder(int index)Sentences in the input document.AnalyzeSyntaxResponse.BuilderaddTokens(int index, Token value)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuilderaddTokens(int index, Token.Builder builderForValue)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuilderaddTokens(Token value)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuilderaddTokens(Token.Builder builderForValue)Tokens, along with their syntactic information, in the input document.Token.BuilderaddTokensBuilder()Tokens, along with their syntactic information, in the input document.Token.BuilderaddTokensBuilder(int index)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponsebuild()AnalyzeSyntaxResponsebuildPartial()AnalyzeSyntaxResponse.Builderclear()AnalyzeSyntaxResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AnalyzeSyntaxResponse.BuilderclearLanguage()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.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AnalyzeSyntaxResponse.BuilderclearSentences()Sentences in the input document.AnalyzeSyntaxResponse.BuilderclearTokens()Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.Builderclone()AnalyzeSyntaxResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLanguage()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.ByteStringgetLanguageBytes()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.SentencegetSentences(int index)Sentences in the input document.Sentence.BuildergetSentencesBuilder(int index)Sentences in the input document.List<Sentence.Builder>getSentencesBuilderList()Sentences in the input document.intgetSentencesCount()Sentences in the input document.List<Sentence>getSentencesList()Sentences in the input document.SentenceOrBuildergetSentencesOrBuilder(int index)Sentences in the input document.List<? extends SentenceOrBuilder>getSentencesOrBuilderList()Sentences in the input document.TokengetTokens(int index)Tokens, along with their syntactic information, in the input document.Token.BuildergetTokensBuilder(int index)Tokens, along with their syntactic information, in the input document.List<Token.Builder>getTokensBuilderList()Tokens, along with their syntactic information, in the input document.intgetTokensCount()Tokens, along with their syntactic information, in the input document.List<Token>getTokensList()Tokens, along with their syntactic information, in the input document.TokenOrBuildergetTokensOrBuilder(int index)Tokens, along with their syntactic information, in the input document.List<? extends TokenOrBuilder>getTokensOrBuilderList()Tokens, along with their syntactic information, in the input document.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AnalyzeSyntaxResponse.BuildermergeFrom(AnalyzeSyntaxResponse other)AnalyzeSyntaxResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AnalyzeSyntaxResponse.BuildermergeFrom(com.google.protobuf.Message other)AnalyzeSyntaxResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AnalyzeSyntaxResponse.BuilderremoveSentences(int index)Sentences in the input document.AnalyzeSyntaxResponse.BuilderremoveTokens(int index)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AnalyzeSyntaxResponse.BuildersetLanguage(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.BuildersetLanguageBytes(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AnalyzeSyntaxResponse.BuildersetSentences(int index, Sentence value)Sentences in the input document.AnalyzeSyntaxResponse.BuildersetSentences(int index, Sentence.Builder builderForValue)Sentences in the input document.AnalyzeSyntaxResponse.BuildersetTokens(int index, Token value)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuildersetTokens(int index, Token.Builder builderForValue)Tokens, along with their syntactic information, in the input document.AnalyzeSyntaxResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
clear
public AnalyzeSyntaxResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
getDefaultInstanceForType
public AnalyzeSyntaxResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnalyzeSyntaxResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnalyzeSyntaxResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnalyzeSyntaxResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
setField
public AnalyzeSyntaxResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
clearField
public AnalyzeSyntaxResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
clearOneof
public AnalyzeSyntaxResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
setRepeatedField
public AnalyzeSyntaxResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
addRepeatedField
public AnalyzeSyntaxResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
mergeFrom
public AnalyzeSyntaxResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>
-
mergeFrom
public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;- Specified by:
getSentencesListin interfaceAnalyzeSyntaxResponseOrBuilder
-
getSentencesCount
public int getSentencesCount()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;- Specified by:
getSentencesCountin interfaceAnalyzeSyntaxResponseOrBuilder
-
getSentences
public Sentence getSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;- Specified by:
getSentencesin interfaceAnalyzeSyntaxResponseOrBuilder
-
setSentences
public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
setSentences
public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
addSentences
public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
addSentences
public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
addSentences
public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
addSentences
public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
addAllSentences
public AnalyzeSyntaxResponse.Builder addAllSentences(Iterable<? extends Sentence> values)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
clearSentences
public AnalyzeSyntaxResponse.Builder clearSentences()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
removeSentences
public AnalyzeSyntaxResponse.Builder removeSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
getSentencesBuilder
public Sentence.Builder getSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
getSentencesOrBuilder
public SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;- Specified by:
getSentencesOrBuilderin interfaceAnalyzeSyntaxResponseOrBuilder
-
getSentencesOrBuilderList
public List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;- Specified by:
getSentencesOrBuilderListin interfaceAnalyzeSyntaxResponseOrBuilder
-
addSentencesBuilder
public Sentence.Builder addSentencesBuilder()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
addSentencesBuilder
public Sentence.Builder addSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
getSentencesBuilderList
public List<Sentence.Builder> getSentencesBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
-
getTokensList
public List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.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.v1beta2.Token tokens = 2;- Specified by:
getTokensCountin interfaceAnalyzeSyntaxResponseOrBuilder
-
getTokens
public Token getTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;- Specified by:
getTokensin interfaceAnalyzeSyntaxResponseOrBuilder
-
setTokens
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;
-
setTokens
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;
-
addTokens
public AnalyzeSyntaxResponse.Builder addTokens(Token value)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
addTokens
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;
-
addTokens
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
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;
-
addAllTokens
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;
-
clearTokens
public AnalyzeSyntaxResponse.Builder clearTokens()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
removeTokens
public AnalyzeSyntaxResponse.Builder removeTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
getTokensBuilder
public Token.Builder getTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
getTokensOrBuilder
public TokenOrBuilder getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;- Specified by:
getTokensOrBuilderin interfaceAnalyzeSyntaxResponseOrBuilder
-
getTokensOrBuilderList
public List<? extends TokenOrBuilder> getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;- Specified by:
getTokensOrBuilderListin interfaceAnalyzeSyntaxResponseOrBuilder
-
addTokensBuilder
public Token.Builder addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
addTokensBuilder
public Token.Builder addTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
getTokensBuilderList
public List<Token.Builder> getTokensBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
-
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][google.cloud.language.v1beta2.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.v1beta2.Document.language] field for more details.
string language = 3;- Specified by:
getLanguageBytesin interfaceAnalyzeSyntaxResponseOrBuilder- Returns:
- The bytes for language.
-
setLanguage
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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 3;- Parameters:
value- The language to set.- Returns:
- This builder for chaining.
-
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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 3;- Returns:
- This builder for chaining.
-
setLanguageBytes
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.v1beta2.Document.language] field for more details.
string language = 3;- Parameters:
value- The bytes for language to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AnalyzeSyntaxResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
mergeUnknownFields
public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
-
-