Class AgentAssistantFeedback.KnowledgeAssistFeedback.Builder (4.58.0)

public static final class AgentAssistantFeedback.KnowledgeAssistFeedback.Builder extends GeneratedMessageV3.Builder<AgentAssistantFeedback.KnowledgeAssistFeedback.Builder> implements AgentAssistantFeedback.KnowledgeAssistFeedbackOrBuilder

Feedback for knowledge assist.

Protobuf type google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllClickedUris(Iterable<String> values)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder addAllClickedUris(Iterable<String> values)

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Parameter
Name Description
values Iterable<String>

The clickedUris to add.

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

addClickedUris(String value)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder addClickedUris(String value)

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Parameter
Name Description
value String

The clickedUris to add.

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

addClickedUrisBytes(ByteString value)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder addClickedUrisBytes(ByteString value)

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Parameter
Name Description
value ByteString

The bytes of the clickedUris to add.

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

build()

public AgentAssistantFeedback.KnowledgeAssistFeedback build()
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback

buildPartial()

public AgentAssistantFeedback.KnowledgeAssistFeedback buildPartial()
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback

clear()

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder clear()
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

clearAnswerCopied()

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder clearAnswerCopied()

Whether the suggested answer was copied by the human agent. If the value is set to be true, AnswerFeedback.clicked will be updated to be true.

bool answer_copied = 1;

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

clearClickedUris()

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder clearClickedUris()

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

clone()

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder clone()
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

getAnswerCopied()

public boolean getAnswerCopied()

Whether the suggested answer was copied by the human agent. If the value is set to be true, AnswerFeedback.clicked will be updated to be true.

bool answer_copied = 1;

Returns
Type Description
boolean

The answerCopied.

getClickedUris(int index)

public String getClickedUris(int index)

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The clickedUris at the given index.

getClickedUrisBytes(int index)

public ByteString getClickedUrisBytes(int index)

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the clickedUris at the given index.

getClickedUrisCount()

public int getClickedUrisCount()

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Returns
Type Description
int

The count of clickedUris.

getClickedUrisList()

public ProtocolStringList getClickedUrisList()

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Returns
Type Description
ProtocolStringList

A list containing the clickedUris.

getDefaultInstanceForType()

public AgentAssistantFeedback.KnowledgeAssistFeedback getDefaultInstanceForType()
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentAssistantFeedback.KnowledgeAssistFeedback other)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder mergeFrom(AgentAssistantFeedback.KnowledgeAssistFeedback other)
Parameter
Name Description
other AgentAssistantFeedback.KnowledgeAssistFeedback
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AgentAssistantFeedback.KnowledgeAssistFeedback.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

setAnswerCopied(boolean value)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder setAnswerCopied(boolean value)

Whether the suggested answer was copied by the human agent. If the value is set to be true, AnswerFeedback.clicked will be updated to be true.

bool answer_copied = 1;

Parameter
Name Description
value boolean

The answerCopied to set.

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

setClickedUris(int index, String value)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder setClickedUris(int index, String value)

The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked will be updated to be true.

repeated string clicked_uris = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The clickedUris to set.

Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

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

public AgentAssistantFeedback.KnowledgeAssistFeedback.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AgentAssistantFeedback.KnowledgeAssistFeedback.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AgentAssistantFeedback.KnowledgeAssistFeedback.Builder
Overrides