123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549 |
- syntax = "proto3";
- package google.cloud.dialogflow.cx.v3;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dialogflow/cx/v3/response_message.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/struct.proto";
- option cc_enable_arenas = true;
- option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
- option java_multiple_files = true;
- option java_outer_classname = "WebhookProto";
- option java_package = "com.google.cloud.dialogflow.cx.v3";
- option objc_class_prefix = "DF";
- option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
- option (google.api.resource_definition) = {
- type: "servicedirectory.googleapis.com/Service"
- pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}"
- };
- service Webhooks {
- option (google.api.default_host) = "dialogflow.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/dialogflow";
-
- rpc ListWebhooks(ListWebhooksRequest) returns (ListWebhooksResponse) {
- option (google.api.http) = {
- get: "/v3/{parent=projects/*/locations/*/agents/*}/webhooks"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetWebhook(GetWebhookRequest) returns (Webhook) {
- option (google.api.http) = {
- get: "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateWebhook(CreateWebhookRequest) returns (Webhook) {
- option (google.api.http) = {
- post: "/v3/{parent=projects/*/locations/*/agents/*}/webhooks"
- body: "webhook"
- };
- option (google.api.method_signature) = "parent,webhook";
- }
-
- rpc UpdateWebhook(UpdateWebhookRequest) returns (Webhook) {
- option (google.api.http) = {
- patch: "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}"
- body: "webhook"
- };
- option (google.api.method_signature) = "webhook,update_mask";
- }
-
- rpc DeleteWebhook(DeleteWebhookRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}"
- };
- option (google.api.method_signature) = "name";
- }
- }
- message Webhook {
- option (google.api.resource) = {
- type: "dialogflow.googleapis.com/Webhook"
- pattern: "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}"
- };
-
- message GenericWebService {
-
- string uri = 1 [(google.api.field_behavior) = REQUIRED];
-
- string username = 2 [deprecated = true];
-
- string password = 3 [deprecated = true];
-
-
- map<string, string> request_headers = 4;
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL];
- }
-
-
- message ServiceDirectoryConfig {
-
-
-
-
-
-
- string service = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "servicedirectory.googleapis.com/Service"
- }
- ];
-
- GenericWebService generic_web_service = 2;
- }
-
-
-
-
-
- string name = 1;
-
- string display_name = 2 [(google.api.field_behavior) = REQUIRED];
-
- oneof webhook {
-
- GenericWebService generic_web_service = 4;
-
-
- ServiceDirectoryConfig service_directory = 7;
- }
-
-
-
- google.protobuf.Duration timeout = 6;
-
- bool disabled = 5;
- }
- message ListWebhooksRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "dialogflow.googleapis.com/Webhook"
- }
- ];
-
-
- int32 page_size = 2;
-
- string page_token = 3;
- }
- message ListWebhooksResponse {
-
-
- repeated Webhook webhooks = 1;
-
-
- string next_page_token = 2;
- }
- message GetWebhookRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Webhook"
- }
- ];
- }
- message CreateWebhookRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "dialogflow.googleapis.com/Webhook"
- }
- ];
-
- Webhook webhook = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateWebhookRequest {
-
- Webhook webhook = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteWebhookRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Webhook"
- }
- ];
-
-
-
-
-
-
-
-
-
- bool force = 2;
- }
- message WebhookRequest {
-
- message FulfillmentInfo {
-
-
-
-
-
- string tag = 1;
- }
-
- message IntentInfo {
-
- message IntentParameterValue {
-
- string original_value = 1;
-
-
- google.protobuf.Value resolved_value = 2;
- }
-
-
-
-
- string last_matched_intent = 1 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Intent"
- }];
-
- string display_name = 3;
-
-
-
-
- map<string, IntentParameterValue> parameters = 2;
-
-
- float confidence = 4;
- }
-
- message SentimentAnalysisResult {
-
-
- float score = 1;
-
-
-
- float magnitude = 2;
- }
-
-
- string detect_intent_response_id = 1;
-
- oneof query {
-
-
- string text = 10;
-
-
-
-
- string trigger_intent = 11 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Intent"
- }];
-
-
- string transcript = 12;
-
-
- string trigger_event = 14;
- }
-
-
- string language_code = 15;
-
-
- FulfillmentInfo fulfillment_info = 6;
-
- IntentInfo intent_info = 3;
-
- PageInfo page_info = 4;
-
- SessionInfo session_info = 5;
-
-
-
- repeated ResponseMessage messages = 7;
-
- google.protobuf.Struct payload = 8;
-
-
- SentimentAnalysisResult sentiment_analysis_result = 9;
- }
- message WebhookResponse {
-
- message FulfillmentResponse {
-
- enum MergeBehavior {
-
- MERGE_BEHAVIOR_UNSPECIFIED = 0;
-
-
- APPEND = 1;
-
-
- REPLACE = 2;
- }
-
- repeated ResponseMessage messages = 1;
-
- MergeBehavior merge_behavior = 2;
- }
-
-
- FulfillmentResponse fulfillment_response = 1;
-
-
- PageInfo page_info = 2;
-
-
- SessionInfo session_info = 3;
-
- google.protobuf.Struct payload = 4;
-
-
-
- oneof transition {
-
-
-
- string target_page = 5 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Page"
- }];
-
-
-
- string target_flow = 6 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Flow"
- }];
- }
- }
- message PageInfo {
-
- message FormInfo {
-
- message ParameterInfo {
-
- enum ParameterState {
-
- PARAMETER_STATE_UNSPECIFIED = 0;
-
- EMPTY = 1;
-
-
-
- INVALID = 2;
-
- FILLED = 3;
- }
-
-
-
-
- string display_name = 1;
-
-
-
-
- bool required = 2;
-
-
-
-
-
- ParameterState state = 3;
-
-
-
- google.protobuf.Value value = 4;
-
-
-
- bool just_collected = 5;
- }
-
-
-
- repeated ParameterInfo parameter_info = 2;
- }
-
-
-
-
- string current_page = 1 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Page"
- }];
-
-
- string display_name = 4;
-
-
- FormInfo form_info = 3;
- }
- message SessionInfo {
-
-
-
-
-
-
-
- string session = 1 [(google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Session"
- }];
-
-
-
-
-
-
- map<string, google.protobuf.Value> parameters = 2;
- }
|