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
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(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(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(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 Descriptors.Descriptor |
getDescriptor() |
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnalyzeSyntaxResponse.Builder |
mergeFrom(AnalyzeSyntaxResponse other) |
AnalyzeSyntaxResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
AnalyzeSyntaxResponse.Builder |
mergeFrom(Message other) |
AnalyzeSyntaxResponse.Builder |
mergeUnknownFields(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(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(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(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnalyzeSyntaxResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnalyzeSyntaxResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnalyzeSyntaxResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder mergeFrom(AnalyzeSyntaxResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public AnalyzeSyntaxResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnalyzeSyntaxResponse.Builder>
java.io.IOException
public java.util.List<Sentence> getSentencesList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesList
in interface AnalyzeSyntaxResponseOrBuilder
public int getSentencesCount()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesCount
in interface AnalyzeSyntaxResponseOrBuilder
public Sentence getSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentences
in interface AnalyzeSyntaxResponseOrBuilder
public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder setSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder addSentences(Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence value)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder addSentences(Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder addSentences(int index, Sentence.Builder builderForValue)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder addAllSentences(java.lang.Iterable<? extends Sentence> values)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder clearSentences()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public AnalyzeSyntaxResponse.Builder removeSentences(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public Sentence.Builder getSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public SentenceOrBuilder getSentencesOrBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesOrBuilder
in interface AnalyzeSyntaxResponseOrBuilder
public java.util.List<? extends SentenceOrBuilder> getSentencesOrBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
getSentencesOrBuilderList
in interface AnalyzeSyntaxResponseOrBuilder
public Sentence.Builder addSentencesBuilder()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public Sentence.Builder addSentencesBuilder(int index)
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public java.util.List<Sentence.Builder> getSentencesBuilderList()
Sentences in the input document.
repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
public java.util.List<Token> getTokensList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensList
in interface AnalyzeSyntaxResponseOrBuilder
public int getTokensCount()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensCount
in interface AnalyzeSyntaxResponseOrBuilder
public Token getTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokens
in interface AnalyzeSyntaxResponseOrBuilder
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;
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;
public AnalyzeSyntaxResponse.Builder addTokens(Token value)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.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.v1beta2.Token tokens = 2;
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;
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;
public AnalyzeSyntaxResponse.Builder addAllTokens(java.lang.Iterable<? extends Token> values)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
public AnalyzeSyntaxResponse.Builder clearTokens()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
public AnalyzeSyntaxResponse.Builder removeTokens(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
public Token.Builder getTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
public TokenOrBuilder getTokensOrBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensOrBuilder
in interface AnalyzeSyntaxResponseOrBuilder
public java.util.List<? extends TokenOrBuilder> getTokensOrBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
getTokensOrBuilderList
in interface AnalyzeSyntaxResponseOrBuilder
public Token.Builder addTokensBuilder()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
public Token.Builder addTokensBuilder(int index)
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.Token tokens = 2;
public java.util.List<Token.Builder> getTokensBuilderList()
Tokens, along with their syntactic information, in the input document.
repeated .google.cloud.language.v1beta2.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.v1beta2.Document.language] field for more details.
string language = 3;
getLanguage
in interface AnalyzeSyntaxResponseOrBuilder
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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 3;
getLanguageBytes
in interface AnalyzeSyntaxResponseOrBuilder
public 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.v1beta2.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.v1beta2.Document.language] field for more details.
string language = 3;
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][google.cloud.language.v1beta2.Document.language] field for more details.
string language = 3;
public final AnalyzeSyntaxResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>
public final AnalyzeSyntaxResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnalyzeSyntaxResponse.Builder>