Class AnswerFeedback (4.5.11)

public final class AnswerFeedback extends GeneratedMessageV3 implements AnswerFeedbackOrBuilder

Represents feedback the customer has about the quality & correctness of a certain answer in a conversation.

Protobuf type google.cloud.dialogflow.v2.AnswerFeedback

Static Fields

AGENT_ASSISTANT_DETAIL_FEEDBACK_FIELD_NUMBER

public static final int AGENT_ASSISTANT_DETAIL_FEEDBACK_FIELD_NUMBER
Field Value
TypeDescription
int

CLICKED_FIELD_NUMBER

public static final int CLICKED_FIELD_NUMBER
Field Value
TypeDescription
int

CLICK_TIME_FIELD_NUMBER

public static final int CLICK_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

CORRECTNESS_LEVEL_FIELD_NUMBER

public static final int CORRECTNESS_LEVEL_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAYED_FIELD_NUMBER

public static final int DISPLAYED_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_TIME_FIELD_NUMBER

public static final int DISPLAY_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnswerFeedback getDefaultInstance()
Returns
TypeDescription
AnswerFeedback

getDescriptor()

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

newBuilder()

public static AnswerFeedback.Builder newBuilder()
Returns
TypeDescription
AnswerFeedback.Builder

newBuilder(AnswerFeedback prototype)

public static AnswerFeedback.Builder newBuilder(AnswerFeedback prototype)
Parameter
NameDescription
prototypeAnswerFeedback
Returns
TypeDescription
AnswerFeedback.Builder

parseDelimitedFrom(InputStream input)

public static AnswerFeedback parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnswerFeedback
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AnswerFeedback parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnswerFeedback
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AnswerFeedback parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnswerFeedback
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AnswerFeedback parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnswerFeedback
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AnswerFeedback parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnswerFeedback
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AnswerFeedback> parser()
Returns
TypeDescription
Parser<AnswerFeedback>

Methods

equals(Object obj)

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

getAgentAssistantDetailFeedback()

public AgentAssistantFeedback getAgentAssistantDetailFeedback()

Detail feedback of agent assist suggestions.

.google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2;

Returns
TypeDescription
AgentAssistantFeedback

The agentAssistantDetailFeedback.

getAgentAssistantDetailFeedbackOrBuilder()

public AgentAssistantFeedbackOrBuilder getAgentAssistantDetailFeedbackOrBuilder()

Detail feedback of agent assist suggestions.

.google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2;

Returns
TypeDescription
AgentAssistantFeedbackOrBuilder

getClickTime()

public Timestamp getClickTime()

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Returns
TypeDescription
Timestamp

The clickTime.

getClickTimeOrBuilder()

public TimestampOrBuilder getClickTimeOrBuilder()

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getClicked()

public boolean getClicked()

Indicates whether the answer/item was clicked by the human agent or not. Default to false.

bool clicked = 3;

Returns
TypeDescription
boolean

The clicked.

getCorrectnessLevel()

public AnswerFeedback.CorrectnessLevel getCorrectnessLevel()

The correctness level of the specific answer.

.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1;

Returns
TypeDescription
AnswerFeedback.CorrectnessLevel

The correctnessLevel.

getCorrectnessLevelValue()

public int getCorrectnessLevelValue()

The correctness level of the specific answer.

.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for correctnessLevel.

getDefaultInstanceForType()

public AnswerFeedback getDefaultInstanceForType()
Returns
TypeDescription
AnswerFeedback

getDetailFeedbackCase()

public AnswerFeedback.DetailFeedbackCase getDetailFeedbackCase()
Returns
TypeDescription
AnswerFeedback.DetailFeedbackCase

getDisplayTime()

public Timestamp getDisplayTime()

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Returns
TypeDescription
Timestamp

The displayTime.

getDisplayTimeOrBuilder()

public TimestampOrBuilder getDisplayTimeOrBuilder()

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDisplayed()

public boolean getDisplayed()

Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.

bool displayed = 4;

Returns
TypeDescription
boolean

The displayed.

getParserForType()

public Parser<AnswerFeedback> getParserForType()
Returns
TypeDescription
Parser<AnswerFeedback>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAgentAssistantDetailFeedback()

public boolean hasAgentAssistantDetailFeedback()

Detail feedback of agent assist suggestions.

.google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2;

Returns
TypeDescription
boolean

Whether the agentAssistantDetailFeedback field is set.

hasClickTime()

public boolean hasClickTime()

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Returns
TypeDescription
boolean

Whether the clickTime field is set.

hasDisplayTime()

public boolean hasDisplayTime()

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Returns
TypeDescription
boolean

Whether the displayTime field is set.

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 AnswerFeedback.Builder newBuilderForType()
Returns
TypeDescription
AnswerFeedback.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AnswerFeedback.Builder toBuilder()
Returns
TypeDescription
AnswerFeedback.Builder

writeTo(CodedOutputStream output)

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