Class AgentCoachingInstruction.Builder (4.87.0)

public static final class AgentCoachingInstruction.Builder extends GeneratedMessageV3.Builder<AgentCoachingInstruction.Builder> implements AgentCoachingInstructionOrBuilder

Agent Coaching instructions that customer can configure.

Protobuf type google.cloud.dialogflow.v2.AgentCoachingInstruction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AgentCoachingInstruction build()
Returns
Type Description
AgentCoachingInstruction

buildPartial()

public AgentCoachingInstruction buildPartial()
Returns
Type Description
AgentCoachingInstruction

clear()

public AgentCoachingInstruction.Builder clear()
Returns
Type Description
AgentCoachingInstruction.Builder
Overrides

clearAgentAction()

public AgentCoachingInstruction.Builder clearAgentAction()

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty

string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

clearCondition()

public AgentCoachingInstruction.Builder clearCondition()

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.

string condition = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

clearDisplayDetails()

public AgentCoachingInstruction.Builder clearDisplayDetails()

Optional. The detailed description of this instruction.

string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

clearDisplayName()

public AgentCoachingInstruction.Builder clearDisplayName()

Optional. Display name for the instruction.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

clearDuplicateCheckResult()

public AgentCoachingInstruction.Builder clearDuplicateCheckResult()

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentCoachingInstruction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSystemAction()

public AgentCoachingInstruction.Builder clearSystemAction()

Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty

string system_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

clearTriggeringEvent()

public AgentCoachingInstruction.Builder clearTriggeringEvent()

Optional. The event that should trigger this instruction. If UNSPECIFIED, the instruction triggering will be same as the generator's trigger_event.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEvent triggering_event = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

clone()

public AgentCoachingInstruction.Builder clone()
Returns
Type Description
AgentCoachingInstruction.Builder
Overrides

getAgentAction()

public String getAgentAction()

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty

string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The agentAction.

getAgentActionBytes()

public ByteString getAgentActionBytes()

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty

string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for agentAction.

getCondition()

public String getCondition()

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.

string condition = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The condition.

getConditionBytes()

public ByteString getConditionBytes()

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.

string condition = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for condition.

getDefaultInstanceForType()

public AgentCoachingInstruction getDefaultInstanceForType()
Returns
Type Description
AgentCoachingInstruction

getDescriptorForType()

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

getDisplayDetails()

public String getDisplayDetails()

Optional. The detailed description of this instruction.

string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayDetails.

getDisplayDetailsBytes()

public ByteString getDisplayDetailsBytes()

Optional. The detailed description of this instruction.

string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayDetails.

getDisplayName()

public String getDisplayName()

Optional. Display name for the instruction.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name for the instruction.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getDuplicateCheckResult()

public AgentCoachingInstruction.DuplicateCheckResult getDuplicateCheckResult()

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentCoachingInstruction.DuplicateCheckResult

The duplicateCheckResult.

getDuplicateCheckResultBuilder()

public AgentCoachingInstruction.DuplicateCheckResult.Builder getDuplicateCheckResultBuilder()

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentCoachingInstruction.DuplicateCheckResult.Builder

getDuplicateCheckResultOrBuilder()

public AgentCoachingInstruction.DuplicateCheckResultOrBuilder getDuplicateCheckResultOrBuilder()

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentCoachingInstruction.DuplicateCheckResultOrBuilder

getSystemAction()

public String getSystemAction()

Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty

string system_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The systemAction.

getSystemActionBytes()

public ByteString getSystemActionBytes()

Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty

string system_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for systemAction.

getTriggeringEvent()

public AgentCoachingInstruction.TriggerEvent getTriggeringEvent()

Optional. The event that should trigger this instruction. If UNSPECIFIED, the instruction triggering will be same as the generator's trigger_event.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEvent triggering_event = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentCoachingInstruction.TriggerEvent

The triggeringEvent.

getTriggeringEventValue()

public int getTriggeringEventValue()

Optional. The event that should trigger this instruction. If UNSPECIFIED, the instruction triggering will be same as the generator's trigger_event.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEvent triggering_event = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for triggeringEvent.

hasDuplicateCheckResult()

public boolean hasDuplicateCheckResult()

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the duplicateCheckResult field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDuplicateCheckResult(AgentCoachingInstruction.DuplicateCheckResult value)

public AgentCoachingInstruction.Builder mergeDuplicateCheckResult(AgentCoachingInstruction.DuplicateCheckResult value)

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AgentCoachingInstruction.DuplicateCheckResult
Returns
Type Description
AgentCoachingInstruction.Builder

mergeFrom(AgentCoachingInstruction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAgentAction(String value)

public AgentCoachingInstruction.Builder setAgentAction(String value)

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty

string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The agentAction to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setAgentActionBytes(ByteString value)

public AgentCoachingInstruction.Builder setAgentActionBytes(ByteString value)

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty

string agent_action = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for agentAction to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setCondition(String value)

public AgentCoachingInstruction.Builder setCondition(String value)

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.

string condition = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The condition to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setConditionBytes(ByteString value)

public AgentCoachingInstruction.Builder setConditionBytes(ByteString value)

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.

string condition = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for condition to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setDisplayDetails(String value)

public AgentCoachingInstruction.Builder setDisplayDetails(String value)

Optional. The detailed description of this instruction.

string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayDetails to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setDisplayDetailsBytes(ByteString value)

public AgentCoachingInstruction.Builder setDisplayDetailsBytes(ByteString value)

Optional. The detailed description of this instruction.

string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayDetails to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setDisplayName(String value)

public AgentCoachingInstruction.Builder setDisplayName(String value)

Optional. Display name for the instruction.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AgentCoachingInstruction.Builder setDisplayNameBytes(ByteString value)

Optional. Display name for the instruction.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setDuplicateCheckResult(AgentCoachingInstruction.DuplicateCheckResult value)

public AgentCoachingInstruction.Builder setDuplicateCheckResult(AgentCoachingInstruction.DuplicateCheckResult value)

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AgentCoachingInstruction.DuplicateCheckResult
Returns
Type Description
AgentCoachingInstruction.Builder

setDuplicateCheckResult(AgentCoachingInstruction.DuplicateCheckResult.Builder builderForValue)

public AgentCoachingInstruction.Builder setDuplicateCheckResult(AgentCoachingInstruction.DuplicateCheckResult.Builder builderForValue)

Output only. Duplication check for the AgentCoachingInstruction.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AgentCoachingInstruction.DuplicateCheckResult.Builder
Returns
Type Description
AgentCoachingInstruction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSystemAction(String value)

public AgentCoachingInstruction.Builder setSystemAction(String value)

Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty

string system_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The systemAction to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setSystemActionBytes(ByteString value)

public AgentCoachingInstruction.Builder setSystemActionBytes(ByteString value)

Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty

string system_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for systemAction to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setTriggeringEvent(AgentCoachingInstruction.TriggerEvent value)

public AgentCoachingInstruction.Builder setTriggeringEvent(AgentCoachingInstruction.TriggerEvent value)

Optional. The event that should trigger this instruction. If UNSPECIFIED, the instruction triggering will be same as the generator's trigger_event.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEvent triggering_event = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentCoachingInstruction.TriggerEvent

The triggeringEvent to set.

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setTriggeringEventValue(int value)

public AgentCoachingInstruction.Builder setTriggeringEventValue(int value)

Optional. The event that should trigger this instruction. If UNSPECIFIED, the instruction triggering will be same as the generator's trigger_event.

.google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEvent triggering_event = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
AgentCoachingInstruction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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