1#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct SupportedCodecs {
5 #[prost(int32, repeated, packed = "false", tag = "1")]
8 pub codecs: ::prost::alloc::vec::Vec<i32>,
9}
10#[allow(clippy::derive_partial_eq_without_eq)]
13#[derive(Clone, PartialEq, ::prost::Message)]
14pub struct OffsetsRange {
15 #[prost(int64, tag = "1")]
16 pub start: i64,
17 #[prost(int64, tag = "2")]
18 pub end: i64,
19}
20#[allow(clippy::derive_partial_eq_without_eq)]
24#[derive(Clone, PartialEq, ::prost::Message)]
25pub struct UpdateTokenRequest {
26 #[prost(string, tag = "1")]
27 pub token: ::prost::alloc::string::String,
28}
29#[allow(clippy::derive_partial_eq_without_eq)]
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct UpdateTokenResponse {}
32#[allow(clippy::derive_partial_eq_without_eq)]
34#[derive(Clone, PartialEq, ::prost::Message)]
35pub struct StreamWriteMessage {}
36pub mod stream_write_message {
38 #[allow(clippy::derive_partial_eq_without_eq)]
43 #[derive(Clone, PartialEq, ::prost::Message)]
44 pub struct FromClient {
45 #[prost(oneof = "from_client::ClientMessage", tags = "1, 2, 3")]
46 pub client_message: ::core::option::Option<from_client::ClientMessage>,
47 }
48 pub mod from_client {
50 #[allow(clippy::derive_partial_eq_without_eq)]
51 #[derive(Clone, PartialEq, ::prost::Oneof)]
52 pub enum ClientMessage {
53 #[prost(message, tag = "1")]
54 InitRequest(super::InitRequest),
55 #[prost(message, tag = "2")]
56 WriteRequest(super::WriteRequest),
57 #[prost(message, tag = "3")]
58 UpdateTokenRequest(super::super::UpdateTokenRequest),
59 }
60 }
61 #[allow(clippy::derive_partial_eq_without_eq)]
68 #[derive(Clone, PartialEq, ::prost::Message)]
69 pub struct FromServer {
70 #[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
72 pub status: i32,
73 #[prost(message, repeated, tag = "2")]
75 pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
76 #[prost(oneof = "from_server::ServerMessage", tags = "3, 4, 5")]
77 pub server_message: ::core::option::Option<from_server::ServerMessage>,
78 }
79 pub mod from_server {
81 #[allow(clippy::derive_partial_eq_without_eq)]
82 #[derive(Clone, PartialEq, ::prost::Oneof)]
83 pub enum ServerMessage {
84 #[prost(message, tag = "3")]
85 InitResponse(super::InitResponse),
86 #[prost(message, tag = "4")]
87 WriteResponse(super::WriteResponse),
88 #[prost(message, tag = "5")]
89 UpdateTokenResponse(super::super::UpdateTokenResponse),
90 }
91 }
92 #[allow(clippy::derive_partial_eq_without_eq)]
94 #[derive(Clone, PartialEq, ::prost::Message)]
95 pub struct InitRequest {
96 #[prost(string, tag = "1")]
98 pub path: ::prost::alloc::string::String,
99 #[prost(string, tag = "2")]
102 pub producer_id: ::prost::alloc::string::String,
103 #[prost(map = "string, string", tag = "3")]
106 pub write_session_meta: ::std::collections::HashMap<
107 ::prost::alloc::string::String,
108 ::prost::alloc::string::String,
109 >,
110 #[prost(bool, tag = "6")]
113 pub get_last_seq_no: bool,
114 #[prost(oneof = "init_request::Partitioning", tags = "4, 5")]
118 pub partitioning: ::core::option::Option<init_request::Partitioning>,
119 }
120 pub mod init_request {
122 #[allow(clippy::derive_partial_eq_without_eq)]
126 #[derive(Clone, PartialEq, ::prost::Oneof)]
127 pub enum Partitioning {
128 #[prost(string, tag = "4")]
131 MessageGroupId(::prost::alloc::string::String),
132 #[prost(int64, tag = "5")]
134 PartitionId(i64),
135 }
136 }
137 #[allow(clippy::derive_partial_eq_without_eq)]
139 #[derive(Clone, PartialEq, ::prost::Message)]
140 pub struct InitResponse {
141 #[prost(int64, tag = "1")]
144 pub last_seq_no: i64,
145 #[prost(string, tag = "2")]
147 pub session_id: ::prost::alloc::string::String,
148 #[prost(int64, tag = "3")]
150 pub partition_id: i64,
151 #[prost(message, optional, tag = "4")]
154 pub supported_codecs: ::core::option::Option<super::SupportedCodecs>,
155 }
156 #[allow(clippy::derive_partial_eq_without_eq)]
158 #[derive(Clone, PartialEq, ::prost::Message)]
159 pub struct WriteRequest {
160 #[prost(message, repeated, tag = "1")]
161 pub messages: ::prost::alloc::vec::Vec<write_request::MessageData>,
162 #[prost(int32, tag = "2")]
165 pub codec: i32,
166 }
167 pub mod write_request {
169 #[allow(clippy::derive_partial_eq_without_eq)]
170 #[derive(Clone, PartialEq, ::prost::Message)]
171 pub struct MessageData {
172 #[prost(int64, tag = "1")]
175 pub seq_no: i64,
176 #[prost(message, optional, tag = "2")]
178 pub created_at: ::core::option::Option<
179 super::super::super::super::google::protobuf::Timestamp,
180 >,
181 #[prost(bytes = "vec", tag = "3")]
183 pub data: ::prost::alloc::vec::Vec<u8>,
184 #[prost(int64, tag = "4")]
186 pub uncompressed_size: i64,
187 #[prost(oneof = "message_data::Partitioning", tags = "5, 6")]
189 pub partitioning: ::core::option::Option<message_data::Partitioning>,
190 }
191 pub mod message_data {
193 #[allow(clippy::derive_partial_eq_without_eq)]
195 #[derive(Clone, PartialEq, ::prost::Oneof)]
196 pub enum Partitioning {
197 #[prost(string, tag = "5")]
200 MessageGroupId(::prost::alloc::string::String),
201 #[prost(int64, tag = "6")]
203 PartitionId(i64),
204 }
205 }
206 }
207 #[allow(clippy::derive_partial_eq_without_eq)]
211 #[derive(Clone, PartialEq, ::prost::Message)]
212 pub struct WriteResponse {
213 #[prost(message, repeated, tag = "1")]
216 pub acks: ::prost::alloc::vec::Vec<write_response::WriteAck>,
217 #[prost(int64, tag = "2")]
221 pub partition_id: i64,
222 #[prost(message, optional, tag = "3")]
224 pub write_statistics: ::core::option::Option<write_response::WriteStatistics>,
225 }
226 pub mod write_response {
228 #[allow(clippy::derive_partial_eq_without_eq)]
230 #[derive(Clone, PartialEq, ::prost::Message)]
231 pub struct WriteAck {
232 #[prost(int64, tag = "1")]
234 pub seq_no: i64,
235 #[prost(oneof = "write_ack::MessageWriteStatus", tags = "2, 3")]
237 pub message_write_status: ::core::option::Option<
238 write_ack::MessageWriteStatus,
239 >,
240 }
241 pub mod write_ack {
243 #[allow(clippy::derive_partial_eq_without_eq)]
244 #[derive(Clone, PartialEq, ::prost::Message)]
245 pub struct Written {
246 #[prost(int64, tag = "1")]
248 pub offset: i64,
249 }
250 #[allow(clippy::derive_partial_eq_without_eq)]
251 #[derive(Clone, PartialEq, ::prost::Message)]
252 pub struct Skipped {
253 #[prost(enumeration = "skipped::Reason", tag = "1")]
254 pub reason: i32,
255 }
256 pub mod skipped {
258 #[derive(
259 Clone,
260 Copy,
261 Debug,
262 PartialEq,
263 Eq,
264 Hash,
265 PartialOrd,
266 Ord,
267 ::prost::Enumeration
268 )]
269 #[repr(i32)]
270 pub enum Reason {
271 Unspecified = 0,
272 AlreadyWritten = 1,
273 }
274 impl Reason {
275 pub fn as_str_name(&self) -> &'static str {
280 match self {
281 Reason::Unspecified => "REASON_UNSPECIFIED",
282 Reason::AlreadyWritten => "REASON_ALREADY_WRITTEN",
283 }
284 }
285 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
287 match value {
288 "REASON_UNSPECIFIED" => Some(Self::Unspecified),
289 "REASON_ALREADY_WRITTEN" => Some(Self::AlreadyWritten),
290 _ => None,
291 }
292 }
293 }
294 }
295 #[allow(clippy::derive_partial_eq_without_eq)]
297 #[derive(Clone, PartialEq, ::prost::Oneof)]
298 pub enum MessageWriteStatus {
299 #[prost(message, tag = "2")]
300 Written(Written),
301 #[prost(message, tag = "3")]
302 Skipped(Skipped),
303 }
304 }
305 #[allow(clippy::derive_partial_eq_without_eq)]
307 #[derive(Clone, PartialEq, ::prost::Message)]
308 pub struct WriteStatistics {
309 #[prost(message, optional, tag = "1")]
312 pub persisting_time: ::core::option::Option<
313 super::super::super::super::google::protobuf::Duration,
314 >,
315 #[prost(message, optional, tag = "2")]
318 pub min_queue_wait_time: ::core::option::Option<
319 super::super::super::super::google::protobuf::Duration,
320 >,
321 #[prost(message, optional, tag = "3")]
324 pub max_queue_wait_time: ::core::option::Option<
325 super::super::super::super::google::protobuf::Duration,
326 >,
327 #[prost(message, optional, tag = "4")]
330 pub partition_quota_wait_time: ::core::option::Option<
331 super::super::super::super::google::protobuf::Duration,
332 >,
333 #[prost(message, optional, tag = "5")]
336 pub topic_quota_wait_time: ::core::option::Option<
337 super::super::super::super::google::protobuf::Duration,
338 >,
339 }
340 }
341}
342#[allow(clippy::derive_partial_eq_without_eq)]
344#[derive(Clone, PartialEq, ::prost::Message)]
345pub struct StreamReadMessage {}
346pub mod stream_read_message {
348 #[allow(clippy::derive_partial_eq_without_eq)]
352 #[derive(Clone, PartialEq, ::prost::Message)]
353 pub struct PartitionSession {
354 #[prost(int64, tag = "1")]
356 pub partition_session_id: i64,
357 #[prost(string, tag = "2")]
359 pub path: ::prost::alloc::string::String,
360 #[prost(int64, tag = "3")]
362 pub partition_id: i64,
363 }
364 #[allow(clippy::derive_partial_eq_without_eq)]
379 #[derive(Clone, PartialEq, ::prost::Message)]
380 pub struct FromClient {
381 #[prost(oneof = "from_client::ClientMessage", tags = "1, 2, 3, 4, 5, 6, 7")]
382 pub client_message: ::core::option::Option<from_client::ClientMessage>,
383 }
384 pub mod from_client {
386 #[allow(clippy::derive_partial_eq_without_eq)]
387 #[derive(Clone, PartialEq, ::prost::Oneof)]
388 pub enum ClientMessage {
389 #[prost(message, tag = "1")]
391 InitRequest(super::InitRequest),
392 #[prost(message, tag = "2")]
393 ReadRequest(super::ReadRequest),
394 #[prost(message, tag = "3")]
395 CommitOffsetRequest(super::CommitOffsetRequest),
396 #[prost(message, tag = "4")]
397 PartitionSessionStatusRequest(super::PartitionSessionStatusRequest),
398 #[prost(message, tag = "5")]
399 UpdateTokenRequest(super::super::UpdateTokenRequest),
400 #[prost(message, tag = "6")]
402 StartPartitionSessionResponse(super::StartPartitionSessionResponse),
403 #[prost(message, tag = "7")]
404 StopPartitionSessionResponse(super::StopPartitionSessionResponse),
405 }
406 }
407 #[allow(clippy::derive_partial_eq_without_eq)]
418 #[derive(Clone, PartialEq, ::prost::Message)]
419 pub struct FromServer {
420 #[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
422 pub status: i32,
423 #[prost(message, repeated, tag = "2")]
425 pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
426 #[prost(oneof = "from_server::ServerMessage", tags = "3, 4, 5, 6, 7, 8, 9")]
427 pub server_message: ::core::option::Option<from_server::ServerMessage>,
428 }
429 pub mod from_server {
431 #[allow(clippy::derive_partial_eq_without_eq)]
432 #[derive(Clone, PartialEq, ::prost::Oneof)]
433 pub enum ServerMessage {
434 #[prost(message, tag = "3")]
436 InitResponse(super::InitResponse),
437 #[prost(message, tag = "4")]
438 ReadResponse(super::ReadResponse),
439 #[prost(message, tag = "5")]
440 CommitOffsetResponse(super::CommitOffsetResponse),
441 #[prost(message, tag = "6")]
442 PartitionSessionStatusResponse(super::PartitionSessionStatusResponse),
443 #[prost(message, tag = "7")]
444 UpdateTokenResponse(super::super::UpdateTokenResponse),
445 #[prost(message, tag = "8")]
447 StartPartitionSessionRequest(super::StartPartitionSessionRequest),
448 #[prost(message, tag = "9")]
449 StopPartitionSessionRequest(super::StopPartitionSessionRequest),
450 }
451 }
452 #[allow(clippy::derive_partial_eq_without_eq)]
454 #[derive(Clone, PartialEq, ::prost::Message)]
455 pub struct InitRequest {
456 #[prost(message, repeated, tag = "1")]
459 pub topics_read_settings: ::prost::alloc::vec::Vec<
460 init_request::TopicReadSettings,
461 >,
462 #[prost(string, tag = "2")]
464 pub consumer: ::prost::alloc::string::String,
465 #[prost(string, tag = "3")]
467 pub reader_name: ::prost::alloc::string::String,
468 }
469 pub mod init_request {
471 #[allow(clippy::derive_partial_eq_without_eq)]
472 #[derive(Clone, PartialEq, ::prost::Message)]
473 pub struct TopicReadSettings {
474 #[prost(string, tag = "1")]
476 pub path: ::prost::alloc::string::String,
477 #[prost(int64, repeated, tag = "2")]
480 pub partition_ids: ::prost::alloc::vec::Vec<i64>,
481 #[prost(message, optional, tag = "3")]
484 pub max_lag: ::core::option::Option<
485 super::super::super::super::google::protobuf::Duration,
486 >,
487 #[prost(message, optional, tag = "4")]
491 pub read_from: ::core::option::Option<
492 super::super::super::super::google::protobuf::Timestamp,
493 >,
494 }
495 }
496 #[allow(clippy::derive_partial_eq_without_eq)]
498 #[derive(Clone, PartialEq, ::prost::Message)]
499 pub struct InitResponse {
500 #[prost(string, tag = "1")]
502 pub session_id: ::prost::alloc::string::String,
503 }
504 #[allow(clippy::derive_partial_eq_without_eq)]
506 #[derive(Clone, PartialEq, ::prost::Message)]
507 pub struct ReadRequest {
508 #[prost(int64, tag = "1")]
537 pub bytes_size: i64,
538 }
539 #[allow(clippy::derive_partial_eq_without_eq)]
541 #[derive(Clone, PartialEq, ::prost::Message)]
542 pub struct ReadResponse {
543 #[prost(message, repeated, tag = "1")]
545 pub partition_data: ::prost::alloc::vec::Vec<read_response::PartitionData>,
546 #[prost(int64, tag = "2")]
549 pub bytes_size: i64,
550 }
551 pub mod read_response {
553 #[allow(clippy::derive_partial_eq_without_eq)]
555 #[derive(Clone, PartialEq, ::prost::Message)]
556 pub struct MessageData {
557 #[prost(int64, tag = "1")]
561 pub offset: i64,
562 #[prost(int64, tag = "2")]
565 pub seq_no: i64,
566 #[prost(message, optional, tag = "3")]
568 pub created_at: ::core::option::Option<
569 super::super::super::super::google::protobuf::Timestamp,
570 >,
571 #[prost(bytes = "vec", tag = "5")]
573 pub data: ::prost::alloc::vec::Vec<u8>,
574 #[prost(int64, tag = "6")]
579 pub uncompressed_size: i64,
580 #[prost(string, tag = "7")]
582 pub message_group_id: ::prost::alloc::string::String,
583 }
584 #[allow(clippy::derive_partial_eq_without_eq)]
586 #[derive(Clone, PartialEq, ::prost::Message)]
587 pub struct Batch {
588 #[prost(message, repeated, tag = "1")]
590 pub message_data: ::prost::alloc::vec::Vec<MessageData>,
591 #[prost(string, tag = "2")]
594 pub producer_id: ::prost::alloc::string::String,
595 #[prost(map = "string, string", tag = "3")]
598 pub write_session_meta: ::std::collections::HashMap<
599 ::prost::alloc::string::String,
600 ::prost::alloc::string::String,
601 >,
602 #[prost(int32, tag = "4")]
605 pub codec: i32,
606 #[prost(message, optional, tag = "5")]
608 pub written_at: ::core::option::Option<
609 super::super::super::super::google::protobuf::Timestamp,
610 >,
611 }
612 #[allow(clippy::derive_partial_eq_without_eq)]
614 #[derive(Clone, PartialEq, ::prost::Message)]
615 pub struct PartitionData {
616 #[prost(int64, tag = "1")]
617 pub partition_session_id: i64,
618 #[prost(message, repeated, tag = "2")]
620 pub batches: ::prost::alloc::vec::Vec<Batch>,
621 }
622 }
623 #[allow(clippy::derive_partial_eq_without_eq)]
625 #[derive(Clone, PartialEq, ::prost::Message)]
626 pub struct CommitOffsetRequest {
627 #[prost(message, repeated, tag = "1")]
629 pub commit_offsets: ::prost::alloc::vec::Vec<
630 commit_offset_request::PartitionCommitOffset,
631 >,
632 }
633 pub mod commit_offset_request {
635 #[allow(clippy::derive_partial_eq_without_eq)]
637 #[derive(Clone, PartialEq, ::prost::Message)]
638 pub struct PartitionCommitOffset {
639 #[prost(int64, tag = "1")]
641 pub partition_session_id: i64,
642 #[prost(message, repeated, tag = "2")]
644 pub offsets: ::prost::alloc::vec::Vec<super::super::OffsetsRange>,
645 }
646 }
647 #[allow(clippy::derive_partial_eq_without_eq)]
649 #[derive(Clone, PartialEq, ::prost::Message)]
650 pub struct CommitOffsetResponse {
651 #[prost(message, repeated, tag = "1")]
653 pub partitions_committed_offsets: ::prost::alloc::vec::Vec<
654 commit_offset_response::PartitionCommittedOffset,
655 >,
656 }
657 pub mod commit_offset_response {
659 #[allow(clippy::derive_partial_eq_without_eq)]
661 #[derive(Clone, PartialEq, ::prost::Message)]
662 pub struct PartitionCommittedOffset {
663 #[prost(int64, tag = "1")]
665 pub partition_session_id: i64,
666 #[prost(int64, tag = "2")]
668 pub committed_offset: i64,
669 }
670 }
671 #[allow(clippy::derive_partial_eq_without_eq)]
672 #[derive(Clone, PartialEq, ::prost::Message)]
673 pub struct PartitionSessionStatusRequest {
674 #[prost(int64, tag = "1")]
675 pub partition_session_id: i64,
676 }
677 #[allow(clippy::derive_partial_eq_without_eq)]
679 #[derive(Clone, PartialEq, ::prost::Message)]
680 pub struct PartitionSessionStatusResponse {
681 #[prost(int64, tag = "1")]
683 pub partition_session_id: i64,
684 #[prost(message, optional, tag = "2")]
686 pub partition_offsets: ::core::option::Option<super::OffsetsRange>,
687 #[prost(int64, tag = "3")]
690 pub committed_offset: i64,
691 #[prost(message, optional, tag = "4")]
694 pub write_time_high_watermark: ::core::option::Option<
695 super::super::super::google::protobuf::Timestamp,
696 >,
697 }
698 #[allow(clippy::derive_partial_eq_without_eq)]
702 #[derive(Clone, PartialEq, ::prost::Message)]
703 pub struct StartPartitionSessionRequest {
704 #[prost(message, optional, tag = "1")]
706 pub partition_session: ::core::option::Option<PartitionSession>,
707 #[prost(int64, tag = "2")]
710 pub committed_offset: i64,
711 #[prost(message, optional, tag = "3")]
713 pub partition_offsets: ::core::option::Option<super::OffsetsRange>,
714 }
715 #[allow(clippy::derive_partial_eq_without_eq)]
717 #[derive(Clone, PartialEq, ::prost::Message)]
718 pub struct StartPartitionSessionResponse {
719 #[prost(int64, tag = "1")]
721 pub partition_session_id: i64,
722 #[prost(int64, tag = "2")]
734 pub read_offset: i64,
735 #[prost(int64, tag = "3")]
738 pub commit_offset: i64,
739 }
740 #[allow(clippy::derive_partial_eq_without_eq)]
742 #[derive(Clone, PartialEq, ::prost::Message)]
743 pub struct StopPartitionSessionRequest {
744 #[prost(int64, tag = "1")]
746 pub partition_session_id: i64,
747 #[prost(bool, tag = "2")]
755 pub graceful: bool,
756 #[prost(int64, tag = "3")]
758 pub committed_offset: i64,
759 }
760 #[allow(clippy::derive_partial_eq_without_eq)]
765 #[derive(Clone, PartialEq, ::prost::Message)]
766 pub struct StopPartitionSessionResponse {
767 #[prost(int64, tag = "1")]
770 pub partition_session_id: i64,
771 }
772}
773#[allow(clippy::derive_partial_eq_without_eq)]
775#[derive(Clone, PartialEq, ::prost::Message)]
776pub struct AddOffsetsToTransactionRequest {
777 #[prost(message, optional, tag = "1")]
778 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
779 #[prost(string, tag = "2")]
781 pub session_id: ::prost::alloc::string::String,
782 #[prost(message, optional, tag = "3")]
784 pub tx_control: ::core::option::Option<super::table::TransactionControl>,
785 #[prost(message, repeated, tag = "4")]
787 pub topics: ::prost::alloc::vec::Vec<
788 add_offsets_to_transaction_request::TopicOffsets,
789 >,
790 #[prost(string, tag = "5")]
791 pub consumer: ::prost::alloc::string::String,
792}
793pub mod add_offsets_to_transaction_request {
795 #[allow(clippy::derive_partial_eq_without_eq)]
796 #[derive(Clone, PartialEq, ::prost::Message)]
797 pub struct TopicOffsets {
798 #[prost(string, tag = "1")]
800 pub path: ::prost::alloc::string::String,
801 #[prost(message, repeated, tag = "2")]
803 pub partitions: ::prost::alloc::vec::Vec<topic_offsets::PartitionOffsets>,
804 }
805 pub mod topic_offsets {
807 #[allow(clippy::derive_partial_eq_without_eq)]
808 #[derive(Clone, PartialEq, ::prost::Message)]
809 pub struct PartitionOffsets {
810 #[prost(int64, tag = "1")]
812 pub partition_id: i64,
813 #[prost(message, repeated, tag = "2")]
815 pub partition_offsets: ::prost::alloc::vec::Vec<super::super::OffsetsRange>,
816 }
817 }
818}
819#[allow(clippy::derive_partial_eq_without_eq)]
821#[derive(Clone, PartialEq, ::prost::Message)]
822pub struct AddOffsetsToTransactionResponse {
823 #[prost(message, optional, tag = "1")]
825 pub operation: ::core::option::Option<super::operations::Operation>,
826}
827#[allow(clippy::derive_partial_eq_without_eq)]
830#[derive(Clone, PartialEq, ::prost::Message)]
831pub struct AddOffsetsToTransactionResult {}
832#[allow(clippy::derive_partial_eq_without_eq)]
834#[derive(Clone, PartialEq, ::prost::Message)]
835pub struct MultipleWindowsStat {
836 #[prost(int64, tag = "1")]
837 pub per_minute: i64,
838 #[prost(int64, tag = "2")]
839 pub per_hour: i64,
840 #[prost(int64, tag = "3")]
841 pub per_day: i64,
842}
843#[allow(clippy::derive_partial_eq_without_eq)]
845#[derive(Clone, PartialEq, ::prost::Message)]
846pub struct Consumer {
847 #[prost(string, tag = "1")]
849 pub name: ::prost::alloc::string::String,
850 #[prost(bool, tag = "2")]
855 pub important: bool,
856 #[prost(message, optional, tag = "3")]
858 pub read_from: ::core::option::Option<super::super::google::protobuf::Timestamp>,
859 #[prost(message, optional, tag = "5")]
862 pub supported_codecs: ::core::option::Option<SupportedCodecs>,
863 #[prost(map = "string, string", tag = "6")]
865 pub attributes: ::std::collections::HashMap<
866 ::prost::alloc::string::String,
867 ::prost::alloc::string::String,
868 >,
869 #[prost(message, optional, tag = "7")]
871 pub consumer_stats: ::core::option::Option<consumer::ConsumerStats>,
872}
873pub mod consumer {
875 #[allow(clippy::derive_partial_eq_without_eq)]
876 #[derive(Clone, PartialEq, ::prost::Message)]
877 pub struct ConsumerStats {
878 #[prost(message, optional, tag = "1")]
880 pub min_partitions_last_read_time: ::core::option::Option<
881 super::super::super::google::protobuf::Timestamp,
882 >,
883 #[prost(message, optional, tag = "2")]
886 pub max_read_time_lag: ::core::option::Option<
887 super::super::super::google::protobuf::Duration,
888 >,
889 #[prost(message, optional, tag = "3")]
892 pub max_write_time_lag: ::core::option::Option<
893 super::super::super::google::protobuf::Duration,
894 >,
895 #[prost(message, optional, tag = "4")]
897 pub bytes_read: ::core::option::Option<super::MultipleWindowsStat>,
898 }
899}
900#[allow(clippy::derive_partial_eq_without_eq)]
902#[derive(Clone, PartialEq, ::prost::Message)]
903pub struct AlterConsumer {
904 #[prost(string, tag = "1")]
906 pub name: ::prost::alloc::string::String,
907 #[prost(bool, tag = "2")]
912 pub set_important: bool,
913 #[prost(message, optional, tag = "3")]
915 pub set_read_from: ::core::option::Option<super::super::google::protobuf::Timestamp>,
916 #[prost(message, optional, tag = "5")]
919 pub set_supported_codecs: ::core::option::Option<SupportedCodecs>,
920 #[prost(map = "string, string", tag = "6")]
924 pub alter_attributes: ::std::collections::HashMap<
925 ::prost::alloc::string::String,
926 ::prost::alloc::string::String,
927 >,
928}
929#[allow(clippy::derive_partial_eq_without_eq)]
931#[derive(Clone, PartialEq, ::prost::Message)]
932pub struct PartitioningSettings {
933 #[prost(int64, tag = "1")]
936 pub min_active_partitions: i64,
937 #[prost(int64, tag = "2")]
940 pub partition_count_limit: i64,
941}
942#[allow(clippy::derive_partial_eq_without_eq)]
944#[derive(Clone, PartialEq, ::prost::Message)]
945pub struct AlterPartitioningSettings {
946 #[prost(int64, tag = "1")]
949 pub set_min_active_partitions: i64,
950 #[prost(int64, tag = "2")]
953 pub set_partition_count_limit: i64,
954}
955#[allow(clippy::derive_partial_eq_without_eq)]
957#[derive(Clone, PartialEq, ::prost::Message)]
958pub struct CreateTopicRequest {
959 #[prost(message, optional, tag = "1")]
960 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
961 #[prost(string, tag = "2")]
963 pub path: ::prost::alloc::string::String,
964 #[prost(message, optional, tag = "3")]
966 pub partitioning_settings: ::core::option::Option<PartitioningSettings>,
967 #[prost(message, optional, tag = "4")]
973 pub retention_period: ::core::option::Option<
974 super::super::google::protobuf::Duration,
975 >,
976 #[prost(int64, tag = "5")]
979 pub retention_storage_mb: i64,
980 #[prost(message, optional, tag = "7")]
983 pub supported_codecs: ::core::option::Option<SupportedCodecs>,
984 #[prost(int64, tag = "8")]
987 pub partition_write_speed_bytes_per_second: i64,
988 #[prost(int64, tag = "9")]
991 pub partition_write_burst_bytes: i64,
992 #[prost(map = "string, string", tag = "10")]
995 pub attributes: ::std::collections::HashMap<
996 ::prost::alloc::string::String,
997 ::prost::alloc::string::String,
998 >,
999 #[prost(message, repeated, tag = "11")]
1001 pub consumers: ::prost::alloc::vec::Vec<Consumer>,
1002 #[prost(enumeration = "MeteringMode", tag = "12")]
1004 pub metering_mode: i32,
1005}
1006#[allow(clippy::derive_partial_eq_without_eq)]
1009#[derive(Clone, PartialEq, ::prost::Message)]
1010pub struct CreateTopicResponse {
1011 #[prost(message, optional, tag = "1")]
1013 pub operation: ::core::option::Option<super::operations::Operation>,
1014}
1015#[allow(clippy::derive_partial_eq_without_eq)]
1018#[derive(Clone, PartialEq, ::prost::Message)]
1019pub struct CreateTopicResult {}
1020#[allow(clippy::derive_partial_eq_without_eq)]
1022#[derive(Clone, PartialEq, ::prost::Message)]
1023pub struct DescribeTopicRequest {
1024 #[prost(message, optional, tag = "1")]
1025 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1026 #[prost(string, tag = "2")]
1028 pub path: ::prost::alloc::string::String,
1029 #[prost(bool, tag = "3")]
1031 pub include_stats: bool,
1032}
1033#[allow(clippy::derive_partial_eq_without_eq)]
1036#[derive(Clone, PartialEq, ::prost::Message)]
1037pub struct DescribeTopicResponse {
1038 #[prost(message, optional, tag = "1")]
1040 pub operation: ::core::option::Option<super::operations::Operation>,
1041}
1042#[allow(clippy::derive_partial_eq_without_eq)]
1045#[derive(Clone, PartialEq, ::prost::Message)]
1046pub struct DescribeTopicResult {
1047 #[prost(message, optional, tag = "1")]
1049 pub self_: ::core::option::Option<super::scheme::Entry>,
1050 #[prost(message, optional, tag = "2")]
1052 pub partitioning_settings: ::core::option::Option<PartitioningSettings>,
1053 #[prost(message, repeated, tag = "3")]
1055 pub partitions: ::prost::alloc::vec::Vec<describe_topic_result::PartitionInfo>,
1056 #[prost(message, optional, tag = "4")]
1061 pub retention_period: ::core::option::Option<
1062 super::super::google::protobuf::Duration,
1063 >,
1064 #[prost(int64, tag = "5")]
1067 pub retention_storage_mb: i64,
1068 #[prost(message, optional, tag = "7")]
1071 pub supported_codecs: ::core::option::Option<SupportedCodecs>,
1072 #[prost(int64, tag = "8")]
1075 pub partition_write_speed_bytes_per_second: i64,
1076 #[prost(int64, tag = "9")]
1079 pub partition_write_burst_bytes: i64,
1080 #[prost(map = "string, string", tag = "10")]
1083 pub attributes: ::std::collections::HashMap<
1084 ::prost::alloc::string::String,
1085 ::prost::alloc::string::String,
1086 >,
1087 #[prost(message, repeated, tag = "11")]
1089 pub consumers: ::prost::alloc::vec::Vec<Consumer>,
1090 #[prost(enumeration = "MeteringMode", tag = "12")]
1092 pub metering_mode: i32,
1093 #[prost(message, optional, tag = "13")]
1095 pub topic_stats: ::core::option::Option<describe_topic_result::TopicStats>,
1096}
1097pub mod describe_topic_result {
1099 #[allow(clippy::derive_partial_eq_without_eq)]
1100 #[derive(Clone, PartialEq, ::prost::Message)]
1101 pub struct PartitionInfo {
1102 #[prost(int64, tag = "1")]
1104 pub partition_id: i64,
1105 #[prost(bool, tag = "2")]
1107 pub active: bool,
1108 #[prost(int64, repeated, tag = "3")]
1111 pub child_partition_ids: ::prost::alloc::vec::Vec<i64>,
1112 #[prost(int64, repeated, tag = "4")]
1115 pub parent_partition_ids: ::prost::alloc::vec::Vec<i64>,
1116 #[prost(message, optional, tag = "5")]
1119 pub partition_stats: ::core::option::Option<super::PartitionStats>,
1120 }
1121 #[allow(clippy::derive_partial_eq_without_eq)]
1122 #[derive(Clone, PartialEq, ::prost::Message)]
1123 pub struct TopicStats {
1124 #[prost(int64, tag = "1")]
1126 pub store_size_bytes: i64,
1127 #[prost(message, optional, tag = "2")]
1129 pub min_last_write_time: ::core::option::Option<
1130 super::super::super::google::protobuf::Timestamp,
1131 >,
1132 #[prost(message, optional, tag = "3")]
1135 pub max_write_time_lag: ::core::option::Option<
1136 super::super::super::google::protobuf::Duration,
1137 >,
1138 #[prost(message, optional, tag = "4")]
1140 pub bytes_written: ::core::option::Option<super::MultipleWindowsStat>,
1141 }
1142}
1143#[allow(clippy::derive_partial_eq_without_eq)]
1145#[derive(Clone, PartialEq, ::prost::Message)]
1146pub struct DescribeConsumerRequest {
1147 #[prost(message, optional, tag = "1")]
1148 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1149 #[prost(string, tag = "2")]
1151 pub path: ::prost::alloc::string::String,
1152 #[prost(string, tag = "3")]
1154 pub consumer: ::prost::alloc::string::String,
1155 #[prost(bool, tag = "4")]
1157 pub include_stats: bool,
1158}
1159#[allow(clippy::derive_partial_eq_without_eq)]
1162#[derive(Clone, PartialEq, ::prost::Message)]
1163pub struct DescribeConsumerResponse {
1164 #[prost(message, optional, tag = "1")]
1166 pub operation: ::core::option::Option<super::operations::Operation>,
1167}
1168#[allow(clippy::derive_partial_eq_without_eq)]
1171#[derive(Clone, PartialEq, ::prost::Message)]
1172pub struct DescribeConsumerResult {
1173 #[prost(message, optional, tag = "1")]
1175 pub self_: ::core::option::Option<super::scheme::Entry>,
1176 #[prost(message, optional, tag = "2")]
1177 pub consumer: ::core::option::Option<Consumer>,
1178 #[prost(message, repeated, tag = "3")]
1179 pub partitions: ::prost::alloc::vec::Vec<describe_consumer_result::PartitionInfo>,
1180}
1181pub mod describe_consumer_result {
1183 #[allow(clippy::derive_partial_eq_without_eq)]
1184 #[derive(Clone, PartialEq, ::prost::Message)]
1185 pub struct PartitionInfo {
1186 #[prost(int64, tag = "1")]
1188 pub partition_id: i64,
1189 #[prost(bool, tag = "2")]
1191 pub active: bool,
1192 #[prost(int64, repeated, tag = "3")]
1195 pub child_partition_ids: ::prost::alloc::vec::Vec<i64>,
1196 #[prost(int64, repeated, tag = "4")]
1199 pub parent_partition_ids: ::prost::alloc::vec::Vec<i64>,
1200 #[prost(message, optional, tag = "5")]
1203 pub partition_stats: ::core::option::Option<super::PartitionStats>,
1204 #[prost(message, optional, tag = "6")]
1207 pub partition_consumer_stats: ::core::option::Option<PartitionConsumerStats>,
1208 }
1209 #[allow(clippy::derive_partial_eq_without_eq)]
1210 #[derive(Clone, PartialEq, ::prost::Message)]
1211 pub struct PartitionConsumerStats {
1212 #[prost(int64, tag = "1")]
1214 pub last_read_offset: i64,
1215 #[prost(int64, tag = "2")]
1217 pub committed_offset: i64,
1218 #[prost(string, tag = "3")]
1220 pub read_session_id: ::prost::alloc::string::String,
1221 #[prost(message, optional, tag = "4")]
1223 pub partition_read_session_create_time: ::core::option::Option<
1224 super::super::super::google::protobuf::Timestamp,
1225 >,
1226 #[prost(message, optional, tag = "5")]
1228 pub last_read_time: ::core::option::Option<
1229 super::super::super::google::protobuf::Timestamp,
1230 >,
1231 #[prost(message, optional, tag = "6")]
1234 pub max_read_time_lag: ::core::option::Option<
1235 super::super::super::google::protobuf::Duration,
1236 >,
1237 #[prost(message, optional, tag = "7")]
1240 pub max_write_time_lag: ::core::option::Option<
1241 super::super::super::google::protobuf::Duration,
1242 >,
1243 #[prost(message, optional, tag = "8")]
1246 pub bytes_read: ::core::option::Option<super::MultipleWindowsStat>,
1247 #[prost(string, tag = "11")]
1249 pub reader_name: ::prost::alloc::string::String,
1250 #[prost(int32, tag = "12")]
1252 pub connection_node_id: i32,
1253 }
1254}
1255#[allow(clippy::derive_partial_eq_without_eq)]
1256#[derive(Clone, PartialEq, ::prost::Message)]
1257pub struct PartitionStats {
1258 #[prost(message, optional, tag = "1")]
1260 pub partition_offsets: ::core::option::Option<OffsetsRange>,
1261 #[prost(int64, tag = "2")]
1263 pub store_size_bytes: i64,
1264 #[prost(message, optional, tag = "3")]
1266 pub last_write_time: ::core::option::Option<
1267 super::super::google::protobuf::Timestamp,
1268 >,
1269 #[prost(message, optional, tag = "4")]
1272 pub max_write_time_lag: ::core::option::Option<
1273 super::super::google::protobuf::Duration,
1274 >,
1275 #[prost(message, optional, tag = "5")]
1277 pub bytes_written: ::core::option::Option<MultipleWindowsStat>,
1278 #[prost(int32, tag = "8")]
1281 pub partition_node_id: i32,
1282}
1283#[allow(clippy::derive_partial_eq_without_eq)]
1285#[derive(Clone, PartialEq, ::prost::Message)]
1286pub struct AlterTopicRequest {
1287 #[prost(message, optional, tag = "1")]
1288 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1289 #[prost(string, tag = "2")]
1291 pub path: ::prost::alloc::string::String,
1292 #[prost(message, optional, tag = "3")]
1294 pub alter_partitioning_settings: ::core::option::Option<AlterPartitioningSettings>,
1295 #[prost(message, optional, tag = "4")]
1301 pub set_retention_period: ::core::option::Option<
1302 super::super::google::protobuf::Duration,
1303 >,
1304 #[prost(int64, tag = "5")]
1307 pub set_retention_storage_mb: i64,
1308 #[prost(message, optional, tag = "7")]
1311 pub set_supported_codecs: ::core::option::Option<SupportedCodecs>,
1312 #[prost(int64, tag = "8")]
1315 pub set_partition_write_speed_bytes_per_second: i64,
1316 #[prost(int64, tag = "9")]
1319 pub set_partition_write_burst_bytes: i64,
1320 #[prost(map = "string, string", tag = "10")]
1324 pub alter_attributes: ::std::collections::HashMap<
1325 ::prost::alloc::string::String,
1326 ::prost::alloc::string::String,
1327 >,
1328 #[prost(message, repeated, tag = "11")]
1330 pub add_consumers: ::prost::alloc::vec::Vec<Consumer>,
1331 #[prost(string, repeated, tag = "12")]
1333 pub drop_consumers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1334 #[prost(message, repeated, tag = "13")]
1336 pub alter_consumers: ::prost::alloc::vec::Vec<AlterConsumer>,
1337 #[prost(enumeration = "MeteringMode", tag = "14")]
1339 pub set_metering_mode: i32,
1340}
1341#[allow(clippy::derive_partial_eq_without_eq)]
1343#[derive(Clone, PartialEq, ::prost::Message)]
1344pub struct AlterTopicResponse {
1345 #[prost(message, optional, tag = "1")]
1347 pub operation: ::core::option::Option<super::operations::Operation>,
1348}
1349#[allow(clippy::derive_partial_eq_without_eq)]
1352#[derive(Clone, PartialEq, ::prost::Message)]
1353pub struct AlterTopicResult {}
1354#[allow(clippy::derive_partial_eq_without_eq)]
1356#[derive(Clone, PartialEq, ::prost::Message)]
1357pub struct DropTopicRequest {
1358 #[prost(message, optional, tag = "1")]
1359 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1360 #[prost(string, tag = "2")]
1362 pub path: ::prost::alloc::string::String,
1363}
1364#[allow(clippy::derive_partial_eq_without_eq)]
1367#[derive(Clone, PartialEq, ::prost::Message)]
1368pub struct DropTopicResponse {
1369 #[prost(message, optional, tag = "1")]
1371 pub operation: ::core::option::Option<super::operations::Operation>,
1372}
1373#[allow(clippy::derive_partial_eq_without_eq)]
1375#[derive(Clone, PartialEq, ::prost::Message)]
1376pub struct DropTopicResult {}
1377#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1378#[repr(i32)]
1379pub enum Codec {
1380 Unspecified = 0,
1381 Raw = 1,
1382 Gzip = 2,
1383 Lzop = 3,
1384 Zstd = 4,
1385 Custom = 10000,
1387}
1388impl Codec {
1389 pub fn as_str_name(&self) -> &'static str {
1394 match self {
1395 Codec::Unspecified => "CODEC_UNSPECIFIED",
1396 Codec::Raw => "CODEC_RAW",
1397 Codec::Gzip => "CODEC_GZIP",
1398 Codec::Lzop => "CODEC_LZOP",
1399 Codec::Zstd => "CODEC_ZSTD",
1400 Codec::Custom => "CODEC_CUSTOM",
1401 }
1402 }
1403 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1405 match value {
1406 "CODEC_UNSPECIFIED" => Some(Self::Unspecified),
1407 "CODEC_RAW" => Some(Self::Raw),
1408 "CODEC_GZIP" => Some(Self::Gzip),
1409 "CODEC_LZOP" => Some(Self::Lzop),
1410 "CODEC_ZSTD" => Some(Self::Zstd),
1411 "CODEC_CUSTOM" => Some(Self::Custom),
1412 _ => None,
1413 }
1414 }
1415}
1416#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1420#[repr(i32)]
1421pub enum MeteringMode {
1422 Unspecified = 0,
1424 ReservedCapacity = 1,
1426 RequestUnits = 2,
1428}
1429impl MeteringMode {
1430 pub fn as_str_name(&self) -> &'static str {
1435 match self {
1436 MeteringMode::Unspecified => "METERING_MODE_UNSPECIFIED",
1437 MeteringMode::ReservedCapacity => "METERING_MODE_RESERVED_CAPACITY",
1438 MeteringMode::RequestUnits => "METERING_MODE_REQUEST_UNITS",
1439 }
1440 }
1441 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1443 match value {
1444 "METERING_MODE_UNSPECIFIED" => Some(Self::Unspecified),
1445 "METERING_MODE_RESERVED_CAPACITY" => Some(Self::ReservedCapacity),
1446 "METERING_MODE_REQUEST_UNITS" => Some(Self::RequestUnits),
1447 _ => None,
1448 }
1449 }
1450}