public static final class SentimentAnalysisRequestConfig.Builder extends GeneratedMessageV3.Builder<SentimentAnalysisRequestConfig.Builder> implements SentimentAnalysisRequestConfigOrBuilder
Configures the types of sentiment analysis to perform.
Protobuf type google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SentimentAnalysisRequestConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SentimentAnalysisRequestConfig build()
buildPartial()
public SentimentAnalysisRequestConfig buildPartial()
clear()
public SentimentAnalysisRequestConfig.Builder clear()
Overrides
clearAnalyzeQueryTextSentiment()
public SentimentAnalysisRequestConfig.Builder clearAnalyzeQueryTextSentiment()
Instructs the service to perform sentiment analysis on
query_text
. If not provided, sentiment analysis is not performed on
query_text
.
bool analyze_query_text_sentiment = 1;
clearField(Descriptors.FieldDescriptor field)
public SentimentAnalysisRequestConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SentimentAnalysisRequestConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SentimentAnalysisRequestConfig.Builder clone()
Overrides
getAnalyzeQueryTextSentiment()
public boolean getAnalyzeQueryTextSentiment()
Instructs the service to perform sentiment analysis on
query_text
. If not provided, sentiment analysis is not performed on
query_text
.
bool analyze_query_text_sentiment = 1;
Returns |
Type |
Description |
boolean |
The analyzeQueryTextSentiment.
|
getDefaultInstanceForType()
public SentimentAnalysisRequestConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SentimentAnalysisRequestConfig other)
public SentimentAnalysisRequestConfig.Builder mergeFrom(SentimentAnalysisRequestConfig other)
public SentimentAnalysisRequestConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SentimentAnalysisRequestConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SentimentAnalysisRequestConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAnalyzeQueryTextSentiment(boolean value)
public SentimentAnalysisRequestConfig.Builder setAnalyzeQueryTextSentiment(boolean value)
Instructs the service to perform sentiment analysis on
query_text
. If not provided, sentiment analysis is not performed on
query_text
.
bool analyze_query_text_sentiment = 1;
Parameter |
Name |
Description |
value |
boolean
The analyzeQueryTextSentiment to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SentimentAnalysisRequestConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SentimentAnalysisRequestConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SentimentAnalysisRequestConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides