Class SentimentAnalysisRequestConfig.Builder (4.4.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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SentimentAnalysisRequestConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides

build()

public SentimentAnalysisRequestConfig build()
Returns
TypeDescription
SentimentAnalysisRequestConfig

buildPartial()

public SentimentAnalysisRequestConfig buildPartial()
Returns
TypeDescription
SentimentAnalysisRequestConfig

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SentimentAnalysisRequestConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SentimentAnalysisRequestConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides

clone()

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

The analyzeQueryTextSentiment.

getDefaultInstanceForType()

public SentimentAnalysisRequestConfig getDefaultInstanceForType()
Returns
TypeDescription
SentimentAnalysisRequestConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SentimentAnalysisRequestConfig other)

public SentimentAnalysisRequestConfig.Builder mergeFrom(SentimentAnalysisRequestConfig other)
Parameter
NameDescription
otherSentimentAnalysisRequestConfig
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SentimentAnalysisRequestConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SentimentAnalysisRequestConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SentimentAnalysisRequestConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The analyzeQueryTextSentiment to set.

Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SentimentAnalysisRequestConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides

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

public SentimentAnalysisRequestConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SentimentAnalysisRequestConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SentimentAnalysisRequestConfig.Builder
Overrides