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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AgentCoachingInstruction.Builder>
    • getDefaultInstanceForType

      public AgentCoachingInstruction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AgentCoachingInstruction build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AgentCoachingInstruction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AgentCoachingInstruction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AgentCoachingInstruction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AgentCoachingInstruction.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Optional. Display name for the instruction.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface AgentCoachingInstructionOrBuilder
      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:
      getDisplayNameBytes in interface AgentCoachingInstructionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public AgentCoachingInstruction.Builder setDisplayName(String value)
       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

      public AgentCoachingInstruction.Builder clearDisplayName()
       Optional. Display name for the instruction.
       
      string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AgentCoachingInstruction.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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

      public String getDisplayDetails()
       Optional. The detailed description of this instruction.
       
      string display_details = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayDetails in interface AgentCoachingInstructionOrBuilder
      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:
      getDisplayDetailsBytes in interface AgentCoachingInstructionOrBuilder
      Returns:
      The bytes for displayDetails.
    • setDisplayDetails

      public AgentCoachingInstruction.Builder setDisplayDetails(String value)
       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

      public AgentCoachingInstruction.Builder 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

      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];
      Specified by:
      getCondition in interface AgentCoachingInstructionOrBuilder
      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:
      getConditionBytes in interface AgentCoachingInstructionOrBuilder
      Returns:
      The bytes for condition.
    • setCondition

      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];
      Parameters:
      value - The condition to set.
      Returns:
      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:
      This builder for chaining.
    • setConditionBytes

      public AgentCoachingInstruction.Builder setConditionBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for condition to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getAgentAction in interface AgentCoachingInstructionOrBuilder
      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:
      getAgentActionBytes in interface AgentCoachingInstructionOrBuilder
      Returns:
      The bytes for agentAction.
    • setAgentAction

      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];
      Parameters:
      value - The agentAction to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setAgentActionBytes

      public AgentCoachingInstruction.Builder setAgentActionBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for agentAction to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getSystemAction in interface AgentCoachingInstructionOrBuilder
      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 empty
       
      string system_action = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSystemActionBytes in interface AgentCoachingInstructionOrBuilder
      Returns:
      The bytes for systemAction.
    • setSystemAction

      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];
      Parameters:
      value - The systemAction to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setSystemActionBytes

      public AgentCoachingInstruction.Builder setSystemActionBytes(com.google.protobuf.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];
      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:
      hasDuplicateCheckResult in interface AgentCoachingInstructionOrBuilder
      Returns:
      Whether the duplicateCheckResult field is set.
    • 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];
      Specified by:
      getDuplicateCheckResult in interface AgentCoachingInstructionOrBuilder
      Returns:
      The duplicateCheckResult.
    • setDuplicateCheckResult

       Output only. Duplication check for the AgentCoachingInstruction.
       
      .google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDuplicateCheckResult

       Output only. Duplication check for the AgentCoachingInstruction.
       
      .google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDuplicateCheckResult

       Output only. Duplication check for the AgentCoachingInstruction.
       
      .google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult duplicate_check_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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];
    • 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];
      Specified by:
      getDuplicateCheckResultOrBuilder in interface AgentCoachingInstructionOrBuilder
    • 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:
      getTriggeringEventValue in interface AgentCoachingInstructionOrBuilder
      Returns:
      The enum numeric value on the wire for triggeringEvent.
    • setTriggeringEventValue

      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];
      Parameters:
      value - The enum numeric value on the wire for triggeringEvent to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getTriggeringEvent in interface AgentCoachingInstructionOrBuilder
      Returns:
      The triggeringEvent.
    • setTriggeringEvent

       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

      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:
      This builder for chaining.