Class AgentAssistantFeedback.KnowledgeSearchFeedback.Builder (4.40.0)

public static final class AgentAssistantFeedback.KnowledgeSearchFeedback.Builder extends GeneratedMessageV3.Builder<AgentAssistantFeedback.KnowledgeSearchFeedback.Builder> implements AgentAssistantFeedback.KnowledgeSearchFeedbackOrBuilder

Feedback for knowledge search.

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addAllClickedUris(Iterable<String> values)

public AgentAssistantFeedback.KnowledgeSearchFeedback.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.KnowledgeSearchFeedback.Builder

This builder for chaining.

addClickedUris(String value)

public AgentAssistantFeedback.KnowledgeSearchFeedback.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.KnowledgeSearchFeedback.Builder

This builder for chaining.

addClickedUrisBytes(ByteString value)

public AgentAssistantFeedback.KnowledgeSearchFeedback.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.KnowledgeSearchFeedback.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAnswerCopied()

public AgentAssistantFeedback.KnowledgeSearchFeedback.Builder clearAnswerCopied()

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

bool answer_copied = 1;

Returns
Type Description
AgentAssistantFeedback.KnowledgeSearchFeedback.Builder

This builder for chaining.

clearClickedUris()

public AgentAssistantFeedback.KnowledgeSearchFeedback.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.KnowledgeSearchFeedback.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnswerCopied()

public boolean getAnswerCopied()

Whether the answer was copied by the human agent or not. 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.KnowledgeSearchFeedback getDefaultInstanceForType()
Returns
Type Description
AgentAssistantFeedback.KnowledgeSearchFeedback

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.KnowledgeSearchFeedback other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnswerCopied(boolean value)

public AgentAssistantFeedback.KnowledgeSearchFeedback.Builder setAnswerCopied(boolean value)

Whether the answer was copied by the human agent or not. 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.KnowledgeSearchFeedback.Builder

This builder for chaining.

setClickedUris(int index, String value)

public AgentAssistantFeedback.KnowledgeSearchFeedback.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.KnowledgeSearchFeedback.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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