Class SentimentAnalysisRequestConfig.Builder (4.40.0)

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.v2beta1.SentimentAnalysisRequestConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SentimentAnalysisRequestConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides

build()

public SentimentAnalysisRequestConfig build()
Returns
Type Description
SentimentAnalysisRequestConfig

buildPartial()

public SentimentAnalysisRequestConfig buildPartial()
Returns
Type Description
SentimentAnalysisRequestConfig

clear()

public SentimentAnalysisRequestConfig.Builder clear()
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
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
Type Description
SentimentAnalysisRequestConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SentimentAnalysisRequestConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SentimentAnalysisRequestConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides

clone()

public SentimentAnalysisRequestConfig.Builder clone()
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
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
Type Description
SentimentAnalysisRequestConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SentimentAnalysisRequestConfig other)

public SentimentAnalysisRequestConfig.Builder mergeFrom(SentimentAnalysisRequestConfig other)
Parameter
Name Description
other SentimentAnalysisRequestConfig
Returns
Type Description
SentimentAnalysisRequestConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SentimentAnalysisRequestConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SentimentAnalysisRequestConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SentimentAnalysisRequestConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
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
Type Description
SentimentAnalysisRequestConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SentimentAnalysisRequestConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SentimentAnalysisRequestConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SentimentAnalysisRequestConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SentimentAnalysisRequestConfig.Builder
Overrides