Package com.google.cloud.dialogflow.v2
Class AgentCoachingInstruction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
com.google.cloud.dialogflow.v2.AgentCoachingInstruction.Builder
- All Implemented Interfaces:
AgentCoachingInstructionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AgentCoachingInstruction
public static final class AgentCoachingInstruction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
implements AgentCoachingInstructionOrBuilder
Agent Coaching instructions that customer can configure.Protobuf type
google.cloud.dialogflow.v2.AgentCoachingInstruction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Output only.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Output only.Output only.Output only.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAgentAction(String value) Optional.setAgentActionBytes(com.google.protobuf.ByteString value) Optional.setCondition(String value) Optional.setConditionBytes(com.google.protobuf.ByteString value) Optional.setDisplayDetails(String value) Optional.setDisplayDetailsBytes(com.google.protobuf.ByteString value) Optional.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.Output only.Output only.setSystemAction(String value) Optional.setSystemActionBytes(com.google.protobuf.ByteString value) Optional.Optional.setTriggeringEventValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentCoachingInstruction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
-
mergeFrom
public AgentCoachingInstruction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentCoachingInstruction.Builder>- Throws:
IOException
-
getDisplayName
Optional. Display name for the instruction.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceAgentCoachingInstructionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. Display name for the instruction.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Optional. Display name for the instruction.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Optional. Display name for the instruction.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Optional. Display name for the instruction.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDisplayDetails
Optional. The detailed description of this instruction.
string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayDetailsin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The displayDetails.
-
getDisplayDetailsBytes
public com.google.protobuf.ByteString getDisplayDetailsBytes()Optional. The detailed description of this instruction.
string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayDetailsBytesin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The bytes for displayDetails.
-
setDisplayDetails
Optional. The detailed description of this instruction.
string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayDetails to set.- Returns:
- This builder for chaining.
-
clearDisplayDetails
Optional. The detailed description of this instruction.
string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayDetailsBytes
public AgentCoachingInstruction.Builder setDisplayDetailsBytes(com.google.protobuf.ByteString value) Optional. The detailed description of this instruction.
string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayDetails to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getConditionin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The condition.
-
getConditionBytes
public com.google.protobuf.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];- Specified by:
getConditionBytesin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The bytes for condition.
-
setCondition
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];- Parameters:
value- The condition to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setConditionBytes
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];- Parameters:
value- The bytes for condition to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAgentActionin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The agentAction.
-
getAgentActionBytes
public com.google.protobuf.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];- Specified by:
getAgentActionBytesin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The bytes for agentAction.
-
setAgentAction
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];- Parameters:
value- The agentAction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAgentActionBytes
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];- Parameters:
value- The bytes for agentAction to set.- Returns:
- This builder for chaining.
-
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 emptystring system_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemActionin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The systemAction.
-
getSystemActionBytes
public com.google.protobuf.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 emptystring system_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemActionBytesin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The bytes for systemAction.
-
setSystemAction
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 emptystring system_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The systemAction to set.- Returns:
- This builder for chaining.
-
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 emptystring system_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSystemActionBytes
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 emptystring system_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for systemAction to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasDuplicateCheckResultin interfaceAgentCoachingInstructionOrBuilder- Returns:
- Whether the duplicateCheckResult field is set.
-
getDuplicateCheckResult
Output only. Duplication check for the AgentCoachingInstruction.
.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDuplicateCheckResultin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The duplicateCheckResult.
-
setDuplicateCheckResult
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]; -
setDuplicateCheckResult
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]; -
mergeDuplicateCheckResult
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]; -
clearDuplicateCheckResult
Output only. Duplication check for the AgentCoachingInstruction.
.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDuplicateCheckResultBuilder
Output only. Duplication check for the AgentCoachingInstruction.
.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDuplicateCheckResultOrBuilder
Output only. Duplication check for the AgentCoachingInstruction.
.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDuplicateCheckResultOrBuilderin interfaceAgentCoachingInstructionOrBuilder
-
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];- Specified by:
getTriggeringEventValuein interfaceAgentCoachingInstructionOrBuilder- Returns:
- The enum numeric value on the wire for triggeringEvent.
-
setTriggeringEventValue
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];- Parameters:
value- The enum numeric value on the wire for triggeringEvent to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTriggeringEventin interfaceAgentCoachingInstructionOrBuilder- Returns:
- The triggeringEvent.
-
setTriggeringEvent
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];- Parameters:
value- The triggeringEvent to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-