Class ConversationTurn.VirtualAgentOutput

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput
All Implemented Interfaces:
ConversationTurn.VirtualAgentOutputOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ConversationTurn

public static final class ConversationTurn.VirtualAgentOutput extends com.google.protobuf.GeneratedMessage implements ConversationTurn.VirtualAgentOutputOrBuilder
 The output from the virtual agent.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput
See Also:
  • Field Details

    • SESSION_PARAMETERS_FIELD_NUMBER

      public static final int SESSION_PARAMETERS_FIELD_NUMBER
      See Also:
    • DIFFERENCES_FIELD_NUMBER

      public static final int DIFFERENCES_FIELD_NUMBER
      See Also:
    • DIAGNOSTIC_INFO_FIELD_NUMBER

      public static final int DIAGNOSTIC_INFO_FIELD_NUMBER
      See Also:
    • TRIGGERED_INTENT_FIELD_NUMBER

      public static final int TRIGGERED_INTENT_FIELD_NUMBER
      See Also:
    • CURRENT_PAGE_FIELD_NUMBER

      public static final int CURRENT_PAGE_FIELD_NUMBER
      See Also:
    • TEXT_RESPONSES_FIELD_NUMBER

      public static final int TEXT_RESPONSES_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
  • 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
    • hasSessionParameters

      public boolean hasSessionParameters()
       The session parameters available to the bot at this point.
       
      .google.protobuf.Struct session_parameters = 4;
      Specified by:
      hasSessionParameters in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      Whether the sessionParameters field is set.
    • getSessionParameters

      public com.google.protobuf.Struct getSessionParameters()
       The session parameters available to the bot at this point.
       
      .google.protobuf.Struct session_parameters = 4;
      Specified by:
      getSessionParameters in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      The sessionParameters.
    • getSessionParametersOrBuilder

      public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder()
       The session parameters available to the bot at this point.
       
      .google.protobuf.Struct session_parameters = 4;
      Specified by:
      getSessionParametersOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getDifferencesList

      public List<TestRunDifference> getDifferencesList()
       Output only. If this is part of a [result conversation
       turn][TestCaseResult.conversation_turns], the list of differences
       between the original run and the replay for this output, if any.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDifferencesList in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getDifferencesOrBuilderList

      public List<? extends TestRunDifferenceOrBuilder> getDifferencesOrBuilderList()
       Output only. If this is part of a [result conversation
       turn][TestCaseResult.conversation_turns], the list of differences
       between the original run and the replay for this output, if any.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDifferencesOrBuilderList in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getDifferencesCount

      public int getDifferencesCount()
       Output only. If this is part of a [result conversation
       turn][TestCaseResult.conversation_turns], the list of differences
       between the original run and the replay for this output, if any.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDifferencesCount in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getDifferences

      public TestRunDifference getDifferences(int index)
       Output only. If this is part of a [result conversation
       turn][TestCaseResult.conversation_turns], the list of differences
       between the original run and the replay for this output, if any.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDifferences in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getDifferencesOrBuilder

      public TestRunDifferenceOrBuilder getDifferencesOrBuilder(int index)
       Output only. If this is part of a [result conversation
       turn][TestCaseResult.conversation_turns], the list of differences
       between the original run and the replay for this output, if any.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDifferencesOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • hasDiagnosticInfo

      public boolean hasDiagnosticInfo()
       Required. Input only. The diagnostic
       [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       output for the turn. Required to calculate the testing coverage.
       
      .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasDiagnosticInfo in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      Whether the diagnosticInfo field is set.
    • getDiagnosticInfo

      public com.google.protobuf.Struct getDiagnosticInfo()
       Required. Input only. The diagnostic
       [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       output for the turn. Required to calculate the testing coverage.
       
      .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getDiagnosticInfo in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      The diagnosticInfo.
    • getDiagnosticInfoOrBuilder

      public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder()
       Required. Input only. The diagnostic
       [info][Session.DetectIntentResponse.QueryResult.diagnostic_info]
       output for the turn. Required to calculate the testing coverage.
       
      .google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getDiagnosticInfoOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • hasTriggeredIntent

      public boolean hasTriggeredIntent()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered
       the response. Only name and displayName will be set.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7;
      Specified by:
      hasTriggeredIntent in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      Whether the triggeredIntent field is set.
    • getTriggeredIntent

      public Intent getTriggeredIntent()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered
       the response. Only name and displayName will be set.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7;
      Specified by:
      getTriggeredIntent in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      The triggeredIntent.
    • getTriggeredIntentOrBuilder

      public IntentOrBuilder getTriggeredIntentOrBuilder()
       The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered
       the response. Only name and displayName will be set.
       
      .google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7;
      Specified by:
      getTriggeredIntentOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • hasCurrentPage

      public boolean hasCurrentPage()
       The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the
       utterance was spoken. Only name and displayName will be set.
       
      .google.cloud.dialogflow.cx.v3beta1.Page current_page = 8;
      Specified by:
      hasCurrentPage in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      Whether the currentPage field is set.
    • getCurrentPage

      public Page getCurrentPage()
       The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the
       utterance was spoken. Only name and displayName will be set.
       
      .google.cloud.dialogflow.cx.v3beta1.Page current_page = 8;
      Specified by:
      getCurrentPage in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      The currentPage.
    • getCurrentPageOrBuilder

      public PageOrBuilder getCurrentPageOrBuilder()
       The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the
       utterance was spoken. Only name and displayName will be set.
       
      .google.cloud.dialogflow.cx.v3beta1.Page current_page = 8;
      Specified by:
      getCurrentPageOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getTextResponsesList

      public List<ResponseMessage.Text> getTextResponsesList()
       The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text]
       responses from the agent for the turn.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;
      Specified by:
      getTextResponsesList in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getTextResponsesOrBuilderList

      public List<? extends ResponseMessage.TextOrBuilder> getTextResponsesOrBuilderList()
       The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text]
       responses from the agent for the turn.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;
      Specified by:
      getTextResponsesOrBuilderList in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getTextResponsesCount

      public int getTextResponsesCount()
       The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text]
       responses from the agent for the turn.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;
      Specified by:
      getTextResponsesCount in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getTextResponses

      public ResponseMessage.Text getTextResponses(int index)
       The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text]
       responses from the agent for the turn.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;
      Specified by:
      getTextResponses in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • getTextResponsesOrBuilder

      public ResponseMessage.TextOrBuilder getTextResponsesOrBuilder(int index)
       The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text]
       responses from the agent for the turn.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;
      Specified by:
      getTextResponsesOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • hasStatus

      public boolean hasStatus()
       Response error from the agent in the test result. If set, other output
       is empty.
       
      .google.rpc.Status status = 10;
      Specified by:
      hasStatus in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Status getStatus()
       Response error from the agent in the test result. If set, other output
       is empty.
       
      .google.rpc.Status status = 10;
      Specified by:
      getStatus in interface ConversationTurn.VirtualAgentOutputOrBuilder
      Returns:
      The status.
    • getStatusOrBuilder

      public StatusOrBuilder getStatusOrBuilder()
       Response error from the agent in the test result. If set, other output
       is empty.
       
      .google.rpc.Status status = 10;
      Specified by:
      getStatusOrBuilder in interface ConversationTurn.VirtualAgentOutputOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ConversationTurn.VirtualAgentOutput.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConversationTurn.VirtualAgentOutput.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConversationTurn.VirtualAgentOutput.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConversationTurn.VirtualAgentOutput getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConversationTurn.VirtualAgentOutput> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConversationTurn.VirtualAgentOutput> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConversationTurn.VirtualAgentOutput getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder