publicstaticfinalclass Sentence.BuilderextendsGeneratedMessageV3.Builder<Sentence.Builder>implementsSentenceOrBuilder
Represents a sentence in the input document.
Protobuf type google.cloud.language.v1beta2.Sentence
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicSentence.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
buildPartial()
publicSentencebuildPartial()
clear()
publicSentence.Builderclear()
Overrides
clearField(Descriptors.FieldDescriptor field)
publicSentence.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
publicSentence.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clearSentiment()
publicSentence.BuilderclearSentiment()
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
clearText()
publicSentence.BuilderclearText()
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
clone()
publicSentence.Builderclone()
Overrides
getDefaultInstanceForType()
publicSentencegetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getSentiment()
publicSentimentgetSentiment()
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
| Returns |
| Type |
Description |
Sentiment |
The sentiment.
|
getSentimentBuilder()
publicSentiment.BuildergetSentimentBuilder()
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
getSentimentOrBuilder()
publicSentimentOrBuildergetSentimentOrBuilder()
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
getText()
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
| Returns |
| Type |
Description |
TextSpan |
The text.
|
getTextBuilder()
publicTextSpan.BuildergetTextBuilder()
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
getTextOrBuilder()
publicTextSpanOrBuildergetTextOrBuilder()
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
hasSentiment()
publicbooleanhasSentiment()
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
| Returns |
| Type |
Description |
boolean |
Whether the sentiment field is set.
|
hasText()
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
| Returns |
| Type |
Description |
boolean |
Whether the text field is set.
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(Sentence other)
publicSentence.BuildermergeFrom(Sentenceother)
| Parameter |
| Name |
Description |
other |
Sentence
|
publicSentence.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicSentence.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeSentiment(Sentiment value)
publicSentence.BuildermergeSentiment(Sentimentvalue)
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
mergeText(TextSpan value)
publicSentence.BuildermergeText(TextSpanvalue)
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
| Parameter |
| Name |
Description |
value |
TextSpan
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalSentence.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
publicSentence.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicSentence.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setSentiment(Sentiment value)
publicSentence.BuildersetSentiment(Sentimentvalue)
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
setSentiment(Sentiment.Builder builderForValue)
publicSentence.BuildersetSentiment(Sentiment.BuilderbuilderForValue)
For calls to [AnalyzeSentiment][] or if
AnnotateTextRequest.Features.extract_document_sentiment
is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1beta2.Sentiment sentiment = 2;
setText(TextSpan value)
publicSentence.BuildersetText(TextSpanvalue)
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
| Parameter |
| Name |
Description |
value |
TextSpan
|
setText(TextSpan.Builder builderForValue)
publicSentence.BuildersetText(TextSpan.BuilderbuilderForValue)
The sentence text.
.google.cloud.language.v1beta2.TextSpan text = 1;
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalSentence.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides