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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SentimentAnalysisRequestConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SentimentAnalysisRequestConfig build()
Returns
buildPartial()
public SentimentAnalysisRequestConfig buildPartial()
Returns
clear()
public SentimentAnalysisRequestConfig.Builder clear()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public SentimentAnalysisRequestConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SentimentAnalysisRequestConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SentimentAnalysisRequestConfig.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SentimentAnalysisRequestConfig other)
public SentimentAnalysisRequestConfig.Builder mergeFrom(SentimentAnalysisRequestConfig other)
Parameter
Returns
public SentimentAnalysisRequestConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SentimentAnalysisRequestConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SentimentAnalysisRequestConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SentimentAnalysisRequestConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SentimentAnalysisRequestConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SentimentAnalysisRequestConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides