Class AnswerFeedback.Builder (4.6.0)

public static final class AnswerFeedback.Builder extends GeneratedMessageV3.Builder<AnswerFeedback.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnswerFeedback build()
Returns
TypeDescription
AnswerFeedback

buildPartial()

public AnswerFeedback buildPartial()
Returns
TypeDescription
AnswerFeedback

clear()

public AnswerFeedback.Builder clear()
Returns
TypeDescription
AnswerFeedback.Builder
Overrides

clearAgentAssistantDetailFeedback()

public AnswerFeedback.Builder clearAgentAssistantDetailFeedback()

Detail feedback of agent assist suggestions.

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

Returns
TypeDescription
AnswerFeedback.Builder

clearClickTime()

public AnswerFeedback.Builder clearClickTime()

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Returns
TypeDescription
AnswerFeedback.Builder

clearClicked()

public AnswerFeedback.Builder clearClicked()

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

bool clicked = 3;

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

clearCorrectnessLevel()

public AnswerFeedback.Builder clearCorrectnessLevel()

The correctness level of the specific answer.

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

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

clearDetailFeedback()

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

clearDisplayTime()

public AnswerFeedback.Builder clearDisplayTime()

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Returns
TypeDescription
AnswerFeedback.Builder

clearDisplayed()

public AnswerFeedback.Builder clearDisplayed()

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

bool displayed = 4;

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAgentAssistantDetailFeedbackBuilder()

public AgentAssistantFeedback.Builder getAgentAssistantDetailFeedbackBuilder()

Detail feedback of agent assist suggestions.

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

Returns
TypeDescription
AgentAssistantFeedback.Builder

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.

getClickTimeBuilder()

public Timestamp.Builder getClickTimeBuilder()

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Returns
TypeDescription
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getDisplayTimeBuilder()

public Timestamp.Builder getDisplayTimeBuilder()

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Returns
TypeDescription
Builder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAgentAssistantDetailFeedback(AgentAssistantFeedback value)

public AnswerFeedback.Builder mergeAgentAssistantDetailFeedback(AgentAssistantFeedback value)

Detail feedback of agent assist suggestions.

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

Parameter
NameDescription
valueAgentAssistantFeedback
Returns
TypeDescription
AnswerFeedback.Builder

mergeClickTime(Timestamp value)

public AnswerFeedback.Builder mergeClickTime(Timestamp value)

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AnswerFeedback.Builder

mergeDisplayTime(Timestamp value)

public AnswerFeedback.Builder mergeDisplayTime(Timestamp value)

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AnswerFeedback.Builder

mergeFrom(AnswerFeedback other)

public AnswerFeedback.Builder mergeFrom(AnswerFeedback other)
Parameter
NameDescription
otherAnswerFeedback
Returns
TypeDescription
AnswerFeedback.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAgentAssistantDetailFeedback(AgentAssistantFeedback value)

public AnswerFeedback.Builder setAgentAssistantDetailFeedback(AgentAssistantFeedback value)

Detail feedback of agent assist suggestions.

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

Parameter
NameDescription
valueAgentAssistantFeedback
Returns
TypeDescription
AnswerFeedback.Builder

setAgentAssistantDetailFeedback(AgentAssistantFeedback.Builder builderForValue)

public AnswerFeedback.Builder setAgentAssistantDetailFeedback(AgentAssistantFeedback.Builder builderForValue)

Detail feedback of agent assist suggestions.

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

Parameter
NameDescription
builderForValueAgentAssistantFeedback.Builder
Returns
TypeDescription
AnswerFeedback.Builder

setClickTime(Timestamp value)

public AnswerFeedback.Builder setClickTime(Timestamp value)

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AnswerFeedback.Builder

setClickTime(Timestamp.Builder builderForValue)

public AnswerFeedback.Builder setClickTime(Timestamp.Builder builderForValue)

Time when the answer/item was clicked.

.google.protobuf.Timestamp click_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AnswerFeedback.Builder

setClicked(boolean value)

public AnswerFeedback.Builder setClicked(boolean value)

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

bool clicked = 3;

Parameter
NameDescription
valueboolean

The clicked to set.

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

setCorrectnessLevel(AnswerFeedback.CorrectnessLevel value)

public AnswerFeedback.Builder setCorrectnessLevel(AnswerFeedback.CorrectnessLevel value)

The correctness level of the specific answer.

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

Parameter
NameDescription
valueAnswerFeedback.CorrectnessLevel

The correctnessLevel to set.

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

setCorrectnessLevelValue(int value)

public AnswerFeedback.Builder setCorrectnessLevelValue(int value)

The correctness level of the specific answer.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for correctnessLevel to set.

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

setDisplayTime(Timestamp value)

public AnswerFeedback.Builder setDisplayTime(Timestamp value)

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AnswerFeedback.Builder

setDisplayTime(Timestamp.Builder builderForValue)

public AnswerFeedback.Builder setDisplayTime(Timestamp.Builder builderForValue)

Time when the answer/item was displayed.

.google.protobuf.Timestamp display_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AnswerFeedback.Builder

setDisplayed(boolean value)

public AnswerFeedback.Builder setDisplayed(boolean value)

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

bool displayed = 4;

Parameter
NameDescription
valueboolean

The displayed to set.

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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