123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- syntax = "proto3";
- package google.cloud.dialogflow.cx.v3beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option cc_enable_arenas = true;
- option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx";
- option java_multiple_files = true;
- option java_outer_classname = "IntentProto";
- option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
- option objc_class_prefix = "DF";
- option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1";
- service Intents {
- 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 ListIntents(ListIntentsRequest) returns (ListIntentsResponse) {
- option (google.api.http) = {
- get: "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetIntent(GetIntentRequest) returns (Intent) {
- option (google.api.http) = {
- get: "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
-
- rpc CreateIntent(CreateIntentRequest) returns (Intent) {
- option (google.api.http) = {
- post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents"
- body: "intent"
- };
- option (google.api.method_signature) = "parent,intent";
- }
-
-
-
-
-
- rpc UpdateIntent(UpdateIntentRequest) returns (Intent) {
- option (google.api.http) = {
- patch: "/v3beta1/{intent.name=projects/*/locations/*/agents/*/intents/*}"
- body: "intent"
- };
- option (google.api.method_signature) = "intent,update_mask";
- }
-
-
-
-
-
- rpc DeleteIntent(DeleteIntentRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}"
- };
- option (google.api.method_signature) = "name";
- }
- }
- message Intent {
- option (google.api.resource) = {
- type: "dialogflow.googleapis.com/Intent"
- pattern: "projects/{project}/locations/{location}/agents/{agent}/intents/{intent}"
- };
-
- message TrainingPhrase {
-
- message Part {
-
- string text = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string parameter_id = 2;
- }
-
- string id = 1;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated Part parts = 2 [(google.api.field_behavior) = REQUIRED];
-
- int32 repeat_count = 3;
- }
-
- message Parameter {
-
-
-
- string id = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- string entity_type = 2 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/EntityType"
- }
- ];
-
- bool is_list = 3;
-
-
-
-
-
-
- bool redact = 4;
- }
-
-
-
-
-
- string name = 1;
-
- string display_name = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- repeated TrainingPhrase training_phrases = 3;
-
- repeated Parameter parameters = 4;
-
-
-
-
-
-
-
-
- int32 priority = 5;
-
-
-
-
-
-
- bool is_fallback = 6;
-
-
-
-
-
-
-
-
-
-
-
-
- map<string, string> labels = 7;
-
-
- string description = 8;
- }
- message ListIntentsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "dialogflow.googleapis.com/Intent"
- }
- ];
-
-
-
-
-
-
-
-
-
-
- string language_code = 2;
-
- IntentView intent_view = 5;
-
-
- int32 page_size = 3;
-
- string page_token = 4;
- }
- message ListIntentsResponse {
-
-
- repeated Intent intents = 1;
-
-
- string next_page_token = 2;
- }
- message GetIntentRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Intent"
- }
- ];
-
-
-
-
-
-
-
-
-
-
- string language_code = 2;
- }
- message CreateIntentRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "dialogflow.googleapis.com/Intent"
- }
- ];
-
- Intent intent = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
- string language_code = 3;
- }
- message UpdateIntentRequest {
-
- Intent intent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
- string language_code = 2;
-
-
- google.protobuf.FieldMask update_mask = 3;
- }
- message DeleteIntentRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/Intent"
- }
- ];
- }
- enum IntentView {
-
- INTENT_VIEW_UNSPECIFIED = 0;
-
- INTENT_VIEW_PARTIAL = 1;
-
- INTENT_VIEW_FULL = 2;
- }
|