123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- syntax = "proto3";
- package google.cloud.dialogflow.v2beta1;
- 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.V2beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow";
- option java_multiple_files = true;
- option java_outer_classname = "KnowledgeBaseProto";
- option java_package = "com.google.cloud.dialogflow.v2beta1";
- option objc_class_prefix = "DF";
- service KnowledgeBases {
- 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 ListKnowledgeBases(ListKnowledgeBasesRequest) returns (ListKnowledgeBasesResponse) {
- option (google.api.http) = {
- get: "/v2beta1/{parent=projects/*}/knowledgeBases"
- additional_bindings {
- get: "/v2beta1/{parent=projects/*/locations/*}/knowledgeBases"
- }
- additional_bindings {
- get: "/v2beta1/{parent=projects/*/agent}/knowledgeBases"
- }
- };
- option (google.api.method_signature) = "parent";
- }
-
-
-
-
- rpc GetKnowledgeBase(GetKnowledgeBaseRequest) returns (KnowledgeBase) {
- option (google.api.http) = {
- get: "/v2beta1/{name=projects/*/knowledgeBases/*}"
- additional_bindings {
- get: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*}"
- }
- additional_bindings {
- get: "/v2beta1/{name=projects/*/agent/knowledgeBases/*}"
- }
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
- rpc CreateKnowledgeBase(CreateKnowledgeBaseRequest) returns (KnowledgeBase) {
- option (google.api.http) = {
- post: "/v2beta1/{parent=projects/*}/knowledgeBases"
- body: "knowledge_base"
- additional_bindings {
- post: "/v2beta1/{parent=projects/*/locations/*}/knowledgeBases"
- body: "knowledge_base"
- }
- additional_bindings {
- post: "/v2beta1/{parent=projects/*/agent}/knowledgeBases"
- body: "knowledge_base"
- }
- };
- option (google.api.method_signature) = "parent,knowledge_base";
- }
-
-
-
-
- rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v2beta1/{name=projects/*/knowledgeBases/*}"
- additional_bindings {
- delete: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*}"
- }
- additional_bindings {
- delete: "/v2beta1/{name=projects/*/agent/knowledgeBases/*}"
- }
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
- rpc UpdateKnowledgeBase(UpdateKnowledgeBaseRequest) returns (KnowledgeBase) {
- option (google.api.http) = {
- patch: "/v2beta1/{knowledge_base.name=projects/*/knowledgeBases/*}"
- body: "knowledge_base"
- additional_bindings {
- patch: "/v2beta1/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}"
- body: "knowledge_base"
- }
- additional_bindings {
- patch: "/v2beta1/{knowledge_base.name=projects/*/agent/knowledgeBases/*}"
- body: "knowledge_base"
- }
- };
- option (google.api.method_signature) = "knowledge_base,update_mask";
- option (google.api.method_signature) = "knowledge_base";
- }
- }
- message KnowledgeBase {
- option (google.api.resource) = {
- type: "dialogflow.googleapis.com/KnowledgeBase"
- pattern: "projects/{project}/knowledgeBases/{knowledge_base}"
- pattern: "projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}"
- };
-
-
-
-
- string name = 1;
-
-
- string display_name = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string language_code = 4;
- }
- message ListKnowledgeBasesRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "dialogflow.googleapis.com/KnowledgeBase"
- }
- ];
-
-
- int32 page_size = 2;
-
- string page_token = 3;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string filter = 4;
- }
- message ListKnowledgeBasesResponse {
-
- repeated KnowledgeBase knowledge_bases = 1;
-
-
- string next_page_token = 2;
- }
- message GetKnowledgeBaseRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/KnowledgeBase"
- }
- ];
- }
- message CreateKnowledgeBaseRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "dialogflow.googleapis.com/KnowledgeBase"
- }
- ];
-
- KnowledgeBase knowledge_base = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteKnowledgeBaseRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dialogflow.googleapis.com/KnowledgeBase"
- }
- ];
-
-
- bool force = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message UpdateKnowledgeBaseRequest {
-
- KnowledgeBase knowledge_base = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL];
- }
|