123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- syntax = "proto3";
- package google.cloud.dataqna.v1alpha;
- import "google/api/annotations.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dataqna/v1alpha/annotated_string.proto";
- import "google/api/client.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 = "AutoSuggestionServiceProto";
- option java_package = "com.google.cloud.dataqna.v1alpha";
- option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha";
- option ruby_package = "Google::Cloud::DataQnA::V1alpha";
- service AutoSuggestionService {
- option (google.api.default_host) = "dataqna.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
-
- rpc SuggestQueries(SuggestQueriesRequest) returns (SuggestQueriesResponse) {
- option (google.api.http) = {
- post: "/v1alpha/{parent=projects/*/locations/*}:suggestQueries"
- body: "*"
- };
- }
- }
- message SuggestQueriesRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
-
-
-
- repeated string scopes = 2;
-
-
-
-
- string query = 3;
-
-
-
-
-
- repeated SuggestionType suggestion_types = 4;
- }
- message Suggestion {
-
- SuggestionInfo suggestion_info = 1;
-
-
-
- double ranking_score = 2;
-
- SuggestionType suggestion_type = 3;
- }
- message SuggestionInfo {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- message MatchInfo {
-
- int32 start_char_index = 1;
-
- int32 length = 2;
- }
-
-
- AnnotatedString annotated_suggestion = 1;
-
- repeated MatchInfo query_matches = 2;
- }
- message SuggestQueriesResponse {
-
- repeated Suggestion suggestions = 1;
- }
- enum SuggestionType {
-
- SUGGESTION_TYPE_UNSPECIFIED = 0;
-
- ENTITY = 1;
-
- TEMPLATE = 2;
- }
|