public static final class SentimentAnalysisResult.Builder extends GeneratedMessage.Builder<SentimentAnalysisResult.Builder> implements SentimentAnalysisResultOrBuilderThe result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For [DetectIntent][], it needs to be configured in DetectIntentRequest.query_params. For [StreamingDetectIntent][], it needs to be configured in StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it needs to be configured in ConversationProfile.human_agent_assistant_config
Protobuf type google.cloud.dialogflow.v2.SentimentAnalysisResult
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SentimentAnalysisResult.BuilderImplements
SentimentAnalysisResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SentimentAnalysisResult build()| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult |
|
buildPartial()
public SentimentAnalysisResult buildPartial()| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult |
|
clear()
public SentimentAnalysisResult.Builder clear()| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
clearQueryTextSentiment()
public SentimentAnalysisResult.Builder clearQueryTextSentiment() The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
clearStatus()
public SentimentAnalysisResult.Builder clearStatus()Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
getDefaultInstanceForType()
public SentimentAnalysisResult getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getQueryTextSentiment()
public Sentiment getQueryTextSentiment() The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Returns | |
|---|---|
| Type | Description |
Sentiment |
The queryTextSentiment. |
getQueryTextSentimentBuilder()
public Sentiment.Builder getQueryTextSentimentBuilder() The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Returns | |
|---|---|
| Type | Description |
Sentiment.Builder |
|
getQueryTextSentimentOrBuilder()
public SentimentOrBuilder getQueryTextSentimentOrBuilder() The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Returns | |
|---|---|
| Type | Description |
SentimentOrBuilder |
|
getStatus()
public Status getStatus()Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status |
The status. |
getStatusBuilder()
public Status.Builder getStatusBuilder()Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status.Builder |
|
getStatusOrBuilder()
public StatusOrBuilder getStatusOrBuilder()Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
hasQueryTextSentiment()
public boolean hasQueryTextSentiment() The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the queryTextSentiment field is set. |
hasStatus()
public boolean hasStatus()Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the status field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SentimentAnalysisResult other)
public SentimentAnalysisResult.Builder mergeFrom(SentimentAnalysisResult other)| Parameter | |
|---|---|
| Name | Description |
other |
SentimentAnalysisResult |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SentimentAnalysisResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SentimentAnalysisResult.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
mergeQueryTextSentiment(Sentiment value)
public SentimentAnalysisResult.Builder mergeQueryTextSentiment(Sentiment value) The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Sentiment |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
mergeStatus(Status value)
public SentimentAnalysisResult.Builder mergeStatus(Status value)Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
setQueryTextSentiment(Sentiment value)
public SentimentAnalysisResult.Builder setQueryTextSentiment(Sentiment value) The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Sentiment |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
setQueryTextSentiment(Sentiment.Builder builderForValue)
public SentimentAnalysisResult.Builder setQueryTextSentiment(Sentiment.Builder builderForValue) The sentiment analysis result for query_text.
.google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Sentiment.Builder |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
setStatus(Status value)
public SentimentAnalysisResult.Builder setStatus(Status value)Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.rpc.Status |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|
setStatus(Status.Builder builderForValue)
public SentimentAnalysisResult.Builder setStatus(Status.Builder builderForValue)Output only. The status of the sentiment analysis operation. If the operation failed, this field will contain the error details. For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
.google.rpc.Status status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.rpc.Status.Builder |
| Returns | |
|---|---|
| Type | Description |
SentimentAnalysisResult.Builder |
|