123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- syntax = "proto3";
- package google.cloud.dataqna.v1alpha;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dataqna/v1alpha/question.proto";
- import "google/cloud/dataqna/v1alpha/user_feedback.proto";
- import "google/protobuf/field_mask.proto";
- option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna";
- option java_multiple_files = true;
- option java_outer_classname = "QuestionServiceProto";
- option java_package = "com.google.cloud.dataqna.v1alpha";
- option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha";
- option ruby_package = "Google::Cloud::DataQnA::V1alpha";
- service QuestionService {
- option (google.api.default_host) = "dataqna.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc GetQuestion(GetQuestionRequest) returns (Question) {
- option (google.api.http) = {
- get: "/v1alpha/{name=projects/*/locations/*/questions/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateQuestion(CreateQuestionRequest) returns (Question) {
- option (google.api.http) = {
- post: "/v1alpha/{parent=projects/*/locations/*}/questions"
- body: "question"
- };
- option (google.api.method_signature) = "parent,question";
- }
-
- rpc ExecuteQuestion(ExecuteQuestionRequest) returns (Question) {
- option (google.api.http) = {
- post: "/v1alpha/{name=projects/*/locations/*/questions/*}:execute"
- body: "*"
- };
- option (google.api.method_signature) = "name,interpretation_index";
- }
-
- rpc GetUserFeedback(GetUserFeedbackRequest) returns (UserFeedback) {
- option (google.api.http) = {
- get: "/v1alpha/{name=projects/*/locations/*/questions/*/userFeedback}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
- rpc UpdateUserFeedback(UpdateUserFeedbackRequest) returns (UserFeedback) {
- option (google.api.http) = {
- patch: "/v1alpha/{user_feedback.name=projects/*/locations/*/questions/*/userFeedback}"
- body: "user_feedback"
- };
- option (google.api.method_signature) = "user_feedback,update_mask";
- }
- }
- message GetQuestionRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataqna.googleapis.com/Question"
- }
- ];
-
- google.protobuf.FieldMask read_mask = 2;
- }
- message CreateQuestionRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
-
- Question question = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message ExecuteQuestionRequest {
-
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
- int32 interpretation_index = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message GetUserFeedbackRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataqna.googleapis.com/UserFeedback"
- }
- ];
- }
- message UpdateUserFeedbackRequest {
-
-
-
-
- UserFeedback user_feedback = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
|