1#[derive(serde::Serialize, serde::Deserialize)]
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#[derive(serde::Serialize, serde::Deserialize)]
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#[derive(serde::Serialize, serde::Deserialize)]
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct UpdateTokenRequest {
25 #[prost(string, tag = "1")]
26 pub token: ::prost::alloc::string::String,
27}
28#[derive(serde::Serialize, serde::Deserialize)]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct UpdateTokenResponse {}
31#[derive(serde::Serialize, serde::Deserialize)]
32#[derive(Clone, PartialEq, ::prost::Message)]
33pub struct PartitionWithGeneration {
34 #[prost(int64, tag = "1")]
36 pub partition_id: i64,
37 #[prost(int64, tag = "2")]
39 pub generation: i64,
40}
41#[derive(serde::Serialize, serde::Deserialize)]
42#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct MetadataItem {
44 #[prost(string, tag = "1")]
45 pub key: ::prost::alloc::string::String,
46 #[prost(bytes = "vec", tag = "2")]
47 pub value: ::prost::alloc::vec::Vec<u8>,
48}
49#[derive(serde::Serialize, serde::Deserialize)]
51#[derive(Clone, PartialEq, ::prost::Message)]
52pub struct StreamWriteMessage {}
53pub mod stream_write_message {
55 #[derive(serde::Serialize, serde::Deserialize)]
60 #[derive(Clone, PartialEq, ::prost::Message)]
61 pub struct FromClient {
62 #[prost(oneof = "from_client::ClientMessage", tags = "1, 2, 3")]
63 pub client_message: ::core::option::Option<from_client::ClientMessage>,
64 }
65 pub mod from_client {
67 #[derive(serde::Serialize, serde::Deserialize)]
68 #[derive(Clone, PartialEq, ::prost::Oneof)]
69 pub enum ClientMessage {
70 #[prost(message, tag = "1")]
71 InitRequest(super::InitRequest),
72 #[prost(message, tag = "2")]
73 WriteRequest(super::WriteRequest),
74 #[prost(message, tag = "3")]
75 UpdateTokenRequest(super::super::UpdateTokenRequest),
76 }
77 }
78 #[derive(serde::Serialize, serde::Deserialize)]
83 #[derive(Clone, PartialEq, ::prost::Message)]
84 pub struct FromServer {
85 #[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
87 pub status: i32,
88 #[prost(message, repeated, tag = "2")]
90 pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
91 #[prost(oneof = "from_server::ServerMessage", tags = "3, 4, 5")]
92 pub server_message: ::core::option::Option<from_server::ServerMessage>,
93 }
94 pub mod from_server {
96 #[derive(serde::Serialize, serde::Deserialize)]
97 #[derive(Clone, PartialEq, ::prost::Oneof)]
98 pub enum ServerMessage {
99 #[prost(message, tag = "3")]
100 InitResponse(super::InitResponse),
101 #[prost(message, tag = "4")]
102 WriteResponse(super::WriteResponse),
103 #[prost(message, tag = "5")]
104 UpdateTokenResponse(super::super::UpdateTokenResponse),
105 }
106 }
107 #[derive(serde::Serialize, serde::Deserialize)]
109 #[derive(Clone, PartialEq, ::prost::Message)]
110 pub struct InitRequest {
111 #[prost(string, tag = "1")]
113 pub path: ::prost::alloc::string::String,
114 #[prost(string, tag = "2")]
117 pub producer_id: ::prost::alloc::string::String,
118 #[prost(map = "string, string", tag = "3")]
121 pub write_session_meta: ::std::collections::HashMap<
122 ::prost::alloc::string::String,
123 ::prost::alloc::string::String,
124 >,
125 #[prost(bool, tag = "6")]
128 pub get_last_seq_no: bool,
129 #[prost(oneof = "init_request::Partitioning", tags = "4, 5, 7")]
132 pub partitioning: ::core::option::Option<init_request::Partitioning>,
133 }
134 pub mod init_request {
136 #[derive(serde::Serialize, serde::Deserialize)]
139 #[derive(Clone, PartialEq, ::prost::Oneof)]
140 pub enum Partitioning {
141 #[prost(string, tag = "4")]
143 MessageGroupId(::prost::alloc::string::String),
144 #[prost(int64, tag = "5")]
146 PartitionId(i64),
147 #[prost(message, tag = "7")]
149 PartitionWithGeneration(super::super::PartitionWithGeneration),
150 }
151 }
152 #[derive(serde::Serialize, serde::Deserialize)]
154 #[derive(Clone, PartialEq, ::prost::Message)]
155 pub struct InitResponse {
156 #[prost(int64, tag = "1")]
159 pub last_seq_no: i64,
160 #[prost(string, tag = "2")]
162 pub session_id: ::prost::alloc::string::String,
163 #[prost(int64, tag = "3")]
165 pub partition_id: i64,
166 #[prost(message, optional, tag = "4")]
169 pub supported_codecs: ::core::option::Option<super::SupportedCodecs>,
170 }
171 #[derive(serde::Serialize, serde::Deserialize)]
173 #[derive(Clone, PartialEq, ::prost::Message)]
174 pub struct WriteRequest {
175 #[prost(message, repeated, tag = "1")]
176 pub messages: ::prost::alloc::vec::Vec<write_request::MessageData>,
177 #[prost(int32, tag = "2")]
180 pub codec: i32,
181 #[prost(message, optional, tag = "3")]
182 pub tx: ::core::option::Option<super::TransactionIdentity>,
183 }
184 pub mod write_request {
186 #[derive(serde::Serialize, serde::Deserialize)]
187 #[derive(Clone, PartialEq, ::prost::Message)]
188 pub struct MessageData {
189 #[prost(int64, tag = "1")]
192 pub seq_no: i64,
193 #[prost(message, optional, tag = "2")]
195 pub created_at: ::core::option::Option<
196 super::super::super::super::google::protobuf::Timestamp,
197 >,
198 #[prost(bytes = "vec", tag = "3")]
200 pub data: ::prost::alloc::vec::Vec<u8>,
201 #[prost(int64, tag = "4")]
203 pub uncompressed_size: i64,
204 #[prost(message, repeated, tag = "7")]
206 pub metadata_items: ::prost::alloc::vec::Vec<super::super::MetadataItem>,
207 #[prost(oneof = "message_data::Partitioning", tags = "5, 6, 8")]
209 pub partitioning: ::core::option::Option<message_data::Partitioning>,
210 }
211 pub mod message_data {
213 #[derive(serde::Serialize, serde::Deserialize)]
215 #[derive(Clone, PartialEq, ::prost::Oneof)]
216 pub enum Partitioning {
217 #[prost(string, tag = "5")]
219 MessageGroupId(::prost::alloc::string::String),
220 #[prost(int64, tag = "6")]
222 PartitionId(i64),
223 #[prost(message, tag = "8")]
225 PartitionWithGeneration(super::super::super::PartitionWithGeneration),
226 }
227 }
228 }
229 #[derive(serde::Serialize, serde::Deserialize)]
232 #[derive(Clone, PartialEq, ::prost::Message)]
233 pub struct WriteResponse {
234 #[prost(message, repeated, tag = "1")]
236 pub acks: ::prost::alloc::vec::Vec<write_response::WriteAck>,
237 #[prost(int64, tag = "2")]
241 pub partition_id: i64,
242 #[prost(message, optional, tag = "3")]
244 pub write_statistics: ::core::option::Option<write_response::WriteStatistics>,
245 }
246 pub mod write_response {
248 #[derive(serde::Serialize, serde::Deserialize)]
250 #[derive(Clone, PartialEq, ::prost::Message)]
251 pub struct WriteAck {
252 #[prost(int64, tag = "1")]
254 pub seq_no: i64,
255 #[prost(oneof = "write_ack::MessageWriteStatus", tags = "2, 3, 4")]
257 pub message_write_status: ::core::option::Option<
258 write_ack::MessageWriteStatus,
259 >,
260 }
261 pub mod write_ack {
263 #[derive(serde::Serialize, serde::Deserialize)]
264 #[derive(Clone, PartialEq, ::prost::Message)]
265 pub struct Written {
266 #[prost(int64, tag = "1")]
268 pub offset: i64,
269 }
270 #[derive(serde::Serialize, serde::Deserialize)]
271 #[derive(Clone, PartialEq, ::prost::Message)]
272 pub struct Skipped {
273 #[prost(enumeration = "skipped::Reason", tag = "1")]
274 pub reason: i32,
275 }
276 pub mod skipped {
278 #[derive(serde::Serialize, serde::Deserialize)]
279 #[derive(
280 Clone,
281 Copy,
282 Debug,
283 PartialEq,
284 Eq,
285 Hash,
286 PartialOrd,
287 Ord,
288 ::prost::Enumeration
289 )]
290 #[repr(i32)]
291 pub enum Reason {
292 Unspecified = 0,
293 AlreadyWritten = 1,
294 }
295 impl Reason {
296 pub fn as_str_name(&self) -> &'static str {
300 match self {
301 Reason::Unspecified => "REASON_UNSPECIFIED",
302 Reason::AlreadyWritten => "REASON_ALREADY_WRITTEN",
303 }
304 }
305 }
306 }
307 #[derive(serde::Serialize, serde::Deserialize)]
308 #[derive(Clone, PartialEq, ::prost::Message)]
309 pub struct WrittenInTx {}
310 #[derive(serde::Serialize, serde::Deserialize)]
312 #[derive(Clone, PartialEq, ::prost::Oneof)]
313 pub enum MessageWriteStatus {
314 #[prost(message, tag = "2")]
315 Written(Written),
316 #[prost(message, tag = "3")]
317 Skipped(Skipped),
318 #[prost(message, tag = "4")]
319 WrittenInTx(WrittenInTx),
320 }
321 }
322 #[derive(serde::Serialize, serde::Deserialize)]
324 #[derive(Clone, PartialEq, ::prost::Message)]
325 pub struct WriteStatistics {
326 #[prost(message, optional, tag = "1")]
328 pub persisting_time: ::core::option::Option<
329 super::super::super::super::google::protobuf::Duration,
330 >,
331 #[prost(message, optional, tag = "2")]
333 pub min_queue_wait_time: ::core::option::Option<
334 super::super::super::super::google::protobuf::Duration,
335 >,
336 #[prost(message, optional, tag = "3")]
338 pub max_queue_wait_time: ::core::option::Option<
339 super::super::super::super::google::protobuf::Duration,
340 >,
341 #[prost(message, optional, tag = "4")]
343 pub partition_quota_wait_time: ::core::option::Option<
344 super::super::super::super::google::protobuf::Duration,
345 >,
346 #[prost(message, optional, tag = "5")]
348 pub topic_quota_wait_time: ::core::option::Option<
349 super::super::super::super::google::protobuf::Duration,
350 >,
351 }
352 }
353}
354#[derive(serde::Serialize, serde::Deserialize)]
356#[derive(Clone, PartialEq, ::prost::Message)]
357pub struct StreamReadMessage {}
358pub mod stream_read_message {
360 #[derive(serde::Serialize, serde::Deserialize)]
363 #[derive(Clone, PartialEq, ::prost::Message)]
364 pub struct PartitionSession {
365 #[prost(int64, tag = "1")]
367 pub partition_session_id: i64,
368 #[prost(string, tag = "2")]
370 pub path: ::prost::alloc::string::String,
371 #[prost(int64, tag = "3")]
373 pub partition_id: i64,
374 }
375 #[derive(serde::Serialize, serde::Deserialize)]
387 #[derive(Clone, PartialEq, ::prost::Message)]
388 pub struct FromClient {
389 #[prost(oneof = "from_client::ClientMessage", tags = "1, 2, 3, 4, 5, 8, 6, 7")]
390 pub client_message: ::core::option::Option<from_client::ClientMessage>,
391 }
392 pub mod from_client {
394 #[derive(serde::Serialize, serde::Deserialize)]
395 #[derive(Clone, PartialEq, ::prost::Oneof)]
396 pub enum ClientMessage {
397 #[prost(message, tag = "1")]
399 InitRequest(super::InitRequest),
400 #[prost(message, tag = "2")]
401 ReadRequest(super::ReadRequest),
402 #[prost(message, tag = "3")]
403 CommitOffsetRequest(super::CommitOffsetRequest),
404 #[prost(message, tag = "4")]
405 PartitionSessionStatusRequest(super::PartitionSessionStatusRequest),
406 #[prost(message, tag = "5")]
407 UpdateTokenRequest(super::super::UpdateTokenRequest),
408 #[prost(message, tag = "8")]
409 DirectReadAck(super::DirectReadAck),
410 #[prost(message, tag = "6")]
412 StartPartitionSessionResponse(super::StartPartitionSessionResponse),
413 #[prost(message, tag = "7")]
414 StopPartitionSessionResponse(super::StopPartitionSessionResponse),
415 }
416 }
417 #[derive(serde::Serialize, serde::Deserialize)]
427 #[derive(Clone, PartialEq, ::prost::Message)]
428 pub struct FromServer {
429 #[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
431 pub status: i32,
432 #[prost(message, repeated, tag = "2")]
434 pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
435 #[prost(oneof = "from_server::ServerMessage", tags = "3, 4, 5, 6, 7, 8, 9, 10")]
436 pub server_message: ::core::option::Option<from_server::ServerMessage>,
437 }
438 pub mod from_server {
440 #[derive(serde::Serialize, serde::Deserialize)]
441 #[derive(Clone, PartialEq, ::prost::Oneof)]
442 pub enum ServerMessage {
443 #[prost(message, tag = "3")]
445 InitResponse(super::InitResponse),
446 #[prost(message, tag = "4")]
447 ReadResponse(super::ReadResponse),
448 #[prost(message, tag = "5")]
449 CommitOffsetResponse(super::CommitOffsetResponse),
450 #[prost(message, tag = "6")]
451 PartitionSessionStatusResponse(super::PartitionSessionStatusResponse),
452 #[prost(message, tag = "7")]
453 UpdateTokenResponse(super::super::UpdateTokenResponse),
454 #[prost(message, tag = "8")]
456 StartPartitionSessionRequest(super::StartPartitionSessionRequest),
457 #[prost(message, tag = "9")]
458 StopPartitionSessionRequest(super::StopPartitionSessionRequest),
459 #[prost(message, tag = "10")]
460 UpdatePartitionSession(super::UpdatePartitionSession),
461 }
462 }
463 #[derive(serde::Serialize, serde::Deserialize)]
465 #[derive(Clone, PartialEq, ::prost::Message)]
466 pub struct InitRequest {
467 #[prost(message, repeated, tag = "1")]
470 pub topics_read_settings: ::prost::alloc::vec::Vec<
471 init_request::TopicReadSettings,
472 >,
473 #[prost(string, tag = "2")]
475 pub consumer: ::prost::alloc::string::String,
476 #[prost(string, tag = "3")]
478 pub reader_name: ::prost::alloc::string::String,
479 #[prost(bool, tag = "4")]
481 pub direct_read: bool,
482 }
483 pub mod init_request {
485 #[derive(serde::Serialize, serde::Deserialize)]
486 #[derive(Clone, PartialEq, ::prost::Message)]
487 pub struct TopicReadSettings {
488 #[prost(string, tag = "1")]
490 pub path: ::prost::alloc::string::String,
491 #[prost(int64, repeated, tag = "2")]
494 pub partition_ids: ::prost::alloc::vec::Vec<i64>,
495 #[prost(message, optional, tag = "3")]
498 pub max_lag: ::core::option::Option<
499 super::super::super::super::google::protobuf::Duration,
500 >,
501 #[prost(message, optional, tag = "4")]
504 pub read_from: ::core::option::Option<
505 super::super::super::super::google::protobuf::Timestamp,
506 >,
507 }
508 }
509 #[derive(serde::Serialize, serde::Deserialize)]
511 #[derive(Clone, PartialEq, ::prost::Message)]
512 pub struct InitResponse {
513 #[prost(string, tag = "1")]
515 pub session_id: ::prost::alloc::string::String,
516 }
517 #[derive(serde::Serialize, serde::Deserialize)]
519 #[derive(Clone, PartialEq, ::prost::Message)]
520 pub struct ReadRequest {
521 #[prost(int64, tag = "1")]
540 pub bytes_size: i64,
541 }
542 #[derive(serde::Serialize, serde::Deserialize)]
544 #[derive(Clone, PartialEq, ::prost::Message)]
545 pub struct ReadResponse {
546 #[prost(message, repeated, tag = "1")]
548 pub partition_data: ::prost::alloc::vec::Vec<read_response::PartitionData>,
549 #[prost(int64, tag = "2")]
552 pub bytes_size: i64,
553 }
554 pub mod read_response {
556 #[derive(serde::Serialize, serde::Deserialize)]
558 #[derive(Clone, PartialEq, ::prost::Message)]
559 pub struct MessageData {
560 #[prost(int64, tag = "1")]
563 pub offset: i64,
564 #[prost(int64, tag = "2")]
566 pub seq_no: i64,
567 #[prost(message, optional, tag = "3")]
569 pub created_at: ::core::option::Option<
570 super::super::super::super::google::protobuf::Timestamp,
571 >,
572 #[prost(bytes = "vec", tag = "5")]
574 pub data: ::prost::alloc::vec::Vec<u8>,
575 #[prost(int64, tag = "6")]
579 pub uncompressed_size: i64,
580 #[prost(string, tag = "7")]
582 pub message_group_id: ::prost::alloc::string::String,
583 #[prost(message, repeated, tag = "8")]
584 pub metadata_items: ::prost::alloc::vec::Vec<super::super::MetadataItem>,
585 }
586 #[derive(serde::Serialize, serde::Deserialize)]
588 #[derive(Clone, PartialEq, ::prost::Message)]
589 pub struct Batch {
590 #[prost(message, repeated, tag = "1")]
592 pub message_data: ::prost::alloc::vec::Vec<MessageData>,
593 #[prost(string, tag = "2")]
595 pub producer_id: ::prost::alloc::string::String,
596 #[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 #[derive(serde::Serialize, serde::Deserialize)]
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 #[derive(serde::Serialize, serde::Deserialize)]
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 #[derive(serde::Serialize, serde::Deserialize)]
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 #[derive(serde::Serialize, serde::Deserialize)]
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 #[derive(serde::Serialize, serde::Deserialize)]
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 #[derive(serde::Serialize, serde::Deserialize)]
672 #[derive(Clone, PartialEq, ::prost::Message)]
673 pub struct PartitionSessionStatusRequest {
674 #[prost(int64, tag = "1")]
675 pub partition_session_id: i64,
676 }
677 #[derive(serde::Serialize, serde::Deserialize)]
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")]
689 pub committed_offset: i64,
690 #[prost(message, optional, tag = "4")]
692 pub write_time_high_watermark: ::core::option::Option<
693 super::super::super::google::protobuf::Timestamp,
694 >,
695 }
696 #[derive(serde::Serialize, serde::Deserialize)]
699 #[derive(Clone, PartialEq, ::prost::Message)]
700 pub struct StartPartitionSessionRequest {
701 #[prost(message, optional, tag = "1")]
703 pub partition_session: ::core::option::Option<PartitionSession>,
704 #[prost(int64, tag = "2")]
706 pub committed_offset: i64,
707 #[prost(message, optional, tag = "3")]
709 pub partition_offsets: ::core::option::Option<super::OffsetsRange>,
710 #[prost(message, optional, tag = "4")]
712 pub partition_location: ::core::option::Option<super::PartitionLocation>,
713 }
714 #[derive(serde::Serialize, serde::Deserialize)]
716 #[derive(Clone, PartialEq, ::prost::Message)]
717 pub struct StartPartitionSessionResponse {
718 #[prost(int64, tag = "1")]
720 pub partition_session_id: i64,
721 #[prost(int64, optional, tag = "2")]
729 pub read_offset: ::core::option::Option<i64>,
730 #[prost(int64, optional, tag = "3")]
733 pub commit_offset: ::core::option::Option<i64>,
734 }
735 #[derive(serde::Serialize, serde::Deserialize)]
737 #[derive(Clone, PartialEq, ::prost::Message)]
738 pub struct StopPartitionSessionRequest {
739 #[prost(int64, tag = "1")]
741 pub partition_session_id: i64,
742 #[prost(bool, tag = "2")]
749 pub graceful: bool,
750 #[prost(int64, tag = "3")]
752 pub committed_offset: i64,
753 #[prost(int64, tag = "4")]
755 pub last_direct_read_id: i64,
756 }
757 #[derive(serde::Serialize, serde::Deserialize)]
761 #[derive(Clone, PartialEq, ::prost::Message)]
762 pub struct StopPartitionSessionResponse {
763 #[prost(int64, tag = "1")]
765 pub partition_session_id: i64,
766 #[prost(bool, tag = "2")]
770 pub graceful: bool,
771 }
772 #[derive(serde::Serialize, serde::Deserialize)]
775 #[derive(Clone, PartialEq, ::prost::Message)]
776 pub struct UpdatePartitionSession {
777 #[prost(int64, tag = "1")]
779 pub partition_session_id: i64,
780 #[prost(message, optional, tag = "2")]
782 pub partition_location: ::core::option::Option<super::PartitionLocation>,
783 }
784 #[derive(serde::Serialize, serde::Deserialize)]
787 #[derive(Clone, PartialEq, ::prost::Message)]
788 pub struct DirectReadAck {
789 #[prost(int64, tag = "1")]
791 pub partition_session_id: i64,
792 #[prost(int64, tag = "2")]
794 pub direct_read_id: i64,
795 }
796}
797#[derive(serde::Serialize, serde::Deserialize)]
799#[derive(Clone, PartialEq, ::prost::Message)]
800pub struct StreamDirectReadMessage {}
801pub mod stream_direct_read_message {
803 #[derive(serde::Serialize, serde::Deserialize)]
808 #[derive(Clone, PartialEq, ::prost::Message)]
809 pub struct FromClient {
810 #[prost(oneof = "from_client::ClientMessage", tags = "1, 2, 3")]
811 pub client_message: ::core::option::Option<from_client::ClientMessage>,
812 }
813 pub mod from_client {
815 #[derive(serde::Serialize, serde::Deserialize)]
816 #[derive(Clone, PartialEq, ::prost::Oneof)]
817 pub enum ClientMessage {
818 #[prost(message, tag = "1")]
819 InitDirectRead(super::InitDirectRead),
820 #[prost(message, tag = "2")]
821 StartDirectReadPartitionSession(super::StartDirectReadPartitionSession),
822 #[prost(message, tag = "3")]
823 UpdateTokenRequest(super::super::UpdateTokenRequest),
824 }
825 }
826 #[derive(serde::Serialize, serde::Deserialize)]
831 #[derive(Clone, PartialEq, ::prost::Message)]
832 pub struct FromServer {
833 #[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
835 pub status: i32,
836 #[prost(message, repeated, tag = "2")]
838 pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
839 #[prost(oneof = "from_server::ServerMessage", tags = "3, 4, 5")]
840 pub server_message: ::core::option::Option<from_server::ServerMessage>,
841 }
842 pub mod from_server {
844 #[derive(serde::Serialize, serde::Deserialize)]
845 #[derive(Clone, PartialEq, ::prost::Oneof)]
846 pub enum ServerMessage {
847 #[prost(message, tag = "3")]
848 StopDirectReadPartitionSession(super::StopDirectReadPartitionSession),
849 #[prost(message, tag = "4")]
850 DirectReadResponse(super::DirectReadResponse),
851 #[prost(message, tag = "5")]
852 UpdateTokenResponse(super::super::UpdateTokenResponse),
853 }
854 }
855 #[derive(serde::Serialize, serde::Deserialize)]
858 #[derive(Clone, PartialEq, ::prost::Message)]
859 pub struct InitDirectRead {
860 #[prost(string, tag = "1")]
862 pub session_id: ::prost::alloc::string::String,
863 #[prost(message, repeated, tag = "2")]
865 pub topics_read_settings: ::prost::alloc::vec::Vec<
866 init_direct_read::TopicReadSettings,
867 >,
868 #[prost(string, tag = "3")]
870 pub consumer: ::prost::alloc::string::String,
871 }
872 pub mod init_direct_read {
874 #[derive(serde::Serialize, serde::Deserialize)]
875 #[derive(Clone, PartialEq, ::prost::Message)]
876 pub struct TopicReadSettings {
877 #[prost(string, tag = "1")]
879 pub path: ::prost::alloc::string::String,
880 }
881 }
882 #[derive(serde::Serialize, serde::Deserialize)]
885 #[derive(Clone, PartialEq, ::prost::Message)]
886 pub struct StartDirectReadPartitionSession {
887 #[prost(int64, tag = "1")]
889 pub partition_session_id: i64,
890 #[prost(int64, tag = "2")]
892 pub last_direct_read_id: i64,
893 #[prost(int64, tag = "3")]
895 pub generation: i64,
896 }
897 #[derive(serde::Serialize, serde::Deserialize)]
900 #[derive(Clone, PartialEq, ::prost::Message)]
901 pub struct StopDirectReadPartitionSession {
902 #[prost(enumeration = "super::super::status_ids::StatusCode", tag = "1")]
904 pub status: i32,
905 #[prost(message, repeated, tag = "2")]
907 pub issues: ::prost::alloc::vec::Vec<super::super::issue::IssueMessage>,
908 #[prost(int64, tag = "3")]
910 pub partition_session_id: i64,
911 }
912 #[derive(serde::Serialize, serde::Deserialize)]
915 #[derive(Clone, PartialEq, ::prost::Message)]
916 pub struct DirectReadResponse {
917 #[prost(int64, tag = "1")]
919 pub partition_session_id: i64,
920 #[prost(int64, tag = "2")]
922 pub direct_read_id: i64,
923 #[prost(message, optional, tag = "3")]
925 pub partition_data: ::core::option::Option<
926 super::stream_read_message::read_response::PartitionData,
927 >,
928 }
929}
930#[derive(serde::Serialize, serde::Deserialize)]
931#[derive(Clone, PartialEq, ::prost::Message)]
932pub struct TransactionIdentity {
933 #[prost(string, tag = "1")]
935 pub id: ::prost::alloc::string::String,
936 #[prost(string, tag = "2")]
938 pub session: ::prost::alloc::string::String,
939}
940#[derive(serde::Serialize, serde::Deserialize)]
942#[derive(Clone, PartialEq, ::prost::Message)]
943pub struct UpdateOffsetsInTransactionRequest {
944 #[prost(message, optional, tag = "1")]
945 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
946 #[prost(message, optional, tag = "2")]
947 pub tx: ::core::option::Option<TransactionIdentity>,
948 #[prost(message, repeated, tag = "3")]
950 pub topics: ::prost::alloc::vec::Vec<
951 update_offsets_in_transaction_request::TopicOffsets,
952 >,
953 #[prost(string, tag = "4")]
954 pub consumer: ::prost::alloc::string::String,
955}
956pub mod update_offsets_in_transaction_request {
958 #[derive(serde::Serialize, serde::Deserialize)]
959 #[derive(Clone, PartialEq, ::prost::Message)]
960 pub struct TopicOffsets {
961 #[prost(string, tag = "1")]
963 pub path: ::prost::alloc::string::String,
964 #[prost(message, repeated, tag = "2")]
966 pub partitions: ::prost::alloc::vec::Vec<topic_offsets::PartitionOffsets>,
967 }
968 pub mod topic_offsets {
970 #[derive(serde::Serialize, serde::Deserialize)]
971 #[derive(Clone, PartialEq, ::prost::Message)]
972 pub struct PartitionOffsets {
973 #[prost(int64, tag = "1")]
975 pub partition_id: i64,
976 #[prost(message, repeated, tag = "2")]
978 pub partition_offsets: ::prost::alloc::vec::Vec<super::super::OffsetsRange>,
979 }
980 }
981}
982#[derive(serde::Serialize, serde::Deserialize)]
984#[derive(Clone, PartialEq, ::prost::Message)]
985pub struct UpdateOffsetsInTransactionResponse {
986 #[prost(message, optional, tag = "1")]
988 pub operation: ::core::option::Option<super::operations::Operation>,
989}
990#[derive(serde::Serialize, serde::Deserialize)]
992#[derive(Clone, PartialEq, ::prost::Message)]
993pub struct UpdateOffsetsInTransactionResult {}
994#[derive(serde::Serialize, serde::Deserialize)]
996#[derive(Clone, PartialEq, ::prost::Message)]
997pub struct CommitOffsetRequest {
998 #[prost(message, optional, tag = "1")]
999 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1000 #[prost(string, tag = "2")]
1002 pub path: ::prost::alloc::string::String,
1003 #[prost(int64, tag = "3")]
1005 pub partition_id: i64,
1006 #[prost(string, tag = "4")]
1008 pub consumer: ::prost::alloc::string::String,
1009 #[prost(int64, tag = "5")]
1011 pub offset: i64,
1012}
1013#[derive(serde::Serialize, serde::Deserialize)]
1015#[derive(Clone, PartialEq, ::prost::Message)]
1016pub struct CommitOffsetResponse {
1017 #[prost(message, optional, tag = "1")]
1019 pub operation: ::core::option::Option<super::operations::Operation>,
1020}
1021#[derive(serde::Serialize, serde::Deserialize)]
1023#[derive(Clone, PartialEq, ::prost::Message)]
1024pub struct CommitOffsetResult {}
1025#[derive(serde::Serialize, serde::Deserialize)]
1027#[derive(Clone, PartialEq, ::prost::Message)]
1028pub struct MultipleWindowsStat {
1029 #[prost(int64, tag = "1")]
1030 pub per_minute: i64,
1031 #[prost(int64, tag = "2")]
1032 pub per_hour: i64,
1033 #[prost(int64, tag = "3")]
1034 pub per_day: i64,
1035}
1036#[derive(serde::Serialize, serde::Deserialize)]
1038#[derive(Clone, PartialEq, ::prost::Message)]
1039pub struct Consumer {
1040 #[prost(string, tag = "1")]
1042 pub name: ::prost::alloc::string::String,
1043 #[prost(bool, tag = "2")]
1047 pub important: bool,
1048 #[prost(message, optional, tag = "3")]
1050 pub read_from: ::core::option::Option<super::super::google::protobuf::Timestamp>,
1051 #[prost(message, optional, tag = "5")]
1055 pub supported_codecs: ::core::option::Option<SupportedCodecs>,
1056 #[prost(map = "string, string", tag = "6")]
1058 pub attributes: ::std::collections::HashMap<
1059 ::prost::alloc::string::String,
1060 ::prost::alloc::string::String,
1061 >,
1062 #[prost(message, optional, tag = "7")]
1064 pub consumer_stats: ::core::option::Option<consumer::ConsumerStats>,
1065}
1066pub mod consumer {
1068 #[derive(serde::Serialize, serde::Deserialize)]
1069 #[derive(Clone, PartialEq, ::prost::Message)]
1070 pub struct ConsumerStats {
1071 #[prost(message, optional, tag = "1")]
1073 pub min_partitions_last_read_time: ::core::option::Option<
1074 super::super::super::google::protobuf::Timestamp,
1075 >,
1076 #[prost(message, optional, tag = "2")]
1078 pub max_read_time_lag: ::core::option::Option<
1079 super::super::super::google::protobuf::Duration,
1080 >,
1081 #[prost(message, optional, tag = "3")]
1083 pub max_write_time_lag: ::core::option::Option<
1084 super::super::super::google::protobuf::Duration,
1085 >,
1086 #[prost(message, optional, tag = "4")]
1088 pub bytes_read: ::core::option::Option<super::MultipleWindowsStat>,
1089 }
1090}
1091#[derive(serde::Serialize, serde::Deserialize)]
1093#[derive(Clone, PartialEq, ::prost::Message)]
1094pub struct AlterConsumer {
1095 #[prost(string, tag = "1")]
1097 pub name: ::prost::alloc::string::String,
1098 #[prost(bool, optional, tag = "2")]
1102 pub set_important: ::core::option::Option<bool>,
1103 #[prost(message, optional, tag = "3")]
1105 pub set_read_from: ::core::option::Option<super::super::google::protobuf::Timestamp>,
1106 #[prost(message, optional, tag = "5")]
1110 pub set_supported_codecs: ::core::option::Option<SupportedCodecs>,
1111 #[prost(map = "string, string", tag = "6")]
1114 pub alter_attributes: ::std::collections::HashMap<
1115 ::prost::alloc::string::String,
1116 ::prost::alloc::string::String,
1117 >,
1118}
1119#[derive(serde::Serialize, serde::Deserialize)]
1121#[derive(Clone, PartialEq, ::prost::Message)]
1122pub struct PartitioningSettings {
1123 #[prost(int64, tag = "1")]
1126 pub min_active_partitions: i64,
1127 #[prost(int64, tag = "2")]
1130 pub partition_count_limit: i64,
1131}
1132#[derive(serde::Serialize, serde::Deserialize)]
1134#[derive(Clone, PartialEq, ::prost::Message)]
1135pub struct AlterPartitioningSettings {
1136 #[prost(int64, optional, tag = "1")]
1139 pub set_min_active_partitions: ::core::option::Option<i64>,
1140 #[prost(int64, optional, tag = "2")]
1143 pub set_partition_count_limit: ::core::option::Option<i64>,
1144}
1145#[derive(serde::Serialize, serde::Deserialize)]
1147#[derive(Clone, PartialEq, ::prost::Message)]
1148pub struct CreateTopicRequest {
1149 #[prost(message, optional, tag = "1")]
1150 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1151 #[prost(string, tag = "2")]
1153 pub path: ::prost::alloc::string::String,
1154 #[prost(message, optional, tag = "3")]
1156 pub partitioning_settings: ::core::option::Option<PartitioningSettings>,
1157 #[prost(message, optional, tag = "4")]
1162 pub retention_period: ::core::option::Option<
1163 super::super::google::protobuf::Duration,
1164 >,
1165 #[prost(int64, tag = "5")]
1168 pub retention_storage_mb: i64,
1169 #[prost(message, optional, tag = "7")]
1173 pub supported_codecs: ::core::option::Option<SupportedCodecs>,
1174 #[prost(int64, tag = "8")]
1177 pub partition_write_speed_bytes_per_second: i64,
1178 #[prost(int64, tag = "9")]
1181 pub partition_write_burst_bytes: i64,
1182 #[prost(map = "string, string", tag = "10")]
1184 pub attributes: ::std::collections::HashMap<
1185 ::prost::alloc::string::String,
1186 ::prost::alloc::string::String,
1187 >,
1188 #[prost(message, repeated, tag = "11")]
1190 pub consumers: ::prost::alloc::vec::Vec<Consumer>,
1191 #[prost(enumeration = "MeteringMode", tag = "12")]
1193 pub metering_mode: i32,
1194}
1195#[derive(serde::Serialize, serde::Deserialize)]
1198#[derive(Clone, PartialEq, ::prost::Message)]
1199pub struct CreateTopicResponse {
1200 #[prost(message, optional, tag = "1")]
1202 pub operation: ::core::option::Option<super::operations::Operation>,
1203}
1204#[derive(serde::Serialize, serde::Deserialize)]
1206#[derive(Clone, PartialEq, ::prost::Message)]
1207pub struct CreateTopicResult {}
1208#[derive(serde::Serialize, serde::Deserialize)]
1210#[derive(Clone, PartialEq, ::prost::Message)]
1211pub struct PartitionLocation {
1212 #[prost(int32, tag = "1")]
1214 pub node_id: i32,
1215 #[prost(int64, tag = "2")]
1217 pub generation: i64,
1218}
1219#[derive(serde::Serialize, serde::Deserialize)]
1221#[derive(Clone, PartialEq, ::prost::Message)]
1222pub struct DescribeTopicRequest {
1223 #[prost(message, optional, tag = "1")]
1224 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1225 #[prost(string, tag = "2")]
1227 pub path: ::prost::alloc::string::String,
1228 #[prost(bool, tag = "3")]
1230 pub include_stats: bool,
1231 #[prost(bool, tag = "4")]
1233 pub include_location: bool,
1234}
1235#[derive(serde::Serialize, serde::Deserialize)]
1238#[derive(Clone, PartialEq, ::prost::Message)]
1239pub struct DescribeTopicResponse {
1240 #[prost(message, optional, tag = "1")]
1242 pub operation: ::core::option::Option<super::operations::Operation>,
1243}
1244#[derive(serde::Serialize, serde::Deserialize)]
1246#[derive(Clone, PartialEq, ::prost::Message)]
1247pub struct DescribeTopicResult {
1248 #[prost(message, optional, tag = "1")]
1250 pub self_: ::core::option::Option<super::scheme::Entry>,
1251 #[prost(message, optional, tag = "2")]
1253 pub partitioning_settings: ::core::option::Option<PartitioningSettings>,
1254 #[prost(message, repeated, tag = "3")]
1256 pub partitions: ::prost::alloc::vec::Vec<describe_topic_result::PartitionInfo>,
1257 #[prost(message, optional, tag = "4")]
1261 pub retention_period: ::core::option::Option<
1262 super::super::google::protobuf::Duration,
1263 >,
1264 #[prost(int64, tag = "5")]
1267 pub retention_storage_mb: i64,
1268 #[prost(message, optional, tag = "7")]
1272 pub supported_codecs: ::core::option::Option<SupportedCodecs>,
1273 #[prost(int64, tag = "8")]
1276 pub partition_write_speed_bytes_per_second: i64,
1277 #[prost(int64, tag = "14")]
1278 pub partition_total_read_speed_bytes_per_second: i64,
1279 #[prost(int64, tag = "15")]
1280 pub partition_consumer_read_speed_bytes_per_second: i64,
1281 #[prost(int64, tag = "9")]
1284 pub partition_write_burst_bytes: i64,
1285 #[prost(map = "string, string", tag = "10")]
1287 pub attributes: ::std::collections::HashMap<
1288 ::prost::alloc::string::String,
1289 ::prost::alloc::string::String,
1290 >,
1291 #[prost(message, repeated, tag = "11")]
1293 pub consumers: ::prost::alloc::vec::Vec<Consumer>,
1294 #[prost(enumeration = "MeteringMode", tag = "12")]
1296 pub metering_mode: i32,
1297 #[prost(message, optional, tag = "13")]
1299 pub topic_stats: ::core::option::Option<describe_topic_result::TopicStats>,
1300}
1301pub mod describe_topic_result {
1303 #[derive(serde::Serialize, serde::Deserialize)]
1304 #[derive(Clone, PartialEq, ::prost::Message)]
1305 pub struct PartitionInfo {
1306 #[prost(int64, tag = "1")]
1308 pub partition_id: i64,
1309 #[prost(bool, tag = "2")]
1311 pub active: bool,
1312 #[prost(int64, repeated, tag = "3")]
1314 pub child_partition_ids: ::prost::alloc::vec::Vec<i64>,
1315 #[prost(int64, repeated, tag = "4")]
1317 pub parent_partition_ids: ::prost::alloc::vec::Vec<i64>,
1318 #[prost(message, optional, tag = "5")]
1320 pub partition_stats: ::core::option::Option<super::PartitionStats>,
1321 #[prost(message, optional, tag = "6")]
1323 pub partition_location: ::core::option::Option<super::PartitionLocation>,
1324 }
1325 #[derive(serde::Serialize, serde::Deserialize)]
1326 #[derive(Clone, PartialEq, ::prost::Message)]
1327 pub struct TopicStats {
1328 #[prost(int64, tag = "1")]
1330 pub store_size_bytes: i64,
1331 #[prost(message, optional, tag = "2")]
1333 pub min_last_write_time: ::core::option::Option<
1334 super::super::super::google::protobuf::Timestamp,
1335 >,
1336 #[prost(message, optional, tag = "3")]
1338 pub max_write_time_lag: ::core::option::Option<
1339 super::super::super::google::protobuf::Duration,
1340 >,
1341 #[prost(message, optional, tag = "4")]
1343 pub bytes_written: ::core::option::Option<super::MultipleWindowsStat>,
1344 }
1345}
1346#[derive(serde::Serialize, serde::Deserialize)]
1348#[derive(Clone, PartialEq, ::prost::Message)]
1349pub struct DescribePartitionRequest {
1350 #[prost(message, optional, tag = "1")]
1351 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1352 #[prost(string, tag = "2")]
1354 pub path: ::prost::alloc::string::String,
1355 #[prost(int64, tag = "3")]
1357 pub partition_id: i64,
1358 #[prost(bool, tag = "4")]
1360 pub include_stats: bool,
1361 #[prost(bool, tag = "5")]
1363 pub include_location: bool,
1364}
1365#[derive(serde::Serialize, serde::Deserialize)]
1368#[derive(Clone, PartialEq, ::prost::Message)]
1369pub struct DescribePartitionResponse {
1370 #[prost(message, optional, tag = "1")]
1372 pub operation: ::core::option::Option<super::operations::Operation>,
1373}
1374#[derive(serde::Serialize, serde::Deserialize)]
1376#[derive(Clone, PartialEq, ::prost::Message)]
1377pub struct DescribePartitionResult {
1378 #[prost(message, optional, tag = "1")]
1380 pub partition: ::core::option::Option<describe_topic_result::PartitionInfo>,
1381}
1382#[derive(serde::Serialize, serde::Deserialize)]
1384#[derive(Clone, PartialEq, ::prost::Message)]
1385pub struct DescribeConsumerRequest {
1386 #[prost(message, optional, tag = "1")]
1387 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1388 #[prost(string, tag = "2")]
1390 pub path: ::prost::alloc::string::String,
1391 #[prost(string, tag = "3")]
1393 pub consumer: ::prost::alloc::string::String,
1394 #[prost(bool, tag = "4")]
1396 pub include_stats: bool,
1397 #[prost(bool, tag = "5")]
1399 pub include_location: bool,
1400}
1401#[derive(serde::Serialize, serde::Deserialize)]
1404#[derive(Clone, PartialEq, ::prost::Message)]
1405pub struct DescribeConsumerResponse {
1406 #[prost(message, optional, tag = "1")]
1408 pub operation: ::core::option::Option<super::operations::Operation>,
1409}
1410#[derive(serde::Serialize, serde::Deserialize)]
1412#[derive(Clone, PartialEq, ::prost::Message)]
1413pub struct DescribeConsumerResult {
1414 #[prost(message, optional, tag = "1")]
1416 pub self_: ::core::option::Option<super::scheme::Entry>,
1417 #[prost(message, optional, tag = "2")]
1418 pub consumer: ::core::option::Option<Consumer>,
1419 #[prost(message, repeated, tag = "3")]
1420 pub partitions: ::prost::alloc::vec::Vec<describe_consumer_result::PartitionInfo>,
1421}
1422pub mod describe_consumer_result {
1424 #[derive(serde::Serialize, serde::Deserialize)]
1425 #[derive(Clone, PartialEq, ::prost::Message)]
1426 pub struct PartitionInfo {
1427 #[prost(int64, tag = "1")]
1429 pub partition_id: i64,
1430 #[prost(bool, tag = "2")]
1432 pub active: bool,
1433 #[prost(int64, repeated, tag = "3")]
1435 pub child_partition_ids: ::prost::alloc::vec::Vec<i64>,
1436 #[prost(int64, repeated, tag = "4")]
1438 pub parent_partition_ids: ::prost::alloc::vec::Vec<i64>,
1439 #[prost(message, optional, tag = "5")]
1441 pub partition_stats: ::core::option::Option<super::PartitionStats>,
1442 #[prost(message, optional, tag = "6")]
1444 pub partition_consumer_stats: ::core::option::Option<PartitionConsumerStats>,
1445 #[prost(message, optional, tag = "7")]
1447 pub partition_location: ::core::option::Option<super::PartitionLocation>,
1448 }
1449 #[derive(serde::Serialize, serde::Deserialize)]
1450 #[derive(Clone, PartialEq, ::prost::Message)]
1451 pub struct PartitionConsumerStats {
1452 #[prost(int64, tag = "1")]
1454 pub last_read_offset: i64,
1455 #[prost(int64, tag = "2")]
1457 pub committed_offset: i64,
1458 #[prost(string, tag = "3")]
1460 pub read_session_id: ::prost::alloc::string::String,
1461 #[prost(message, optional, tag = "4")]
1463 pub partition_read_session_create_time: ::core::option::Option<
1464 super::super::super::google::protobuf::Timestamp,
1465 >,
1466 #[prost(message, optional, tag = "5")]
1468 pub last_read_time: ::core::option::Option<
1469 super::super::super::google::protobuf::Timestamp,
1470 >,
1471 #[prost(message, optional, tag = "6")]
1473 pub max_read_time_lag: ::core::option::Option<
1474 super::super::super::google::protobuf::Duration,
1475 >,
1476 #[prost(message, optional, tag = "7")]
1478 pub max_write_time_lag: ::core::option::Option<
1479 super::super::super::google::protobuf::Duration,
1480 >,
1481 #[prost(message, optional, tag = "8")]
1483 pub bytes_read: ::core::option::Option<super::MultipleWindowsStat>,
1484 #[prost(string, tag = "11")]
1486 pub reader_name: ::prost::alloc::string::String,
1487 #[prost(int32, tag = "12")]
1489 pub connection_node_id: i32,
1490 }
1491}
1492#[derive(serde::Serialize, serde::Deserialize)]
1493#[derive(Clone, PartialEq, ::prost::Message)]
1494pub struct PartitionStats {
1495 #[prost(message, optional, tag = "1")]
1497 pub partition_offsets: ::core::option::Option<OffsetsRange>,
1498 #[prost(int64, tag = "2")]
1500 pub store_size_bytes: i64,
1501 #[prost(message, optional, tag = "3")]
1503 pub last_write_time: ::core::option::Option<
1504 super::super::google::protobuf::Timestamp,
1505 >,
1506 #[prost(message, optional, tag = "4")]
1508 pub max_write_time_lag: ::core::option::Option<
1509 super::super::google::protobuf::Duration,
1510 >,
1511 #[prost(message, optional, tag = "5")]
1513 pub bytes_written: ::core::option::Option<MultipleWindowsStat>,
1514 #[deprecated]
1517 #[prost(int32, tag = "8")]
1518 pub partition_node_id: i32,
1519}
1520#[derive(serde::Serialize, serde::Deserialize)]
1522#[derive(Clone, PartialEq, ::prost::Message)]
1523pub struct AlterTopicRequest {
1524 #[prost(message, optional, tag = "1")]
1525 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1526 #[prost(string, tag = "2")]
1528 pub path: ::prost::alloc::string::String,
1529 #[prost(message, optional, tag = "3")]
1531 pub alter_partitioning_settings: ::core::option::Option<AlterPartitioningSettings>,
1532 #[prost(message, optional, tag = "4")]
1537 pub set_retention_period: ::core::option::Option<
1538 super::super::google::protobuf::Duration,
1539 >,
1540 #[prost(int64, optional, tag = "5")]
1542 pub set_retention_storage_mb: ::core::option::Option<i64>,
1543 #[prost(message, optional, tag = "7")]
1547 pub set_supported_codecs: ::core::option::Option<SupportedCodecs>,
1548 #[prost(int64, optional, tag = "8")]
1550 pub set_partition_write_speed_bytes_per_second: ::core::option::Option<i64>,
1551 #[prost(int64, optional, tag = "9")]
1553 pub set_partition_write_burst_bytes: ::core::option::Option<i64>,
1554 #[prost(map = "string, string", tag = "10")]
1557 pub alter_attributes: ::std::collections::HashMap<
1558 ::prost::alloc::string::String,
1559 ::prost::alloc::string::String,
1560 >,
1561 #[prost(message, repeated, tag = "11")]
1563 pub add_consumers: ::prost::alloc::vec::Vec<Consumer>,
1564 #[prost(string, repeated, tag = "12")]
1566 pub drop_consumers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1567 #[prost(message, repeated, tag = "13")]
1569 pub alter_consumers: ::prost::alloc::vec::Vec<AlterConsumer>,
1570 #[prost(enumeration = "MeteringMode", tag = "14")]
1572 pub set_metering_mode: i32,
1573}
1574#[derive(serde::Serialize, serde::Deserialize)]
1576#[derive(Clone, PartialEq, ::prost::Message)]
1577pub struct AlterTopicResponse {
1578 #[prost(message, optional, tag = "1")]
1580 pub operation: ::core::option::Option<super::operations::Operation>,
1581}
1582#[derive(serde::Serialize, serde::Deserialize)]
1584#[derive(Clone, PartialEq, ::prost::Message)]
1585pub struct AlterTopicResult {}
1586#[derive(serde::Serialize, serde::Deserialize)]
1588#[derive(Clone, PartialEq, ::prost::Message)]
1589pub struct DropTopicRequest {
1590 #[prost(message, optional, tag = "1")]
1591 pub operation_params: ::core::option::Option<super::operations::OperationParams>,
1592 #[prost(string, tag = "2")]
1594 pub path: ::prost::alloc::string::String,
1595}
1596#[derive(serde::Serialize, serde::Deserialize)]
1599#[derive(Clone, PartialEq, ::prost::Message)]
1600pub struct DropTopicResponse {
1601 #[prost(message, optional, tag = "1")]
1603 pub operation: ::core::option::Option<super::operations::Operation>,
1604}
1605#[derive(serde::Serialize, serde::Deserialize)]
1607#[derive(Clone, PartialEq, ::prost::Message)]
1608pub struct DropTopicResult {}
1609#[derive(serde::Serialize, serde::Deserialize)]
1610#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1611#[repr(i32)]
1612pub enum Codec {
1613 Unspecified = 0,
1614 Raw = 1,
1615 Gzip = 2,
1616 Lzop = 3,
1617 Zstd = 4,
1618 Custom = 10000,
1620}
1621impl Codec {
1622 pub fn as_str_name(&self) -> &'static str {
1626 match self {
1627 Codec::Unspecified => "CODEC_UNSPECIFIED",
1628 Codec::Raw => "CODEC_RAW",
1629 Codec::Gzip => "CODEC_GZIP",
1630 Codec::Lzop => "CODEC_LZOP",
1631 Codec::Zstd => "CODEC_ZSTD",
1632 Codec::Custom => "CODEC_CUSTOM",
1633 }
1634 }
1635}
1636#[derive(serde::Serialize, serde::Deserialize)]
1639#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1640#[repr(i32)]
1641pub enum MeteringMode {
1642 Unspecified = 0,
1644 ReservedCapacity = 1,
1646 RequestUnits = 2,
1648}
1649impl MeteringMode {
1650 pub fn as_str_name(&self) -> &'static str {
1654 match self {
1655 MeteringMode::Unspecified => "METERING_MODE_UNSPECIFIED",
1656 MeteringMode::ReservedCapacity => "METERING_MODE_RESERVED_CAPACITY",
1657 MeteringMode::RequestUnits => "METERING_MODE_REQUEST_UNITS",
1658 }
1659 }
1660}