blob: 7f47dcee08af84f4dfcfea6fae2ff4e59152dd3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.dialogflow.v2beta1;
import "google/cloud/dialogflow/v2beta1/participant.proto";
import "google/rpc/status.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1";
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow";
option java_multiple_files = true;
option java_outer_classname = "ConversationEventProto";
option java_package = "com.google.cloud.dialogflow.v2beta1";
option objc_class_prefix = "DF";
// Represents a notification sent to Pub/Sub subscribers for conversation
// lifecycle events.
message ConversationEvent {
// Enumeration of the types of events available.
enum Type {
// Type not set.
TYPE_UNSPECIFIED = 0;
// A new conversation has been opened. This is fired when a telephone call
// is answered, or a conversation is created via the API.
CONVERSATION_STARTED = 1;
// An existing conversation has closed. This is fired when a telephone call
// is terminated, or a conversation is closed via the API.
CONVERSATION_FINISHED = 2;
// An existing conversation has received notification from Dialogflow that
// human intervention is required.
HUMAN_INTERVENTION_NEEDED = 3;
// An existing conversation has received a new message, either from API or
// telephony. It is configured in
// [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2beta1.ConversationProfile.new_message_event_notification_config]
NEW_MESSAGE = 5;
// Unrecoverable error during a telephone call.
//
// In general non-recoverable errors only occur if something was
// misconfigured in the ConversationProfile corresponding to the call. After
// a non-recoverable error, Dialogflow may stop responding.
//
// We don't fire this event:
//
// * in an API call because we can directly return the error, or,
// * when we can recover from an error.
UNRECOVERABLE_ERROR = 4;
}
// Required. The unique identifier of the conversation this notification
// refers to.
// Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
// Required. The type of the event that this notification refers to.
Type type = 2;
// Optional. More detailed information about an error. Only set for type
// UNRECOVERABLE_ERROR_IN_PHONE_CALL.
google.rpc.Status error_status = 3;
// Payload of conversation event.
oneof payload {
// Payload of NEW_MESSAGE event.
Message new_message_payload = 4;
}
}
|