1#[derive(serde::Serialize, serde::Deserialize)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct CreateSessionRequest {
6 #[prost(message, optional, tag = "1")]
7 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
8}
9#[derive(serde::Serialize, serde::Deserialize)]
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct CreateSessionResponse {
13 #[prost(message, optional, tag = "1")]
15 pub operation: ::core::option::Option<super::operations::Operation>,
16}
17#[derive(serde::Serialize, serde::Deserialize)]
18#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
19pub struct CreateSessionResult {
20 #[prost(string, tag = "1")]
22 pub session_id: ::prost::alloc::string::String,
23}
24#[derive(serde::Serialize, serde::Deserialize)]
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct DeleteSessionRequest {
28 #[prost(string, tag = "1")]
30 pub session_id: ::prost::alloc::string::String,
31 #[prost(message, optional, tag = "2")]
32 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
33}
34#[derive(serde::Serialize, serde::Deserialize)]
35#[derive(Clone, PartialEq, ::prost::Message)]
36pub struct DeleteSessionResponse {
37 #[prost(message, optional, tag = "1")]
38 pub operation: ::core::option::Option<super::operations::Operation>,
39}
40#[derive(serde::Serialize, serde::Deserialize)]
41#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
42pub struct GlobalIndex {}
43#[derive(serde::Serialize, serde::Deserialize)]
44#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
45pub struct GlobalAsyncIndex {}
46#[derive(serde::Serialize, serde::Deserialize)]
47#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
48pub struct GlobalUniqueIndex {}
49#[derive(serde::Serialize, serde::Deserialize)]
51#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
52pub struct TableIndex {
53 #[prost(string, tag = "1")]
55 pub name: ::prost::alloc::string::String,
56 #[prost(string, repeated, tag = "2")]
58 pub index_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
59 #[prost(string, repeated, tag = "5")]
61 pub data_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
62 #[prost(oneof = "table_index::Type", tags = "3, 4, 6")]
64 pub r#type: ::core::option::Option<table_index::Type>,
65}
66pub mod table_index {
68 #[derive(serde::Serialize, serde::Deserialize)]
70 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
71 pub enum Type {
72 #[prost(message, tag = "3")]
73 GlobalIndex(super::GlobalIndex),
74 #[prost(message, tag = "4")]
75 GlobalAsyncIndex(super::GlobalAsyncIndex),
76 #[prost(message, tag = "6")]
77 GlobalUniqueIndex(super::GlobalUniqueIndex),
78 }
79}
80#[derive(serde::Serialize, serde::Deserialize)]
82#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
83pub struct TableIndexDescription {
84 #[prost(string, tag = "1")]
86 pub name: ::prost::alloc::string::String,
87 #[prost(string, repeated, tag = "2")]
89 pub index_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
90 #[prost(enumeration = "table_index_description::Status", tag = "4")]
91 pub status: i32,
92 #[prost(string, repeated, tag = "6")]
94 pub data_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
95 #[prost(uint64, tag = "7")]
97 pub size_bytes: u64,
98 #[prost(oneof = "table_index_description::Type", tags = "3, 5, 8")]
100 pub r#type: ::core::option::Option<table_index_description::Type>,
101}
102pub mod table_index_description {
104 #[derive(serde::Serialize, serde::Deserialize)]
105 #[derive(
106 Clone,
107 Copy,
108 Debug,
109 PartialEq,
110 Eq,
111 Hash,
112 PartialOrd,
113 Ord,
114 ::prost::Enumeration
115 )]
116 #[repr(i32)]
117 pub enum Status {
118 Unspecified = 0,
119 Ready = 1,
121 Building = 2,
123 }
124 impl Status {
125 pub fn as_str_name(&self) -> &'static str {
129 match self {
130 Self::Unspecified => "STATUS_UNSPECIFIED",
131 Self::Ready => "STATUS_READY",
132 Self::Building => "STATUS_BUILDING",
133 }
134 }
135 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
137 match value {
138 "STATUS_UNSPECIFIED" => Some(Self::Unspecified),
139 "STATUS_READY" => Some(Self::Ready),
140 "STATUS_BUILDING" => Some(Self::Building),
141 _ => None,
142 }
143 }
144 }
145 #[derive(serde::Serialize, serde::Deserialize)]
147 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
148 pub enum Type {
149 #[prost(message, tag = "3")]
150 GlobalIndex(super::GlobalIndex),
151 #[prost(message, tag = "5")]
152 GlobalAsyncIndex(super::GlobalAsyncIndex),
153 #[prost(message, tag = "8")]
154 GlobalUniqueIndex(super::GlobalUniqueIndex),
155 }
156}
157#[derive(serde::Serialize, serde::Deserialize)]
159#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
160pub struct IndexBuildState {}
161pub mod index_build_state {
163 #[derive(serde::Serialize, serde::Deserialize)]
164 #[derive(
165 Clone,
166 Copy,
167 Debug,
168 PartialEq,
169 Eq,
170 Hash,
171 PartialOrd,
172 Ord,
173 ::prost::Enumeration
174 )]
175 #[repr(i32)]
176 pub enum State {
177 Unspecified = 0,
178 Preparing = 1,
179 TransferingData = 2,
180 Applying = 3,
181 Done = 4,
182 Cancellation = 5,
183 Cancelled = 6,
184 Rejection = 7,
185 Rejected = 8,
186 }
187 impl State {
188 pub fn as_str_name(&self) -> &'static str {
192 match self {
193 Self::Unspecified => "STATE_UNSPECIFIED",
194 Self::Preparing => "STATE_PREPARING",
195 Self::TransferingData => "STATE_TRANSFERING_DATA",
196 Self::Applying => "STATE_APPLYING",
197 Self::Done => "STATE_DONE",
198 Self::Cancellation => "STATE_CANCELLATION",
199 Self::Cancelled => "STATE_CANCELLED",
200 Self::Rejection => "STATE_REJECTION",
201 Self::Rejected => "STATE_REJECTED",
202 }
203 }
204 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
206 match value {
207 "STATE_UNSPECIFIED" => Some(Self::Unspecified),
208 "STATE_PREPARING" => Some(Self::Preparing),
209 "STATE_TRANSFERING_DATA" => Some(Self::TransferingData),
210 "STATE_APPLYING" => Some(Self::Applying),
211 "STATE_DONE" => Some(Self::Done),
212 "STATE_CANCELLATION" => Some(Self::Cancellation),
213 "STATE_CANCELLED" => Some(Self::Cancelled),
214 "STATE_REJECTION" => Some(Self::Rejection),
215 "STATE_REJECTED" => Some(Self::Rejected),
216 _ => None,
217 }
218 }
219 }
220}
221#[derive(serde::Serialize, serde::Deserialize)]
223#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
224pub struct IndexBuildDescription {
225 #[prost(string, tag = "1")]
226 pub path: ::prost::alloc::string::String,
227 #[prost(message, optional, tag = "2")]
228 pub index: ::core::option::Option<TableIndex>,
229}
230#[derive(serde::Serialize, serde::Deserialize)]
231#[derive(Clone, PartialEq, ::prost::Message)]
232pub struct IndexBuildMetadata {
233 #[prost(message, optional, tag = "1")]
234 pub description: ::core::option::Option<IndexBuildDescription>,
235 #[prost(enumeration = "index_build_state::State", tag = "2")]
236 pub state: i32,
237 #[prost(float, tag = "3")]
238 pub progress: f32,
239}
240#[derive(serde::Serialize, serde::Deserialize)]
241#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
242pub struct ChangefeedMode {}
243pub mod changefeed_mode {
245 #[derive(serde::Serialize, serde::Deserialize)]
246 #[derive(
247 Clone,
248 Copy,
249 Debug,
250 PartialEq,
251 Eq,
252 Hash,
253 PartialOrd,
254 Ord,
255 ::prost::Enumeration
256 )]
257 #[repr(i32)]
258 pub enum Mode {
259 Unspecified = 0,
260 KeysOnly = 1,
262 Updates = 2,
264 NewImage = 3,
266 OldImage = 4,
268 NewAndOldImages = 5,
270 }
271 impl Mode {
272 pub fn as_str_name(&self) -> &'static str {
276 match self {
277 Self::Unspecified => "MODE_UNSPECIFIED",
278 Self::KeysOnly => "MODE_KEYS_ONLY",
279 Self::Updates => "MODE_UPDATES",
280 Self::NewImage => "MODE_NEW_IMAGE",
281 Self::OldImage => "MODE_OLD_IMAGE",
282 Self::NewAndOldImages => "MODE_NEW_AND_OLD_IMAGES",
283 }
284 }
285 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
287 match value {
288 "MODE_UNSPECIFIED" => Some(Self::Unspecified),
289 "MODE_KEYS_ONLY" => Some(Self::KeysOnly),
290 "MODE_UPDATES" => Some(Self::Updates),
291 "MODE_NEW_IMAGE" => Some(Self::NewImage),
292 "MODE_OLD_IMAGE" => Some(Self::OldImage),
293 "MODE_NEW_AND_OLD_IMAGES" => Some(Self::NewAndOldImages),
294 _ => None,
295 }
296 }
297 }
298}
299#[derive(serde::Serialize, serde::Deserialize)]
300#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
301pub struct ChangefeedFormat {}
302pub mod changefeed_format {
304 #[derive(serde::Serialize, serde::Deserialize)]
305 #[derive(
306 Clone,
307 Copy,
308 Debug,
309 PartialEq,
310 Eq,
311 Hash,
312 PartialOrd,
313 Ord,
314 ::prost::Enumeration
315 )]
316 #[repr(i32)]
317 pub enum Format {
318 Unspecified = 0,
319 Json = 1,
321 DynamodbStreamsJson = 2,
323 DebeziumJson = 3,
325 }
326 impl Format {
327 pub fn as_str_name(&self) -> &'static str {
331 match self {
332 Self::Unspecified => "FORMAT_UNSPECIFIED",
333 Self::Json => "FORMAT_JSON",
334 Self::DynamodbStreamsJson => "FORMAT_DYNAMODB_STREAMS_JSON",
335 Self::DebeziumJson => "FORMAT_DEBEZIUM_JSON",
336 }
337 }
338 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
340 match value {
341 "FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
342 "FORMAT_JSON" => Some(Self::Json),
343 "FORMAT_DYNAMODB_STREAMS_JSON" => Some(Self::DynamodbStreamsJson),
344 "FORMAT_DEBEZIUM_JSON" => Some(Self::DebeziumJson),
345 _ => None,
346 }
347 }
348 }
349}
350#[derive(serde::Serialize, serde::Deserialize)]
351#[derive(Clone, PartialEq, ::prost::Message)]
352pub struct Changefeed {
353 #[prost(string, tag = "1")]
355 pub name: ::prost::alloc::string::String,
356 #[prost(enumeration = "changefeed_mode::Mode", tag = "2")]
358 pub mode: i32,
359 #[prost(enumeration = "changefeed_format::Format", tag = "3")]
361 pub format: i32,
362 #[prost(message, optional, tag = "4")]
364 pub retention_period: ::core::option::Option<
365 super::super::google::protobuf::Duration,
366 >,
367 #[prost(bool, tag = "5")]
369 pub virtual_timestamps: bool,
370 #[prost(bool, tag = "6")]
372 pub initial_scan: bool,
373 #[prost(map = "string, string", tag = "7")]
375 pub attributes: ::std::collections::HashMap<
376 ::prost::alloc::string::String,
377 ::prost::alloc::string::String,
378 >,
379 #[prost(string, tag = "8")]
381 pub aws_region: ::prost::alloc::string::String,
382 #[prost(message, optional, tag = "9")]
384 pub resolved_timestamps_interval: ::core::option::Option<
385 super::super::google::protobuf::Duration,
386 >,
387 #[prost(message, optional, tag = "10")]
389 pub topic_partitioning_settings: ::core::option::Option<
390 super::topic::PartitioningSettings,
391 >,
392}
393#[derive(serde::Serialize, serde::Deserialize)]
394#[derive(Clone, PartialEq, ::prost::Message)]
395pub struct ChangefeedDescription {
396 #[prost(string, tag = "1")]
398 pub name: ::prost::alloc::string::String,
399 #[prost(enumeration = "changefeed_mode::Mode", tag = "2")]
401 pub mode: i32,
402 #[prost(enumeration = "changefeed_format::Format", tag = "3")]
404 pub format: i32,
405 #[prost(enumeration = "changefeed_description::State", tag = "4")]
407 pub state: i32,
408 #[prost(bool, tag = "5")]
410 pub virtual_timestamps: bool,
411 #[prost(map = "string, string", tag = "6")]
413 pub attributes: ::std::collections::HashMap<
414 ::prost::alloc::string::String,
415 ::prost::alloc::string::String,
416 >,
417 #[prost(string, tag = "7")]
419 pub aws_region: ::prost::alloc::string::String,
420 #[prost(message, optional, tag = "8")]
422 pub resolved_timestamps_interval: ::core::option::Option<
423 super::super::google::protobuf::Duration,
424 >,
425}
426pub mod changefeed_description {
428 #[derive(serde::Serialize, serde::Deserialize)]
429 #[derive(
430 Clone,
431 Copy,
432 Debug,
433 PartialEq,
434 Eq,
435 Hash,
436 PartialOrd,
437 Ord,
438 ::prost::Enumeration
439 )]
440 #[repr(i32)]
441 pub enum State {
442 Unspecified = 0,
443 Enabled = 1,
445 Disabled = 2,
448 InitialScan = 3,
451 }
452 impl State {
453 pub fn as_str_name(&self) -> &'static str {
457 match self {
458 Self::Unspecified => "STATE_UNSPECIFIED",
459 Self::Enabled => "STATE_ENABLED",
460 Self::Disabled => "STATE_DISABLED",
461 Self::InitialScan => "STATE_INITIAL_SCAN",
462 }
463 }
464 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
466 match value {
467 "STATE_UNSPECIFIED" => Some(Self::Unspecified),
468 "STATE_ENABLED" => Some(Self::Enabled),
469 "STATE_DISABLED" => Some(Self::Disabled),
470 "STATE_INITIAL_SCAN" => Some(Self::InitialScan),
471 _ => None,
472 }
473 }
474 }
475}
476#[derive(serde::Serialize, serde::Deserialize)]
477#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
478pub struct StoragePool {
479 #[prost(string, tag = "1")]
480 pub media: ::prost::alloc::string::String,
481}
482#[derive(serde::Serialize, serde::Deserialize)]
483#[derive(Clone, PartialEq, ::prost::Message)]
484pub struct StoragePolicy {
485 #[prost(string, tag = "1")]
486 pub preset_name: ::prost::alloc::string::String,
487 #[prost(message, optional, tag = "2")]
488 pub syslog: ::core::option::Option<StoragePool>,
489 #[prost(message, optional, tag = "3")]
490 pub log: ::core::option::Option<StoragePool>,
491 #[prost(message, optional, tag = "4")]
492 pub data: ::core::option::Option<StoragePool>,
493 #[prost(message, optional, tag = "5")]
494 pub external: ::core::option::Option<StoragePool>,
495 #[prost(enumeration = "super::feature_flag::Status", tag = "6")]
496 pub keep_in_memory: i32,
497 #[prost(message, repeated, tag = "7")]
498 pub column_families: ::prost::alloc::vec::Vec<ColumnFamilyPolicy>,
499}
500#[derive(serde::Serialize, serde::Deserialize)]
501#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
502pub struct ColumnFamilyPolicy {
503 #[prost(string, tag = "1")]
506 pub name: ::prost::alloc::string::String,
507 #[prost(message, optional, tag = "2")]
509 pub data: ::core::option::Option<StoragePool>,
510 #[prost(message, optional, tag = "3")]
511 pub external: ::core::option::Option<StoragePool>,
512 #[prost(enumeration = "super::feature_flag::Status", tag = "4")]
515 pub keep_in_memory: i32,
516 #[prost(enumeration = "column_family_policy::Compression", tag = "5")]
518 pub compression: i32,
519}
520pub mod column_family_policy {
522 #[derive(serde::Serialize, serde::Deserialize)]
523 #[derive(
524 Clone,
525 Copy,
526 Debug,
527 PartialEq,
528 Eq,
529 Hash,
530 PartialOrd,
531 Ord,
532 ::prost::Enumeration
533 )]
534 #[repr(i32)]
535 pub enum Compression {
536 Unspecified = 0,
537 Uncompressed = 1,
538 Compressed = 2,
539 }
540 impl Compression {
541 pub fn as_str_name(&self) -> &'static str {
545 match self {
546 Self::Unspecified => "COMPRESSION_UNSPECIFIED",
547 Self::Uncompressed => "UNCOMPRESSED",
548 Self::Compressed => "COMPRESSED",
549 }
550 }
551 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
553 match value {
554 "COMPRESSION_UNSPECIFIED" => Some(Self::Unspecified),
555 "UNCOMPRESSED" => Some(Self::Uncompressed),
556 "COMPRESSED" => Some(Self::Compressed),
557 _ => None,
558 }
559 }
560 }
561}
562#[derive(serde::Serialize, serde::Deserialize)]
563#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
564pub struct CompactionPolicy {
565 #[prost(string, tag = "1")]
566 pub preset_name: ::prost::alloc::string::String,
567}
568#[derive(serde::Serialize, serde::Deserialize)]
569#[derive(Clone, PartialEq, ::prost::Message)]
570pub struct ExplicitPartitions {
571 #[prost(message, repeated, tag = "1")]
577 pub split_points: ::prost::alloc::vec::Vec<super::TypedValue>,
578}
579#[derive(serde::Serialize, serde::Deserialize)]
580#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
581pub struct PartitionStats {
582 #[prost(uint64, tag = "1")]
584 pub rows_estimate: u64,
585 #[prost(uint64, tag = "2")]
587 pub store_size: u64,
588 #[prost(uint32, tag = "3")]
590 pub leader_node_id: u32,
591}
592#[derive(serde::Serialize, serde::Deserialize)]
593#[derive(Clone, PartialEq, ::prost::Message)]
594pub struct TableStats {
595 #[prost(message, repeated, tag = "1")]
597 pub partition_stats: ::prost::alloc::vec::Vec<PartitionStats>,
598 #[prost(uint64, tag = "2")]
600 pub rows_estimate: u64,
601 #[prost(uint64, tag = "3")]
603 pub store_size: u64,
604 #[prost(uint64, tag = "4")]
606 pub partitions: u64,
607 #[prost(message, optional, tag = "5")]
609 pub creation_time: ::core::option::Option<super::super::google::protobuf::Timestamp>,
610 #[prost(message, optional, tag = "6")]
612 pub modification_time: ::core::option::Option<
613 super::super::google::protobuf::Timestamp,
614 >,
615}
616#[derive(serde::Serialize, serde::Deserialize)]
617#[derive(Clone, PartialEq, ::prost::Message)]
618pub struct PartitioningPolicy {
619 #[prost(string, tag = "1")]
620 pub preset_name: ::prost::alloc::string::String,
621 #[prost(enumeration = "partitioning_policy::AutoPartitioningPolicy", tag = "2")]
622 pub auto_partitioning: i32,
623 #[prost(oneof = "partitioning_policy::Partitions", tags = "3, 4")]
624 pub partitions: ::core::option::Option<partitioning_policy::Partitions>,
625}
626pub mod partitioning_policy {
628 #[derive(serde::Serialize, serde::Deserialize)]
629 #[derive(
630 Clone,
631 Copy,
632 Debug,
633 PartialEq,
634 Eq,
635 Hash,
636 PartialOrd,
637 Ord,
638 ::prost::Enumeration
639 )]
640 #[repr(i32)]
641 pub enum AutoPartitioningPolicy {
642 Unspecified = 0,
643 Disabled = 1,
644 AutoSplit = 2,
645 AutoSplitMerge = 3,
646 }
647 impl AutoPartitioningPolicy {
648 pub fn as_str_name(&self) -> &'static str {
652 match self {
653 Self::Unspecified => "AUTO_PARTITIONING_POLICY_UNSPECIFIED",
654 Self::Disabled => "DISABLED",
655 Self::AutoSplit => "AUTO_SPLIT",
656 Self::AutoSplitMerge => "AUTO_SPLIT_MERGE",
657 }
658 }
659 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
661 match value {
662 "AUTO_PARTITIONING_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
663 "DISABLED" => Some(Self::Disabled),
664 "AUTO_SPLIT" => Some(Self::AutoSplit),
665 "AUTO_SPLIT_MERGE" => Some(Self::AutoSplitMerge),
666 _ => None,
667 }
668 }
669 }
670 #[derive(serde::Serialize, serde::Deserialize)]
671 #[derive(Clone, PartialEq, ::prost::Oneof)]
672 pub enum Partitions {
673 #[prost(uint64, tag = "3")]
676 UniformPartitions(u64),
677 #[prost(message, tag = "4")]
680 ExplicitPartitions(super::ExplicitPartitions),
681 }
682}
683#[derive(serde::Serialize, serde::Deserialize)]
684#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
685pub struct ExecutionPolicy {
686 #[prost(string, tag = "1")]
687 pub preset_name: ::prost::alloc::string::String,
688}
689#[derive(serde::Serialize, serde::Deserialize)]
690#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
691pub struct ReplicationPolicy {
692 #[prost(string, tag = "1")]
693 pub preset_name: ::prost::alloc::string::String,
694 #[prost(uint32, tag = "2")]
698 pub replicas_count: u32,
699 #[prost(enumeration = "super::feature_flag::Status", tag = "3")]
702 pub create_per_availability_zone: i32,
703 #[prost(enumeration = "super::feature_flag::Status", tag = "4")]
706 pub allow_promotion: i32,
707}
708#[derive(serde::Serialize, serde::Deserialize)]
709#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
710pub struct CachingPolicy {
711 #[prost(string, tag = "1")]
712 pub preset_name: ::prost::alloc::string::String,
713}
714#[derive(serde::Serialize, serde::Deserialize)]
715#[derive(Clone, PartialEq, ::prost::Message)]
716pub struct TableProfile {
717 #[prost(string, tag = "1")]
718 pub preset_name: ::prost::alloc::string::String,
719 #[prost(message, optional, tag = "2")]
720 pub storage_policy: ::core::option::Option<StoragePolicy>,
721 #[prost(message, optional, tag = "3")]
722 pub compaction_policy: ::core::option::Option<CompactionPolicy>,
723 #[prost(message, optional, tag = "4")]
724 pub partitioning_policy: ::core::option::Option<PartitioningPolicy>,
725 #[prost(message, optional, tag = "5")]
726 pub execution_policy: ::core::option::Option<ExecutionPolicy>,
727 #[prost(message, optional, tag = "6")]
728 pub replication_policy: ::core::option::Option<ReplicationPolicy>,
729 #[prost(message, optional, tag = "7")]
730 pub caching_policy: ::core::option::Option<CachingPolicy>,
731}
732#[derive(serde::Serialize, serde::Deserialize)]
733#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
734pub struct SequenceDescription {
735 #[prost(string, optional, tag = "1")]
737 pub name: ::core::option::Option<::prost::alloc::string::String>,
738 #[prost(sint64, optional, tag = "2")]
740 pub min_value: ::core::option::Option<i64>,
741 #[prost(sint64, optional, tag = "3")]
743 pub max_value: ::core::option::Option<i64>,
744 #[prost(sint64, optional, tag = "4")]
746 pub start_value: ::core::option::Option<i64>,
747 #[prost(uint64, optional, tag = "5")]
749 pub cache: ::core::option::Option<u64>,
750 #[prost(sint64, optional, tag = "6")]
752 pub increment: ::core::option::Option<i64>,
753 #[prost(bool, optional, tag = "7")]
755 pub cycle: ::core::option::Option<bool>,
756 #[prost(message, optional, tag = "8")]
758 pub set_val: ::core::option::Option<sequence_description::SetVal>,
759}
760pub mod sequence_description {
762 #[derive(serde::Serialize, serde::Deserialize)]
763 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
764 pub struct SetVal {
765 #[prost(sint64, optional, tag = "1")]
766 pub next_value: ::core::option::Option<i64>,
767 #[prost(bool, optional, tag = "2")]
768 pub next_used: ::core::option::Option<bool>,
769 }
770}
771#[derive(serde::Serialize, serde::Deserialize)]
772#[derive(Clone, PartialEq, ::prost::Message)]
773pub struct ColumnMeta {
774 #[prost(string, tag = "1")]
776 pub name: ::prost::alloc::string::String,
777 #[prost(message, optional, tag = "2")]
779 pub r#type: ::core::option::Option<super::Type>,
780 #[prost(string, tag = "3")]
782 pub family: ::prost::alloc::string::String,
783 #[prost(bool, optional, tag = "4")]
785 pub not_null: ::core::option::Option<bool>,
786 #[prost(oneof = "column_meta::DefaultValue", tags = "5, 6")]
788 pub default_value: ::core::option::Option<column_meta::DefaultValue>,
789}
790pub mod column_meta {
792 #[derive(serde::Serialize, serde::Deserialize)]
794 #[derive(Clone, PartialEq, ::prost::Oneof)]
795 pub enum DefaultValue {
796 #[prost(message, tag = "5")]
797 FromLiteral(super::super::TypedValue),
798 #[prost(message, tag = "6")]
799 FromSequence(super::SequenceDescription),
800 }
801}
802#[derive(serde::Serialize, serde::Deserialize)]
807#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
808pub struct DateTypeColumnModeSettings {
809 #[prost(string, tag = "1")]
811 pub column_name: ::prost::alloc::string::String,
812 #[prost(uint32, tag = "2")]
813 pub expire_after_seconds: u32,
814}
815#[derive(serde::Serialize, serde::Deserialize)]
818#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
819pub struct ValueSinceUnixEpochModeSettings {
820 #[prost(string, tag = "1")]
825 pub column_name: ::prost::alloc::string::String,
826 #[prost(enumeration = "value_since_unix_epoch_mode_settings::Unit", tag = "2")]
828 pub column_unit: i32,
829 #[prost(uint32, tag = "3")]
832 pub expire_after_seconds: u32,
833}
834pub mod value_since_unix_epoch_mode_settings {
836 #[derive(serde::Serialize, serde::Deserialize)]
837 #[derive(
838 Clone,
839 Copy,
840 Debug,
841 PartialEq,
842 Eq,
843 Hash,
844 PartialOrd,
845 Ord,
846 ::prost::Enumeration
847 )]
848 #[repr(i32)]
849 pub enum Unit {
850 Unspecified = 0,
851 Seconds = 1,
852 Milliseconds = 2,
853 Microseconds = 3,
854 Nanoseconds = 4,
855 }
856 impl Unit {
857 pub fn as_str_name(&self) -> &'static str {
861 match self {
862 Self::Unspecified => "UNIT_UNSPECIFIED",
863 Self::Seconds => "UNIT_SECONDS",
864 Self::Milliseconds => "UNIT_MILLISECONDS",
865 Self::Microseconds => "UNIT_MICROSECONDS",
866 Self::Nanoseconds => "UNIT_NANOSECONDS",
867 }
868 }
869 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
871 match value {
872 "UNIT_UNSPECIFIED" => Some(Self::Unspecified),
873 "UNIT_SECONDS" => Some(Self::Seconds),
874 "UNIT_MILLISECONDS" => Some(Self::Milliseconds),
875 "UNIT_MICROSECONDS" => Some(Self::Microseconds),
876 "UNIT_NANOSECONDS" => Some(Self::Nanoseconds),
877 _ => None,
878 }
879 }
880 }
881}
882#[derive(serde::Serialize, serde::Deserialize)]
883#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
884pub struct TtlSettings {
885 #[prost(uint32, tag = "3")]
888 pub run_interval_seconds: u32,
889 #[prost(oneof = "ttl_settings::Mode", tags = "1, 2")]
890 pub mode: ::core::option::Option<ttl_settings::Mode>,
891}
892pub mod ttl_settings {
894 #[derive(serde::Serialize, serde::Deserialize)]
895 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
896 pub enum Mode {
897 #[prost(message, tag = "1")]
898 DateTypeColumn(super::DateTypeColumnModeSettings),
899 #[prost(message, tag = "2")]
900 ValueSinceUnixEpoch(super::ValueSinceUnixEpochModeSettings),
901 }
902}
903#[derive(serde::Serialize, serde::Deserialize)]
904#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
905pub struct StorageSettings {
906 #[prost(message, optional, tag = "1")]
909 pub tablet_commit_log0: ::core::option::Option<StoragePool>,
910 #[prost(message, optional, tag = "2")]
913 pub tablet_commit_log1: ::core::option::Option<StoragePool>,
914 #[prost(message, optional, tag = "4")]
916 pub external: ::core::option::Option<StoragePool>,
917 #[prost(enumeration = "super::feature_flag::Status", tag = "5")]
924 pub store_external_blobs: i32,
925}
926#[derive(serde::Serialize, serde::Deserialize)]
927#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
928pub struct ColumnFamily {
929 #[prost(string, tag = "1")]
932 pub name: ::prost::alloc::string::String,
933 #[prost(message, optional, tag = "2")]
935 pub data: ::core::option::Option<StoragePool>,
936 #[prost(enumeration = "column_family::Compression", tag = "3")]
938 pub compression: i32,
939 #[prost(enumeration = "super::feature_flag::Status", tag = "4")]
942 pub keep_in_memory: i32,
943}
944pub mod column_family {
946 #[derive(serde::Serialize, serde::Deserialize)]
947 #[derive(
948 Clone,
949 Copy,
950 Debug,
951 PartialEq,
952 Eq,
953 Hash,
954 PartialOrd,
955 Ord,
956 ::prost::Enumeration
957 )]
958 #[repr(i32)]
959 pub enum Compression {
960 Unspecified = 0,
961 None = 1,
962 Lz4 = 2,
963 }
964 impl Compression {
965 pub fn as_str_name(&self) -> &'static str {
969 match self {
970 Self::Unspecified => "COMPRESSION_UNSPECIFIED",
971 Self::None => "COMPRESSION_NONE",
972 Self::Lz4 => "COMPRESSION_LZ4",
973 }
974 }
975 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
977 match value {
978 "COMPRESSION_UNSPECIFIED" => Some(Self::Unspecified),
979 "COMPRESSION_NONE" => Some(Self::None),
980 "COMPRESSION_LZ4" => Some(Self::Lz4),
981 _ => None,
982 }
983 }
984 }
985}
986#[derive(serde::Serialize, serde::Deserialize)]
987#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
988pub struct PartitioningSettings {
989 #[prost(string, repeated, tag = "1")]
991 pub partition_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
992 #[prost(enumeration = "super::feature_flag::Status", tag = "2")]
994 pub partitioning_by_size: i32,
995 #[prost(uint64, tag = "3")]
997 pub partition_size_mb: u64,
998 #[prost(enumeration = "super::feature_flag::Status", tag = "4")]
1000 pub partitioning_by_load: i32,
1001 #[prost(uint64, tag = "6")]
1003 pub min_partitions_count: u64,
1004 #[prost(uint64, tag = "7")]
1006 pub max_partitions_count: u64,
1007}
1008#[derive(serde::Serialize, serde::Deserialize)]
1009#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1010pub struct AzReadReplicasSettings {
1011 #[prost(string, tag = "1")]
1013 pub name: ::prost::alloc::string::String,
1014 #[prost(uint64, tag = "2")]
1016 pub read_replicas_count: u64,
1017}
1018#[derive(serde::Serialize, serde::Deserialize)]
1019#[derive(Clone, PartialEq, ::prost::Message)]
1020pub struct ClusterReplicasSettings {
1021 #[prost(message, repeated, tag = "2")]
1023 pub az_read_replicas_settings: ::prost::alloc::vec::Vec<AzReadReplicasSettings>,
1024}
1025#[derive(serde::Serialize, serde::Deserialize)]
1026#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1027pub struct ReadReplicasSettings {
1028 #[prost(oneof = "read_replicas_settings::Settings", tags = "1, 2")]
1029 pub settings: ::core::option::Option<read_replicas_settings::Settings>,
1030}
1031pub mod read_replicas_settings {
1033 #[derive(serde::Serialize, serde::Deserialize)]
1034 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
1035 pub enum Settings {
1036 #[prost(uint64, tag = "1")]
1038 PerAzReadReplicasCount(u64),
1039 #[prost(uint64, tag = "2")]
1041 AnyAzReadReplicasCount(u64),
1042 }
1043}
1044#[derive(serde::Serialize, serde::Deserialize)]
1045#[derive(Clone, PartialEq, ::prost::Message)]
1046pub struct CreateTableRequest {
1047 #[prost(string, tag = "1")]
1049 pub session_id: ::prost::alloc::string::String,
1050 #[prost(string, tag = "2")]
1052 pub path: ::prost::alloc::string::String,
1053 #[prost(message, repeated, tag = "3")]
1055 pub columns: ::prost::alloc::vec::Vec<ColumnMeta>,
1056 #[prost(string, repeated, tag = "4")]
1058 pub primary_key: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1059 #[prost(message, optional, tag = "5")]
1061 pub profile: ::core::option::Option<TableProfile>,
1062 #[prost(message, optional, tag = "6")]
1063 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1064 #[prost(message, repeated, tag = "7")]
1066 pub indexes: ::prost::alloc::vec::Vec<TableIndex>,
1067 #[prost(message, optional, tag = "8")]
1069 pub ttl_settings: ::core::option::Option<TtlSettings>,
1070 #[prost(message, optional, tag = "9")]
1072 pub storage_settings: ::core::option::Option<StorageSettings>,
1073 #[prost(message, repeated, tag = "10")]
1075 pub column_families: ::prost::alloc::vec::Vec<ColumnFamily>,
1076 #[prost(map = "string, string", tag = "11")]
1078 pub attributes: ::std::collections::HashMap<
1079 ::prost::alloc::string::String,
1080 ::prost::alloc::string::String,
1081 >,
1082 #[prost(string, tag = "12")]
1084 pub compaction_policy: ::prost::alloc::string::String,
1085 #[prost(message, optional, tag = "15")]
1087 pub partitioning_settings: ::core::option::Option<PartitioningSettings>,
1088 #[prost(enumeration = "super::feature_flag::Status", tag = "16")]
1090 pub key_bloom_filter: i32,
1091 #[prost(message, optional, tag = "17")]
1093 pub read_replicas_settings: ::core::option::Option<ReadReplicasSettings>,
1094 #[prost(string, tag = "18")]
1096 pub tiering: ::prost::alloc::string::String,
1097 #[prost(bool, tag = "19")]
1099 pub temporary: bool,
1100 #[prost(enumeration = "StoreType", tag = "20")]
1102 pub store_type: i32,
1103 #[prost(oneof = "create_table_request::Partitions", tags = "13, 14")]
1105 pub partitions: ::core::option::Option<create_table_request::Partitions>,
1106}
1107pub mod create_table_request {
1109 #[derive(serde::Serialize, serde::Deserialize)]
1111 #[derive(Clone, PartialEq, ::prost::Oneof)]
1112 pub enum Partitions {
1113 #[prost(uint64, tag = "13")]
1116 UniformPartitions(u64),
1117 #[prost(message, tag = "14")]
1119 PartitionAtKeys(super::ExplicitPartitions),
1120 }
1121}
1122#[derive(serde::Serialize, serde::Deserialize)]
1123#[derive(Clone, PartialEq, ::prost::Message)]
1124pub struct CreateTableResponse {
1125 #[prost(message, optional, tag = "1")]
1126 pub operation: ::core::option::Option<super::operations::Operation>,
1127}
1128#[derive(serde::Serialize, serde::Deserialize)]
1130#[derive(Clone, PartialEq, ::prost::Message)]
1131pub struct DropTableRequest {
1132 #[prost(string, tag = "1")]
1134 pub session_id: ::prost::alloc::string::String,
1135 #[prost(string, tag = "2")]
1137 pub path: ::prost::alloc::string::String,
1138 #[prost(message, optional, tag = "4")]
1139 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1140}
1141#[derive(serde::Serialize, serde::Deserialize)]
1142#[derive(Clone, PartialEq, ::prost::Message)]
1143pub struct DropTableResponse {
1144 #[prost(message, optional, tag = "1")]
1145 pub operation: ::core::option::Option<super::operations::Operation>,
1146}
1147#[derive(serde::Serialize, serde::Deserialize)]
1148#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1149pub struct RenameIndexItem {
1150 #[prost(string, tag = "1")]
1152 pub source_name: ::prost::alloc::string::String,
1153 #[prost(string, tag = "2")]
1155 pub destination_name: ::prost::alloc::string::String,
1156 #[prost(bool, tag = "3")]
1158 pub replace_destination: bool,
1159}
1160#[derive(serde::Serialize, serde::Deserialize)]
1162#[derive(Clone, PartialEq, ::prost::Message)]
1163pub struct AlterTableRequest {
1164 #[prost(string, tag = "1")]
1166 pub session_id: ::prost::alloc::string::String,
1167 #[prost(string, tag = "2")]
1169 pub path: ::prost::alloc::string::String,
1170 #[prost(message, repeated, tag = "3")]
1172 pub add_columns: ::prost::alloc::vec::Vec<ColumnMeta>,
1173 #[prost(string, repeated, tag = "4")]
1175 pub drop_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1176 #[prost(message, optional, tag = "5")]
1177 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1178 #[prost(message, repeated, tag = "6")]
1180 pub alter_columns: ::prost::alloc::vec::Vec<ColumnMeta>,
1181 #[prost(message, repeated, tag = "9")]
1183 pub add_indexes: ::prost::alloc::vec::Vec<TableIndex>,
1184 #[prost(string, repeated, tag = "10")]
1186 pub drop_indexes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1187 #[prost(message, optional, tag = "11")]
1189 pub alter_storage_settings: ::core::option::Option<StorageSettings>,
1190 #[prost(message, repeated, tag = "12")]
1192 pub add_column_families: ::prost::alloc::vec::Vec<ColumnFamily>,
1193 #[prost(message, repeated, tag = "13")]
1194 pub alter_column_families: ::prost::alloc::vec::Vec<ColumnFamily>,
1195 #[prost(map = "string, string", tag = "14")]
1198 pub alter_attributes: ::std::collections::HashMap<
1199 ::prost::alloc::string::String,
1200 ::prost::alloc::string::String,
1201 >,
1202 #[prost(string, tag = "15")]
1205 pub set_compaction_policy: ::prost::alloc::string::String,
1206 #[prost(message, optional, tag = "16")]
1208 pub alter_partitioning_settings: ::core::option::Option<PartitioningSettings>,
1209 #[prost(enumeration = "super::feature_flag::Status", tag = "17")]
1211 pub set_key_bloom_filter: i32,
1212 #[prost(message, optional, tag = "18")]
1214 pub set_read_replicas_settings: ::core::option::Option<ReadReplicasSettings>,
1215 #[prost(message, repeated, tag = "19")]
1217 pub add_changefeeds: ::prost::alloc::vec::Vec<Changefeed>,
1218 #[prost(string, repeated, tag = "20")]
1220 pub drop_changefeeds: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1221 #[prost(message, repeated, tag = "21")]
1223 pub rename_indexes: ::prost::alloc::vec::Vec<RenameIndexItem>,
1224 #[prost(oneof = "alter_table_request::TtlAction", tags = "7, 8")]
1226 pub ttl_action: ::core::option::Option<alter_table_request::TtlAction>,
1227 #[prost(oneof = "alter_table_request::TieringAction", tags = "22, 23")]
1229 pub tiering_action: ::core::option::Option<alter_table_request::TieringAction>,
1230}
1231pub mod alter_table_request {
1233 #[derive(serde::Serialize, serde::Deserialize)]
1235 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1236 pub enum TtlAction {
1237 #[prost(message, tag = "7")]
1238 SetTtlSettings(super::TtlSettings),
1239 #[prost(message, tag = "8")]
1240 DropTtlSettings(super::super::super::google::protobuf::Empty),
1241 }
1242 #[derive(serde::Serialize, serde::Deserialize)]
1244 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1245 pub enum TieringAction {
1246 #[prost(string, tag = "22")]
1247 SetTiering(::prost::alloc::string::String),
1248 #[prost(message, tag = "23")]
1249 DropTiering(super::super::super::google::protobuf::Empty),
1250 }
1251}
1252#[derive(serde::Serialize, serde::Deserialize)]
1253#[derive(Clone, PartialEq, ::prost::Message)]
1254pub struct AlterTableResponse {
1255 #[prost(message, optional, tag = "1")]
1256 pub operation: ::core::option::Option<super::operations::Operation>,
1257}
1258#[derive(serde::Serialize, serde::Deserialize)]
1260#[derive(Clone, PartialEq, ::prost::Message)]
1261pub struct CopyTableRequest {
1262 #[prost(string, tag = "1")]
1264 pub session_id: ::prost::alloc::string::String,
1265 #[prost(string, tag = "2")]
1267 pub source_path: ::prost::alloc::string::String,
1268 #[prost(string, tag = "3")]
1270 pub destination_path: ::prost::alloc::string::String,
1271 #[prost(message, optional, tag = "4")]
1272 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1273}
1274#[derive(serde::Serialize, serde::Deserialize)]
1275#[derive(Clone, PartialEq, ::prost::Message)]
1276pub struct CopyTableResponse {
1277 #[prost(message, optional, tag = "1")]
1278 pub operation: ::core::option::Option<super::operations::Operation>,
1279}
1280#[derive(serde::Serialize, serde::Deserialize)]
1281#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1282pub struct CopyTableItem {
1283 #[prost(string, tag = "1")]
1285 pub source_path: ::prost::alloc::string::String,
1286 #[prost(string, tag = "2")]
1288 pub destination_path: ::prost::alloc::string::String,
1289 #[prost(bool, tag = "3")]
1291 pub omit_indexes: bool,
1292}
1293#[derive(serde::Serialize, serde::Deserialize)]
1295#[derive(Clone, PartialEq, ::prost::Message)]
1296pub struct CopyTablesRequest {
1297 #[prost(message, optional, tag = "1")]
1298 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1299 #[prost(string, tag = "2")]
1301 pub session_id: ::prost::alloc::string::String,
1302 #[prost(message, repeated, tag = "3")]
1304 pub tables: ::prost::alloc::vec::Vec<CopyTableItem>,
1305}
1306#[derive(serde::Serialize, serde::Deserialize)]
1307#[derive(Clone, PartialEq, ::prost::Message)]
1308pub struct CopyTablesResponse {
1309 #[prost(message, optional, tag = "1")]
1310 pub operation: ::core::option::Option<super::operations::Operation>,
1311}
1312#[derive(serde::Serialize, serde::Deserialize)]
1313#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1314pub struct RenameTableItem {
1315 #[prost(string, tag = "1")]
1317 pub source_path: ::prost::alloc::string::String,
1318 #[prost(string, tag = "2")]
1320 pub destination_path: ::prost::alloc::string::String,
1321 #[prost(bool, tag = "3")]
1323 pub replace_destination: bool,
1324}
1325#[derive(serde::Serialize, serde::Deserialize)]
1327#[derive(Clone, PartialEq, ::prost::Message)]
1328pub struct RenameTablesRequest {
1329 #[prost(message, optional, tag = "1")]
1330 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1331 #[prost(string, tag = "2")]
1333 pub session_id: ::prost::alloc::string::String,
1334 #[prost(message, repeated, tag = "3")]
1336 pub tables: ::prost::alloc::vec::Vec<RenameTableItem>,
1337}
1338#[derive(serde::Serialize, serde::Deserialize)]
1339#[derive(Clone, PartialEq, ::prost::Message)]
1340pub struct RenameTablesResponse {
1341 #[prost(message, optional, tag = "1")]
1342 pub operation: ::core::option::Option<super::operations::Operation>,
1343}
1344#[derive(serde::Serialize, serde::Deserialize)]
1346#[derive(Clone, PartialEq, ::prost::Message)]
1347pub struct DescribeTableRequest {
1348 #[prost(string, tag = "1")]
1350 pub session_id: ::prost::alloc::string::String,
1351 #[prost(string, tag = "2")]
1353 pub path: ::prost::alloc::string::String,
1354 #[prost(message, optional, tag = "4")]
1355 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1356 #[prost(bool, tag = "5")]
1358 pub include_shard_key_bounds: bool,
1359 #[prost(bool, tag = "6")]
1361 pub include_table_stats: bool,
1362 #[prost(bool, tag = "7")]
1364 pub include_partition_stats: bool,
1365 #[prost(bool, tag = "9")]
1367 pub include_shard_nodes_info: bool,
1368}
1369#[derive(serde::Serialize, serde::Deserialize)]
1370#[derive(Clone, PartialEq, ::prost::Message)]
1371pub struct DescribeTableResponse {
1372 #[prost(message, optional, tag = "1")]
1374 pub operation: ::core::option::Option<super::operations::Operation>,
1375}
1376#[derive(serde::Serialize, serde::Deserialize)]
1377#[derive(Clone, PartialEq, ::prost::Message)]
1378pub struct DescribeTableResult {
1379 #[prost(message, optional, tag = "1")]
1381 pub self_: ::core::option::Option<super::scheme::Entry>,
1382 #[prost(message, repeated, tag = "2")]
1384 pub columns: ::prost::alloc::vec::Vec<ColumnMeta>,
1385 #[prost(string, repeated, tag = "3")]
1387 pub primary_key: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1388 #[prost(message, repeated, tag = "4")]
1390 pub shard_key_bounds: ::prost::alloc::vec::Vec<super::TypedValue>,
1391 #[prost(message, repeated, tag = "5")]
1393 pub indexes: ::prost::alloc::vec::Vec<TableIndexDescription>,
1394 #[prost(message, optional, tag = "6")]
1396 pub table_stats: ::core::option::Option<TableStats>,
1397 #[prost(message, optional, tag = "7")]
1399 pub ttl_settings: ::core::option::Option<TtlSettings>,
1400 #[prost(message, optional, tag = "8")]
1402 pub storage_settings: ::core::option::Option<StorageSettings>,
1403 #[prost(message, repeated, tag = "9")]
1405 pub column_families: ::prost::alloc::vec::Vec<ColumnFamily>,
1406 #[prost(map = "string, string", tag = "10")]
1408 pub attributes: ::std::collections::HashMap<
1409 ::prost::alloc::string::String,
1410 ::prost::alloc::string::String,
1411 >,
1412 #[prost(message, optional, tag = "12")]
1414 pub partitioning_settings: ::core::option::Option<PartitioningSettings>,
1415 #[prost(enumeration = "super::feature_flag::Status", tag = "13")]
1417 pub key_bloom_filter: i32,
1418 #[prost(message, optional, tag = "14")]
1420 pub read_replicas_settings: ::core::option::Option<ReadReplicasSettings>,
1421 #[prost(message, repeated, tag = "15")]
1423 pub changefeeds: ::prost::alloc::vec::Vec<ChangefeedDescription>,
1424 #[prost(string, tag = "16")]
1426 pub tiering: ::prost::alloc::string::String,
1427 #[prost(bool, tag = "17")]
1429 pub temporary: bool,
1430 #[prost(enumeration = "StoreType", tag = "18")]
1432 pub store_type: i32,
1433}
1434#[derive(serde::Serialize, serde::Deserialize)]
1435#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1436pub struct Query {
1437 #[prost(oneof = "query::Query", tags = "1, 2")]
1439 pub query: ::core::option::Option<query::Query>,
1440}
1441pub mod query {
1443 #[derive(serde::Serialize, serde::Deserialize)]
1445 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1446 pub enum Query {
1447 #[prost(string, tag = "1")]
1449 YqlText(::prost::alloc::string::String),
1450 #[prost(string, tag = "2")]
1452 Id(::prost::alloc::string::String),
1453 }
1454}
1455#[derive(serde::Serialize, serde::Deserialize)]
1456#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1457pub struct SerializableModeSettings {}
1458#[derive(serde::Serialize, serde::Deserialize)]
1459#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1460pub struct OnlineModeSettings {
1461 #[prost(bool, tag = "1")]
1462 pub allow_inconsistent_reads: bool,
1463}
1464#[derive(serde::Serialize, serde::Deserialize)]
1465#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1466pub struct StaleModeSettings {}
1467#[derive(serde::Serialize, serde::Deserialize)]
1468#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1469pub struct SnapshotModeSettings {}
1470#[derive(serde::Serialize, serde::Deserialize)]
1471#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1472pub struct TransactionSettings {
1473 #[prost(oneof = "transaction_settings::TxMode", tags = "1, 2, 3, 4")]
1474 pub tx_mode: ::core::option::Option<transaction_settings::TxMode>,
1475}
1476pub mod transaction_settings {
1478 #[derive(serde::Serialize, serde::Deserialize)]
1479 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
1480 pub enum TxMode {
1481 #[prost(message, tag = "1")]
1482 SerializableReadWrite(super::SerializableModeSettings),
1483 #[prost(message, tag = "2")]
1484 OnlineReadOnly(super::OnlineModeSettings),
1485 #[prost(message, tag = "3")]
1486 StaleReadOnly(super::StaleModeSettings),
1487 #[prost(message, tag = "4")]
1488 SnapshotReadOnly(super::SnapshotModeSettings),
1489 }
1490}
1491#[derive(serde::Serialize, serde::Deserialize)]
1492#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1493pub struct TransactionControl {
1494 #[prost(bool, tag = "10")]
1495 pub commit_tx: bool,
1496 #[prost(oneof = "transaction_control::TxSelector", tags = "1, 2")]
1497 pub tx_selector: ::core::option::Option<transaction_control::TxSelector>,
1498}
1499pub mod transaction_control {
1501 #[derive(serde::Serialize, serde::Deserialize)]
1502 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1503 pub enum TxSelector {
1504 #[prost(string, tag = "1")]
1505 TxId(::prost::alloc::string::String),
1506 #[prost(message, tag = "2")]
1507 BeginTx(super::TransactionSettings),
1508 }
1509}
1510#[derive(serde::Serialize, serde::Deserialize)]
1511#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1512pub struct QueryCachePolicy {
1513 #[prost(bool, tag = "1")]
1514 pub keep_in_cache: bool,
1515}
1516#[derive(serde::Serialize, serde::Deserialize)]
1518#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1519pub struct QueryStatsCollection {}
1520pub mod query_stats_collection {
1522 #[derive(serde::Serialize, serde::Deserialize)]
1523 #[derive(
1524 Clone,
1525 Copy,
1526 Debug,
1527 PartialEq,
1528 Eq,
1529 Hash,
1530 PartialOrd,
1531 Ord,
1532 ::prost::Enumeration
1533 )]
1534 #[repr(i32)]
1535 pub enum Mode {
1536 StatsCollectionUnspecified = 0,
1537 StatsCollectionNone = 1,
1539 StatsCollectionBasic = 2,
1541 StatsCollectionFull = 3,
1543 StatsCollectionProfile = 4,
1545 }
1546 impl Mode {
1547 pub fn as_str_name(&self) -> &'static str {
1551 match self {
1552 Self::StatsCollectionUnspecified => "STATS_COLLECTION_UNSPECIFIED",
1553 Self::StatsCollectionNone => "STATS_COLLECTION_NONE",
1554 Self::StatsCollectionBasic => "STATS_COLLECTION_BASIC",
1555 Self::StatsCollectionFull => "STATS_COLLECTION_FULL",
1556 Self::StatsCollectionProfile => "STATS_COLLECTION_PROFILE",
1557 }
1558 }
1559 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1561 match value {
1562 "STATS_COLLECTION_UNSPECIFIED" => Some(Self::StatsCollectionUnspecified),
1563 "STATS_COLLECTION_NONE" => Some(Self::StatsCollectionNone),
1564 "STATS_COLLECTION_BASIC" => Some(Self::StatsCollectionBasic),
1565 "STATS_COLLECTION_FULL" => Some(Self::StatsCollectionFull),
1566 "STATS_COLLECTION_PROFILE" => Some(Self::StatsCollectionProfile),
1567 _ => None,
1568 }
1569 }
1570 }
1571}
1572#[derive(serde::Serialize, serde::Deserialize)]
1573#[derive(Clone, PartialEq, ::prost::Message)]
1574pub struct ExecuteDataQueryRequest {
1575 #[prost(string, tag = "1")]
1577 pub session_id: ::prost::alloc::string::String,
1578 #[prost(message, optional, tag = "2")]
1579 pub tx_control: ::core::option::Option<TransactionControl>,
1580 #[prost(message, optional, tag = "3")]
1581 pub query: ::core::option::Option<Query>,
1582 #[prost(map = "string, message", tag = "4")]
1584 pub parameters: ::std::collections::HashMap<
1585 ::prost::alloc::string::String,
1586 super::TypedValue,
1587 >,
1588 #[prost(message, optional, tag = "5")]
1589 pub query_cache_policy: ::core::option::Option<QueryCachePolicy>,
1590 #[prost(message, optional, tag = "6")]
1591 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1592 #[prost(enumeration = "query_stats_collection::Mode", tag = "7")]
1593 pub collect_stats: i32,
1594}
1595#[derive(serde::Serialize, serde::Deserialize)]
1596#[derive(Clone, PartialEq, ::prost::Message)]
1597pub struct ExecuteDataQueryResponse {
1598 #[prost(message, optional, tag = "1")]
1599 pub operation: ::core::option::Option<super::operations::Operation>,
1600}
1601#[derive(serde::Serialize, serde::Deserialize)]
1602#[derive(Clone, PartialEq, ::prost::Message)]
1603pub struct ExecuteSchemeQueryRequest {
1604 #[prost(string, tag = "1")]
1606 pub session_id: ::prost::alloc::string::String,
1607 #[prost(string, tag = "2")]
1609 pub yql_text: ::prost::alloc::string::String,
1610 #[prost(message, optional, tag = "3")]
1611 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1612}
1613#[derive(serde::Serialize, serde::Deserialize)]
1614#[derive(Clone, PartialEq, ::prost::Message)]
1615pub struct ExecuteSchemeQueryResponse {
1616 #[prost(message, optional, tag = "1")]
1617 pub operation: ::core::option::Option<super::operations::Operation>,
1618}
1619#[derive(serde::Serialize, serde::Deserialize)]
1621#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1622pub struct TransactionMeta {
1623 #[prost(string, tag = "1")]
1625 pub id: ::prost::alloc::string::String,
1626}
1627#[derive(serde::Serialize, serde::Deserialize)]
1629#[derive(Clone, PartialEq, ::prost::Message)]
1630pub struct QueryMeta {
1631 #[prost(string, tag = "1")]
1633 pub id: ::prost::alloc::string::String,
1634 #[prost(map = "string, message", tag = "2")]
1636 pub parameters_types: ::std::collections::HashMap<
1637 ::prost::alloc::string::String,
1638 super::Type,
1639 >,
1640}
1641#[derive(serde::Serialize, serde::Deserialize)]
1643#[derive(Clone, PartialEq, ::prost::Message)]
1644pub struct ExecuteQueryResult {
1645 #[prost(message, repeated, tag = "1")]
1647 pub result_sets: ::prost::alloc::vec::Vec<super::ResultSet>,
1648 #[prost(message, optional, tag = "2")]
1650 pub tx_meta: ::core::option::Option<TransactionMeta>,
1651 #[prost(message, optional, tag = "3")]
1653 pub query_meta: ::core::option::Option<QueryMeta>,
1654 #[prost(message, optional, tag = "4")]
1656 pub query_stats: ::core::option::Option<super::table_stats::QueryStats>,
1657}
1658#[derive(serde::Serialize, serde::Deserialize)]
1660#[derive(Clone, PartialEq, ::prost::Message)]
1661pub struct ExplainDataQueryRequest {
1662 #[prost(string, tag = "1")]
1664 pub session_id: ::prost::alloc::string::String,
1665 #[prost(string, tag = "2")]
1667 pub yql_text: ::prost::alloc::string::String,
1668 #[prost(message, optional, tag = "3")]
1669 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1670 #[prost(bool, tag = "4")]
1671 pub collect_full_diagnostics: bool,
1672}
1673#[derive(serde::Serialize, serde::Deserialize)]
1674#[derive(Clone, PartialEq, ::prost::Message)]
1675pub struct ExplainDataQueryResponse {
1676 #[prost(message, optional, tag = "1")]
1678 pub operation: ::core::option::Option<super::operations::Operation>,
1679}
1680#[derive(serde::Serialize, serde::Deserialize)]
1681#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1682pub struct ExplainQueryResult {
1683 #[prost(string, tag = "1")]
1684 pub query_ast: ::prost::alloc::string::String,
1685 #[prost(string, tag = "2")]
1686 pub query_plan: ::prost::alloc::string::String,
1687 #[prost(string, tag = "3")]
1688 pub query_full_diagnostics: ::prost::alloc::string::String,
1689}
1690#[derive(serde::Serialize, serde::Deserialize)]
1692#[derive(Clone, PartialEq, ::prost::Message)]
1693pub struct PrepareDataQueryRequest {
1694 #[prost(string, tag = "1")]
1696 pub session_id: ::prost::alloc::string::String,
1697 #[prost(string, tag = "2")]
1699 pub yql_text: ::prost::alloc::string::String,
1700 #[prost(message, optional, tag = "3")]
1701 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1702}
1703#[derive(serde::Serialize, serde::Deserialize)]
1704#[derive(Clone, PartialEq, ::prost::Message)]
1705pub struct PrepareDataQueryResponse {
1706 #[prost(message, optional, tag = "1")]
1708 pub operation: ::core::option::Option<super::operations::Operation>,
1709}
1710#[derive(serde::Serialize, serde::Deserialize)]
1711#[derive(Clone, PartialEq, ::prost::Message)]
1712pub struct PrepareQueryResult {
1713 #[prost(string, tag = "1")]
1715 pub query_id: ::prost::alloc::string::String,
1716 #[prost(map = "string, message", tag = "2")]
1718 pub parameters_types: ::std::collections::HashMap<
1719 ::prost::alloc::string::String,
1720 super::Type,
1721 >,
1722}
1723#[derive(serde::Serialize, serde::Deserialize)]
1725#[derive(Clone, PartialEq, ::prost::Message)]
1726pub struct KeepAliveRequest {
1727 #[prost(string, tag = "1")]
1729 pub session_id: ::prost::alloc::string::String,
1730 #[prost(message, optional, tag = "2")]
1731 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1732}
1733#[derive(serde::Serialize, serde::Deserialize)]
1734#[derive(Clone, PartialEq, ::prost::Message)]
1735pub struct KeepAliveResponse {
1736 #[prost(message, optional, tag = "1")]
1737 pub operation: ::core::option::Option<super::operations::Operation>,
1738}
1739#[derive(serde::Serialize, serde::Deserialize)]
1740#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1741pub struct KeepAliveResult {
1742 #[prost(enumeration = "keep_alive_result::SessionStatus", tag = "1")]
1743 pub session_status: i32,
1744}
1745pub mod keep_alive_result {
1747 #[derive(serde::Serialize, serde::Deserialize)]
1748 #[derive(
1749 Clone,
1750 Copy,
1751 Debug,
1752 PartialEq,
1753 Eq,
1754 Hash,
1755 PartialOrd,
1756 Ord,
1757 ::prost::Enumeration
1758 )]
1759 #[repr(i32)]
1760 pub enum SessionStatus {
1761 Unspecified = 0,
1762 Ready = 1,
1763 Busy = 2,
1764 }
1765 impl SessionStatus {
1766 pub fn as_str_name(&self) -> &'static str {
1770 match self {
1771 Self::Unspecified => "SESSION_STATUS_UNSPECIFIED",
1772 Self::Ready => "SESSION_STATUS_READY",
1773 Self::Busy => "SESSION_STATUS_BUSY",
1774 }
1775 }
1776 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1778 match value {
1779 "SESSION_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
1780 "SESSION_STATUS_READY" => Some(Self::Ready),
1781 "SESSION_STATUS_BUSY" => Some(Self::Busy),
1782 _ => None,
1783 }
1784 }
1785 }
1786}
1787#[derive(serde::Serialize, serde::Deserialize)]
1789#[derive(Clone, PartialEq, ::prost::Message)]
1790pub struct BeginTransactionRequest {
1791 #[prost(string, tag = "1")]
1793 pub session_id: ::prost::alloc::string::String,
1794 #[prost(message, optional, tag = "2")]
1795 pub tx_settings: ::core::option::Option<TransactionSettings>,
1796 #[prost(message, optional, tag = "3")]
1797 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1798}
1799#[derive(serde::Serialize, serde::Deserialize)]
1800#[derive(Clone, PartialEq, ::prost::Message)]
1801pub struct BeginTransactionResponse {
1802 #[prost(message, optional, tag = "1")]
1804 pub operation: ::core::option::Option<super::operations::Operation>,
1805}
1806#[derive(serde::Serialize, serde::Deserialize)]
1807#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1808pub struct BeginTransactionResult {
1809 #[prost(message, optional, tag = "1")]
1810 pub tx_meta: ::core::option::Option<TransactionMeta>,
1811}
1812#[derive(serde::Serialize, serde::Deserialize)]
1814#[derive(Clone, PartialEq, ::prost::Message)]
1815pub struct CommitTransactionRequest {
1816 #[prost(string, tag = "1")]
1818 pub session_id: ::prost::alloc::string::String,
1819 #[prost(string, tag = "2")]
1821 pub tx_id: ::prost::alloc::string::String,
1822 #[prost(message, optional, tag = "3")]
1823 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1824 #[prost(enumeration = "query_stats_collection::Mode", tag = "4")]
1825 pub collect_stats: i32,
1826}
1827#[derive(serde::Serialize, serde::Deserialize)]
1828#[derive(Clone, PartialEq, ::prost::Message)]
1829pub struct CommitTransactionResponse {
1830 #[prost(message, optional, tag = "1")]
1831 pub operation: ::core::option::Option<super::operations::Operation>,
1832}
1833#[derive(serde::Serialize, serde::Deserialize)]
1834#[derive(Clone, PartialEq, ::prost::Message)]
1835pub struct CommitTransactionResult {
1836 #[prost(message, optional, tag = "1")]
1837 pub query_stats: ::core::option::Option<super::table_stats::QueryStats>,
1838}
1839#[derive(serde::Serialize, serde::Deserialize)]
1841#[derive(Clone, PartialEq, ::prost::Message)]
1842pub struct RollbackTransactionRequest {
1843 #[prost(string, tag = "1")]
1845 pub session_id: ::prost::alloc::string::String,
1846 #[prost(string, tag = "2")]
1848 pub tx_id: ::prost::alloc::string::String,
1849 #[prost(message, optional, tag = "3")]
1850 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1851}
1852#[derive(serde::Serialize, serde::Deserialize)]
1853#[derive(Clone, PartialEq, ::prost::Message)]
1854pub struct RollbackTransactionResponse {
1855 #[prost(message, optional, tag = "1")]
1856 pub operation: ::core::option::Option<super::operations::Operation>,
1857}
1858#[derive(serde::Serialize, serde::Deserialize)]
1859#[derive(Clone, PartialEq, ::prost::Message)]
1860pub struct StoragePolicyDescription {
1861 #[prost(string, tag = "1")]
1862 pub name: ::prost::alloc::string::String,
1863 #[prost(map = "string, string", tag = "2")]
1864 pub labels: ::std::collections::HashMap<
1865 ::prost::alloc::string::String,
1866 ::prost::alloc::string::String,
1867 >,
1868}
1869#[derive(serde::Serialize, serde::Deserialize)]
1870#[derive(Clone, PartialEq, ::prost::Message)]
1871pub struct CompactionPolicyDescription {
1872 #[prost(string, tag = "1")]
1873 pub name: ::prost::alloc::string::String,
1874 #[prost(map = "string, string", tag = "2")]
1875 pub labels: ::std::collections::HashMap<
1876 ::prost::alloc::string::String,
1877 ::prost::alloc::string::String,
1878 >,
1879}
1880#[derive(serde::Serialize, serde::Deserialize)]
1881#[derive(Clone, PartialEq, ::prost::Message)]
1882pub struct PartitioningPolicyDescription {
1883 #[prost(string, tag = "1")]
1884 pub name: ::prost::alloc::string::String,
1885 #[prost(map = "string, string", tag = "2")]
1886 pub labels: ::std::collections::HashMap<
1887 ::prost::alloc::string::String,
1888 ::prost::alloc::string::String,
1889 >,
1890}
1891#[derive(serde::Serialize, serde::Deserialize)]
1892#[derive(Clone, PartialEq, ::prost::Message)]
1893pub struct ExecutionPolicyDescription {
1894 #[prost(string, tag = "1")]
1895 pub name: ::prost::alloc::string::String,
1896 #[prost(map = "string, string", tag = "2")]
1897 pub labels: ::std::collections::HashMap<
1898 ::prost::alloc::string::String,
1899 ::prost::alloc::string::String,
1900 >,
1901}
1902#[derive(serde::Serialize, serde::Deserialize)]
1903#[derive(Clone, PartialEq, ::prost::Message)]
1904pub struct ReplicationPolicyDescription {
1905 #[prost(string, tag = "1")]
1906 pub name: ::prost::alloc::string::String,
1907 #[prost(map = "string, string", tag = "2")]
1908 pub labels: ::std::collections::HashMap<
1909 ::prost::alloc::string::String,
1910 ::prost::alloc::string::String,
1911 >,
1912}
1913#[derive(serde::Serialize, serde::Deserialize)]
1914#[derive(Clone, PartialEq, ::prost::Message)]
1915pub struct CachingPolicyDescription {
1916 #[prost(string, tag = "1")]
1917 pub name: ::prost::alloc::string::String,
1918 #[prost(map = "string, string", tag = "2")]
1919 pub labels: ::std::collections::HashMap<
1920 ::prost::alloc::string::String,
1921 ::prost::alloc::string::String,
1922 >,
1923}
1924#[derive(serde::Serialize, serde::Deserialize)]
1925#[derive(Clone, PartialEq, ::prost::Message)]
1926pub struct TableProfileDescription {
1927 #[prost(string, tag = "1")]
1928 pub name: ::prost::alloc::string::String,
1929 #[prost(map = "string, string", tag = "2")]
1930 pub labels: ::std::collections::HashMap<
1931 ::prost::alloc::string::String,
1932 ::prost::alloc::string::String,
1933 >,
1934 #[prost(string, tag = "3")]
1935 pub default_storage_policy: ::prost::alloc::string::String,
1936 #[prost(string, repeated, tag = "4")]
1937 pub allowed_storage_policies: ::prost::alloc::vec::Vec<
1938 ::prost::alloc::string::String,
1939 >,
1940 #[prost(string, tag = "5")]
1941 pub default_compaction_policy: ::prost::alloc::string::String,
1942 #[prost(string, repeated, tag = "6")]
1943 pub allowed_compaction_policies: ::prost::alloc::vec::Vec<
1944 ::prost::alloc::string::String,
1945 >,
1946 #[prost(string, tag = "7")]
1947 pub default_partitioning_policy: ::prost::alloc::string::String,
1948 #[prost(string, repeated, tag = "8")]
1949 pub allowed_partitioning_policies: ::prost::alloc::vec::Vec<
1950 ::prost::alloc::string::String,
1951 >,
1952 #[prost(string, tag = "9")]
1953 pub default_execution_policy: ::prost::alloc::string::String,
1954 #[prost(string, repeated, tag = "10")]
1955 pub allowed_execution_policies: ::prost::alloc::vec::Vec<
1956 ::prost::alloc::string::String,
1957 >,
1958 #[prost(string, tag = "11")]
1959 pub default_replication_policy: ::prost::alloc::string::String,
1960 #[prost(string, repeated, tag = "12")]
1961 pub allowed_replication_policies: ::prost::alloc::vec::Vec<
1962 ::prost::alloc::string::String,
1963 >,
1964 #[prost(string, tag = "13")]
1965 pub default_caching_policy: ::prost::alloc::string::String,
1966 #[prost(string, repeated, tag = "14")]
1967 pub allowed_caching_policies: ::prost::alloc::vec::Vec<
1968 ::prost::alloc::string::String,
1969 >,
1970}
1971#[derive(serde::Serialize, serde::Deserialize)]
1972#[derive(Clone, PartialEq, ::prost::Message)]
1973pub struct DescribeTableOptionsRequest {
1974 #[prost(message, optional, tag = "1")]
1975 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1976}
1977#[derive(serde::Serialize, serde::Deserialize)]
1978#[derive(Clone, PartialEq, ::prost::Message)]
1979pub struct DescribeTableOptionsResponse {
1980 #[prost(message, optional, tag = "1")]
1982 pub operation: ::core::option::Option<super::operations::Operation>,
1983}
1984#[derive(serde::Serialize, serde::Deserialize)]
1985#[derive(Clone, PartialEq, ::prost::Message)]
1986pub struct DescribeTableOptionsResult {
1987 #[prost(message, repeated, tag = "1")]
1988 pub table_profile_presets: ::prost::alloc::vec::Vec<TableProfileDescription>,
1989 #[prost(message, repeated, tag = "2")]
1990 pub storage_policy_presets: ::prost::alloc::vec::Vec<StoragePolicyDescription>,
1991 #[prost(message, repeated, tag = "3")]
1992 pub compaction_policy_presets: ::prost::alloc::vec::Vec<CompactionPolicyDescription>,
1993 #[prost(message, repeated, tag = "4")]
1994 pub partitioning_policy_presets: ::prost::alloc::vec::Vec<
1995 PartitioningPolicyDescription,
1996 >,
1997 #[prost(message, repeated, tag = "5")]
1998 pub execution_policy_presets: ::prost::alloc::vec::Vec<ExecutionPolicyDescription>,
1999 #[prost(message, repeated, tag = "6")]
2000 pub replication_policy_presets: ::prost::alloc::vec::Vec<
2001 ReplicationPolicyDescription,
2002 >,
2003 #[prost(message, repeated, tag = "7")]
2004 pub caching_policy_presets: ::prost::alloc::vec::Vec<CachingPolicyDescription>,
2005}
2006#[derive(serde::Serialize, serde::Deserialize)]
2007#[derive(Clone, PartialEq, ::prost::Message)]
2008pub struct KeyRange {
2009 #[prost(oneof = "key_range::FromBound", tags = "1, 2")]
2011 pub from_bound: ::core::option::Option<key_range::FromBound>,
2012 #[prost(oneof = "key_range::ToBound", tags = "3, 4")]
2014 pub to_bound: ::core::option::Option<key_range::ToBound>,
2015}
2016pub mod key_range {
2018 #[derive(serde::Serialize, serde::Deserialize)]
2020 #[derive(Clone, PartialEq, ::prost::Oneof)]
2021 pub enum FromBound {
2022 #[prost(message, tag = "1")]
2024 Greater(super::super::TypedValue),
2025 #[prost(message, tag = "2")]
2027 GreaterOrEqual(super::super::TypedValue),
2028 }
2029 #[derive(serde::Serialize, serde::Deserialize)]
2031 #[derive(Clone, PartialEq, ::prost::Oneof)]
2032 pub enum ToBound {
2033 #[prost(message, tag = "3")]
2035 Less(super::super::TypedValue),
2036 #[prost(message, tag = "4")]
2038 LessOrEqual(super::super::TypedValue),
2039 }
2040}
2041#[derive(serde::Serialize, serde::Deserialize)]
2043#[derive(Clone, PartialEq, ::prost::Message)]
2044pub struct ReadTableRequest {
2045 #[prost(string, tag = "1")]
2047 pub session_id: ::prost::alloc::string::String,
2048 #[prost(string, tag = "2")]
2050 pub path: ::prost::alloc::string::String,
2051 #[prost(message, optional, tag = "3")]
2053 pub key_range: ::core::option::Option<KeyRange>,
2054 #[prost(string, repeated, tag = "4")]
2056 pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2057 #[prost(bool, tag = "5")]
2059 pub ordered: bool,
2060 #[prost(uint64, tag = "6")]
2062 pub row_limit: u64,
2063 #[prost(enumeration = "super::feature_flag::Status", tag = "7")]
2065 pub use_snapshot: i32,
2066 #[prost(uint64, tag = "8")]
2071 pub batch_limit_bytes: u64,
2072 #[prost(uint64, tag = "9")]
2073 pub batch_limit_rows: u64,
2074 #[prost(enumeration = "super::feature_flag::Status", tag = "10")]
2075 pub return_not_null_data_as_optional: i32,
2076}
2077#[derive(serde::Serialize, serde::Deserialize)]
2079#[derive(Clone, PartialEq, ::prost::Message)]
2080pub struct ReadTableResponse {
2081 #[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
2083 pub status: i32,
2084 #[prost(message, repeated, tag = "2")]
2086 pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
2087 #[prost(message, optional, tag = "4")]
2089 pub snapshot: ::core::option::Option<super::VirtualTimestamp>,
2090 #[prost(message, optional, tag = "3")]
2092 pub result: ::core::option::Option<ReadTableResult>,
2093}
2094#[derive(serde::Serialize, serde::Deserialize)]
2096#[derive(Clone, PartialEq, ::prost::Message)]
2097pub struct ReadTableResult {
2098 #[prost(message, optional, tag = "1")]
2100 pub result_set: ::core::option::Option<super::ResultSet>,
2101}
2102#[derive(serde::Serialize, serde::Deserialize)]
2103#[derive(Clone, PartialEq, ::prost::Message)]
2104pub struct ReadRowsRequest {
2105 #[prost(string, tag = "1")]
2107 pub session_id: ::prost::alloc::string::String,
2108 #[prost(string, tag = "2")]
2110 pub path: ::prost::alloc::string::String,
2111 #[prost(message, optional, tag = "3")]
2114 pub keys: ::core::option::Option<super::TypedValue>,
2115 #[prost(string, repeated, tag = "4")]
2117 pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2118}
2119#[derive(serde::Serialize, serde::Deserialize)]
2120#[derive(Clone, PartialEq, ::prost::Message)]
2121pub struct ReadRowsResponse {
2122 #[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
2124 pub status: i32,
2125 #[prost(message, repeated, tag = "2")]
2127 pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
2128 #[prost(message, optional, tag = "3")]
2130 pub result_set: ::core::option::Option<super::ResultSet>,
2131}
2132#[derive(serde::Serialize, serde::Deserialize)]
2133#[derive(Clone, PartialEq, ::prost::Message)]
2134pub struct BulkUpsertRequest {
2135 #[prost(string, tag = "1")]
2136 pub table: ::prost::alloc::string::String,
2137 #[prost(message, optional, tag = "2")]
2141 pub rows: ::core::option::Option<super::TypedValue>,
2142 #[prost(message, optional, tag = "3")]
2143 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
2144 #[prost(bytes = "vec", tag = "1000")]
2146 pub data: ::prost::alloc::vec::Vec<u8>,
2147 #[prost(oneof = "bulk_upsert_request::DataFormat", tags = "7, 8")]
2149 pub data_format: ::core::option::Option<bulk_upsert_request::DataFormat>,
2150}
2151pub mod bulk_upsert_request {
2153 #[derive(serde::Serialize, serde::Deserialize)]
2155 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
2156 pub enum DataFormat {
2157 #[prost(message, tag = "7")]
2158 ArrowBatchSettings(super::super::formats::ArrowBatchSettings),
2159 #[prost(message, tag = "8")]
2160 CsvSettings(super::super::formats::CsvSettings),
2161 }
2162}
2163#[derive(serde::Serialize, serde::Deserialize)]
2164#[derive(Clone, PartialEq, ::prost::Message)]
2165pub struct BulkUpsertResponse {
2166 #[prost(message, optional, tag = "1")]
2167 pub operation: ::core::option::Option<super::operations::Operation>,
2168}
2169#[derive(serde::Serialize, serde::Deserialize)]
2170#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2171pub struct BulkUpsertResult {}
2172#[derive(serde::Serialize, serde::Deserialize)]
2173#[derive(Clone, PartialEq, ::prost::Message)]
2174pub struct ExecuteScanQueryRequest {
2175 #[prost(message, optional, tag = "3")]
2176 pub query: ::core::option::Option<Query>,
2177 #[prost(map = "string, message", tag = "4")]
2178 pub parameters: ::std::collections::HashMap<
2179 ::prost::alloc::string::String,
2180 super::TypedValue,
2181 >,
2182 #[prost(enumeration = "execute_scan_query_request::Mode", tag = "6")]
2183 pub mode: i32,
2184 #[prost(enumeration = "query_stats_collection::Mode", tag = "8")]
2185 pub collect_stats: i32,
2186 #[prost(bool, tag = "9")]
2189 pub collect_full_diagnostics: bool,
2190}
2191pub mod execute_scan_query_request {
2193 #[derive(serde::Serialize, serde::Deserialize)]
2194 #[derive(
2195 Clone,
2196 Copy,
2197 Debug,
2198 PartialEq,
2199 Eq,
2200 Hash,
2201 PartialOrd,
2202 Ord,
2203 ::prost::Enumeration
2204 )]
2205 #[repr(i32)]
2206 pub enum Mode {
2207 Unspecified = 0,
2208 Explain = 1,
2209 Exec = 3,
2211 }
2212 impl Mode {
2213 pub fn as_str_name(&self) -> &'static str {
2217 match self {
2218 Self::Unspecified => "MODE_UNSPECIFIED",
2219 Self::Explain => "MODE_EXPLAIN",
2220 Self::Exec => "MODE_EXEC",
2221 }
2222 }
2223 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2225 match value {
2226 "MODE_UNSPECIFIED" => Some(Self::Unspecified),
2227 "MODE_EXPLAIN" => Some(Self::Explain),
2228 "MODE_EXEC" => Some(Self::Exec),
2229 _ => None,
2230 }
2231 }
2232 }
2233}
2234#[derive(serde::Serialize, serde::Deserialize)]
2235#[derive(Clone, PartialEq, ::prost::Message)]
2236pub struct ExecuteScanQueryPartialResponse {
2237 #[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
2238 pub status: i32,
2239 #[prost(message, repeated, tag = "2")]
2240 pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
2241 #[prost(message, optional, tag = "3")]
2242 pub result: ::core::option::Option<ExecuteScanQueryPartialResult>,
2243}
2244#[derive(serde::Serialize, serde::Deserialize)]
2245#[derive(Clone, PartialEq, ::prost::Message)]
2246pub struct ExecuteScanQueryPartialResult {
2247 #[prost(message, optional, tag = "1")]
2248 pub result_set: ::core::option::Option<super::ResultSet>,
2249 #[prost(message, optional, tag = "6")]
2250 pub query_stats: ::core::option::Option<super::table_stats::QueryStats>,
2251 #[prost(string, tag = "7")]
2254 pub query_full_diagnostics: ::prost::alloc::string::String,
2255}
2256#[derive(serde::Serialize, serde::Deserialize)]
2257#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2258#[repr(i32)]
2259pub enum StoreType {
2260 Unspecified = 0,
2261 Row = 1,
2262 Column = 2,
2263}
2264impl StoreType {
2265 pub fn as_str_name(&self) -> &'static str {
2269 match self {
2270 Self::Unspecified => "STORE_TYPE_UNSPECIFIED",
2271 Self::Row => "STORE_TYPE_ROW",
2272 Self::Column => "STORE_TYPE_COLUMN",
2273 }
2274 }
2275 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2277 match value {
2278 "STORE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
2279 "STORE_TYPE_ROW" => Some(Self::Row),
2280 "STORE_TYPE_COLUMN" => Some(Self::Column),
2281 _ => None,
2282 }
2283 }
2284}