public interface SentenceOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Sentiment |
getSentiment()
For calls to [AnalyzeSentiment][] or if
[AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
SentimentOrBuilder |
getSentimentOrBuilder()
For calls to [AnalyzeSentiment][] or if
[AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
TextSpan |
getText()
The sentence text.
|
TextSpanOrBuilder |
getTextOrBuilder()
The sentence text.
|
boolean |
hasSentiment()
For calls to [AnalyzeSentiment][] or if
[AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to
true, this field will contain the sentiment for the sentence.
|
boolean |
hasText()
The sentence text.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
boolean hasText()
The sentence text.
.google.cloud.language.v1.TextSpan text = 1;
TextSpan getText()
The sentence text.
.google.cloud.language.v1.TextSpan text = 1;
TextSpanOrBuilder getTextOrBuilder()
The sentence text.
.google.cloud.language.v1.TextSpan text = 1;
boolean hasSentiment()
For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1.Sentiment sentiment = 2;
Sentiment getSentiment()
For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1.Sentiment sentiment = 2;
SentimentOrBuilder getSentimentOrBuilder()
For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
.google.cloud.language.v1.Sentiment sentiment = 2;
Copyright © 2022 Google LLC. All rights reserved.