1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteYqlRequest {
    #[prost(message, optional, tag = "1")]
    pub operation_params: ::core::option::Option<super::operations::OperationParams>,
    #[prost(string, tag = "2")]
    pub script: ::prost::alloc::string::String,
    #[prost(map = "string, message", tag = "3")]
    pub parameters: ::std::collections::HashMap<::prost::alloc::string::String, super::TypedValue>,
    #[prost(enumeration = "super::table::query_stats_collection::Mode", tag = "4")]
    pub collect_stats: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteYqlResponse {
    #[prost(message, optional, tag = "1")]
    pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteYqlResult {
    #[prost(message, repeated, tag = "1")]
    pub result_sets: ::prost::alloc::vec::Vec<super::ResultSet>,
    #[prost(message, optional, tag = "2")]
    pub query_stats: ::core::option::Option<super::table_stats::QueryStats>,
}
/// Response for StreamExecuteYql is a stream of ExecuteYqlPartialResponse messages.
/// These responses can contain ExecuteYqlPartialResult messages with
/// results (or result parts) for data or scan queries in the script.
/// YqlScript can have multiple results (result sets).
/// Each result set has an index (starting at 0).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteYqlPartialResponse {
    #[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
    pub status: i32,
    #[prost(message, repeated, tag = "2")]
    pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
    #[prost(message, optional, tag = "3")]
    pub result: ::core::option::Option<ExecuteYqlPartialResult>,
}
/// Contains result set (or a result set part) for one data or scan query in the script.
/// One result set can be split into several responses with same result_index.
/// Only the final response can contain query stats.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteYqlPartialResult {
    /// Index of current result
    #[prost(uint32, tag = "1")]
    pub result_set_index: u32,
    /// Result set (or a result set part) for one data or scan query
    #[prost(message, optional, tag = "2")]
    pub result_set: ::core::option::Option<super::ResultSet>,
    #[prost(message, optional, tag = "3")]
    pub query_stats: ::core::option::Option<super::table_stats::QueryStats>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExplainYqlRequest {
    #[prost(message, optional, tag = "1")]
    pub operation_params: ::core::option::Option<super::operations::OperationParams>,
    #[prost(string, tag = "2")]
    pub script: ::prost::alloc::string::String,
    #[prost(enumeration = "explain_yql_request::Mode", tag = "3")]
    pub mode: i32,
}
/// Nested message and enum types in `ExplainYqlRequest`.
pub mod explain_yql_request {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Mode {
        Unspecified = 0,
        /// PARSE = 1;
        Validate = 2,
        Plan = 3,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExplainYqlResponse {
    #[prost(message, optional, tag = "1")]
    pub operation: ::core::option::Option<super::operations::Operation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExplainYqlResult {
    #[prost(map = "string, message", tag = "1")]
    pub parameters_types: ::std::collections::HashMap<::prost::alloc::string::String, super::Type>,
    #[prost(string, tag = "2")]
    pub plan: ::prost::alloc::string::String,
}