feat: added location-aware HTTP path binding for ListIntents

feat: exposed match confidence and parameter in AnalyzeContentResponse
feat: added DTMF and PARTIAL DTMF type in recognition result

PiperOrigin-RevId: 374460003
pull/656/head
Google APIs 4 years ago committed by Copybara-Service
parent 0f9e69ba1e
commit 13095786b1
  1. 13
      google/cloud/dialogflow/v2beta1/intent.proto
  2. 14
      google/cloud/dialogflow/v2beta1/participant.proto
  3. 11
      google/cloud/dialogflow/v2beta1/session.proto

@ -53,6 +53,9 @@ service Intents {
additional_bindings {
get: "/v2beta1/{parent=projects/*/agent/environments/*}/intents"
}
additional_bindings {
get: "/v2beta1/{parent=projects/*/locations/*/agent/environments/*}/intents"
}
};
option (google.api.method_signature) = "parent";
option (google.api.method_signature) = "parent,language_code";
@ -1198,7 +1201,15 @@ message Intent {
// The request message for [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
message ListIntentsRequest {
// Required. The agent to list all intents from.
// Format: `projects/<Project ID>/agent`.
// Format: `projects/<Project ID>/agent` or `projects/<Project
// ID>/locations/<Location ID>/agent`.
//
// Alternatively, you can specify the environment to list intents for.
// Format: `projects/<Project ID>/agent/environments/<Environment ID>`
// or `projects/<Project ID>/locations/<Location
// ID>/agent/environments/<Environment ID>`.
// Note: training phrases of the intents will not be returned for non-draft
// environment.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {

@ -410,9 +410,21 @@ message AutomatedAgentReply {
string event = 5;
}
// The confidence of the match. Values range from 0.0 (completely uncertain)
// to 1.0 (completely certain).
// This value is for informational purpose only and is only used to help match
// the best intent within the classification threshold. This value may change
// for the same end-user expression at any time due to a model retraining or
// change in implementation.
float match_confidence = 9;
// The collection of current parameters at the time of this response.
google.protobuf.Struct parameters = 10;
// The collection of current Dialogflow CX agent session parameters at the
// time of this response.
google.protobuf.Struct cx_session_parameters = 6;
// Deprecated: Use `parameters` instead.
google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
}
// The type of Human Agent Assistant API suggestion to perform, and the maximum

@ -659,6 +659,12 @@ message StreamingRecognitionResult {
// Message contains a (possibly partial) transcript.
TRANSCRIPT = 1;
// Message contains DTMF digits. When the client gets the message, it
// should stop sending additional data, half-close the gRPC connection, and
// wait for any additional results until the server closes the gRPC.
// connection.
DTMF_DIGITS = 3;
// Event indicates that the server has detected the end of the user's speech
// utterance and expects no additional speech. Therefore, the server will
// not process additional audio (although it may subsequently return
@ -667,6 +673,11 @@ message StreamingRecognitionResult {
// until the server closes the gRPC connection. This message is only sent if
// `single_utterance` was set to `true`, and is not used otherwise.
END_OF_SINGLE_UTTERANCE = 2;
// Message contains DTMF digits. Before a message with DTMF_DIGITS is sent,
// a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected
// up to the time of sending, which represents an intermediate result.
PARTIAL_DTMF_DIGITS = 4;
}
// Type of the result message.

Loading…
Cancel
Save