Class HumanAgentAssistantConfig.MessageAnalysisConfig (4.7.2)

public static final class HumanAgentAssistantConfig.MessageAnalysisConfig extends GeneratedMessageV3 implements HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder

Configuration for analyses to run on each conversation message.

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

Inheritance

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

Static Fields

ENABLE_ENTITY_EXTRACTION_FIELD_NUMBER

public static final int ENABLE_ENTITY_EXTRACTION_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER

public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstance()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig

getDescriptor()

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

newBuilder()

public static HumanAgentAssistantConfig.MessageAnalysisConfig.Builder newBuilder()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

newBuilder(HumanAgentAssistantConfig.MessageAnalysisConfig prototype)

public static HumanAgentAssistantConfig.MessageAnalysisConfig.Builder newBuilder(HumanAgentAssistantConfig.MessageAnalysisConfig prototype)
Parameter
NameDescription
prototypeHumanAgentAssistantConfig.MessageAnalysisConfig
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

parseDelimitedFrom(InputStream input)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HumanAgentAssistantConfig.MessageAnalysisConfig> parser()
Returns
TypeDescription
Parser<MessageAnalysisConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<HumanAgentAssistantConfig.MessageAnalysisConfig> getParserForType()
Returns
TypeDescription
Parser<MessageAnalysisConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder newBuilderForType()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HumanAgentAssistantConfig.MessageAnalysisConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HumanAgentAssistantConfig.MessageAnalysisConfig.Builder toBuilder()
Returns
TypeDescription
HumanAgentAssistantConfig.MessageAnalysisConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException