Class HumanAgentAssistantConfig.MessageAnalysisConfig.Builder (4.6.0)

public static final class HumanAgentAssistantConfig.MessageAnalysisConfig.Builder extends GeneratedMessageV3.Builder<HumanAgentAssistantConfig.MessageAnalysisConfig.Builder> implements HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder

Configuration for analyses to run on each conversation message.

Protobuf type google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HumanAgentAssistantConfig.MessageAnalysisConfig build()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig

buildPartial()

public HumanAgentAssistantConfig.MessageAnalysisConfig buildPartial()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig

clear()

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clear()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder
Overrides

clearEnableEntityExtraction()

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clearEnableEntityExtraction()

Enable entity extraction in conversation messages on agent assist stage. If unspecified, defaults to false. Currently, this feature is not general available, please contact Google to get access.

bool enable_entity_extraction = 2;

Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

This builder for chaining.

clearEnableSentimentAnalysis()

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clearEnableSentimentAnalysis()

Enable sentiment analysis in conversation messages on agent assist stage. If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult.

bool enable_sentiment_analysis = 3;

Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder clone()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder
Overrides

getDefaultInstanceForType()

public HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstanceForType()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableEntityExtraction()

public boolean getEnableEntityExtraction()

Enable entity extraction in conversation messages on agent assist stage. If unspecified, defaults to false. Currently, this feature is not general available, please contact Google to get access.

bool enable_entity_extraction = 2;

Returns
TypeDescription
boolean

The enableEntityExtraction.

getEnableSentimentAnalysis()

public boolean getEnableSentimentAnalysis()

Enable sentiment analysis in conversation messages on agent assist stage. If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult.

bool enable_sentiment_analysis = 3;

Returns
TypeDescription
boolean

The enableSentimentAnalysis.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HumanAgentAssistantConfig.MessageAnalysisConfig other)

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder mergeFrom(HumanAgentAssistantConfig.MessageAnalysisConfig other)
Parameter
NameDescription
otherHumanAgentAssistantConfig.MessageAnalysisConfig
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HumanAgentAssistantConfig.MessageAnalysisConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder
Overrides

setEnableEntityExtraction(boolean value)

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder setEnableEntityExtraction(boolean value)

Enable entity extraction in conversation messages on agent assist stage. If unspecified, defaults to false. Currently, this feature is not general available, please contact Google to get access.

bool enable_entity_extraction = 2;

Parameter
NameDescription
valueboolean

The enableEntityExtraction to set.

Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

This builder for chaining.

setEnableSentimentAnalysis(boolean value)

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder setEnableSentimentAnalysis(boolean value)

Enable sentiment analysis in conversation messages on agent assist stage. If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult.

bool enable_sentiment_analysis = 3;

Parameter
NameDescription
valueboolean

The enableSentimentAnalysis to set.

Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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