123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- syntax = "proto3";
- package google.cloud.dataqna.v1alpha;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/dataqna/v1alpha/annotated_string.proto";
- import "google/protobuf/any.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/status.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 = "QuestionProto";
- option java_package = "com.google.cloud.dataqna.v1alpha";
- option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha";
- option ruby_package = "Google::Cloud::DataQnA::V1alpha";
- message Question {
- option (google.api.resource) = {
- type: "dataqna.googleapis.com/Question"
- pattern: "projects/{project}/locations/{location}/questions/{question}"
- };
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
-
-
-
-
-
-
- repeated string scopes = 2 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
- string query = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.field_behavior) = IMMUTABLE
- ];
-
-
-
- repeated string data_source_annotations = 4;
-
-
-
-
-
-
-
- InterpretError interpret_error = 5;
-
- repeated Interpretation interpretations = 6;
-
- google.protobuf.Timestamp create_time = 7;
-
- string user_email = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- DebugFlags debug_flags = 9 [
- (google.api.field_behavior) = IMMUTABLE,
- (google.api.field_behavior) = INPUT_ONLY
- ];
-
-
-
-
- google.protobuf.Any debug_info = 10;
- }
- message InterpretError {
-
- message InterpretErrorDetails {
-
- InterpretUnsupportedDetails unsupported_details = 1;
-
- InterpretIncompleteQueryDetails incomplete_query_details = 2;
-
- InterpretAmbiguityDetails ambiguity_details = 3;
- }
-
- message InterpretUnsupportedDetails {
-
- repeated string operators = 1;
-
- repeated string intent = 2;
- }
-
- message InterpretIncompleteQueryDetails {
-
- repeated InterpretEntity entities = 1;
- }
-
-
- message InterpretAmbiguityDetails {
- }
-
-
- enum InterpretErrorCode {
-
- INTERPRET_ERROR_CODE_UNSPECIFIED = 0;
-
- INVALID_QUERY = 1;
-
-
- FAILED_TO_UNDERSTAND = 2;
-
-
-
- FAILED_TO_ANSWER = 3;
- }
-
- string message = 1;
-
- InterpretErrorCode code = 2;
-
- InterpretErrorDetails details = 3;
- }
- message ExecutionInfo {
-
- enum JobExecutionState {
-
- JOB_EXECUTION_STATE_UNSPECIFIED = 0;
-
- NOT_EXECUTED = 1;
-
- RUNNING = 2;
-
- SUCCEEDED = 3;
-
- FAILED = 4;
- }
-
- google.rpc.Status job_creation_status = 1;
-
- JobExecutionState job_execution_state = 2;
-
- google.protobuf.Timestamp create_time = 3;
-
-
-
- BigQueryJob bigquery_job = 4;
- }
- message BigQueryJob {
-
- string job_id = 1;
-
- string project_id = 2;
-
- string location = 3;
- }
- message Interpretation {
-
- repeated string data_sources = 1;
-
-
-
- double confidence = 2;
-
-
- repeated string unused_phrases = 3;
-
- HumanReadable human_readable = 4;
-
-
- InterpretationStructure interpretation_structure = 5;
-
- DataQuery data_query = 6;
-
-
- ExecutionInfo execution_info = 7;
- }
- message DataQuery {
-
- string sql = 1;
- }
- message HumanReadable {
-
- AnnotatedString generated_interpretation = 1;
-
- AnnotatedString original_question = 2;
- }
- message InterpretationStructure {
-
- message ColumnInfo {
-
-
- string output_alias = 1;
-
- string display_name = 2;
- }
-
- enum VisualizationType {
-
- VISUALIZATION_TYPE_UNSPECIFIED = 0;
-
- TABLE = 1;
-
-
- BAR_CHART = 2;
-
-
- COLUMN_CHART = 3;
-
-
- TIMELINE = 4;
-
-
- SCATTER_PLOT = 5;
-
-
- PIE_CHART = 6;
-
-
- LINE_CHART = 7;
-
-
- AREA_CHART = 8;
-
-
- COMBO_CHART = 9;
-
-
- HISTOGRAM = 10;
-
-
-
-
- GENERIC_CHART = 11;
-
-
-
- CHART_NOT_UNDERSTOOD = 12;
- }
-
-
- repeated VisualizationType visualization_types = 1;
-
-
- repeated ColumnInfo column_info = 2;
- }
- message DebugFlags {
-
- bool include_va_query = 1;
-
- bool include_nested_va_query = 2;
-
-
- bool include_human_interpretation = 3;
-
- bool include_aqua_debug_response = 4;
-
-
-
-
-
- int64 time_override = 5;
-
- bool is_internal_google_user = 6;
-
-
- bool ignore_cache = 7;
-
-
- bool include_search_entities_rpc = 8;
-
-
- bool include_list_column_annotations_rpc = 9;
-
- bool include_virtual_analyst_entities = 10;
-
- bool include_table_list = 11;
-
- bool include_domain_list = 12;
- }
- enum InterpretEntity {
-
- INTERPRET_ENTITY_UNSPECIFIED = 0;
-
- DIMENSION = 1;
-
- METRIC = 2;
- }
|