user_feedback.proto 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.dataqna.v1alpha;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "UserFeedbackProto";
  22. option java_package = "com.google.cloud.dataqna.v1alpha";
  23. option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha";
  24. option ruby_package = "Google::Cloud::DataQnA::V1alpha";
  25. // Feedback provided by a user.
  26. message UserFeedback {
  27. option (google.api.resource) = {
  28. type: "dataqna.googleapis.com/UserFeedback"
  29. pattern: "projects/{project}/locations/{location}/questions/{question}/userFeedback"
  30. };
  31. // Enumeration of feedback ratings.
  32. enum UserFeedbackRating {
  33. // No rating was specified.
  34. USER_FEEDBACK_RATING_UNSPECIFIED = 0;
  35. // The user provided positive feedback.
  36. POSITIVE = 1;
  37. // The user provided negative feedback.
  38. NEGATIVE = 2;
  39. }
  40. // Required. The unique identifier for the user feedback.
  41. // User feedback is a singleton resource on a Question.
  42. // Example: `projects/foo/locations/bar/questions/1234/userFeedback`
  43. string name = 1 [(google.api.field_behavior) = REQUIRED];
  44. // Free form user feedback, such as a text box.
  45. string free_form_feedback = 2;
  46. // The user feedback rating
  47. UserFeedbackRating rating = 3;
  48. }