Class AutomatedAgentReply.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomatedAgentReply.Builder>
com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder
All Implemented Interfaces:
AutomatedAgentReplyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutomatedAgentReply

public static final class AutomatedAgentReply.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutomatedAgentReply.Builder> implements AutomatedAgentReplyOrBuilder
 Represents a response from an automated agent.
 
Protobuf type google.cloud.dialogflow.v2.AutomatedAgentReply
  • 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<AutomatedAgentReply.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<AutomatedAgentReply.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<AutomatedAgentReply.Builder>
    • getDefaultInstanceForType

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

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

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

      public AutomatedAgentReply.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<AutomatedAgentReply.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<AutomatedAgentReply.Builder>
    • mergeFrom

      public AutomatedAgentReply.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<AutomatedAgentReply.Builder>
      Throws:
      IOException
    • hasDetectIntentResponse

      public boolean hasDetectIntentResponse()
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
      Specified by:
      hasDetectIntentResponse in interface AutomatedAgentReplyOrBuilder
      Returns:
      Whether the detectIntentResponse field is set.
    • getDetectIntentResponse

      public DetectIntentResponse getDetectIntentResponse()
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
      Specified by:
      getDetectIntentResponse in interface AutomatedAgentReplyOrBuilder
      Returns:
      The detectIntentResponse.
    • setDetectIntentResponse

      public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse value)
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
    • setDetectIntentResponse

      public AutomatedAgentReply.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
    • mergeDetectIntentResponse

      public AutomatedAgentReply.Builder mergeDetectIntentResponse(DetectIntentResponse value)
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
    • clearDetectIntentResponse

      public AutomatedAgentReply.Builder clearDetectIntentResponse()
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
    • getDetectIntentResponseBuilder

      public DetectIntentResponse.Builder getDetectIntentResponseBuilder()
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
    • getDetectIntentResponseOrBuilder

      public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
       Response of the Dialogflow
       [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent]
       call.
       
      .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
      Specified by:
      getDetectIntentResponseOrBuilder in interface AutomatedAgentReplyOrBuilder
    • getAutomatedAgentReplyTypeValue

      public int getAutomatedAgentReplyTypeValue()
       AutomatedAgentReply type.
       
      .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
      Specified by:
      getAutomatedAgentReplyTypeValue in interface AutomatedAgentReplyOrBuilder
      Returns:
      The enum numeric value on the wire for automatedAgentReplyType.
    • setAutomatedAgentReplyTypeValue

      public AutomatedAgentReply.Builder setAutomatedAgentReplyTypeValue(int value)
       AutomatedAgentReply type.
       
      .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
      Parameters:
      value - The enum numeric value on the wire for automatedAgentReplyType to set.
      Returns:
      This builder for chaining.
    • getAutomatedAgentReplyType

      public AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType()
       AutomatedAgentReply type.
       
      .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
      Specified by:
      getAutomatedAgentReplyType in interface AutomatedAgentReplyOrBuilder
      Returns:
      The automatedAgentReplyType.
    • setAutomatedAgentReplyType

       AutomatedAgentReply type.
       
      .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
      Parameters:
      value - The automatedAgentReplyType to set.
      Returns:
      This builder for chaining.
    • clearAutomatedAgentReplyType

      public AutomatedAgentReply.Builder clearAutomatedAgentReplyType()
       AutomatedAgentReply type.
       
      .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
      Returns:
      This builder for chaining.
    • getAllowCancellation

      public boolean getAllowCancellation()
       Indicates whether the partial automated agent reply is interruptible when a
       later reply message arrives. e.g. if the agent specified some music as
       partial response, it can be cancelled.
       
      bool allow_cancellation = 8;
      Specified by:
      getAllowCancellation in interface AutomatedAgentReplyOrBuilder
      Returns:
      The allowCancellation.
    • setAllowCancellation

      public AutomatedAgentReply.Builder setAllowCancellation(boolean value)
       Indicates whether the partial automated agent reply is interruptible when a
       later reply message arrives. e.g. if the agent specified some music as
       partial response, it can be cancelled.
       
      bool allow_cancellation = 8;
      Parameters:
      value - The allowCancellation to set.
      Returns:
      This builder for chaining.
    • clearAllowCancellation

      public AutomatedAgentReply.Builder clearAllowCancellation()
       Indicates whether the partial automated agent reply is interruptible when a
       later reply message arrives. e.g. if the agent specified some music as
       partial response, it can be cancelled.
       
      bool allow_cancellation = 8;
      Returns:
      This builder for chaining.
    • getCxCurrentPage

      public String getCxCurrentPage()
       The unique identifier of the current Dialogflow CX conversation page.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/flows/<Flow ID>/pages/<Page ID>`.
       
      string cx_current_page = 11;
      Specified by:
      getCxCurrentPage in interface AutomatedAgentReplyOrBuilder
      Returns:
      The cxCurrentPage.
    • getCxCurrentPageBytes

      public com.google.protobuf.ByteString getCxCurrentPageBytes()
       The unique identifier of the current Dialogflow CX conversation page.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/flows/<Flow ID>/pages/<Page ID>`.
       
      string cx_current_page = 11;
      Specified by:
      getCxCurrentPageBytes in interface AutomatedAgentReplyOrBuilder
      Returns:
      The bytes for cxCurrentPage.
    • setCxCurrentPage

      public AutomatedAgentReply.Builder setCxCurrentPage(String value)
       The unique identifier of the current Dialogflow CX conversation page.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/flows/<Flow ID>/pages/<Page ID>`.
       
      string cx_current_page = 11;
      Parameters:
      value - The cxCurrentPage to set.
      Returns:
      This builder for chaining.
    • clearCxCurrentPage

      public AutomatedAgentReply.Builder clearCxCurrentPage()
       The unique identifier of the current Dialogflow CX conversation page.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/flows/<Flow ID>/pages/<Page ID>`.
       
      string cx_current_page = 11;
      Returns:
      This builder for chaining.
    • setCxCurrentPageBytes

      public AutomatedAgentReply.Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value)
       The unique identifier of the current Dialogflow CX conversation page.
       Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
       ID>/flows/<Flow ID>/pages/<Page ID>`.
       
      string cx_current_page = 11;
      Parameters:
      value - The bytes for cxCurrentPage to set.
      Returns:
      This builder for chaining.