1#[derive(prost_helpers::AnyPB)]
3#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct WaitVersion {
5 #[prost(uint64, tag = "1")]
6 pub catalog_version: u64,
7 #[prost(uint64, tag = "2", wrapper = "crate::id::HummockVersionId")]
8 pub hummock_version_id: crate::id::HummockVersionId,
9}
10#[derive(prost_helpers::AnyPB)]
11#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
12pub struct CreateDatabaseRequest {
13 #[prost(message, optional, tag = "1")]
14 pub db: ::core::option::Option<super::catalog::Database>,
15}
16#[derive(prost_helpers::AnyPB)]
17#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
18pub struct CreateDatabaseResponse {
19 #[prost(message, optional, tag = "1")]
20 pub status: ::core::option::Option<super::common::Status>,
21 #[prost(message, optional, tag = "2")]
22 pub version: ::core::option::Option<WaitVersion>,
23}
24#[derive(prost_helpers::AnyPB)]
25#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
26pub struct DropDatabaseRequest {
27 #[prost(uint32, tag = "1", wrapper = "crate::id::DatabaseId")]
28 pub database_id: crate::id::DatabaseId,
29}
30#[derive(prost_helpers::AnyPB)]
31#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
32pub struct DropDatabaseResponse {
33 #[prost(message, optional, tag = "1")]
34 pub status: ::core::option::Option<super::common::Status>,
35 #[prost(message, optional, tag = "2")]
36 pub version: ::core::option::Option<WaitVersion>,
37}
38#[derive(prost_helpers::AnyPB)]
39#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
40pub struct CreateSchemaRequest {
41 #[prost(message, optional, tag = "1")]
42 pub schema: ::core::option::Option<super::catalog::Schema>,
43}
44#[derive(prost_helpers::AnyPB)]
45#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
46pub struct CreateSchemaResponse {
47 #[prost(message, optional, tag = "1")]
48 pub status: ::core::option::Option<super::common::Status>,
49 #[prost(message, optional, tag = "2")]
50 pub version: ::core::option::Option<WaitVersion>,
51}
52#[derive(prost_helpers::AnyPB)]
53#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
54pub struct DropSchemaRequest {
55 #[prost(uint32, tag = "1", wrapper = "crate::id::SchemaId")]
56 pub schema_id: crate::id::SchemaId,
57 #[prost(bool, tag = "2")]
58 pub cascade: bool,
59}
60#[derive(prost_helpers::AnyPB)]
61#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
62pub struct DropSchemaResponse {
63 #[prost(message, optional, tag = "1")]
64 pub status: ::core::option::Option<super::common::Status>,
65 #[prost(message, optional, tag = "2")]
66 pub version: ::core::option::Option<WaitVersion>,
67}
68#[derive(prost_helpers::AnyPB)]
69#[derive(Clone, PartialEq, ::prost::Message)]
70pub struct CreateSourceRequest {
71 #[prost(message, optional, tag = "1")]
72 pub source: ::core::option::Option<super::catalog::Source>,
73 #[prost(message, optional, tag = "2")]
74 pub fragment_graph: ::core::option::Option<super::stream_plan::StreamFragmentGraph>,
75 #[prost(bool, tag = "3")]
76 pub if_not_exists: bool,
77}
78#[derive(prost_helpers::AnyPB)]
79#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
80pub struct CreateSourceResponse {
81 #[prost(message, optional, tag = "1")]
82 pub status: ::core::option::Option<super::common::Status>,
83 #[prost(message, optional, tag = "2")]
84 pub version: ::core::option::Option<WaitVersion>,
85}
86#[derive(prost_helpers::AnyPB)]
87#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
88pub struct DropSourceRequest {
89 #[prost(uint32, tag = "1", wrapper = "crate::id::SourceId")]
90 pub source_id: crate::id::SourceId,
91 #[prost(bool, tag = "2")]
92 pub cascade: bool,
93}
94#[derive(prost_helpers::AnyPB)]
95#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
96pub struct DropSourceResponse {
97 #[prost(message, optional, tag = "1")]
98 pub status: ::core::option::Option<super::common::Status>,
99 #[prost(message, optional, tag = "2")]
100 pub version: ::core::option::Option<WaitVersion>,
101}
102#[derive(prost_helpers::AnyPB)]
104#[derive(Clone, PartialEq, ::prost::Message)]
105pub struct AlterSourceRequest {
106 #[prost(message, optional, tag = "1")]
107 pub source: ::core::option::Option<super::catalog::Source>,
108}
109#[derive(prost_helpers::AnyPB)]
111#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
112pub struct AlterSourceResponse {
113 #[prost(message, optional, tag = "1")]
114 pub status: ::core::option::Option<super::common::Status>,
115 #[prost(message, optional, tag = "2")]
116 pub version: ::core::option::Option<WaitVersion>,
117}
118#[derive(prost_helpers::AnyPB)]
120#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
121pub struct ResetSourceRequest {
122 #[prost(uint32, tag = "1", wrapper = "crate::id::SourceId")]
123 pub source_id: crate::id::SourceId,
124}
125#[derive(prost_helpers::AnyPB)]
126#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
127pub struct ResetSourceResponse {
128 #[prost(message, optional, tag = "1")]
129 pub status: ::core::option::Option<super::common::Status>,
130 #[prost(message, optional, tag = "2")]
131 pub version: ::core::option::Option<WaitVersion>,
132}
133#[derive(prost_helpers::AnyPB)]
134#[derive(Clone, PartialEq, ::prost::Message)]
135pub struct CreateSinkRequest {
136 #[prost(message, optional, tag = "1")]
137 pub sink: ::core::option::Option<super::catalog::Sink>,
138 #[prost(message, optional, tag = "2")]
139 pub fragment_graph: ::core::option::Option<super::stream_plan::StreamFragmentGraph>,
140 #[prost(uint32, repeated, tag = "4", wrapper = "crate::id::ObjectId")]
142 pub dependencies: ::prost::alloc::vec::Vec<crate::id::ObjectId>,
143 #[prost(bool, tag = "5")]
144 pub if_not_exists: bool,
145}
146#[derive(prost_helpers::AnyPB)]
147#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
148pub struct CreateSinkResponse {
149 #[prost(message, optional, tag = "1")]
150 pub status: ::core::option::Option<super::common::Status>,
151 #[prost(message, optional, tag = "2")]
152 pub version: ::core::option::Option<WaitVersion>,
153}
154#[derive(prost_helpers::AnyPB)]
155#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
156pub struct DropSinkRequest {
157 #[prost(uint32, tag = "1", wrapper = "crate::id::SinkId")]
158 pub sink_id: crate::id::SinkId,
159 #[prost(bool, tag = "2")]
160 pub cascade: bool,
161}
162#[derive(prost_helpers::AnyPB)]
163#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
164pub struct DropSinkResponse {
165 #[prost(message, optional, tag = "1")]
166 pub status: ::core::option::Option<super::common::Status>,
167 #[prost(message, optional, tag = "2")]
168 pub version: ::core::option::Option<WaitVersion>,
169}
170#[derive(prost_helpers::AnyPB)]
171#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
172pub struct CreateSubscriptionRequest {
173 #[prost(message, optional, tag = "1")]
174 pub subscription: ::core::option::Option<super::catalog::Subscription>,
175}
176#[derive(prost_helpers::AnyPB)]
177#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
178pub struct CreateSubscriptionResponse {
179 #[prost(message, optional, tag = "1")]
180 pub status: ::core::option::Option<super::common::Status>,
181 #[prost(message, optional, tag = "2")]
182 pub version: ::core::option::Option<WaitVersion>,
183}
184#[derive(prost_helpers::AnyPB)]
185#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
186pub struct DropSubscriptionRequest {
187 #[prost(uint32, tag = "1", wrapper = "crate::id::SubscriptionId")]
188 pub subscription_id: crate::id::SubscriptionId,
189 #[prost(bool, tag = "2")]
190 pub cascade: bool,
191}
192#[derive(prost_helpers::AnyPB)]
193#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
194pub struct DropSubscriptionResponse {
195 #[prost(message, optional, tag = "1")]
196 pub status: ::core::option::Option<super::common::Status>,
197 #[prost(message, optional, tag = "2")]
198 pub version: ::core::option::Option<WaitVersion>,
199}
200#[derive(prost_helpers::AnyPB)]
204#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
205pub struct StreamingJobResourceType {
206 #[prost(oneof = "streaming_job_resource_type::ResourceType", tags = "1, 2, 3")]
207 pub resource_type: ::core::option::Option<streaming_job_resource_type::ResourceType>,
208}
209pub mod streaming_job_resource_type {
211 #[derive(prost_helpers::AnyPB)]
212 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
213 pub enum ResourceType {
214 #[prost(bool, tag = "1")]
215 Regular(bool),
216 #[prost(string, tag = "2")]
218 SpecificResourceGroup(::prost::alloc::string::String),
219 #[prost(string, tag = "3")]
220 ServerlessBackfillResourceGroup(::prost::alloc::string::String),
221 }
222}
223#[derive(prost_helpers::AnyPB)]
224#[derive(Clone, PartialEq, ::prost::Message)]
225pub struct CreateMaterializedViewRequest {
226 #[prost(message, optional, tag = "1")]
227 pub materialized_view: ::core::option::Option<super::catalog::Table>,
228 #[prost(message, optional, tag = "2")]
229 pub fragment_graph: ::core::option::Option<super::stream_plan::StreamFragmentGraph>,
230 #[prost(message, optional, tag = "3")]
231 pub resource_type: ::core::option::Option<StreamingJobResourceType>,
232 #[prost(uint32, repeated, tag = "4", wrapper = "crate::id::ObjectId")]
234 pub dependencies: ::prost::alloc::vec::Vec<crate::id::ObjectId>,
235 #[prost(bool, tag = "6")]
236 pub if_not_exists: bool,
237}
238#[derive(prost_helpers::AnyPB)]
239#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
240pub struct CreateMaterializedViewResponse {
241 #[prost(message, optional, tag = "1")]
242 pub status: ::core::option::Option<super::common::Status>,
243 #[prost(message, optional, tag = "2")]
244 pub version: ::core::option::Option<WaitVersion>,
245}
246#[derive(prost_helpers::AnyPB)]
247#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
248pub struct DropMaterializedViewRequest {
249 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
250 pub table_id: crate::id::TableId,
251 #[prost(bool, tag = "2")]
252 pub cascade: bool,
253}
254#[derive(prost_helpers::AnyPB)]
255#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
256pub struct DropMaterializedViewResponse {
257 #[prost(message, optional, tag = "1")]
258 pub status: ::core::option::Option<super::common::Status>,
259 #[prost(message, optional, tag = "2")]
260 pub version: ::core::option::Option<WaitVersion>,
261}
262#[derive(prost_helpers::AnyPB)]
263#[derive(Clone, PartialEq, ::prost::Message)]
264pub struct CreateViewRequest {
265 #[prost(message, optional, tag = "1")]
266 pub view: ::core::option::Option<super::catalog::View>,
267 #[prost(uint32, repeated, tag = "2", wrapper = "crate::id::ObjectId")]
269 pub dependencies: ::prost::alloc::vec::Vec<crate::id::ObjectId>,
270}
271#[derive(prost_helpers::AnyPB)]
272#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
273pub struct CreateViewResponse {
274 #[prost(message, optional, tag = "1")]
275 pub status: ::core::option::Option<super::common::Status>,
276 #[prost(message, optional, tag = "2")]
277 pub version: ::core::option::Option<WaitVersion>,
278}
279#[derive(prost_helpers::AnyPB)]
280#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
281pub struct DropViewRequest {
282 #[prost(uint32, tag = "1", wrapper = "crate::id::ViewId")]
283 pub view_id: crate::id::ViewId,
284 #[prost(bool, tag = "2")]
285 pub cascade: bool,
286}
287#[derive(prost_helpers::AnyPB)]
288#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
289pub struct DropViewResponse {
290 #[prost(message, optional, tag = "1")]
291 pub status: ::core::option::Option<super::common::Status>,
292 #[prost(message, optional, tag = "2")]
293 pub version: ::core::option::Option<WaitVersion>,
294}
295#[derive(prost_helpers::AnyPB)]
296#[derive(Clone, PartialEq, ::prost::Message)]
297pub struct CreateTableRequest {
298 #[prost(message, optional, tag = "1")]
301 pub source: ::core::option::Option<super::catalog::Source>,
302 #[prost(message, optional, tag = "2")]
303 pub materialized_view: ::core::option::Option<super::catalog::Table>,
304 #[prost(message, optional, tag = "3")]
305 pub fragment_graph: ::core::option::Option<super::stream_plan::StreamFragmentGraph>,
306 #[prost(enumeration = "TableJobType", tag = "4")]
307 pub job_type: i32,
308 #[prost(bool, tag = "5")]
309 pub if_not_exists: bool,
310 #[prost(uint32, repeated, tag = "6", wrapper = "crate::id::ObjectId")]
312 pub dependencies: ::prost::alloc::vec::Vec<crate::id::ObjectId>,
313}
314#[derive(prost_helpers::AnyPB)]
315#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
316pub struct CreateTableResponse {
317 #[prost(message, optional, tag = "1")]
318 pub status: ::core::option::Option<super::common::Status>,
319 #[prost(message, optional, tag = "2")]
320 pub version: ::core::option::Option<WaitVersion>,
321}
322#[derive(prost_helpers::AnyPB)]
323#[derive(Clone, PartialEq, ::prost::Message)]
324pub struct CreateIcebergTableRequest {
325 #[prost(message, optional, tag = "1")]
326 pub table_info: ::core::option::Option<create_iceberg_table_request::TableJobInfo>,
327 #[prost(message, optional, tag = "2")]
328 pub sink_info: ::core::option::Option<create_iceberg_table_request::SinkJobInfo>,
329 #[prost(message, optional, tag = "3")]
330 pub iceberg_source: ::core::option::Option<super::catalog::Source>,
331 #[prost(bool, tag = "5")]
332 pub if_not_exists: bool,
333}
334pub mod create_iceberg_table_request {
336 #[derive(prost_helpers::AnyPB)]
337 #[derive(Clone, PartialEq, ::prost::Message)]
338 pub struct TableJobInfo {
339 #[prost(message, optional, tag = "1")]
340 pub source: ::core::option::Option<super::super::catalog::Source>,
341 #[prost(message, optional, tag = "2")]
342 pub table: ::core::option::Option<super::super::catalog::Table>,
343 #[prost(message, optional, tag = "3")]
344 pub fragment_graph: ::core::option::Option<
345 super::super::stream_plan::StreamFragmentGraph,
346 >,
347 #[prost(enumeration = "super::TableJobType", tag = "4")]
348 pub job_type: i32,
349 }
350 #[derive(prost_helpers::AnyPB)]
351 #[derive(Clone, PartialEq, ::prost::Message)]
352 pub struct SinkJobInfo {
353 #[prost(message, optional, tag = "1")]
354 pub sink: ::core::option::Option<super::super::catalog::Sink>,
355 #[prost(message, optional, tag = "2")]
356 pub fragment_graph: ::core::option::Option<
357 super::super::stream_plan::StreamFragmentGraph,
358 >,
359 }
360}
361#[derive(prost_helpers::AnyPB)]
362#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
363pub struct CreateIcebergTableResponse {
364 #[prost(message, optional, tag = "1")]
365 pub status: ::core::option::Option<super::common::Status>,
366 #[prost(message, optional, tag = "2")]
367 pub version: ::core::option::Option<WaitVersion>,
368}
369#[derive(prost_helpers::AnyPB)]
370#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
371pub struct AlterNameRequest {
372 #[prost(string, tag = "20")]
373 pub new_name: ::prost::alloc::string::String,
374 #[prost(oneof = "alter_name_request::Object", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
375 pub object: ::core::option::Option<alter_name_request::Object>,
376}
377pub mod alter_name_request {
379 #[derive(prost_helpers::AnyPB)]
380 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
381 pub enum Object {
382 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
383 TableId(crate::id::TableId),
384 #[prost(uint32, tag = "2", wrapper = "crate::id::ViewId")]
385 ViewId(crate::id::ViewId),
386 #[prost(uint32, tag = "3", wrapper = "crate::id::IndexId")]
387 IndexId(crate::id::IndexId),
388 #[prost(uint32, tag = "4", wrapper = "crate::id::SinkId")]
389 SinkId(crate::id::SinkId),
390 #[prost(uint32, tag = "5", wrapper = "crate::id::SourceId")]
391 SourceId(crate::id::SourceId),
392 #[prost(uint32, tag = "6", wrapper = "crate::id::SchemaId")]
393 SchemaId(crate::id::SchemaId),
394 #[prost(uint32, tag = "7", wrapper = "crate::id::DatabaseId")]
395 DatabaseId(crate::id::DatabaseId),
396 #[prost(uint32, tag = "8", wrapper = "crate::id::SubscriptionId")]
397 SubscriptionId(crate::id::SubscriptionId),
398 }
399}
400#[derive(prost_helpers::AnyPB)]
401#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
402pub struct AlterNameResponse {
403 #[prost(message, optional, tag = "1")]
404 pub status: ::core::option::Option<super::common::Status>,
405 #[prost(message, optional, tag = "2")]
406 pub version: ::core::option::Option<WaitVersion>,
407}
408#[derive(prost_helpers::AnyPB)]
409#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
410pub struct AlterOwnerRequest {
411 #[prost(uint32, tag = "20", wrapper = "crate::id::UserId")]
412 pub owner_id: crate::id::UserId,
413 #[prost(
414 oneof = "alter_owner_request::Object",
415 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
416 )]
417 pub object: ::core::option::Option<alter_owner_request::Object>,
418}
419pub mod alter_owner_request {
421 #[derive(prost_helpers::AnyPB)]
422 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
423 pub enum Object {
424 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
425 TableId(crate::id::TableId),
426 #[prost(uint32, tag = "2", wrapper = "crate::id::ViewId")]
427 ViewId(crate::id::ViewId),
428 #[prost(uint32, tag = "3", wrapper = "crate::id::SourceId")]
429 SourceId(crate::id::SourceId),
430 #[prost(uint32, tag = "4", wrapper = "crate::id::SinkId")]
431 SinkId(crate::id::SinkId),
432 #[prost(uint32, tag = "5", wrapper = "crate::id::SchemaId")]
433 SchemaId(crate::id::SchemaId),
434 #[prost(uint32, tag = "6", wrapper = "crate::id::DatabaseId")]
435 DatabaseId(crate::id::DatabaseId),
436 #[prost(uint32, tag = "7", wrapper = "crate::id::SubscriptionId")]
437 SubscriptionId(crate::id::SubscriptionId),
438 #[prost(uint32, tag = "8", wrapper = "crate::id::ConnectionId")]
439 ConnectionId(crate::id::ConnectionId),
440 #[prost(uint32, tag = "9", wrapper = "crate::id::SecretId")]
441 SecretId(crate::id::SecretId),
442 #[prost(uint32, tag = "10", wrapper = "crate::id::FunctionId")]
443 FunctionId(crate::id::FunctionId),
444 }
445}
446#[derive(prost_helpers::AnyPB)]
447#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
448pub struct AlterSetSchemaRequest {
449 #[prost(uint32, tag = "20", wrapper = "crate::id::SchemaId")]
450 pub new_schema_id: crate::id::SchemaId,
451 #[prost(oneof = "alter_set_schema_request::Object", tags = "1, 2, 3, 4, 5, 6, 7")]
452 pub object: ::core::option::Option<alter_set_schema_request::Object>,
453}
454pub mod alter_set_schema_request {
456 #[derive(prost_helpers::AnyPB)]
457 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
458 pub enum Object {
459 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
460 TableId(crate::id::TableId),
461 #[prost(uint32, tag = "2", wrapper = "crate::id::ViewId")]
462 ViewId(crate::id::ViewId),
463 #[prost(uint32, tag = "3", wrapper = "crate::id::SourceId")]
464 SourceId(crate::id::SourceId),
465 #[prost(uint32, tag = "4", wrapper = "crate::id::SinkId")]
466 SinkId(crate::id::SinkId),
467 #[prost(uint32, tag = "5", wrapper = "crate::id::FunctionId")]
468 FunctionId(crate::id::FunctionId),
469 #[prost(uint32, tag = "6", wrapper = "crate::id::ConnectionId")]
470 ConnectionId(crate::id::ConnectionId),
471 #[prost(uint32, tag = "7", wrapper = "crate::id::SubscriptionId")]
472 SubscriptionId(crate::id::SubscriptionId),
473 }
474}
475#[derive(prost_helpers::AnyPB)]
476#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
477pub struct AlterSetSchemaResponse {
478 #[prost(message, optional, tag = "1")]
479 pub status: ::core::option::Option<super::common::Status>,
480 #[prost(message, optional, tag = "2")]
481 pub version: ::core::option::Option<WaitVersion>,
482}
483#[derive(prost_helpers::AnyPB)]
484#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
485pub struct AlterParallelismRequest {
486 #[prost(uint32, tag = "1", wrapper = "crate::id::JobId")]
488 pub table_id: crate::id::JobId,
489 #[prost(message, optional, tag = "2")]
490 pub parallelism: ::core::option::Option<super::meta::TableParallelism>,
491 #[prost(bool, tag = "3")]
492 pub deferred: bool,
493 #[prost(string, optional, tag = "4")]
494 pub adaptive_parallelism_strategy: ::core::option::Option<
495 ::prost::alloc::string::String,
496 >,
497}
498#[derive(prost_helpers::AnyPB)]
499#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
500pub struct AlterParallelismResponse {}
501#[derive(prost_helpers::AnyPB)]
502#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
503pub struct AlterBackfillParallelismRequest {
504 #[prost(uint32, tag = "1", wrapper = "crate::id::JobId")]
506 pub table_id: crate::id::JobId,
507 #[prost(message, optional, tag = "2")]
509 pub parallelism: ::core::option::Option<super::meta::TableParallelism>,
510 #[prost(bool, tag = "3")]
511 pub deferred: bool,
512 #[prost(string, optional, tag = "4")]
513 pub adaptive_parallelism_strategy: ::core::option::Option<
514 ::prost::alloc::string::String,
515 >,
516}
517#[derive(prost_helpers::AnyPB)]
518#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
519pub struct AlterBackfillParallelismResponse {}
520#[derive(prost_helpers::AnyPB)]
521#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
522pub struct AlterFragmentParallelismRequest {
523 #[prost(uint32, repeated, tag = "1", wrapper = "crate::id::FragmentId")]
524 pub fragment_ids: ::prost::alloc::vec::Vec<crate::id::FragmentId>,
525 #[prost(message, optional, tag = "2")]
527 pub parallelism: ::core::option::Option<super::meta::TableParallelism>,
528}
529#[derive(prost_helpers::AnyPB)]
530#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
531pub struct AlterFragmentParallelismResponse {}
532#[derive(prost_helpers::AnyPB)]
533#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
534pub struct AlterCdcTableBackfillParallelismRequest {
535 #[prost(uint32, tag = "1", wrapper = "crate::id::JobId")]
536 pub table_id: crate::id::JobId,
537 #[prost(message, optional, tag = "2")]
538 pub parallelism: ::core::option::Option<super::meta::TableParallelism>,
539}
540#[derive(prost_helpers::AnyPB)]
541#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
542pub struct AlterCdcTableBackfillParallelismResponse {}
543#[derive(prost_helpers::AnyPB)]
544#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
545pub struct AlterResourceGroupRequest {
546 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
547 pub table_id: crate::id::TableId,
548 #[prost(string, optional, tag = "2")]
549 pub resource_group: ::core::option::Option<::prost::alloc::string::String>,
550 #[prost(bool, tag = "3")]
551 pub deferred: bool,
552}
553#[derive(prost_helpers::AnyPB)]
554#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
555pub struct AlterResourceGroupResponse {}
556#[derive(prost_helpers::AnyPB)]
557#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
558pub struct AlterOwnerResponse {
559 #[prost(message, optional, tag = "1")]
560 pub status: ::core::option::Option<super::common::Status>,
561 #[prost(message, optional, tag = "2")]
562 pub version: ::core::option::Option<WaitVersion>,
563}
564#[derive(prost_helpers::AnyPB)]
565#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
566pub struct AlterSubscriptionRetentionRequest {
567 #[prost(uint32, tag = "1", wrapper = "crate::id::SubscriptionId")]
568 pub subscription_id: crate::id::SubscriptionId,
569 #[prost(uint64, tag = "2")]
570 pub retention_seconds: u64,
571 #[prost(string, tag = "3")]
572 pub definition: ::prost::alloc::string::String,
573}
574#[derive(prost_helpers::AnyPB)]
575#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
576pub struct AlterSubscriptionRetentionResponse {
577 #[prost(message, optional, tag = "1")]
578 pub status: ::core::option::Option<super::common::Status>,
579 #[prost(message, optional, tag = "2")]
580 pub version: ::core::option::Option<WaitVersion>,
581}
582#[derive(prost_helpers::AnyPB)]
583#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
584pub struct AlterSwapRenameRequest {
585 #[prost(oneof = "alter_swap_rename_request::Object", tags = "1, 2, 3, 4, 5, 6")]
586 pub object: ::core::option::Option<alter_swap_rename_request::Object>,
587}
588pub mod alter_swap_rename_request {
590 #[derive(prost_helpers::AnyPB)]
591 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
592 pub struct ObjectNameSwapPair {
593 #[prost(uint32, tag = "1", wrapper = "crate::id::ObjectId")]
594 pub src_object_id: crate::id::ObjectId,
595 #[prost(uint32, tag = "2", wrapper = "crate::id::ObjectId")]
596 pub dst_object_id: crate::id::ObjectId,
597 }
598 #[derive(prost_helpers::AnyPB)]
599 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
600 pub enum Object {
601 #[prost(message, tag = "1")]
602 Schema(ObjectNameSwapPair),
603 #[prost(message, tag = "2")]
604 Table(ObjectNameSwapPair),
605 #[prost(message, tag = "3")]
606 View(ObjectNameSwapPair),
607 #[prost(message, tag = "4")]
608 Source(ObjectNameSwapPair),
609 #[prost(message, tag = "5")]
610 Sink(ObjectNameSwapPair),
611 #[prost(message, tag = "6")]
612 Subscription(ObjectNameSwapPair),
613 }
614}
615#[derive(prost_helpers::AnyPB)]
616#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
617pub struct AlterSwapRenameResponse {
618 #[prost(message, optional, tag = "1")]
619 pub status: ::core::option::Option<super::common::Status>,
620 #[prost(message, optional, tag = "2")]
621 pub version: ::core::option::Option<WaitVersion>,
622}
623#[derive(prost_helpers::AnyPB)]
624#[derive(Clone, PartialEq, ::prost::Message)]
625pub struct CreateFunctionRequest {
626 #[prost(message, optional, tag = "1")]
627 pub function: ::core::option::Option<super::catalog::Function>,
628}
629#[derive(prost_helpers::AnyPB)]
630#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
631pub struct CreateFunctionResponse {
632 #[prost(message, optional, tag = "1")]
633 pub status: ::core::option::Option<super::common::Status>,
634 #[prost(message, optional, tag = "2")]
635 pub version: ::core::option::Option<WaitVersion>,
636}
637#[derive(prost_helpers::AnyPB)]
638#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
639pub struct DropFunctionRequest {
640 #[prost(uint32, tag = "1", wrapper = "crate::id::FunctionId")]
641 pub function_id: crate::id::FunctionId,
642 #[prost(bool, tag = "2")]
643 pub cascade: bool,
644}
645#[derive(prost_helpers::AnyPB)]
646#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
647pub struct DropFunctionResponse {
648 #[prost(message, optional, tag = "1")]
649 pub status: ::core::option::Option<super::common::Status>,
650 #[prost(message, optional, tag = "2")]
651 pub version: ::core::option::Option<WaitVersion>,
652}
653#[derive(prost_helpers::AnyPB)]
654#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
655pub struct DropTableRequest {
656 #[prost(uint32, tag = "2", wrapper = "crate::id::TableId")]
657 pub table_id: crate::id::TableId,
658 #[prost(bool, tag = "3")]
659 pub cascade: bool,
660 #[prost(oneof = "drop_table_request::SourceId", tags = "1")]
661 pub source_id: ::core::option::Option<drop_table_request::SourceId>,
662}
663pub mod drop_table_request {
665 #[derive(prost_helpers::AnyPB)]
666 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
667 pub enum SourceId {
668 #[prost(uint32, tag = "1", wrapper = "crate::id::SourceId")]
669 Id(crate::id::SourceId),
670 }
671}
672#[derive(prost_helpers::AnyPB)]
673#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
674pub struct DropTableResponse {
675 #[prost(message, optional, tag = "1")]
676 pub status: ::core::option::Option<super::common::Status>,
677 #[prost(message, optional, tag = "2")]
678 pub version: ::core::option::Option<WaitVersion>,
679}
680#[derive(prost_helpers::AnyPB)]
682#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
683pub struct RisectlListStateTablesRequest {}
684#[derive(prost_helpers::AnyPB)]
686#[derive(Clone, PartialEq, ::prost::Message)]
687pub struct RisectlListStateTablesResponse {
688 #[prost(message, repeated, tag = "1")]
689 pub tables: ::prost::alloc::vec::Vec<super::catalog::Table>,
690}
691#[derive(prost_helpers::AnyPB)]
693#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
694pub struct RisectlResumeBackfillRequest {
695 #[prost(oneof = "risectl_resume_backfill_request::Target", tags = "1, 2")]
696 pub target: ::core::option::Option<risectl_resume_backfill_request::Target>,
697}
698pub mod risectl_resume_backfill_request {
700 #[derive(prost_helpers::AnyPB)]
701 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
702 pub enum Target {
703 #[prost(uint32, tag = "1", wrapper = "crate::id::JobId")]
704 JobId(crate::id::JobId),
705 #[prost(uint32, tag = "2", wrapper = "crate::id::FragmentId")]
706 FragmentId(crate::id::FragmentId),
707 }
708}
709#[derive(prost_helpers::AnyPB)]
711#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
712pub struct RisectlResumeBackfillResponse {}
713#[derive(prost_helpers::AnyPB)]
714#[derive(Clone, PartialEq, ::prost::Message)]
715pub struct CreateIndexRequest {
716 #[prost(message, optional, tag = "1")]
717 pub index: ::core::option::Option<super::catalog::Index>,
718 #[prost(message, optional, tag = "2")]
719 pub index_table: ::core::option::Option<super::catalog::Table>,
720 #[prost(message, optional, tag = "3")]
721 pub fragment_graph: ::core::option::Option<super::stream_plan::StreamFragmentGraph>,
722 #[prost(bool, tag = "4")]
723 pub if_not_exists: bool,
724}
725#[derive(prost_helpers::AnyPB)]
726#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
727pub struct CreateIndexResponse {
728 #[prost(message, optional, tag = "1")]
729 pub status: ::core::option::Option<super::common::Status>,
730 #[prost(message, optional, tag = "2")]
731 pub version: ::core::option::Option<WaitVersion>,
732}
733#[derive(prost_helpers::AnyPB)]
734#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
735pub struct DropIndexRequest {
736 #[prost(uint32, tag = "1", wrapper = "crate::id::IndexId")]
737 pub index_id: crate::id::IndexId,
738 #[prost(bool, tag = "2")]
739 pub cascade: bool,
740}
741#[derive(prost_helpers::AnyPB)]
742#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
743pub struct DropIndexResponse {
744 #[prost(message, optional, tag = "1")]
745 pub status: ::core::option::Option<super::common::Status>,
746 #[prost(message, optional, tag = "2")]
747 pub version: ::core::option::Option<WaitVersion>,
748}
749#[derive(prost_helpers::AnyPB)]
750#[derive(Clone, PartialEq, ::prost::Message)]
751pub struct ReplaceJobPlan {
752 #[prost(message, optional, tag = "1")]
754 pub fragment_graph: ::core::option::Option<super::stream_plan::StreamFragmentGraph>,
755 #[prost(oneof = "replace_job_plan::ReplaceJob", tags = "3, 4, 5")]
756 pub replace_job: ::core::option::Option<replace_job_plan::ReplaceJob>,
757}
758pub mod replace_job_plan {
760 #[derive(prost_helpers::AnyPB)]
761 #[derive(Clone, PartialEq, ::prost::Message)]
762 pub struct ReplaceTable {
763 #[prost(message, optional, tag = "1")]
767 pub table: ::core::option::Option<super::super::catalog::Table>,
768 #[prost(message, optional, tag = "2")]
770 pub source: ::core::option::Option<super::super::catalog::Source>,
771 #[prost(enumeration = "super::TableJobType", tag = "3")]
772 pub job_type: i32,
773 }
774 #[derive(prost_helpers::AnyPB)]
775 #[derive(Clone, PartialEq, ::prost::Message)]
776 pub struct ReplaceSource {
777 #[prost(message, optional, tag = "1")]
778 pub source: ::core::option::Option<super::super::catalog::Source>,
779 }
780 #[derive(prost_helpers::AnyPB)]
781 #[derive(Clone, PartialEq, ::prost::Message)]
782 pub struct ReplaceMaterializedView {
783 #[prost(message, optional, tag = "1")]
784 pub table: ::core::option::Option<super::super::catalog::Table>,
785 }
786 #[derive(prost_helpers::AnyPB)]
787 #[derive(Clone, PartialEq, ::prost::Oneof)]
788 pub enum ReplaceJob {
789 #[prost(message, tag = "3")]
790 ReplaceTable(ReplaceTable),
791 #[prost(message, tag = "4")]
792 ReplaceSource(ReplaceSource),
793 #[prost(message, tag = "5")]
794 ReplaceMaterializedView(ReplaceMaterializedView),
795 }
796}
797#[derive(prost_helpers::AnyPB)]
798#[derive(Clone, PartialEq, ::prost::Message)]
799pub struct ReplaceJobPlanRequest {
800 #[prost(message, optional, tag = "1")]
801 pub plan: ::core::option::Option<ReplaceJobPlan>,
802}
803#[derive(prost_helpers::AnyPB)]
804#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
805pub struct ReplaceJobPlanResponse {
806 #[prost(message, optional, tag = "1")]
807 pub status: ::core::option::Option<super::common::Status>,
808 #[prost(message, optional, tag = "2")]
810 pub version: ::core::option::Option<WaitVersion>,
811}
812#[derive(prost_helpers::AnyPB)]
813#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
814pub struct GetTableRequest {
815 #[prost(string, tag = "1")]
816 pub database_name: ::prost::alloc::string::String,
817 #[prost(string, tag = "2")]
818 pub table_name: ::prost::alloc::string::String,
819}
820#[derive(prost_helpers::AnyPB)]
821#[derive(Clone, PartialEq, ::prost::Message)]
822pub struct GetTableResponse {
823 #[prost(message, optional, tag = "1")]
824 pub table: ::core::option::Option<super::catalog::Table>,
825}
826#[derive(prost_helpers::AnyPB)]
827#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
828pub struct GetDdlProgressRequest {}
829#[derive(prost_helpers::AnyPB)]
830#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
831pub struct DdlProgress {
832 #[prost(uint64, tag = "1")]
833 pub id: u64,
834 #[prost(string, tag = "2")]
835 pub statement: ::prost::alloc::string::String,
836 #[prost(string, tag = "3")]
837 pub progress: ::prost::alloc::string::String,
838 #[prost(string, tag = "4")]
839 pub create_type: ::prost::alloc::string::String,
840 #[prost(int64, tag = "5")]
841 pub initialized_at_time_millis: i64,
842 #[prost(bool, tag = "6")]
843 pub is_serverless_backfill: bool,
844 #[prost(enumeration = "BackfillType", tag = "7")]
845 pub backfill_type: i32,
846}
847#[derive(prost_helpers::AnyPB)]
848#[derive(Clone, PartialEq, ::prost::Message)]
849pub struct GetDdlProgressResponse {
850 #[prost(message, repeated, tag = "1")]
851 pub ddl_progress: ::prost::alloc::vec::Vec<DdlProgress>,
852}
853#[derive(prost_helpers::AnyPB)]
854#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
855pub struct CreateSecretRequest {
856 #[prost(string, tag = "1")]
857 pub name: ::prost::alloc::string::String,
858 #[prost(bytes = "vec", tag = "2")]
859 pub value: ::prost::alloc::vec::Vec<u8>,
860 #[prost(uint32, tag = "3", wrapper = "crate::id::DatabaseId")]
861 pub database_id: crate::id::DatabaseId,
862 #[prost(uint32, tag = "4", wrapper = "crate::id::SchemaId")]
863 pub schema_id: crate::id::SchemaId,
864 #[prost(uint32, tag = "5", wrapper = "crate::id::UserId")]
865 pub owner_id: crate::id::UserId,
866}
867#[derive(prost_helpers::AnyPB)]
868#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
869pub struct CreateSecretResponse {
870 #[prost(message, optional, tag = "1")]
871 pub version: ::core::option::Option<WaitVersion>,
872}
873#[derive(prost_helpers::AnyPB)]
874#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
875pub struct DropSecretRequest {
876 #[prost(uint32, tag = "1", wrapper = "crate::id::SecretId")]
877 pub secret_id: crate::id::SecretId,
878 #[prost(bool, tag = "2")]
879 pub cascade: bool,
880}
881#[derive(prost_helpers::AnyPB)]
882#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
883pub struct DropSecretResponse {
884 #[prost(message, optional, tag = "1")]
885 pub version: ::core::option::Option<WaitVersion>,
886 #[prost(message, optional, tag = "2")]
887 pub status: ::core::option::Option<super::common::Status>,
888}
889#[derive(prost_helpers::AnyPB)]
890#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
891pub struct AlterSecretRequest {
892 #[prost(uint32, tag = "1", wrapper = "crate::id::SecretId")]
893 pub secret_id: crate::id::SecretId,
894 #[prost(string, tag = "2")]
895 pub name: ::prost::alloc::string::String,
896 #[prost(bytes = "vec", tag = "3")]
897 pub value: ::prost::alloc::vec::Vec<u8>,
898 #[prost(uint32, tag = "4", wrapper = "crate::id::DatabaseId")]
899 pub database_id: crate::id::DatabaseId,
900 #[prost(uint32, tag = "5", wrapper = "crate::id::SchemaId")]
901 pub schema_id: crate::id::SchemaId,
902 #[prost(uint32, tag = "6", wrapper = "crate::id::UserId")]
903 pub owner_id: crate::id::UserId,
904}
905#[derive(prost_helpers::AnyPB)]
906#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
907pub struct AlterSecretResponse {
908 #[prost(message, optional, tag = "1")]
909 pub version: ::core::option::Option<WaitVersion>,
910}
911#[derive(prost_helpers::AnyPB)]
912#[derive(Clone, PartialEq, ::prost::Message)]
913pub struct CreateConnectionRequest {
914 #[prost(string, tag = "1")]
915 pub name: ::prost::alloc::string::String,
916 #[prost(uint32, tag = "2", wrapper = "crate::id::DatabaseId")]
917 pub database_id: crate::id::DatabaseId,
918 #[prost(uint32, tag = "3", wrapper = "crate::id::SchemaId")]
919 pub schema_id: crate::id::SchemaId,
920 #[prost(uint32, tag = "5", wrapper = "crate::id::UserId")]
921 pub owner_id: crate::id::UserId,
922 #[prost(oneof = "create_connection_request::Payload", tags = "4, 6")]
923 pub payload: ::core::option::Option<create_connection_request::Payload>,
924}
925pub mod create_connection_request {
927 #[derive(prost_helpers::AnyPB)]
928 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
929 pub struct PrivateLink {
930 #[prost(
931 enumeration = "super::super::catalog::connection::private_link_service::PrivateLinkProvider",
932 tag = "1"
933 )]
934 pub provider: i32,
935 #[prost(string, tag = "2")]
936 pub service_name: ::prost::alloc::string::String,
937 #[prost(string, optional, tag = "3")]
938 pub tags: ::core::option::Option<::prost::alloc::string::String>,
939 }
940 #[derive(prost_helpers::AnyPB)]
941 #[derive(Clone, PartialEq, ::prost::Oneof)]
942 pub enum Payload {
943 #[deprecated]
944 #[prost(message, tag = "4")]
945 PrivateLink(PrivateLink),
946 #[prost(message, tag = "6")]
947 ConnectionParams(super::super::catalog::ConnectionParams),
948 }
949}
950#[derive(prost_helpers::AnyPB)]
951#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
952pub struct CreateConnectionResponse {
953 #[prost(message, optional, tag = "1")]
955 pub version: ::core::option::Option<WaitVersion>,
956}
957#[derive(prost_helpers::AnyPB)]
958#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
959pub struct ListConnectionsRequest {}
960#[derive(prost_helpers::AnyPB)]
961#[derive(Clone, PartialEq, ::prost::Message)]
962pub struct ListConnectionsResponse {
963 #[prost(message, repeated, tag = "1")]
964 pub connections: ::prost::alloc::vec::Vec<super::catalog::Connection>,
965}
966#[derive(prost_helpers::AnyPB)]
967#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
968pub struct DropConnectionRequest {
969 #[prost(uint32, tag = "1", wrapper = "crate::id::ConnectionId")]
970 pub connection_id: crate::id::ConnectionId,
971 #[prost(bool, tag = "2")]
972 pub cascade: bool,
973}
974#[derive(prost_helpers::AnyPB)]
975#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
976pub struct DropConnectionResponse {
977 #[prost(message, optional, tag = "1")]
978 pub status: ::core::option::Option<super::common::Status>,
979 #[prost(message, optional, tag = "2")]
980 pub version: ::core::option::Option<WaitVersion>,
981}
982#[derive(prost_helpers::AnyPB)]
983#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
984pub struct GetTablesRequest {
985 #[prost(uint32, repeated, tag = "1", wrapper = "crate::id::TableId")]
986 pub table_ids: ::prost::alloc::vec::Vec<crate::id::TableId>,
987 #[prost(bool, tag = "2")]
988 pub include_dropped_tables: bool,
989}
990#[derive(prost_helpers::AnyPB)]
991#[derive(Clone, PartialEq, ::prost::Message)]
992pub struct GetTablesResponse {
993 #[prost(map = "uint32, message", tag = "1", wrapper = "crate::id::TableId")]
994 pub tables: ::std::collections::HashMap<crate::id::TableId, super::catalog::Table>,
995}
996#[derive(prost_helpers::AnyPB)]
997#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
998pub struct WaitRequest {
999 #[prost(uint32, optional, tag = "1", wrapper = "crate::id::JobId")]
1000 pub job_id: ::core::option::Option<crate::id::JobId>,
1001}
1002#[derive(prost_helpers::AnyPB)]
1003#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1004pub struct WaitResponse {
1005 #[prost(message, optional, tag = "1")]
1006 pub version: ::core::option::Option<WaitVersion>,
1007}
1008#[derive(prost_helpers::AnyPB)]
1009#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1010pub struct CommentOnRequest {
1011 #[prost(message, optional, tag = "1")]
1012 pub comment: ::core::option::Option<super::catalog::Comment>,
1013}
1014#[derive(prost_helpers::AnyPB)]
1015#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1016pub struct CommentOnResponse {
1017 #[prost(message, optional, tag = "1")]
1018 pub status: ::core::option::Option<super::common::Status>,
1019 #[prost(message, optional, tag = "2")]
1020 pub version: ::core::option::Option<WaitVersion>,
1021}
1022#[derive(prost_helpers::AnyPB)]
1023#[derive(Clone, PartialEq, ::prost::Message)]
1024pub struct TableSchemaChange {
1025 #[prost(enumeration = "table_schema_change::TableChangeType", tag = "1")]
1026 pub change_type: i32,
1027 #[prost(string, tag = "2")]
1028 pub cdc_table_id: ::prost::alloc::string::String,
1029 #[prost(message, repeated, tag = "3")]
1030 pub columns: ::prost::alloc::vec::Vec<super::plan_common::ColumnCatalog>,
1031 #[prost(string, tag = "4")]
1032 pub upstream_ddl: ::prost::alloc::string::String,
1033}
1034pub mod table_schema_change {
1036 #[derive(prost_helpers::AnyPB)]
1037 #[derive(
1038 Clone,
1039 Copy,
1040 Debug,
1041 PartialEq,
1042 Eq,
1043 Hash,
1044 PartialOrd,
1045 Ord,
1046 ::prost::Enumeration
1047 )]
1048 #[repr(i32)]
1049 pub enum TableChangeType {
1050 Unspecified = 0,
1051 Alter = 1,
1052 Create = 2,
1053 Drop = 3,
1054 }
1055 impl TableChangeType {
1056 pub fn as_str_name(&self) -> &'static str {
1061 match self {
1062 Self::Unspecified => "UNSPECIFIED",
1063 Self::Alter => "ALTER",
1064 Self::Create => "CREATE",
1065 Self::Drop => "DROP",
1066 }
1067 }
1068 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1070 match value {
1071 "UNSPECIFIED" => Some(Self::Unspecified),
1072 "ALTER" => Some(Self::Alter),
1073 "CREATE" => Some(Self::Create),
1074 "DROP" => Some(Self::Drop),
1075 _ => None,
1076 }
1077 }
1078 }
1079}
1080#[derive(prost_helpers::AnyPB)]
1081#[derive(Clone, PartialEq, ::prost::Message)]
1082pub struct SchemaChangeEnvelope {
1083 #[prost(message, repeated, tag = "1")]
1084 pub table_changes: ::prost::alloc::vec::Vec<TableSchemaChange>,
1085}
1086#[derive(prost_helpers::AnyPB)]
1087#[derive(Clone, PartialEq, ::prost::Message)]
1088pub struct AutoSchemaChangeRequest {
1089 #[prost(message, optional, tag = "1")]
1090 pub schema_change: ::core::option::Option<SchemaChangeEnvelope>,
1091}
1092#[derive(prost_helpers::AnyPB)]
1093#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1094pub struct AutoSchemaChangeResponse {}
1095#[derive(prost_helpers::AnyPB)]
1096#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1097pub struct AlterDatabaseParamRequest {
1098 #[prost(uint32, tag = "1", wrapper = "crate::id::DatabaseId")]
1099 pub database_id: crate::id::DatabaseId,
1100 #[prost(oneof = "alter_database_param_request::Param", tags = "2, 3")]
1101 pub param: ::core::option::Option<alter_database_param_request::Param>,
1102}
1103pub mod alter_database_param_request {
1105 #[derive(prost_helpers::AnyPB)]
1106 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
1107 pub enum Param {
1108 #[prost(message, tag = "2")]
1109 BarrierIntervalMs(super::super::common::OptionalUint32),
1110 #[prost(message, tag = "3")]
1111 CheckpointFrequency(super::super::common::OptionalUint64),
1112 }
1113}
1114#[derive(prost_helpers::AnyPB)]
1115#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1116pub struct AlterDatabaseParamResponse {
1117 #[prost(message, optional, tag = "1")]
1118 pub status: ::core::option::Option<super::common::Status>,
1119 #[prost(message, optional, tag = "2")]
1120 pub version: ::core::option::Option<WaitVersion>,
1121}
1122#[derive(prost_helpers::AnyPB)]
1123#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1124pub struct CompactIcebergTableRequest {
1125 #[prost(uint32, tag = "1", wrapper = "crate::id::SinkId")]
1126 pub sink_id: crate::id::SinkId,
1127}
1128#[derive(prost_helpers::AnyPB)]
1129#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1130pub struct CompactIcebergTableResponse {
1131 #[prost(message, optional, tag = "1")]
1132 pub status: ::core::option::Option<super::common::Status>,
1133 #[prost(uint64, tag = "2")]
1135 pub task_id: u64,
1136}
1137#[derive(prost_helpers::AnyPB)]
1138#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1139pub struct ExpireIcebergTableSnapshotsRequest {
1140 #[prost(uint32, tag = "1", wrapper = "crate::id::SinkId")]
1141 pub sink_id: crate::id::SinkId,
1142}
1143#[derive(prost_helpers::AnyPB)]
1144#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1145pub struct ExpireIcebergTableSnapshotsResponse {
1146 #[prost(message, optional, tag = "1")]
1147 pub status: ::core::option::Option<super::common::Status>,
1148}
1149#[derive(prost_helpers::AnyPB)]
1150#[derive(Clone, PartialEq, ::prost::Message)]
1151pub struct AlterStreamingJobConfigRequest {
1152 #[prost(uint32, tag = "1", wrapper = "crate::id::JobId")]
1153 pub job_id: crate::id::JobId,
1154 #[prost(map = "string, string", tag = "2")]
1155 pub entries_to_add: ::std::collections::HashMap<
1156 ::prost::alloc::string::String,
1157 ::prost::alloc::string::String,
1158 >,
1159 #[prost(string, repeated, tag = "3")]
1160 pub keys_to_remove: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1161}
1162#[derive(prost_helpers::AnyPB)]
1163#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1164pub struct AlterStreamingJobConfigResponse {}
1165#[derive(prost_helpers::AnyPB)]
1179#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1180#[repr(i32)]
1181pub enum TableJobType {
1182 Unspecified = 0,
1183 General = 1,
1185 SharedCdcSource = 2,
1187}
1188impl TableJobType {
1189 pub fn as_str_name(&self) -> &'static str {
1194 match self {
1195 Self::Unspecified => "TABLE_JOB_TYPE_UNSPECIFIED",
1196 Self::General => "TABLE_JOB_TYPE_GENERAL",
1197 Self::SharedCdcSource => "TABLE_JOB_TYPE_SHARED_CDC_SOURCE",
1198 }
1199 }
1200 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1202 match value {
1203 "TABLE_JOB_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
1204 "TABLE_JOB_TYPE_GENERAL" => Some(Self::General),
1205 "TABLE_JOB_TYPE_SHARED_CDC_SOURCE" => Some(Self::SharedCdcSource),
1206 _ => None,
1207 }
1208 }
1209}
1210#[derive(prost_helpers::AnyPB)]
1211#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1212#[repr(i32)]
1213pub enum BackfillType {
1214 Unspecified = 0,
1215 NormalBackfill = 1,
1216 SnapshotBackfill = 2,
1217}
1218impl BackfillType {
1219 pub fn as_str_name(&self) -> &'static str {
1224 match self {
1225 Self::Unspecified => "BACKFILL_TYPE_UNSPECIFIED",
1226 Self::NormalBackfill => "NORMAL_BACKFILL",
1227 Self::SnapshotBackfill => "SNAPSHOT_BACKFILL",
1228 }
1229 }
1230 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1232 match value {
1233 "BACKFILL_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
1234 "NORMAL_BACKFILL" => Some(Self::NormalBackfill),
1235 "SNAPSHOT_BACKFILL" => Some(Self::SnapshotBackfill),
1236 _ => None,
1237 }
1238 }
1239}
1240pub mod ddl_service_client {
1242 #![allow(
1243 unused_variables,
1244 dead_code,
1245 missing_docs,
1246 clippy::wildcard_imports,
1247 clippy::let_unit_value,
1248 )]
1249 use tonic::codegen::*;
1250 use tonic::codegen::http::Uri;
1251 #[derive(Debug, Clone)]
1252 pub struct DdlServiceClient<T> {
1253 inner: tonic::client::Grpc<T>,
1254 }
1255 impl DdlServiceClient<tonic::transport::Channel> {
1256 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
1258 where
1259 D: TryInto<tonic::transport::Endpoint>,
1260 D::Error: Into<StdError>,
1261 {
1262 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
1263 Ok(Self::new(conn))
1264 }
1265 }
1266 impl<T> DdlServiceClient<T>
1267 where
1268 T: tonic::client::GrpcService<tonic::body::Body>,
1269 T::Error: Into<StdError>,
1270 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
1271 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
1272 {
1273 pub fn new(inner: T) -> Self {
1274 let inner = tonic::client::Grpc::new(inner);
1275 Self { inner }
1276 }
1277 pub fn with_origin(inner: T, origin: Uri) -> Self {
1278 let inner = tonic::client::Grpc::with_origin(inner, origin);
1279 Self { inner }
1280 }
1281 pub fn with_interceptor<F>(
1282 inner: T,
1283 interceptor: F,
1284 ) -> DdlServiceClient<InterceptedService<T, F>>
1285 where
1286 F: tonic::service::Interceptor,
1287 T::ResponseBody: Default,
1288 T: tonic::codegen::Service<
1289 http::Request<tonic::body::Body>,
1290 Response = http::Response<
1291 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
1292 >,
1293 >,
1294 <T as tonic::codegen::Service<
1295 http::Request<tonic::body::Body>,
1296 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
1297 {
1298 DdlServiceClient::new(InterceptedService::new(inner, interceptor))
1299 }
1300 #[must_use]
1305 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
1306 self.inner = self.inner.send_compressed(encoding);
1307 self
1308 }
1309 #[must_use]
1311 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
1312 self.inner = self.inner.accept_compressed(encoding);
1313 self
1314 }
1315 #[must_use]
1319 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
1320 self.inner = self.inner.max_decoding_message_size(limit);
1321 self
1322 }
1323 #[must_use]
1327 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
1328 self.inner = self.inner.max_encoding_message_size(limit);
1329 self
1330 }
1331 pub async fn create_database(
1332 &mut self,
1333 request: impl tonic::IntoRequest<super::CreateDatabaseRequest>,
1334 ) -> std::result::Result<
1335 tonic::Response<super::CreateDatabaseResponse>,
1336 tonic::Status,
1337 > {
1338 self.inner
1339 .ready()
1340 .await
1341 .map_err(|e| {
1342 tonic::Status::unknown(
1343 format!("Service was not ready: {}", e.into()),
1344 )
1345 })?;
1346 let codec = tonic_prost::ProstCodec::default();
1347 let path = http::uri::PathAndQuery::from_static(
1348 "/ddl_service.DdlService/CreateDatabase",
1349 );
1350 let mut req = request.into_request();
1351 req.extensions_mut()
1352 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateDatabase"));
1353 self.inner.unary(req, path, codec).await
1354 }
1355 pub async fn drop_database(
1356 &mut self,
1357 request: impl tonic::IntoRequest<super::DropDatabaseRequest>,
1358 ) -> std::result::Result<
1359 tonic::Response<super::DropDatabaseResponse>,
1360 tonic::Status,
1361 > {
1362 self.inner
1363 .ready()
1364 .await
1365 .map_err(|e| {
1366 tonic::Status::unknown(
1367 format!("Service was not ready: {}", e.into()),
1368 )
1369 })?;
1370 let codec = tonic_prost::ProstCodec::default();
1371 let path = http::uri::PathAndQuery::from_static(
1372 "/ddl_service.DdlService/DropDatabase",
1373 );
1374 let mut req = request.into_request();
1375 req.extensions_mut()
1376 .insert(GrpcMethod::new("ddl_service.DdlService", "DropDatabase"));
1377 self.inner.unary(req, path, codec).await
1378 }
1379 pub async fn create_schema(
1380 &mut self,
1381 request: impl tonic::IntoRequest<super::CreateSchemaRequest>,
1382 ) -> std::result::Result<
1383 tonic::Response<super::CreateSchemaResponse>,
1384 tonic::Status,
1385 > {
1386 self.inner
1387 .ready()
1388 .await
1389 .map_err(|e| {
1390 tonic::Status::unknown(
1391 format!("Service was not ready: {}", e.into()),
1392 )
1393 })?;
1394 let codec = tonic_prost::ProstCodec::default();
1395 let path = http::uri::PathAndQuery::from_static(
1396 "/ddl_service.DdlService/CreateSchema",
1397 );
1398 let mut req = request.into_request();
1399 req.extensions_mut()
1400 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateSchema"));
1401 self.inner.unary(req, path, codec).await
1402 }
1403 pub async fn drop_schema(
1404 &mut self,
1405 request: impl tonic::IntoRequest<super::DropSchemaRequest>,
1406 ) -> std::result::Result<
1407 tonic::Response<super::DropSchemaResponse>,
1408 tonic::Status,
1409 > {
1410 self.inner
1411 .ready()
1412 .await
1413 .map_err(|e| {
1414 tonic::Status::unknown(
1415 format!("Service was not ready: {}", e.into()),
1416 )
1417 })?;
1418 let codec = tonic_prost::ProstCodec::default();
1419 let path = http::uri::PathAndQuery::from_static(
1420 "/ddl_service.DdlService/DropSchema",
1421 );
1422 let mut req = request.into_request();
1423 req.extensions_mut()
1424 .insert(GrpcMethod::new("ddl_service.DdlService", "DropSchema"));
1425 self.inner.unary(req, path, codec).await
1426 }
1427 pub async fn create_source(
1428 &mut self,
1429 request: impl tonic::IntoRequest<super::CreateSourceRequest>,
1430 ) -> std::result::Result<
1431 tonic::Response<super::CreateSourceResponse>,
1432 tonic::Status,
1433 > {
1434 self.inner
1435 .ready()
1436 .await
1437 .map_err(|e| {
1438 tonic::Status::unknown(
1439 format!("Service was not ready: {}", e.into()),
1440 )
1441 })?;
1442 let codec = tonic_prost::ProstCodec::default();
1443 let path = http::uri::PathAndQuery::from_static(
1444 "/ddl_service.DdlService/CreateSource",
1445 );
1446 let mut req = request.into_request();
1447 req.extensions_mut()
1448 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateSource"));
1449 self.inner.unary(req, path, codec).await
1450 }
1451 pub async fn drop_source(
1452 &mut self,
1453 request: impl tonic::IntoRequest<super::DropSourceRequest>,
1454 ) -> std::result::Result<
1455 tonic::Response<super::DropSourceResponse>,
1456 tonic::Status,
1457 > {
1458 self.inner
1459 .ready()
1460 .await
1461 .map_err(|e| {
1462 tonic::Status::unknown(
1463 format!("Service was not ready: {}", e.into()),
1464 )
1465 })?;
1466 let codec = tonic_prost::ProstCodec::default();
1467 let path = http::uri::PathAndQuery::from_static(
1468 "/ddl_service.DdlService/DropSource",
1469 );
1470 let mut req = request.into_request();
1471 req.extensions_mut()
1472 .insert(GrpcMethod::new("ddl_service.DdlService", "DropSource"));
1473 self.inner.unary(req, path, codec).await
1474 }
1475 pub async fn create_sink(
1476 &mut self,
1477 request: impl tonic::IntoRequest<super::CreateSinkRequest>,
1478 ) -> std::result::Result<
1479 tonic::Response<super::CreateSinkResponse>,
1480 tonic::Status,
1481 > {
1482 self.inner
1483 .ready()
1484 .await
1485 .map_err(|e| {
1486 tonic::Status::unknown(
1487 format!("Service was not ready: {}", e.into()),
1488 )
1489 })?;
1490 let codec = tonic_prost::ProstCodec::default();
1491 let path = http::uri::PathAndQuery::from_static(
1492 "/ddl_service.DdlService/CreateSink",
1493 );
1494 let mut req = request.into_request();
1495 req.extensions_mut()
1496 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateSink"));
1497 self.inner.unary(req, path, codec).await
1498 }
1499 pub async fn create_subscription(
1500 &mut self,
1501 request: impl tonic::IntoRequest<super::CreateSubscriptionRequest>,
1502 ) -> std::result::Result<
1503 tonic::Response<super::CreateSubscriptionResponse>,
1504 tonic::Status,
1505 > {
1506 self.inner
1507 .ready()
1508 .await
1509 .map_err(|e| {
1510 tonic::Status::unknown(
1511 format!("Service was not ready: {}", e.into()),
1512 )
1513 })?;
1514 let codec = tonic_prost::ProstCodec::default();
1515 let path = http::uri::PathAndQuery::from_static(
1516 "/ddl_service.DdlService/CreateSubscription",
1517 );
1518 let mut req = request.into_request();
1519 req.extensions_mut()
1520 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateSubscription"));
1521 self.inner.unary(req, path, codec).await
1522 }
1523 pub async fn drop_sink(
1524 &mut self,
1525 request: impl tonic::IntoRequest<super::DropSinkRequest>,
1526 ) -> std::result::Result<
1527 tonic::Response<super::DropSinkResponse>,
1528 tonic::Status,
1529 > {
1530 self.inner
1531 .ready()
1532 .await
1533 .map_err(|e| {
1534 tonic::Status::unknown(
1535 format!("Service was not ready: {}", e.into()),
1536 )
1537 })?;
1538 let codec = tonic_prost::ProstCodec::default();
1539 let path = http::uri::PathAndQuery::from_static(
1540 "/ddl_service.DdlService/DropSink",
1541 );
1542 let mut req = request.into_request();
1543 req.extensions_mut()
1544 .insert(GrpcMethod::new("ddl_service.DdlService", "DropSink"));
1545 self.inner.unary(req, path, codec).await
1546 }
1547 pub async fn drop_subscription(
1548 &mut self,
1549 request: impl tonic::IntoRequest<super::DropSubscriptionRequest>,
1550 ) -> std::result::Result<
1551 tonic::Response<super::DropSubscriptionResponse>,
1552 tonic::Status,
1553 > {
1554 self.inner
1555 .ready()
1556 .await
1557 .map_err(|e| {
1558 tonic::Status::unknown(
1559 format!("Service was not ready: {}", e.into()),
1560 )
1561 })?;
1562 let codec = tonic_prost::ProstCodec::default();
1563 let path = http::uri::PathAndQuery::from_static(
1564 "/ddl_service.DdlService/DropSubscription",
1565 );
1566 let mut req = request.into_request();
1567 req.extensions_mut()
1568 .insert(GrpcMethod::new("ddl_service.DdlService", "DropSubscription"));
1569 self.inner.unary(req, path, codec).await
1570 }
1571 pub async fn create_materialized_view(
1572 &mut self,
1573 request: impl tonic::IntoRequest<super::CreateMaterializedViewRequest>,
1574 ) -> std::result::Result<
1575 tonic::Response<super::CreateMaterializedViewResponse>,
1576 tonic::Status,
1577 > {
1578 self.inner
1579 .ready()
1580 .await
1581 .map_err(|e| {
1582 tonic::Status::unknown(
1583 format!("Service was not ready: {}", e.into()),
1584 )
1585 })?;
1586 let codec = tonic_prost::ProstCodec::default();
1587 let path = http::uri::PathAndQuery::from_static(
1588 "/ddl_service.DdlService/CreateMaterializedView",
1589 );
1590 let mut req = request.into_request();
1591 req.extensions_mut()
1592 .insert(
1593 GrpcMethod::new("ddl_service.DdlService", "CreateMaterializedView"),
1594 );
1595 self.inner.unary(req, path, codec).await
1596 }
1597 pub async fn drop_materialized_view(
1598 &mut self,
1599 request: impl tonic::IntoRequest<super::DropMaterializedViewRequest>,
1600 ) -> std::result::Result<
1601 tonic::Response<super::DropMaterializedViewResponse>,
1602 tonic::Status,
1603 > {
1604 self.inner
1605 .ready()
1606 .await
1607 .map_err(|e| {
1608 tonic::Status::unknown(
1609 format!("Service was not ready: {}", e.into()),
1610 )
1611 })?;
1612 let codec = tonic_prost::ProstCodec::default();
1613 let path = http::uri::PathAndQuery::from_static(
1614 "/ddl_service.DdlService/DropMaterializedView",
1615 );
1616 let mut req = request.into_request();
1617 req.extensions_mut()
1618 .insert(
1619 GrpcMethod::new("ddl_service.DdlService", "DropMaterializedView"),
1620 );
1621 self.inner.unary(req, path, codec).await
1622 }
1623 pub async fn create_table(
1624 &mut self,
1625 request: impl tonic::IntoRequest<super::CreateTableRequest>,
1626 ) -> std::result::Result<
1627 tonic::Response<super::CreateTableResponse>,
1628 tonic::Status,
1629 > {
1630 self.inner
1631 .ready()
1632 .await
1633 .map_err(|e| {
1634 tonic::Status::unknown(
1635 format!("Service was not ready: {}", e.into()),
1636 )
1637 })?;
1638 let codec = tonic_prost::ProstCodec::default();
1639 let path = http::uri::PathAndQuery::from_static(
1640 "/ddl_service.DdlService/CreateTable",
1641 );
1642 let mut req = request.into_request();
1643 req.extensions_mut()
1644 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateTable"));
1645 self.inner.unary(req, path, codec).await
1646 }
1647 pub async fn create_iceberg_table(
1648 &mut self,
1649 request: impl tonic::IntoRequest<super::CreateIcebergTableRequest>,
1650 ) -> std::result::Result<
1651 tonic::Response<super::CreateIcebergTableResponse>,
1652 tonic::Status,
1653 > {
1654 self.inner
1655 .ready()
1656 .await
1657 .map_err(|e| {
1658 tonic::Status::unknown(
1659 format!("Service was not ready: {}", e.into()),
1660 )
1661 })?;
1662 let codec = tonic_prost::ProstCodec::default();
1663 let path = http::uri::PathAndQuery::from_static(
1664 "/ddl_service.DdlService/CreateIcebergTable",
1665 );
1666 let mut req = request.into_request();
1667 req.extensions_mut()
1668 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateIcebergTable"));
1669 self.inner.unary(req, path, codec).await
1670 }
1671 pub async fn create_secret(
1672 &mut self,
1673 request: impl tonic::IntoRequest<super::CreateSecretRequest>,
1674 ) -> std::result::Result<
1675 tonic::Response<super::CreateSecretResponse>,
1676 tonic::Status,
1677 > {
1678 self.inner
1679 .ready()
1680 .await
1681 .map_err(|e| {
1682 tonic::Status::unknown(
1683 format!("Service was not ready: {}", e.into()),
1684 )
1685 })?;
1686 let codec = tonic_prost::ProstCodec::default();
1687 let path = http::uri::PathAndQuery::from_static(
1688 "/ddl_service.DdlService/CreateSecret",
1689 );
1690 let mut req = request.into_request();
1691 req.extensions_mut()
1692 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateSecret"));
1693 self.inner.unary(req, path, codec).await
1694 }
1695 pub async fn drop_secret(
1696 &mut self,
1697 request: impl tonic::IntoRequest<super::DropSecretRequest>,
1698 ) -> std::result::Result<
1699 tonic::Response<super::DropSecretResponse>,
1700 tonic::Status,
1701 > {
1702 self.inner
1703 .ready()
1704 .await
1705 .map_err(|e| {
1706 tonic::Status::unknown(
1707 format!("Service was not ready: {}", e.into()),
1708 )
1709 })?;
1710 let codec = tonic_prost::ProstCodec::default();
1711 let path = http::uri::PathAndQuery::from_static(
1712 "/ddl_service.DdlService/DropSecret",
1713 );
1714 let mut req = request.into_request();
1715 req.extensions_mut()
1716 .insert(GrpcMethod::new("ddl_service.DdlService", "DropSecret"));
1717 self.inner.unary(req, path, codec).await
1718 }
1719 pub async fn alter_secret(
1720 &mut self,
1721 request: impl tonic::IntoRequest<super::AlterSecretRequest>,
1722 ) -> std::result::Result<
1723 tonic::Response<super::AlterSecretResponse>,
1724 tonic::Status,
1725 > {
1726 self.inner
1727 .ready()
1728 .await
1729 .map_err(|e| {
1730 tonic::Status::unknown(
1731 format!("Service was not ready: {}", e.into()),
1732 )
1733 })?;
1734 let codec = tonic_prost::ProstCodec::default();
1735 let path = http::uri::PathAndQuery::from_static(
1736 "/ddl_service.DdlService/AlterSecret",
1737 );
1738 let mut req = request.into_request();
1739 req.extensions_mut()
1740 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterSecret"));
1741 self.inner.unary(req, path, codec).await
1742 }
1743 pub async fn alter_name(
1744 &mut self,
1745 request: impl tonic::IntoRequest<super::AlterNameRequest>,
1746 ) -> std::result::Result<
1747 tonic::Response<super::AlterNameResponse>,
1748 tonic::Status,
1749 > {
1750 self.inner
1751 .ready()
1752 .await
1753 .map_err(|e| {
1754 tonic::Status::unknown(
1755 format!("Service was not ready: {}", e.into()),
1756 )
1757 })?;
1758 let codec = tonic_prost::ProstCodec::default();
1759 let path = http::uri::PathAndQuery::from_static(
1760 "/ddl_service.DdlService/AlterName",
1761 );
1762 let mut req = request.into_request();
1763 req.extensions_mut()
1764 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterName"));
1765 self.inner.unary(req, path, codec).await
1766 }
1767 pub async fn alter_source(
1768 &mut self,
1769 request: impl tonic::IntoRequest<super::AlterSourceRequest>,
1770 ) -> std::result::Result<
1771 tonic::Response<super::AlterSourceResponse>,
1772 tonic::Status,
1773 > {
1774 self.inner
1775 .ready()
1776 .await
1777 .map_err(|e| {
1778 tonic::Status::unknown(
1779 format!("Service was not ready: {}", e.into()),
1780 )
1781 })?;
1782 let codec = tonic_prost::ProstCodec::default();
1783 let path = http::uri::PathAndQuery::from_static(
1784 "/ddl_service.DdlService/AlterSource",
1785 );
1786 let mut req = request.into_request();
1787 req.extensions_mut()
1788 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterSource"));
1789 self.inner.unary(req, path, codec).await
1790 }
1791 pub async fn reset_source(
1792 &mut self,
1793 request: impl tonic::IntoRequest<super::ResetSourceRequest>,
1794 ) -> std::result::Result<
1795 tonic::Response<super::ResetSourceResponse>,
1796 tonic::Status,
1797 > {
1798 self.inner
1799 .ready()
1800 .await
1801 .map_err(|e| {
1802 tonic::Status::unknown(
1803 format!("Service was not ready: {}", e.into()),
1804 )
1805 })?;
1806 let codec = tonic_prost::ProstCodec::default();
1807 let path = http::uri::PathAndQuery::from_static(
1808 "/ddl_service.DdlService/ResetSource",
1809 );
1810 let mut req = request.into_request();
1811 req.extensions_mut()
1812 .insert(GrpcMethod::new("ddl_service.DdlService", "ResetSource"));
1813 self.inner.unary(req, path, codec).await
1814 }
1815 pub async fn alter_owner(
1816 &mut self,
1817 request: impl tonic::IntoRequest<super::AlterOwnerRequest>,
1818 ) -> std::result::Result<
1819 tonic::Response<super::AlterOwnerResponse>,
1820 tonic::Status,
1821 > {
1822 self.inner
1823 .ready()
1824 .await
1825 .map_err(|e| {
1826 tonic::Status::unknown(
1827 format!("Service was not ready: {}", e.into()),
1828 )
1829 })?;
1830 let codec = tonic_prost::ProstCodec::default();
1831 let path = http::uri::PathAndQuery::from_static(
1832 "/ddl_service.DdlService/AlterOwner",
1833 );
1834 let mut req = request.into_request();
1835 req.extensions_mut()
1836 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterOwner"));
1837 self.inner.unary(req, path, codec).await
1838 }
1839 pub async fn alter_subscription_retention(
1840 &mut self,
1841 request: impl tonic::IntoRequest<super::AlterSubscriptionRetentionRequest>,
1842 ) -> std::result::Result<
1843 tonic::Response<super::AlterSubscriptionRetentionResponse>,
1844 tonic::Status,
1845 > {
1846 self.inner
1847 .ready()
1848 .await
1849 .map_err(|e| {
1850 tonic::Status::unknown(
1851 format!("Service was not ready: {}", e.into()),
1852 )
1853 })?;
1854 let codec = tonic_prost::ProstCodec::default();
1855 let path = http::uri::PathAndQuery::from_static(
1856 "/ddl_service.DdlService/AlterSubscriptionRetention",
1857 );
1858 let mut req = request.into_request();
1859 req.extensions_mut()
1860 .insert(
1861 GrpcMethod::new(
1862 "ddl_service.DdlService",
1863 "AlterSubscriptionRetention",
1864 ),
1865 );
1866 self.inner.unary(req, path, codec).await
1867 }
1868 pub async fn alter_set_schema(
1869 &mut self,
1870 request: impl tonic::IntoRequest<super::AlterSetSchemaRequest>,
1871 ) -> std::result::Result<
1872 tonic::Response<super::AlterSetSchemaResponse>,
1873 tonic::Status,
1874 > {
1875 self.inner
1876 .ready()
1877 .await
1878 .map_err(|e| {
1879 tonic::Status::unknown(
1880 format!("Service was not ready: {}", e.into()),
1881 )
1882 })?;
1883 let codec = tonic_prost::ProstCodec::default();
1884 let path = http::uri::PathAndQuery::from_static(
1885 "/ddl_service.DdlService/AlterSetSchema",
1886 );
1887 let mut req = request.into_request();
1888 req.extensions_mut()
1889 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterSetSchema"));
1890 self.inner.unary(req, path, codec).await
1891 }
1892 pub async fn alter_parallelism(
1893 &mut self,
1894 request: impl tonic::IntoRequest<super::AlterParallelismRequest>,
1895 ) -> std::result::Result<
1896 tonic::Response<super::AlterParallelismResponse>,
1897 tonic::Status,
1898 > {
1899 self.inner
1900 .ready()
1901 .await
1902 .map_err(|e| {
1903 tonic::Status::unknown(
1904 format!("Service was not ready: {}", e.into()),
1905 )
1906 })?;
1907 let codec = tonic_prost::ProstCodec::default();
1908 let path = http::uri::PathAndQuery::from_static(
1909 "/ddl_service.DdlService/AlterParallelism",
1910 );
1911 let mut req = request.into_request();
1912 req.extensions_mut()
1913 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterParallelism"));
1914 self.inner.unary(req, path, codec).await
1915 }
1916 pub async fn alter_backfill_parallelism(
1917 &mut self,
1918 request: impl tonic::IntoRequest<super::AlterBackfillParallelismRequest>,
1919 ) -> std::result::Result<
1920 tonic::Response<super::AlterBackfillParallelismResponse>,
1921 tonic::Status,
1922 > {
1923 self.inner
1924 .ready()
1925 .await
1926 .map_err(|e| {
1927 tonic::Status::unknown(
1928 format!("Service was not ready: {}", e.into()),
1929 )
1930 })?;
1931 let codec = tonic_prost::ProstCodec::default();
1932 let path = http::uri::PathAndQuery::from_static(
1933 "/ddl_service.DdlService/AlterBackfillParallelism",
1934 );
1935 let mut req = request.into_request();
1936 req.extensions_mut()
1937 .insert(
1938 GrpcMethod::new("ddl_service.DdlService", "AlterBackfillParallelism"),
1939 );
1940 self.inner.unary(req, path, codec).await
1941 }
1942 pub async fn alter_fragment_parallelism(
1943 &mut self,
1944 request: impl tonic::IntoRequest<super::AlterFragmentParallelismRequest>,
1945 ) -> std::result::Result<
1946 tonic::Response<super::AlterFragmentParallelismResponse>,
1947 tonic::Status,
1948 > {
1949 self.inner
1950 .ready()
1951 .await
1952 .map_err(|e| {
1953 tonic::Status::unknown(
1954 format!("Service was not ready: {}", e.into()),
1955 )
1956 })?;
1957 let codec = tonic_prost::ProstCodec::default();
1958 let path = http::uri::PathAndQuery::from_static(
1959 "/ddl_service.DdlService/AlterFragmentParallelism",
1960 );
1961 let mut req = request.into_request();
1962 req.extensions_mut()
1963 .insert(
1964 GrpcMethod::new("ddl_service.DdlService", "AlterFragmentParallelism"),
1965 );
1966 self.inner.unary(req, path, codec).await
1967 }
1968 pub async fn alter_resource_group(
1969 &mut self,
1970 request: impl tonic::IntoRequest<super::AlterResourceGroupRequest>,
1971 ) -> std::result::Result<
1972 tonic::Response<super::AlterResourceGroupResponse>,
1973 tonic::Status,
1974 > {
1975 self.inner
1976 .ready()
1977 .await
1978 .map_err(|e| {
1979 tonic::Status::unknown(
1980 format!("Service was not ready: {}", e.into()),
1981 )
1982 })?;
1983 let codec = tonic_prost::ProstCodec::default();
1984 let path = http::uri::PathAndQuery::from_static(
1985 "/ddl_service.DdlService/AlterResourceGroup",
1986 );
1987 let mut req = request.into_request();
1988 req.extensions_mut()
1989 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterResourceGroup"));
1990 self.inner.unary(req, path, codec).await
1991 }
1992 pub async fn drop_table(
1993 &mut self,
1994 request: impl tonic::IntoRequest<super::DropTableRequest>,
1995 ) -> std::result::Result<
1996 tonic::Response<super::DropTableResponse>,
1997 tonic::Status,
1998 > {
1999 self.inner
2000 .ready()
2001 .await
2002 .map_err(|e| {
2003 tonic::Status::unknown(
2004 format!("Service was not ready: {}", e.into()),
2005 )
2006 })?;
2007 let codec = tonic_prost::ProstCodec::default();
2008 let path = http::uri::PathAndQuery::from_static(
2009 "/ddl_service.DdlService/DropTable",
2010 );
2011 let mut req = request.into_request();
2012 req.extensions_mut()
2013 .insert(GrpcMethod::new("ddl_service.DdlService", "DropTable"));
2014 self.inner.unary(req, path, codec).await
2015 }
2016 pub async fn risectl_list_state_tables(
2017 &mut self,
2018 request: impl tonic::IntoRequest<super::RisectlListStateTablesRequest>,
2019 ) -> std::result::Result<
2020 tonic::Response<super::RisectlListStateTablesResponse>,
2021 tonic::Status,
2022 > {
2023 self.inner
2024 .ready()
2025 .await
2026 .map_err(|e| {
2027 tonic::Status::unknown(
2028 format!("Service was not ready: {}", e.into()),
2029 )
2030 })?;
2031 let codec = tonic_prost::ProstCodec::default();
2032 let path = http::uri::PathAndQuery::from_static(
2033 "/ddl_service.DdlService/RisectlListStateTables",
2034 );
2035 let mut req = request.into_request();
2036 req.extensions_mut()
2037 .insert(
2038 GrpcMethod::new("ddl_service.DdlService", "RisectlListStateTables"),
2039 );
2040 self.inner.unary(req, path, codec).await
2041 }
2042 pub async fn risectl_resume_backfill(
2043 &mut self,
2044 request: impl tonic::IntoRequest<super::RisectlResumeBackfillRequest>,
2045 ) -> std::result::Result<
2046 tonic::Response<super::RisectlResumeBackfillResponse>,
2047 tonic::Status,
2048 > {
2049 self.inner
2050 .ready()
2051 .await
2052 .map_err(|e| {
2053 tonic::Status::unknown(
2054 format!("Service was not ready: {}", e.into()),
2055 )
2056 })?;
2057 let codec = tonic_prost::ProstCodec::default();
2058 let path = http::uri::PathAndQuery::from_static(
2059 "/ddl_service.DdlService/RisectlResumeBackfill",
2060 );
2061 let mut req = request.into_request();
2062 req.extensions_mut()
2063 .insert(
2064 GrpcMethod::new("ddl_service.DdlService", "RisectlResumeBackfill"),
2065 );
2066 self.inner.unary(req, path, codec).await
2067 }
2068 pub async fn create_view(
2069 &mut self,
2070 request: impl tonic::IntoRequest<super::CreateViewRequest>,
2071 ) -> std::result::Result<
2072 tonic::Response<super::CreateViewResponse>,
2073 tonic::Status,
2074 > {
2075 self.inner
2076 .ready()
2077 .await
2078 .map_err(|e| {
2079 tonic::Status::unknown(
2080 format!("Service was not ready: {}", e.into()),
2081 )
2082 })?;
2083 let codec = tonic_prost::ProstCodec::default();
2084 let path = http::uri::PathAndQuery::from_static(
2085 "/ddl_service.DdlService/CreateView",
2086 );
2087 let mut req = request.into_request();
2088 req.extensions_mut()
2089 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateView"));
2090 self.inner.unary(req, path, codec).await
2091 }
2092 pub async fn drop_view(
2093 &mut self,
2094 request: impl tonic::IntoRequest<super::DropViewRequest>,
2095 ) -> std::result::Result<
2096 tonic::Response<super::DropViewResponse>,
2097 tonic::Status,
2098 > {
2099 self.inner
2100 .ready()
2101 .await
2102 .map_err(|e| {
2103 tonic::Status::unknown(
2104 format!("Service was not ready: {}", e.into()),
2105 )
2106 })?;
2107 let codec = tonic_prost::ProstCodec::default();
2108 let path = http::uri::PathAndQuery::from_static(
2109 "/ddl_service.DdlService/DropView",
2110 );
2111 let mut req = request.into_request();
2112 req.extensions_mut()
2113 .insert(GrpcMethod::new("ddl_service.DdlService", "DropView"));
2114 self.inner.unary(req, path, codec).await
2115 }
2116 pub async fn create_index(
2117 &mut self,
2118 request: impl tonic::IntoRequest<super::CreateIndexRequest>,
2119 ) -> std::result::Result<
2120 tonic::Response<super::CreateIndexResponse>,
2121 tonic::Status,
2122 > {
2123 self.inner
2124 .ready()
2125 .await
2126 .map_err(|e| {
2127 tonic::Status::unknown(
2128 format!("Service was not ready: {}", e.into()),
2129 )
2130 })?;
2131 let codec = tonic_prost::ProstCodec::default();
2132 let path = http::uri::PathAndQuery::from_static(
2133 "/ddl_service.DdlService/CreateIndex",
2134 );
2135 let mut req = request.into_request();
2136 req.extensions_mut()
2137 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateIndex"));
2138 self.inner.unary(req, path, codec).await
2139 }
2140 pub async fn drop_index(
2141 &mut self,
2142 request: impl tonic::IntoRequest<super::DropIndexRequest>,
2143 ) -> std::result::Result<
2144 tonic::Response<super::DropIndexResponse>,
2145 tonic::Status,
2146 > {
2147 self.inner
2148 .ready()
2149 .await
2150 .map_err(|e| {
2151 tonic::Status::unknown(
2152 format!("Service was not ready: {}", e.into()),
2153 )
2154 })?;
2155 let codec = tonic_prost::ProstCodec::default();
2156 let path = http::uri::PathAndQuery::from_static(
2157 "/ddl_service.DdlService/DropIndex",
2158 );
2159 let mut req = request.into_request();
2160 req.extensions_mut()
2161 .insert(GrpcMethod::new("ddl_service.DdlService", "DropIndex"));
2162 self.inner.unary(req, path, codec).await
2163 }
2164 pub async fn create_function(
2165 &mut self,
2166 request: impl tonic::IntoRequest<super::CreateFunctionRequest>,
2167 ) -> std::result::Result<
2168 tonic::Response<super::CreateFunctionResponse>,
2169 tonic::Status,
2170 > {
2171 self.inner
2172 .ready()
2173 .await
2174 .map_err(|e| {
2175 tonic::Status::unknown(
2176 format!("Service was not ready: {}", e.into()),
2177 )
2178 })?;
2179 let codec = tonic_prost::ProstCodec::default();
2180 let path = http::uri::PathAndQuery::from_static(
2181 "/ddl_service.DdlService/CreateFunction",
2182 );
2183 let mut req = request.into_request();
2184 req.extensions_mut()
2185 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateFunction"));
2186 self.inner.unary(req, path, codec).await
2187 }
2188 pub async fn drop_function(
2189 &mut self,
2190 request: impl tonic::IntoRequest<super::DropFunctionRequest>,
2191 ) -> std::result::Result<
2192 tonic::Response<super::DropFunctionResponse>,
2193 tonic::Status,
2194 > {
2195 self.inner
2196 .ready()
2197 .await
2198 .map_err(|e| {
2199 tonic::Status::unknown(
2200 format!("Service was not ready: {}", e.into()),
2201 )
2202 })?;
2203 let codec = tonic_prost::ProstCodec::default();
2204 let path = http::uri::PathAndQuery::from_static(
2205 "/ddl_service.DdlService/DropFunction",
2206 );
2207 let mut req = request.into_request();
2208 req.extensions_mut()
2209 .insert(GrpcMethod::new("ddl_service.DdlService", "DropFunction"));
2210 self.inner.unary(req, path, codec).await
2211 }
2212 pub async fn replace_job_plan(
2213 &mut self,
2214 request: impl tonic::IntoRequest<super::ReplaceJobPlanRequest>,
2215 ) -> std::result::Result<
2216 tonic::Response<super::ReplaceJobPlanResponse>,
2217 tonic::Status,
2218 > {
2219 self.inner
2220 .ready()
2221 .await
2222 .map_err(|e| {
2223 tonic::Status::unknown(
2224 format!("Service was not ready: {}", e.into()),
2225 )
2226 })?;
2227 let codec = tonic_prost::ProstCodec::default();
2228 let path = http::uri::PathAndQuery::from_static(
2229 "/ddl_service.DdlService/ReplaceJobPlan",
2230 );
2231 let mut req = request.into_request();
2232 req.extensions_mut()
2233 .insert(GrpcMethod::new("ddl_service.DdlService", "ReplaceJobPlan"));
2234 self.inner.unary(req, path, codec).await
2235 }
2236 pub async fn get_table(
2237 &mut self,
2238 request: impl tonic::IntoRequest<super::GetTableRequest>,
2239 ) -> std::result::Result<
2240 tonic::Response<super::GetTableResponse>,
2241 tonic::Status,
2242 > {
2243 self.inner
2244 .ready()
2245 .await
2246 .map_err(|e| {
2247 tonic::Status::unknown(
2248 format!("Service was not ready: {}", e.into()),
2249 )
2250 })?;
2251 let codec = tonic_prost::ProstCodec::default();
2252 let path = http::uri::PathAndQuery::from_static(
2253 "/ddl_service.DdlService/GetTable",
2254 );
2255 let mut req = request.into_request();
2256 req.extensions_mut()
2257 .insert(GrpcMethod::new("ddl_service.DdlService", "GetTable"));
2258 self.inner.unary(req, path, codec).await
2259 }
2260 pub async fn get_ddl_progress(
2261 &mut self,
2262 request: impl tonic::IntoRequest<super::GetDdlProgressRequest>,
2263 ) -> std::result::Result<
2264 tonic::Response<super::GetDdlProgressResponse>,
2265 tonic::Status,
2266 > {
2267 self.inner
2268 .ready()
2269 .await
2270 .map_err(|e| {
2271 tonic::Status::unknown(
2272 format!("Service was not ready: {}", e.into()),
2273 )
2274 })?;
2275 let codec = tonic_prost::ProstCodec::default();
2276 let path = http::uri::PathAndQuery::from_static(
2277 "/ddl_service.DdlService/GetDdlProgress",
2278 );
2279 let mut req = request.into_request();
2280 req.extensions_mut()
2281 .insert(GrpcMethod::new("ddl_service.DdlService", "GetDdlProgress"));
2282 self.inner.unary(req, path, codec).await
2283 }
2284 pub async fn create_connection(
2285 &mut self,
2286 request: impl tonic::IntoRequest<super::CreateConnectionRequest>,
2287 ) -> std::result::Result<
2288 tonic::Response<super::CreateConnectionResponse>,
2289 tonic::Status,
2290 > {
2291 self.inner
2292 .ready()
2293 .await
2294 .map_err(|e| {
2295 tonic::Status::unknown(
2296 format!("Service was not ready: {}", e.into()),
2297 )
2298 })?;
2299 let codec = tonic_prost::ProstCodec::default();
2300 let path = http::uri::PathAndQuery::from_static(
2301 "/ddl_service.DdlService/CreateConnection",
2302 );
2303 let mut req = request.into_request();
2304 req.extensions_mut()
2305 .insert(GrpcMethod::new("ddl_service.DdlService", "CreateConnection"));
2306 self.inner.unary(req, path, codec).await
2307 }
2308 pub async fn list_connections(
2309 &mut self,
2310 request: impl tonic::IntoRequest<super::ListConnectionsRequest>,
2311 ) -> std::result::Result<
2312 tonic::Response<super::ListConnectionsResponse>,
2313 tonic::Status,
2314 > {
2315 self.inner
2316 .ready()
2317 .await
2318 .map_err(|e| {
2319 tonic::Status::unknown(
2320 format!("Service was not ready: {}", e.into()),
2321 )
2322 })?;
2323 let codec = tonic_prost::ProstCodec::default();
2324 let path = http::uri::PathAndQuery::from_static(
2325 "/ddl_service.DdlService/ListConnections",
2326 );
2327 let mut req = request.into_request();
2328 req.extensions_mut()
2329 .insert(GrpcMethod::new("ddl_service.DdlService", "ListConnections"));
2330 self.inner.unary(req, path, codec).await
2331 }
2332 pub async fn drop_connection(
2333 &mut self,
2334 request: impl tonic::IntoRequest<super::DropConnectionRequest>,
2335 ) -> std::result::Result<
2336 tonic::Response<super::DropConnectionResponse>,
2337 tonic::Status,
2338 > {
2339 self.inner
2340 .ready()
2341 .await
2342 .map_err(|e| {
2343 tonic::Status::unknown(
2344 format!("Service was not ready: {}", e.into()),
2345 )
2346 })?;
2347 let codec = tonic_prost::ProstCodec::default();
2348 let path = http::uri::PathAndQuery::from_static(
2349 "/ddl_service.DdlService/DropConnection",
2350 );
2351 let mut req = request.into_request();
2352 req.extensions_mut()
2353 .insert(GrpcMethod::new("ddl_service.DdlService", "DropConnection"));
2354 self.inner.unary(req, path, codec).await
2355 }
2356 pub async fn get_tables(
2357 &mut self,
2358 request: impl tonic::IntoRequest<super::GetTablesRequest>,
2359 ) -> std::result::Result<
2360 tonic::Response<super::GetTablesResponse>,
2361 tonic::Status,
2362 > {
2363 self.inner
2364 .ready()
2365 .await
2366 .map_err(|e| {
2367 tonic::Status::unknown(
2368 format!("Service was not ready: {}", e.into()),
2369 )
2370 })?;
2371 let codec = tonic_prost::ProstCodec::default();
2372 let path = http::uri::PathAndQuery::from_static(
2373 "/ddl_service.DdlService/GetTables",
2374 );
2375 let mut req = request.into_request();
2376 req.extensions_mut()
2377 .insert(GrpcMethod::new("ddl_service.DdlService", "GetTables"));
2378 self.inner.unary(req, path, codec).await
2379 }
2380 pub async fn wait(
2381 &mut self,
2382 request: impl tonic::IntoRequest<super::WaitRequest>,
2383 ) -> std::result::Result<tonic::Response<super::WaitResponse>, tonic::Status> {
2384 self.inner
2385 .ready()
2386 .await
2387 .map_err(|e| {
2388 tonic::Status::unknown(
2389 format!("Service was not ready: {}", e.into()),
2390 )
2391 })?;
2392 let codec = tonic_prost::ProstCodec::default();
2393 let path = http::uri::PathAndQuery::from_static(
2394 "/ddl_service.DdlService/Wait",
2395 );
2396 let mut req = request.into_request();
2397 req.extensions_mut()
2398 .insert(GrpcMethod::new("ddl_service.DdlService", "Wait"));
2399 self.inner.unary(req, path, codec).await
2400 }
2401 pub async fn comment_on(
2402 &mut self,
2403 request: impl tonic::IntoRequest<super::CommentOnRequest>,
2404 ) -> std::result::Result<
2405 tonic::Response<super::CommentOnResponse>,
2406 tonic::Status,
2407 > {
2408 self.inner
2409 .ready()
2410 .await
2411 .map_err(|e| {
2412 tonic::Status::unknown(
2413 format!("Service was not ready: {}", e.into()),
2414 )
2415 })?;
2416 let codec = tonic_prost::ProstCodec::default();
2417 let path = http::uri::PathAndQuery::from_static(
2418 "/ddl_service.DdlService/CommentOn",
2419 );
2420 let mut req = request.into_request();
2421 req.extensions_mut()
2422 .insert(GrpcMethod::new("ddl_service.DdlService", "CommentOn"));
2423 self.inner.unary(req, path, codec).await
2424 }
2425 pub async fn auto_schema_change(
2426 &mut self,
2427 request: impl tonic::IntoRequest<super::AutoSchemaChangeRequest>,
2428 ) -> std::result::Result<
2429 tonic::Response<super::AutoSchemaChangeResponse>,
2430 tonic::Status,
2431 > {
2432 self.inner
2433 .ready()
2434 .await
2435 .map_err(|e| {
2436 tonic::Status::unknown(
2437 format!("Service was not ready: {}", e.into()),
2438 )
2439 })?;
2440 let codec = tonic_prost::ProstCodec::default();
2441 let path = http::uri::PathAndQuery::from_static(
2442 "/ddl_service.DdlService/AutoSchemaChange",
2443 );
2444 let mut req = request.into_request();
2445 req.extensions_mut()
2446 .insert(GrpcMethod::new("ddl_service.DdlService", "AutoSchemaChange"));
2447 self.inner.unary(req, path, codec).await
2448 }
2449 pub async fn alter_swap_rename(
2450 &mut self,
2451 request: impl tonic::IntoRequest<super::AlterSwapRenameRequest>,
2452 ) -> std::result::Result<
2453 tonic::Response<super::AlterSwapRenameResponse>,
2454 tonic::Status,
2455 > {
2456 self.inner
2457 .ready()
2458 .await
2459 .map_err(|e| {
2460 tonic::Status::unknown(
2461 format!("Service was not ready: {}", e.into()),
2462 )
2463 })?;
2464 let codec = tonic_prost::ProstCodec::default();
2465 let path = http::uri::PathAndQuery::from_static(
2466 "/ddl_service.DdlService/AlterSwapRename",
2467 );
2468 let mut req = request.into_request();
2469 req.extensions_mut()
2470 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterSwapRename"));
2471 self.inner.unary(req, path, codec).await
2472 }
2473 pub async fn alter_database_param(
2474 &mut self,
2475 request: impl tonic::IntoRequest<super::AlterDatabaseParamRequest>,
2476 ) -> std::result::Result<
2477 tonic::Response<super::AlterDatabaseParamResponse>,
2478 tonic::Status,
2479 > {
2480 self.inner
2481 .ready()
2482 .await
2483 .map_err(|e| {
2484 tonic::Status::unknown(
2485 format!("Service was not ready: {}", e.into()),
2486 )
2487 })?;
2488 let codec = tonic_prost::ProstCodec::default();
2489 let path = http::uri::PathAndQuery::from_static(
2490 "/ddl_service.DdlService/AlterDatabaseParam",
2491 );
2492 let mut req = request.into_request();
2493 req.extensions_mut()
2494 .insert(GrpcMethod::new("ddl_service.DdlService", "AlterDatabaseParam"));
2495 self.inner.unary(req, path, codec).await
2496 }
2497 pub async fn compact_iceberg_table(
2498 &mut self,
2499 request: impl tonic::IntoRequest<super::CompactIcebergTableRequest>,
2500 ) -> std::result::Result<
2501 tonic::Response<super::CompactIcebergTableResponse>,
2502 tonic::Status,
2503 > {
2504 self.inner
2505 .ready()
2506 .await
2507 .map_err(|e| {
2508 tonic::Status::unknown(
2509 format!("Service was not ready: {}", e.into()),
2510 )
2511 })?;
2512 let codec = tonic_prost::ProstCodec::default();
2513 let path = http::uri::PathAndQuery::from_static(
2514 "/ddl_service.DdlService/CompactIcebergTable",
2515 );
2516 let mut req = request.into_request();
2517 req.extensions_mut()
2518 .insert(
2519 GrpcMethod::new("ddl_service.DdlService", "CompactIcebergTable"),
2520 );
2521 self.inner.unary(req, path, codec).await
2522 }
2523 pub async fn expire_iceberg_table_snapshots(
2524 &mut self,
2525 request: impl tonic::IntoRequest<super::ExpireIcebergTableSnapshotsRequest>,
2526 ) -> std::result::Result<
2527 tonic::Response<super::ExpireIcebergTableSnapshotsResponse>,
2528 tonic::Status,
2529 > {
2530 self.inner
2531 .ready()
2532 .await
2533 .map_err(|e| {
2534 tonic::Status::unknown(
2535 format!("Service was not ready: {}", e.into()),
2536 )
2537 })?;
2538 let codec = tonic_prost::ProstCodec::default();
2539 let path = http::uri::PathAndQuery::from_static(
2540 "/ddl_service.DdlService/ExpireIcebergTableSnapshots",
2541 );
2542 let mut req = request.into_request();
2543 req.extensions_mut()
2544 .insert(
2545 GrpcMethod::new(
2546 "ddl_service.DdlService",
2547 "ExpireIcebergTableSnapshots",
2548 ),
2549 );
2550 self.inner.unary(req, path, codec).await
2551 }
2552 pub async fn alter_cdc_table_backfill_parallelism(
2553 &mut self,
2554 request: impl tonic::IntoRequest<
2555 super::AlterCdcTableBackfillParallelismRequest,
2556 >,
2557 ) -> std::result::Result<
2558 tonic::Response<super::AlterCdcTableBackfillParallelismResponse>,
2559 tonic::Status,
2560 > {
2561 self.inner
2562 .ready()
2563 .await
2564 .map_err(|e| {
2565 tonic::Status::unknown(
2566 format!("Service was not ready: {}", e.into()),
2567 )
2568 })?;
2569 let codec = tonic_prost::ProstCodec::default();
2570 let path = http::uri::PathAndQuery::from_static(
2571 "/ddl_service.DdlService/AlterCdcTableBackfillParallelism",
2572 );
2573 let mut req = request.into_request();
2574 req.extensions_mut()
2575 .insert(
2576 GrpcMethod::new(
2577 "ddl_service.DdlService",
2578 "AlterCdcTableBackfillParallelism",
2579 ),
2580 );
2581 self.inner.unary(req, path, codec).await
2582 }
2583 pub async fn alter_streaming_job_config(
2584 &mut self,
2585 request: impl tonic::IntoRequest<super::AlterStreamingJobConfigRequest>,
2586 ) -> std::result::Result<
2587 tonic::Response<super::AlterStreamingJobConfigResponse>,
2588 tonic::Status,
2589 > {
2590 self.inner
2591 .ready()
2592 .await
2593 .map_err(|e| {
2594 tonic::Status::unknown(
2595 format!("Service was not ready: {}", e.into()),
2596 )
2597 })?;
2598 let codec = tonic_prost::ProstCodec::default();
2599 let path = http::uri::PathAndQuery::from_static(
2600 "/ddl_service.DdlService/AlterStreamingJobConfig",
2601 );
2602 let mut req = request.into_request();
2603 req.extensions_mut()
2604 .insert(
2605 GrpcMethod::new("ddl_service.DdlService", "AlterStreamingJobConfig"),
2606 );
2607 self.inner.unary(req, path, codec).await
2608 }
2609 }
2610}
2611pub mod ddl_service_server {
2613 #![allow(
2614 unused_variables,
2615 dead_code,
2616 missing_docs,
2617 clippy::wildcard_imports,
2618 clippy::let_unit_value,
2619 )]
2620 use tonic::codegen::*;
2621 #[async_trait]
2623 pub trait DdlService: std::marker::Send + std::marker::Sync + 'static {
2624 async fn create_database(
2625 &self,
2626 request: tonic::Request<super::CreateDatabaseRequest>,
2627 ) -> std::result::Result<
2628 tonic::Response<super::CreateDatabaseResponse>,
2629 tonic::Status,
2630 >;
2631 async fn drop_database(
2632 &self,
2633 request: tonic::Request<super::DropDatabaseRequest>,
2634 ) -> std::result::Result<
2635 tonic::Response<super::DropDatabaseResponse>,
2636 tonic::Status,
2637 >;
2638 async fn create_schema(
2639 &self,
2640 request: tonic::Request<super::CreateSchemaRequest>,
2641 ) -> std::result::Result<
2642 tonic::Response<super::CreateSchemaResponse>,
2643 tonic::Status,
2644 >;
2645 async fn drop_schema(
2646 &self,
2647 request: tonic::Request<super::DropSchemaRequest>,
2648 ) -> std::result::Result<
2649 tonic::Response<super::DropSchemaResponse>,
2650 tonic::Status,
2651 >;
2652 async fn create_source(
2653 &self,
2654 request: tonic::Request<super::CreateSourceRequest>,
2655 ) -> std::result::Result<
2656 tonic::Response<super::CreateSourceResponse>,
2657 tonic::Status,
2658 >;
2659 async fn drop_source(
2660 &self,
2661 request: tonic::Request<super::DropSourceRequest>,
2662 ) -> std::result::Result<
2663 tonic::Response<super::DropSourceResponse>,
2664 tonic::Status,
2665 >;
2666 async fn create_sink(
2667 &self,
2668 request: tonic::Request<super::CreateSinkRequest>,
2669 ) -> std::result::Result<
2670 tonic::Response<super::CreateSinkResponse>,
2671 tonic::Status,
2672 >;
2673 async fn create_subscription(
2674 &self,
2675 request: tonic::Request<super::CreateSubscriptionRequest>,
2676 ) -> std::result::Result<
2677 tonic::Response<super::CreateSubscriptionResponse>,
2678 tonic::Status,
2679 >;
2680 async fn drop_sink(
2681 &self,
2682 request: tonic::Request<super::DropSinkRequest>,
2683 ) -> std::result::Result<
2684 tonic::Response<super::DropSinkResponse>,
2685 tonic::Status,
2686 >;
2687 async fn drop_subscription(
2688 &self,
2689 request: tonic::Request<super::DropSubscriptionRequest>,
2690 ) -> std::result::Result<
2691 tonic::Response<super::DropSubscriptionResponse>,
2692 tonic::Status,
2693 >;
2694 async fn create_materialized_view(
2695 &self,
2696 request: tonic::Request<super::CreateMaterializedViewRequest>,
2697 ) -> std::result::Result<
2698 tonic::Response<super::CreateMaterializedViewResponse>,
2699 tonic::Status,
2700 >;
2701 async fn drop_materialized_view(
2702 &self,
2703 request: tonic::Request<super::DropMaterializedViewRequest>,
2704 ) -> std::result::Result<
2705 tonic::Response<super::DropMaterializedViewResponse>,
2706 tonic::Status,
2707 >;
2708 async fn create_table(
2709 &self,
2710 request: tonic::Request<super::CreateTableRequest>,
2711 ) -> std::result::Result<
2712 tonic::Response<super::CreateTableResponse>,
2713 tonic::Status,
2714 >;
2715 async fn create_iceberg_table(
2716 &self,
2717 request: tonic::Request<super::CreateIcebergTableRequest>,
2718 ) -> std::result::Result<
2719 tonic::Response<super::CreateIcebergTableResponse>,
2720 tonic::Status,
2721 >;
2722 async fn create_secret(
2723 &self,
2724 request: tonic::Request<super::CreateSecretRequest>,
2725 ) -> std::result::Result<
2726 tonic::Response<super::CreateSecretResponse>,
2727 tonic::Status,
2728 >;
2729 async fn drop_secret(
2730 &self,
2731 request: tonic::Request<super::DropSecretRequest>,
2732 ) -> std::result::Result<
2733 tonic::Response<super::DropSecretResponse>,
2734 tonic::Status,
2735 >;
2736 async fn alter_secret(
2737 &self,
2738 request: tonic::Request<super::AlterSecretRequest>,
2739 ) -> std::result::Result<
2740 tonic::Response<super::AlterSecretResponse>,
2741 tonic::Status,
2742 >;
2743 async fn alter_name(
2744 &self,
2745 request: tonic::Request<super::AlterNameRequest>,
2746 ) -> std::result::Result<
2747 tonic::Response<super::AlterNameResponse>,
2748 tonic::Status,
2749 >;
2750 async fn alter_source(
2751 &self,
2752 request: tonic::Request<super::AlterSourceRequest>,
2753 ) -> std::result::Result<
2754 tonic::Response<super::AlterSourceResponse>,
2755 tonic::Status,
2756 >;
2757 async fn reset_source(
2758 &self,
2759 request: tonic::Request<super::ResetSourceRequest>,
2760 ) -> std::result::Result<
2761 tonic::Response<super::ResetSourceResponse>,
2762 tonic::Status,
2763 >;
2764 async fn alter_owner(
2765 &self,
2766 request: tonic::Request<super::AlterOwnerRequest>,
2767 ) -> std::result::Result<
2768 tonic::Response<super::AlterOwnerResponse>,
2769 tonic::Status,
2770 >;
2771 async fn alter_subscription_retention(
2772 &self,
2773 request: tonic::Request<super::AlterSubscriptionRetentionRequest>,
2774 ) -> std::result::Result<
2775 tonic::Response<super::AlterSubscriptionRetentionResponse>,
2776 tonic::Status,
2777 >;
2778 async fn alter_set_schema(
2779 &self,
2780 request: tonic::Request<super::AlterSetSchemaRequest>,
2781 ) -> std::result::Result<
2782 tonic::Response<super::AlterSetSchemaResponse>,
2783 tonic::Status,
2784 >;
2785 async fn alter_parallelism(
2786 &self,
2787 request: tonic::Request<super::AlterParallelismRequest>,
2788 ) -> std::result::Result<
2789 tonic::Response<super::AlterParallelismResponse>,
2790 tonic::Status,
2791 >;
2792 async fn alter_backfill_parallelism(
2793 &self,
2794 request: tonic::Request<super::AlterBackfillParallelismRequest>,
2795 ) -> std::result::Result<
2796 tonic::Response<super::AlterBackfillParallelismResponse>,
2797 tonic::Status,
2798 >;
2799 async fn alter_fragment_parallelism(
2800 &self,
2801 request: tonic::Request<super::AlterFragmentParallelismRequest>,
2802 ) -> std::result::Result<
2803 tonic::Response<super::AlterFragmentParallelismResponse>,
2804 tonic::Status,
2805 >;
2806 async fn alter_resource_group(
2807 &self,
2808 request: tonic::Request<super::AlterResourceGroupRequest>,
2809 ) -> std::result::Result<
2810 tonic::Response<super::AlterResourceGroupResponse>,
2811 tonic::Status,
2812 >;
2813 async fn drop_table(
2814 &self,
2815 request: tonic::Request<super::DropTableRequest>,
2816 ) -> std::result::Result<
2817 tonic::Response<super::DropTableResponse>,
2818 tonic::Status,
2819 >;
2820 async fn risectl_list_state_tables(
2821 &self,
2822 request: tonic::Request<super::RisectlListStateTablesRequest>,
2823 ) -> std::result::Result<
2824 tonic::Response<super::RisectlListStateTablesResponse>,
2825 tonic::Status,
2826 >;
2827 async fn risectl_resume_backfill(
2828 &self,
2829 request: tonic::Request<super::RisectlResumeBackfillRequest>,
2830 ) -> std::result::Result<
2831 tonic::Response<super::RisectlResumeBackfillResponse>,
2832 tonic::Status,
2833 >;
2834 async fn create_view(
2835 &self,
2836 request: tonic::Request<super::CreateViewRequest>,
2837 ) -> std::result::Result<
2838 tonic::Response<super::CreateViewResponse>,
2839 tonic::Status,
2840 >;
2841 async fn drop_view(
2842 &self,
2843 request: tonic::Request<super::DropViewRequest>,
2844 ) -> std::result::Result<
2845 tonic::Response<super::DropViewResponse>,
2846 tonic::Status,
2847 >;
2848 async fn create_index(
2849 &self,
2850 request: tonic::Request<super::CreateIndexRequest>,
2851 ) -> std::result::Result<
2852 tonic::Response<super::CreateIndexResponse>,
2853 tonic::Status,
2854 >;
2855 async fn drop_index(
2856 &self,
2857 request: tonic::Request<super::DropIndexRequest>,
2858 ) -> std::result::Result<
2859 tonic::Response<super::DropIndexResponse>,
2860 tonic::Status,
2861 >;
2862 async fn create_function(
2863 &self,
2864 request: tonic::Request<super::CreateFunctionRequest>,
2865 ) -> std::result::Result<
2866 tonic::Response<super::CreateFunctionResponse>,
2867 tonic::Status,
2868 >;
2869 async fn drop_function(
2870 &self,
2871 request: tonic::Request<super::DropFunctionRequest>,
2872 ) -> std::result::Result<
2873 tonic::Response<super::DropFunctionResponse>,
2874 tonic::Status,
2875 >;
2876 async fn replace_job_plan(
2877 &self,
2878 request: tonic::Request<super::ReplaceJobPlanRequest>,
2879 ) -> std::result::Result<
2880 tonic::Response<super::ReplaceJobPlanResponse>,
2881 tonic::Status,
2882 >;
2883 async fn get_table(
2884 &self,
2885 request: tonic::Request<super::GetTableRequest>,
2886 ) -> std::result::Result<
2887 tonic::Response<super::GetTableResponse>,
2888 tonic::Status,
2889 >;
2890 async fn get_ddl_progress(
2891 &self,
2892 request: tonic::Request<super::GetDdlProgressRequest>,
2893 ) -> std::result::Result<
2894 tonic::Response<super::GetDdlProgressResponse>,
2895 tonic::Status,
2896 >;
2897 async fn create_connection(
2898 &self,
2899 request: tonic::Request<super::CreateConnectionRequest>,
2900 ) -> std::result::Result<
2901 tonic::Response<super::CreateConnectionResponse>,
2902 tonic::Status,
2903 >;
2904 async fn list_connections(
2905 &self,
2906 request: tonic::Request<super::ListConnectionsRequest>,
2907 ) -> std::result::Result<
2908 tonic::Response<super::ListConnectionsResponse>,
2909 tonic::Status,
2910 >;
2911 async fn drop_connection(
2912 &self,
2913 request: tonic::Request<super::DropConnectionRequest>,
2914 ) -> std::result::Result<
2915 tonic::Response<super::DropConnectionResponse>,
2916 tonic::Status,
2917 >;
2918 async fn get_tables(
2919 &self,
2920 request: tonic::Request<super::GetTablesRequest>,
2921 ) -> std::result::Result<
2922 tonic::Response<super::GetTablesResponse>,
2923 tonic::Status,
2924 >;
2925 async fn wait(
2926 &self,
2927 request: tonic::Request<super::WaitRequest>,
2928 ) -> std::result::Result<tonic::Response<super::WaitResponse>, tonic::Status>;
2929 async fn comment_on(
2930 &self,
2931 request: tonic::Request<super::CommentOnRequest>,
2932 ) -> std::result::Result<
2933 tonic::Response<super::CommentOnResponse>,
2934 tonic::Status,
2935 >;
2936 async fn auto_schema_change(
2937 &self,
2938 request: tonic::Request<super::AutoSchemaChangeRequest>,
2939 ) -> std::result::Result<
2940 tonic::Response<super::AutoSchemaChangeResponse>,
2941 tonic::Status,
2942 >;
2943 async fn alter_swap_rename(
2944 &self,
2945 request: tonic::Request<super::AlterSwapRenameRequest>,
2946 ) -> std::result::Result<
2947 tonic::Response<super::AlterSwapRenameResponse>,
2948 tonic::Status,
2949 >;
2950 async fn alter_database_param(
2951 &self,
2952 request: tonic::Request<super::AlterDatabaseParamRequest>,
2953 ) -> std::result::Result<
2954 tonic::Response<super::AlterDatabaseParamResponse>,
2955 tonic::Status,
2956 >;
2957 async fn compact_iceberg_table(
2958 &self,
2959 request: tonic::Request<super::CompactIcebergTableRequest>,
2960 ) -> std::result::Result<
2961 tonic::Response<super::CompactIcebergTableResponse>,
2962 tonic::Status,
2963 >;
2964 async fn expire_iceberg_table_snapshots(
2965 &self,
2966 request: tonic::Request<super::ExpireIcebergTableSnapshotsRequest>,
2967 ) -> std::result::Result<
2968 tonic::Response<super::ExpireIcebergTableSnapshotsResponse>,
2969 tonic::Status,
2970 >;
2971 async fn alter_cdc_table_backfill_parallelism(
2972 &self,
2973 request: tonic::Request<super::AlterCdcTableBackfillParallelismRequest>,
2974 ) -> std::result::Result<
2975 tonic::Response<super::AlterCdcTableBackfillParallelismResponse>,
2976 tonic::Status,
2977 >;
2978 async fn alter_streaming_job_config(
2979 &self,
2980 request: tonic::Request<super::AlterStreamingJobConfigRequest>,
2981 ) -> std::result::Result<
2982 tonic::Response<super::AlterStreamingJobConfigResponse>,
2983 tonic::Status,
2984 >;
2985 }
2986 #[derive(Debug)]
2987 pub struct DdlServiceServer<T> {
2988 inner: Arc<T>,
2989 accept_compression_encodings: EnabledCompressionEncodings,
2990 send_compression_encodings: EnabledCompressionEncodings,
2991 max_decoding_message_size: Option<usize>,
2992 max_encoding_message_size: Option<usize>,
2993 }
2994 impl<T> DdlServiceServer<T> {
2995 pub fn new(inner: T) -> Self {
2996 Self::from_arc(Arc::new(inner))
2997 }
2998 pub fn from_arc(inner: Arc<T>) -> Self {
2999 Self {
3000 inner,
3001 accept_compression_encodings: Default::default(),
3002 send_compression_encodings: Default::default(),
3003 max_decoding_message_size: None,
3004 max_encoding_message_size: None,
3005 }
3006 }
3007 pub fn with_interceptor<F>(
3008 inner: T,
3009 interceptor: F,
3010 ) -> InterceptedService<Self, F>
3011 where
3012 F: tonic::service::Interceptor,
3013 {
3014 InterceptedService::new(Self::new(inner), interceptor)
3015 }
3016 #[must_use]
3018 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
3019 self.accept_compression_encodings.enable(encoding);
3020 self
3021 }
3022 #[must_use]
3024 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
3025 self.send_compression_encodings.enable(encoding);
3026 self
3027 }
3028 #[must_use]
3032 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
3033 self.max_decoding_message_size = Some(limit);
3034 self
3035 }
3036 #[must_use]
3040 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
3041 self.max_encoding_message_size = Some(limit);
3042 self
3043 }
3044 }
3045 impl<T, B> tonic::codegen::Service<http::Request<B>> for DdlServiceServer<T>
3046 where
3047 T: DdlService,
3048 B: Body + std::marker::Send + 'static,
3049 B::Error: Into<StdError> + std::marker::Send + 'static,
3050 {
3051 type Response = http::Response<tonic::body::Body>;
3052 type Error = std::convert::Infallible;
3053 type Future = BoxFuture<Self::Response, Self::Error>;
3054 fn poll_ready(
3055 &mut self,
3056 _cx: &mut Context<'_>,
3057 ) -> Poll<std::result::Result<(), Self::Error>> {
3058 Poll::Ready(Ok(()))
3059 }
3060 fn call(&mut self, req: http::Request<B>) -> Self::Future {
3061 match req.uri().path() {
3062 "/ddl_service.DdlService/CreateDatabase" => {
3063 #[allow(non_camel_case_types)]
3064 struct CreateDatabaseSvc<T: DdlService>(pub Arc<T>);
3065 impl<
3066 T: DdlService,
3067 > tonic::server::UnaryService<super::CreateDatabaseRequest>
3068 for CreateDatabaseSvc<T> {
3069 type Response = super::CreateDatabaseResponse;
3070 type Future = BoxFuture<
3071 tonic::Response<Self::Response>,
3072 tonic::Status,
3073 >;
3074 fn call(
3075 &mut self,
3076 request: tonic::Request<super::CreateDatabaseRequest>,
3077 ) -> Self::Future {
3078 let inner = Arc::clone(&self.0);
3079 let fut = async move {
3080 <T as DdlService>::create_database(&inner, request).await
3081 };
3082 Box::pin(fut)
3083 }
3084 }
3085 let accept_compression_encodings = self.accept_compression_encodings;
3086 let send_compression_encodings = self.send_compression_encodings;
3087 let max_decoding_message_size = self.max_decoding_message_size;
3088 let max_encoding_message_size = self.max_encoding_message_size;
3089 let inner = self.inner.clone();
3090 let fut = async move {
3091 let method = CreateDatabaseSvc(inner);
3092 let codec = tonic_prost::ProstCodec::default();
3093 let mut grpc = tonic::server::Grpc::new(codec)
3094 .apply_compression_config(
3095 accept_compression_encodings,
3096 send_compression_encodings,
3097 )
3098 .apply_max_message_size_config(
3099 max_decoding_message_size,
3100 max_encoding_message_size,
3101 );
3102 let res = grpc.unary(method, req).await;
3103 Ok(res)
3104 };
3105 Box::pin(fut)
3106 }
3107 "/ddl_service.DdlService/DropDatabase" => {
3108 #[allow(non_camel_case_types)]
3109 struct DropDatabaseSvc<T: DdlService>(pub Arc<T>);
3110 impl<
3111 T: DdlService,
3112 > tonic::server::UnaryService<super::DropDatabaseRequest>
3113 for DropDatabaseSvc<T> {
3114 type Response = super::DropDatabaseResponse;
3115 type Future = BoxFuture<
3116 tonic::Response<Self::Response>,
3117 tonic::Status,
3118 >;
3119 fn call(
3120 &mut self,
3121 request: tonic::Request<super::DropDatabaseRequest>,
3122 ) -> Self::Future {
3123 let inner = Arc::clone(&self.0);
3124 let fut = async move {
3125 <T as DdlService>::drop_database(&inner, request).await
3126 };
3127 Box::pin(fut)
3128 }
3129 }
3130 let accept_compression_encodings = self.accept_compression_encodings;
3131 let send_compression_encodings = self.send_compression_encodings;
3132 let max_decoding_message_size = self.max_decoding_message_size;
3133 let max_encoding_message_size = self.max_encoding_message_size;
3134 let inner = self.inner.clone();
3135 let fut = async move {
3136 let method = DropDatabaseSvc(inner);
3137 let codec = tonic_prost::ProstCodec::default();
3138 let mut grpc = tonic::server::Grpc::new(codec)
3139 .apply_compression_config(
3140 accept_compression_encodings,
3141 send_compression_encodings,
3142 )
3143 .apply_max_message_size_config(
3144 max_decoding_message_size,
3145 max_encoding_message_size,
3146 );
3147 let res = grpc.unary(method, req).await;
3148 Ok(res)
3149 };
3150 Box::pin(fut)
3151 }
3152 "/ddl_service.DdlService/CreateSchema" => {
3153 #[allow(non_camel_case_types)]
3154 struct CreateSchemaSvc<T: DdlService>(pub Arc<T>);
3155 impl<
3156 T: DdlService,
3157 > tonic::server::UnaryService<super::CreateSchemaRequest>
3158 for CreateSchemaSvc<T> {
3159 type Response = super::CreateSchemaResponse;
3160 type Future = BoxFuture<
3161 tonic::Response<Self::Response>,
3162 tonic::Status,
3163 >;
3164 fn call(
3165 &mut self,
3166 request: tonic::Request<super::CreateSchemaRequest>,
3167 ) -> Self::Future {
3168 let inner = Arc::clone(&self.0);
3169 let fut = async move {
3170 <T as DdlService>::create_schema(&inner, request).await
3171 };
3172 Box::pin(fut)
3173 }
3174 }
3175 let accept_compression_encodings = self.accept_compression_encodings;
3176 let send_compression_encodings = self.send_compression_encodings;
3177 let max_decoding_message_size = self.max_decoding_message_size;
3178 let max_encoding_message_size = self.max_encoding_message_size;
3179 let inner = self.inner.clone();
3180 let fut = async move {
3181 let method = CreateSchemaSvc(inner);
3182 let codec = tonic_prost::ProstCodec::default();
3183 let mut grpc = tonic::server::Grpc::new(codec)
3184 .apply_compression_config(
3185 accept_compression_encodings,
3186 send_compression_encodings,
3187 )
3188 .apply_max_message_size_config(
3189 max_decoding_message_size,
3190 max_encoding_message_size,
3191 );
3192 let res = grpc.unary(method, req).await;
3193 Ok(res)
3194 };
3195 Box::pin(fut)
3196 }
3197 "/ddl_service.DdlService/DropSchema" => {
3198 #[allow(non_camel_case_types)]
3199 struct DropSchemaSvc<T: DdlService>(pub Arc<T>);
3200 impl<
3201 T: DdlService,
3202 > tonic::server::UnaryService<super::DropSchemaRequest>
3203 for DropSchemaSvc<T> {
3204 type Response = super::DropSchemaResponse;
3205 type Future = BoxFuture<
3206 tonic::Response<Self::Response>,
3207 tonic::Status,
3208 >;
3209 fn call(
3210 &mut self,
3211 request: tonic::Request<super::DropSchemaRequest>,
3212 ) -> Self::Future {
3213 let inner = Arc::clone(&self.0);
3214 let fut = async move {
3215 <T as DdlService>::drop_schema(&inner, request).await
3216 };
3217 Box::pin(fut)
3218 }
3219 }
3220 let accept_compression_encodings = self.accept_compression_encodings;
3221 let send_compression_encodings = self.send_compression_encodings;
3222 let max_decoding_message_size = self.max_decoding_message_size;
3223 let max_encoding_message_size = self.max_encoding_message_size;
3224 let inner = self.inner.clone();
3225 let fut = async move {
3226 let method = DropSchemaSvc(inner);
3227 let codec = tonic_prost::ProstCodec::default();
3228 let mut grpc = tonic::server::Grpc::new(codec)
3229 .apply_compression_config(
3230 accept_compression_encodings,
3231 send_compression_encodings,
3232 )
3233 .apply_max_message_size_config(
3234 max_decoding_message_size,
3235 max_encoding_message_size,
3236 );
3237 let res = grpc.unary(method, req).await;
3238 Ok(res)
3239 };
3240 Box::pin(fut)
3241 }
3242 "/ddl_service.DdlService/CreateSource" => {
3243 #[allow(non_camel_case_types)]
3244 struct CreateSourceSvc<T: DdlService>(pub Arc<T>);
3245 impl<
3246 T: DdlService,
3247 > tonic::server::UnaryService<super::CreateSourceRequest>
3248 for CreateSourceSvc<T> {
3249 type Response = super::CreateSourceResponse;
3250 type Future = BoxFuture<
3251 tonic::Response<Self::Response>,
3252 tonic::Status,
3253 >;
3254 fn call(
3255 &mut self,
3256 request: tonic::Request<super::CreateSourceRequest>,
3257 ) -> Self::Future {
3258 let inner = Arc::clone(&self.0);
3259 let fut = async move {
3260 <T as DdlService>::create_source(&inner, request).await
3261 };
3262 Box::pin(fut)
3263 }
3264 }
3265 let accept_compression_encodings = self.accept_compression_encodings;
3266 let send_compression_encodings = self.send_compression_encodings;
3267 let max_decoding_message_size = self.max_decoding_message_size;
3268 let max_encoding_message_size = self.max_encoding_message_size;
3269 let inner = self.inner.clone();
3270 let fut = async move {
3271 let method = CreateSourceSvc(inner);
3272 let codec = tonic_prost::ProstCodec::default();
3273 let mut grpc = tonic::server::Grpc::new(codec)
3274 .apply_compression_config(
3275 accept_compression_encodings,
3276 send_compression_encodings,
3277 )
3278 .apply_max_message_size_config(
3279 max_decoding_message_size,
3280 max_encoding_message_size,
3281 );
3282 let res = grpc.unary(method, req).await;
3283 Ok(res)
3284 };
3285 Box::pin(fut)
3286 }
3287 "/ddl_service.DdlService/DropSource" => {
3288 #[allow(non_camel_case_types)]
3289 struct DropSourceSvc<T: DdlService>(pub Arc<T>);
3290 impl<
3291 T: DdlService,
3292 > tonic::server::UnaryService<super::DropSourceRequest>
3293 for DropSourceSvc<T> {
3294 type Response = super::DropSourceResponse;
3295 type Future = BoxFuture<
3296 tonic::Response<Self::Response>,
3297 tonic::Status,
3298 >;
3299 fn call(
3300 &mut self,
3301 request: tonic::Request<super::DropSourceRequest>,
3302 ) -> Self::Future {
3303 let inner = Arc::clone(&self.0);
3304 let fut = async move {
3305 <T as DdlService>::drop_source(&inner, request).await
3306 };
3307 Box::pin(fut)
3308 }
3309 }
3310 let accept_compression_encodings = self.accept_compression_encodings;
3311 let send_compression_encodings = self.send_compression_encodings;
3312 let max_decoding_message_size = self.max_decoding_message_size;
3313 let max_encoding_message_size = self.max_encoding_message_size;
3314 let inner = self.inner.clone();
3315 let fut = async move {
3316 let method = DropSourceSvc(inner);
3317 let codec = tonic_prost::ProstCodec::default();
3318 let mut grpc = tonic::server::Grpc::new(codec)
3319 .apply_compression_config(
3320 accept_compression_encodings,
3321 send_compression_encodings,
3322 )
3323 .apply_max_message_size_config(
3324 max_decoding_message_size,
3325 max_encoding_message_size,
3326 );
3327 let res = grpc.unary(method, req).await;
3328 Ok(res)
3329 };
3330 Box::pin(fut)
3331 }
3332 "/ddl_service.DdlService/CreateSink" => {
3333 #[allow(non_camel_case_types)]
3334 struct CreateSinkSvc<T: DdlService>(pub Arc<T>);
3335 impl<
3336 T: DdlService,
3337 > tonic::server::UnaryService<super::CreateSinkRequest>
3338 for CreateSinkSvc<T> {
3339 type Response = super::CreateSinkResponse;
3340 type Future = BoxFuture<
3341 tonic::Response<Self::Response>,
3342 tonic::Status,
3343 >;
3344 fn call(
3345 &mut self,
3346 request: tonic::Request<super::CreateSinkRequest>,
3347 ) -> Self::Future {
3348 let inner = Arc::clone(&self.0);
3349 let fut = async move {
3350 <T as DdlService>::create_sink(&inner, request).await
3351 };
3352 Box::pin(fut)
3353 }
3354 }
3355 let accept_compression_encodings = self.accept_compression_encodings;
3356 let send_compression_encodings = self.send_compression_encodings;
3357 let max_decoding_message_size = self.max_decoding_message_size;
3358 let max_encoding_message_size = self.max_encoding_message_size;
3359 let inner = self.inner.clone();
3360 let fut = async move {
3361 let method = CreateSinkSvc(inner);
3362 let codec = tonic_prost::ProstCodec::default();
3363 let mut grpc = tonic::server::Grpc::new(codec)
3364 .apply_compression_config(
3365 accept_compression_encodings,
3366 send_compression_encodings,
3367 )
3368 .apply_max_message_size_config(
3369 max_decoding_message_size,
3370 max_encoding_message_size,
3371 );
3372 let res = grpc.unary(method, req).await;
3373 Ok(res)
3374 };
3375 Box::pin(fut)
3376 }
3377 "/ddl_service.DdlService/CreateSubscription" => {
3378 #[allow(non_camel_case_types)]
3379 struct CreateSubscriptionSvc<T: DdlService>(pub Arc<T>);
3380 impl<
3381 T: DdlService,
3382 > tonic::server::UnaryService<super::CreateSubscriptionRequest>
3383 for CreateSubscriptionSvc<T> {
3384 type Response = super::CreateSubscriptionResponse;
3385 type Future = BoxFuture<
3386 tonic::Response<Self::Response>,
3387 tonic::Status,
3388 >;
3389 fn call(
3390 &mut self,
3391 request: tonic::Request<super::CreateSubscriptionRequest>,
3392 ) -> Self::Future {
3393 let inner = Arc::clone(&self.0);
3394 let fut = async move {
3395 <T as DdlService>::create_subscription(&inner, request)
3396 .await
3397 };
3398 Box::pin(fut)
3399 }
3400 }
3401 let accept_compression_encodings = self.accept_compression_encodings;
3402 let send_compression_encodings = self.send_compression_encodings;
3403 let max_decoding_message_size = self.max_decoding_message_size;
3404 let max_encoding_message_size = self.max_encoding_message_size;
3405 let inner = self.inner.clone();
3406 let fut = async move {
3407 let method = CreateSubscriptionSvc(inner);
3408 let codec = tonic_prost::ProstCodec::default();
3409 let mut grpc = tonic::server::Grpc::new(codec)
3410 .apply_compression_config(
3411 accept_compression_encodings,
3412 send_compression_encodings,
3413 )
3414 .apply_max_message_size_config(
3415 max_decoding_message_size,
3416 max_encoding_message_size,
3417 );
3418 let res = grpc.unary(method, req).await;
3419 Ok(res)
3420 };
3421 Box::pin(fut)
3422 }
3423 "/ddl_service.DdlService/DropSink" => {
3424 #[allow(non_camel_case_types)]
3425 struct DropSinkSvc<T: DdlService>(pub Arc<T>);
3426 impl<
3427 T: DdlService,
3428 > tonic::server::UnaryService<super::DropSinkRequest>
3429 for DropSinkSvc<T> {
3430 type Response = super::DropSinkResponse;
3431 type Future = BoxFuture<
3432 tonic::Response<Self::Response>,
3433 tonic::Status,
3434 >;
3435 fn call(
3436 &mut self,
3437 request: tonic::Request<super::DropSinkRequest>,
3438 ) -> Self::Future {
3439 let inner = Arc::clone(&self.0);
3440 let fut = async move {
3441 <T as DdlService>::drop_sink(&inner, request).await
3442 };
3443 Box::pin(fut)
3444 }
3445 }
3446 let accept_compression_encodings = self.accept_compression_encodings;
3447 let send_compression_encodings = self.send_compression_encodings;
3448 let max_decoding_message_size = self.max_decoding_message_size;
3449 let max_encoding_message_size = self.max_encoding_message_size;
3450 let inner = self.inner.clone();
3451 let fut = async move {
3452 let method = DropSinkSvc(inner);
3453 let codec = tonic_prost::ProstCodec::default();
3454 let mut grpc = tonic::server::Grpc::new(codec)
3455 .apply_compression_config(
3456 accept_compression_encodings,
3457 send_compression_encodings,
3458 )
3459 .apply_max_message_size_config(
3460 max_decoding_message_size,
3461 max_encoding_message_size,
3462 );
3463 let res = grpc.unary(method, req).await;
3464 Ok(res)
3465 };
3466 Box::pin(fut)
3467 }
3468 "/ddl_service.DdlService/DropSubscription" => {
3469 #[allow(non_camel_case_types)]
3470 struct DropSubscriptionSvc<T: DdlService>(pub Arc<T>);
3471 impl<
3472 T: DdlService,
3473 > tonic::server::UnaryService<super::DropSubscriptionRequest>
3474 for DropSubscriptionSvc<T> {
3475 type Response = super::DropSubscriptionResponse;
3476 type Future = BoxFuture<
3477 tonic::Response<Self::Response>,
3478 tonic::Status,
3479 >;
3480 fn call(
3481 &mut self,
3482 request: tonic::Request<super::DropSubscriptionRequest>,
3483 ) -> Self::Future {
3484 let inner = Arc::clone(&self.0);
3485 let fut = async move {
3486 <T as DdlService>::drop_subscription(&inner, request).await
3487 };
3488 Box::pin(fut)
3489 }
3490 }
3491 let accept_compression_encodings = self.accept_compression_encodings;
3492 let send_compression_encodings = self.send_compression_encodings;
3493 let max_decoding_message_size = self.max_decoding_message_size;
3494 let max_encoding_message_size = self.max_encoding_message_size;
3495 let inner = self.inner.clone();
3496 let fut = async move {
3497 let method = DropSubscriptionSvc(inner);
3498 let codec = tonic_prost::ProstCodec::default();
3499 let mut grpc = tonic::server::Grpc::new(codec)
3500 .apply_compression_config(
3501 accept_compression_encodings,
3502 send_compression_encodings,
3503 )
3504 .apply_max_message_size_config(
3505 max_decoding_message_size,
3506 max_encoding_message_size,
3507 );
3508 let res = grpc.unary(method, req).await;
3509 Ok(res)
3510 };
3511 Box::pin(fut)
3512 }
3513 "/ddl_service.DdlService/CreateMaterializedView" => {
3514 #[allow(non_camel_case_types)]
3515 struct CreateMaterializedViewSvc<T: DdlService>(pub Arc<T>);
3516 impl<
3517 T: DdlService,
3518 > tonic::server::UnaryService<super::CreateMaterializedViewRequest>
3519 for CreateMaterializedViewSvc<T> {
3520 type Response = super::CreateMaterializedViewResponse;
3521 type Future = BoxFuture<
3522 tonic::Response<Self::Response>,
3523 tonic::Status,
3524 >;
3525 fn call(
3526 &mut self,
3527 request: tonic::Request<super::CreateMaterializedViewRequest>,
3528 ) -> Self::Future {
3529 let inner = Arc::clone(&self.0);
3530 let fut = async move {
3531 <T as DdlService>::create_materialized_view(&inner, request)
3532 .await
3533 };
3534 Box::pin(fut)
3535 }
3536 }
3537 let accept_compression_encodings = self.accept_compression_encodings;
3538 let send_compression_encodings = self.send_compression_encodings;
3539 let max_decoding_message_size = self.max_decoding_message_size;
3540 let max_encoding_message_size = self.max_encoding_message_size;
3541 let inner = self.inner.clone();
3542 let fut = async move {
3543 let method = CreateMaterializedViewSvc(inner);
3544 let codec = tonic_prost::ProstCodec::default();
3545 let mut grpc = tonic::server::Grpc::new(codec)
3546 .apply_compression_config(
3547 accept_compression_encodings,
3548 send_compression_encodings,
3549 )
3550 .apply_max_message_size_config(
3551 max_decoding_message_size,
3552 max_encoding_message_size,
3553 );
3554 let res = grpc.unary(method, req).await;
3555 Ok(res)
3556 };
3557 Box::pin(fut)
3558 }
3559 "/ddl_service.DdlService/DropMaterializedView" => {
3560 #[allow(non_camel_case_types)]
3561 struct DropMaterializedViewSvc<T: DdlService>(pub Arc<T>);
3562 impl<
3563 T: DdlService,
3564 > tonic::server::UnaryService<super::DropMaterializedViewRequest>
3565 for DropMaterializedViewSvc<T> {
3566 type Response = super::DropMaterializedViewResponse;
3567 type Future = BoxFuture<
3568 tonic::Response<Self::Response>,
3569 tonic::Status,
3570 >;
3571 fn call(
3572 &mut self,
3573 request: tonic::Request<super::DropMaterializedViewRequest>,
3574 ) -> Self::Future {
3575 let inner = Arc::clone(&self.0);
3576 let fut = async move {
3577 <T as DdlService>::drop_materialized_view(&inner, request)
3578 .await
3579 };
3580 Box::pin(fut)
3581 }
3582 }
3583 let accept_compression_encodings = self.accept_compression_encodings;
3584 let send_compression_encodings = self.send_compression_encodings;
3585 let max_decoding_message_size = self.max_decoding_message_size;
3586 let max_encoding_message_size = self.max_encoding_message_size;
3587 let inner = self.inner.clone();
3588 let fut = async move {
3589 let method = DropMaterializedViewSvc(inner);
3590 let codec = tonic_prost::ProstCodec::default();
3591 let mut grpc = tonic::server::Grpc::new(codec)
3592 .apply_compression_config(
3593 accept_compression_encodings,
3594 send_compression_encodings,
3595 )
3596 .apply_max_message_size_config(
3597 max_decoding_message_size,
3598 max_encoding_message_size,
3599 );
3600 let res = grpc.unary(method, req).await;
3601 Ok(res)
3602 };
3603 Box::pin(fut)
3604 }
3605 "/ddl_service.DdlService/CreateTable" => {
3606 #[allow(non_camel_case_types)]
3607 struct CreateTableSvc<T: DdlService>(pub Arc<T>);
3608 impl<
3609 T: DdlService,
3610 > tonic::server::UnaryService<super::CreateTableRequest>
3611 for CreateTableSvc<T> {
3612 type Response = super::CreateTableResponse;
3613 type Future = BoxFuture<
3614 tonic::Response<Self::Response>,
3615 tonic::Status,
3616 >;
3617 fn call(
3618 &mut self,
3619 request: tonic::Request<super::CreateTableRequest>,
3620 ) -> Self::Future {
3621 let inner = Arc::clone(&self.0);
3622 let fut = async move {
3623 <T as DdlService>::create_table(&inner, request).await
3624 };
3625 Box::pin(fut)
3626 }
3627 }
3628 let accept_compression_encodings = self.accept_compression_encodings;
3629 let send_compression_encodings = self.send_compression_encodings;
3630 let max_decoding_message_size = self.max_decoding_message_size;
3631 let max_encoding_message_size = self.max_encoding_message_size;
3632 let inner = self.inner.clone();
3633 let fut = async move {
3634 let method = CreateTableSvc(inner);
3635 let codec = tonic_prost::ProstCodec::default();
3636 let mut grpc = tonic::server::Grpc::new(codec)
3637 .apply_compression_config(
3638 accept_compression_encodings,
3639 send_compression_encodings,
3640 )
3641 .apply_max_message_size_config(
3642 max_decoding_message_size,
3643 max_encoding_message_size,
3644 );
3645 let res = grpc.unary(method, req).await;
3646 Ok(res)
3647 };
3648 Box::pin(fut)
3649 }
3650 "/ddl_service.DdlService/CreateIcebergTable" => {
3651 #[allow(non_camel_case_types)]
3652 struct CreateIcebergTableSvc<T: DdlService>(pub Arc<T>);
3653 impl<
3654 T: DdlService,
3655 > tonic::server::UnaryService<super::CreateIcebergTableRequest>
3656 for CreateIcebergTableSvc<T> {
3657 type Response = super::CreateIcebergTableResponse;
3658 type Future = BoxFuture<
3659 tonic::Response<Self::Response>,
3660 tonic::Status,
3661 >;
3662 fn call(
3663 &mut self,
3664 request: tonic::Request<super::CreateIcebergTableRequest>,
3665 ) -> Self::Future {
3666 let inner = Arc::clone(&self.0);
3667 let fut = async move {
3668 <T as DdlService>::create_iceberg_table(&inner, request)
3669 .await
3670 };
3671 Box::pin(fut)
3672 }
3673 }
3674 let accept_compression_encodings = self.accept_compression_encodings;
3675 let send_compression_encodings = self.send_compression_encodings;
3676 let max_decoding_message_size = self.max_decoding_message_size;
3677 let max_encoding_message_size = self.max_encoding_message_size;
3678 let inner = self.inner.clone();
3679 let fut = async move {
3680 let method = CreateIcebergTableSvc(inner);
3681 let codec = tonic_prost::ProstCodec::default();
3682 let mut grpc = tonic::server::Grpc::new(codec)
3683 .apply_compression_config(
3684 accept_compression_encodings,
3685 send_compression_encodings,
3686 )
3687 .apply_max_message_size_config(
3688 max_decoding_message_size,
3689 max_encoding_message_size,
3690 );
3691 let res = grpc.unary(method, req).await;
3692 Ok(res)
3693 };
3694 Box::pin(fut)
3695 }
3696 "/ddl_service.DdlService/CreateSecret" => {
3697 #[allow(non_camel_case_types)]
3698 struct CreateSecretSvc<T: DdlService>(pub Arc<T>);
3699 impl<
3700 T: DdlService,
3701 > tonic::server::UnaryService<super::CreateSecretRequest>
3702 for CreateSecretSvc<T> {
3703 type Response = super::CreateSecretResponse;
3704 type Future = BoxFuture<
3705 tonic::Response<Self::Response>,
3706 tonic::Status,
3707 >;
3708 fn call(
3709 &mut self,
3710 request: tonic::Request<super::CreateSecretRequest>,
3711 ) -> Self::Future {
3712 let inner = Arc::clone(&self.0);
3713 let fut = async move {
3714 <T as DdlService>::create_secret(&inner, request).await
3715 };
3716 Box::pin(fut)
3717 }
3718 }
3719 let accept_compression_encodings = self.accept_compression_encodings;
3720 let send_compression_encodings = self.send_compression_encodings;
3721 let max_decoding_message_size = self.max_decoding_message_size;
3722 let max_encoding_message_size = self.max_encoding_message_size;
3723 let inner = self.inner.clone();
3724 let fut = async move {
3725 let method = CreateSecretSvc(inner);
3726 let codec = tonic_prost::ProstCodec::default();
3727 let mut grpc = tonic::server::Grpc::new(codec)
3728 .apply_compression_config(
3729 accept_compression_encodings,
3730 send_compression_encodings,
3731 )
3732 .apply_max_message_size_config(
3733 max_decoding_message_size,
3734 max_encoding_message_size,
3735 );
3736 let res = grpc.unary(method, req).await;
3737 Ok(res)
3738 };
3739 Box::pin(fut)
3740 }
3741 "/ddl_service.DdlService/DropSecret" => {
3742 #[allow(non_camel_case_types)]
3743 struct DropSecretSvc<T: DdlService>(pub Arc<T>);
3744 impl<
3745 T: DdlService,
3746 > tonic::server::UnaryService<super::DropSecretRequest>
3747 for DropSecretSvc<T> {
3748 type Response = super::DropSecretResponse;
3749 type Future = BoxFuture<
3750 tonic::Response<Self::Response>,
3751 tonic::Status,
3752 >;
3753 fn call(
3754 &mut self,
3755 request: tonic::Request<super::DropSecretRequest>,
3756 ) -> Self::Future {
3757 let inner = Arc::clone(&self.0);
3758 let fut = async move {
3759 <T as DdlService>::drop_secret(&inner, request).await
3760 };
3761 Box::pin(fut)
3762 }
3763 }
3764 let accept_compression_encodings = self.accept_compression_encodings;
3765 let send_compression_encodings = self.send_compression_encodings;
3766 let max_decoding_message_size = self.max_decoding_message_size;
3767 let max_encoding_message_size = self.max_encoding_message_size;
3768 let inner = self.inner.clone();
3769 let fut = async move {
3770 let method = DropSecretSvc(inner);
3771 let codec = tonic_prost::ProstCodec::default();
3772 let mut grpc = tonic::server::Grpc::new(codec)
3773 .apply_compression_config(
3774 accept_compression_encodings,
3775 send_compression_encodings,
3776 )
3777 .apply_max_message_size_config(
3778 max_decoding_message_size,
3779 max_encoding_message_size,
3780 );
3781 let res = grpc.unary(method, req).await;
3782 Ok(res)
3783 };
3784 Box::pin(fut)
3785 }
3786 "/ddl_service.DdlService/AlterSecret" => {
3787 #[allow(non_camel_case_types)]
3788 struct AlterSecretSvc<T: DdlService>(pub Arc<T>);
3789 impl<
3790 T: DdlService,
3791 > tonic::server::UnaryService<super::AlterSecretRequest>
3792 for AlterSecretSvc<T> {
3793 type Response = super::AlterSecretResponse;
3794 type Future = BoxFuture<
3795 tonic::Response<Self::Response>,
3796 tonic::Status,
3797 >;
3798 fn call(
3799 &mut self,
3800 request: tonic::Request<super::AlterSecretRequest>,
3801 ) -> Self::Future {
3802 let inner = Arc::clone(&self.0);
3803 let fut = async move {
3804 <T as DdlService>::alter_secret(&inner, request).await
3805 };
3806 Box::pin(fut)
3807 }
3808 }
3809 let accept_compression_encodings = self.accept_compression_encodings;
3810 let send_compression_encodings = self.send_compression_encodings;
3811 let max_decoding_message_size = self.max_decoding_message_size;
3812 let max_encoding_message_size = self.max_encoding_message_size;
3813 let inner = self.inner.clone();
3814 let fut = async move {
3815 let method = AlterSecretSvc(inner);
3816 let codec = tonic_prost::ProstCodec::default();
3817 let mut grpc = tonic::server::Grpc::new(codec)
3818 .apply_compression_config(
3819 accept_compression_encodings,
3820 send_compression_encodings,
3821 )
3822 .apply_max_message_size_config(
3823 max_decoding_message_size,
3824 max_encoding_message_size,
3825 );
3826 let res = grpc.unary(method, req).await;
3827 Ok(res)
3828 };
3829 Box::pin(fut)
3830 }
3831 "/ddl_service.DdlService/AlterName" => {
3832 #[allow(non_camel_case_types)]
3833 struct AlterNameSvc<T: DdlService>(pub Arc<T>);
3834 impl<
3835 T: DdlService,
3836 > tonic::server::UnaryService<super::AlterNameRequest>
3837 for AlterNameSvc<T> {
3838 type Response = super::AlterNameResponse;
3839 type Future = BoxFuture<
3840 tonic::Response<Self::Response>,
3841 tonic::Status,
3842 >;
3843 fn call(
3844 &mut self,
3845 request: tonic::Request<super::AlterNameRequest>,
3846 ) -> Self::Future {
3847 let inner = Arc::clone(&self.0);
3848 let fut = async move {
3849 <T as DdlService>::alter_name(&inner, request).await
3850 };
3851 Box::pin(fut)
3852 }
3853 }
3854 let accept_compression_encodings = self.accept_compression_encodings;
3855 let send_compression_encodings = self.send_compression_encodings;
3856 let max_decoding_message_size = self.max_decoding_message_size;
3857 let max_encoding_message_size = self.max_encoding_message_size;
3858 let inner = self.inner.clone();
3859 let fut = async move {
3860 let method = AlterNameSvc(inner);
3861 let codec = tonic_prost::ProstCodec::default();
3862 let mut grpc = tonic::server::Grpc::new(codec)
3863 .apply_compression_config(
3864 accept_compression_encodings,
3865 send_compression_encodings,
3866 )
3867 .apply_max_message_size_config(
3868 max_decoding_message_size,
3869 max_encoding_message_size,
3870 );
3871 let res = grpc.unary(method, req).await;
3872 Ok(res)
3873 };
3874 Box::pin(fut)
3875 }
3876 "/ddl_service.DdlService/AlterSource" => {
3877 #[allow(non_camel_case_types)]
3878 struct AlterSourceSvc<T: DdlService>(pub Arc<T>);
3879 impl<
3880 T: DdlService,
3881 > tonic::server::UnaryService<super::AlterSourceRequest>
3882 for AlterSourceSvc<T> {
3883 type Response = super::AlterSourceResponse;
3884 type Future = BoxFuture<
3885 tonic::Response<Self::Response>,
3886 tonic::Status,
3887 >;
3888 fn call(
3889 &mut self,
3890 request: tonic::Request<super::AlterSourceRequest>,
3891 ) -> Self::Future {
3892 let inner = Arc::clone(&self.0);
3893 let fut = async move {
3894 <T as DdlService>::alter_source(&inner, request).await
3895 };
3896 Box::pin(fut)
3897 }
3898 }
3899 let accept_compression_encodings = self.accept_compression_encodings;
3900 let send_compression_encodings = self.send_compression_encodings;
3901 let max_decoding_message_size = self.max_decoding_message_size;
3902 let max_encoding_message_size = self.max_encoding_message_size;
3903 let inner = self.inner.clone();
3904 let fut = async move {
3905 let method = AlterSourceSvc(inner);
3906 let codec = tonic_prost::ProstCodec::default();
3907 let mut grpc = tonic::server::Grpc::new(codec)
3908 .apply_compression_config(
3909 accept_compression_encodings,
3910 send_compression_encodings,
3911 )
3912 .apply_max_message_size_config(
3913 max_decoding_message_size,
3914 max_encoding_message_size,
3915 );
3916 let res = grpc.unary(method, req).await;
3917 Ok(res)
3918 };
3919 Box::pin(fut)
3920 }
3921 "/ddl_service.DdlService/ResetSource" => {
3922 #[allow(non_camel_case_types)]
3923 struct ResetSourceSvc<T: DdlService>(pub Arc<T>);
3924 impl<
3925 T: DdlService,
3926 > tonic::server::UnaryService<super::ResetSourceRequest>
3927 for ResetSourceSvc<T> {
3928 type Response = super::ResetSourceResponse;
3929 type Future = BoxFuture<
3930 tonic::Response<Self::Response>,
3931 tonic::Status,
3932 >;
3933 fn call(
3934 &mut self,
3935 request: tonic::Request<super::ResetSourceRequest>,
3936 ) -> Self::Future {
3937 let inner = Arc::clone(&self.0);
3938 let fut = async move {
3939 <T as DdlService>::reset_source(&inner, request).await
3940 };
3941 Box::pin(fut)
3942 }
3943 }
3944 let accept_compression_encodings = self.accept_compression_encodings;
3945 let send_compression_encodings = self.send_compression_encodings;
3946 let max_decoding_message_size = self.max_decoding_message_size;
3947 let max_encoding_message_size = self.max_encoding_message_size;
3948 let inner = self.inner.clone();
3949 let fut = async move {
3950 let method = ResetSourceSvc(inner);
3951 let codec = tonic_prost::ProstCodec::default();
3952 let mut grpc = tonic::server::Grpc::new(codec)
3953 .apply_compression_config(
3954 accept_compression_encodings,
3955 send_compression_encodings,
3956 )
3957 .apply_max_message_size_config(
3958 max_decoding_message_size,
3959 max_encoding_message_size,
3960 );
3961 let res = grpc.unary(method, req).await;
3962 Ok(res)
3963 };
3964 Box::pin(fut)
3965 }
3966 "/ddl_service.DdlService/AlterOwner" => {
3967 #[allow(non_camel_case_types)]
3968 struct AlterOwnerSvc<T: DdlService>(pub Arc<T>);
3969 impl<
3970 T: DdlService,
3971 > tonic::server::UnaryService<super::AlterOwnerRequest>
3972 for AlterOwnerSvc<T> {
3973 type Response = super::AlterOwnerResponse;
3974 type Future = BoxFuture<
3975 tonic::Response<Self::Response>,
3976 tonic::Status,
3977 >;
3978 fn call(
3979 &mut self,
3980 request: tonic::Request<super::AlterOwnerRequest>,
3981 ) -> Self::Future {
3982 let inner = Arc::clone(&self.0);
3983 let fut = async move {
3984 <T as DdlService>::alter_owner(&inner, request).await
3985 };
3986 Box::pin(fut)
3987 }
3988 }
3989 let accept_compression_encodings = self.accept_compression_encodings;
3990 let send_compression_encodings = self.send_compression_encodings;
3991 let max_decoding_message_size = self.max_decoding_message_size;
3992 let max_encoding_message_size = self.max_encoding_message_size;
3993 let inner = self.inner.clone();
3994 let fut = async move {
3995 let method = AlterOwnerSvc(inner);
3996 let codec = tonic_prost::ProstCodec::default();
3997 let mut grpc = tonic::server::Grpc::new(codec)
3998 .apply_compression_config(
3999 accept_compression_encodings,
4000 send_compression_encodings,
4001 )
4002 .apply_max_message_size_config(
4003 max_decoding_message_size,
4004 max_encoding_message_size,
4005 );
4006 let res = grpc.unary(method, req).await;
4007 Ok(res)
4008 };
4009 Box::pin(fut)
4010 }
4011 "/ddl_service.DdlService/AlterSubscriptionRetention" => {
4012 #[allow(non_camel_case_types)]
4013 struct AlterSubscriptionRetentionSvc<T: DdlService>(pub Arc<T>);
4014 impl<
4015 T: DdlService,
4016 > tonic::server::UnaryService<
4017 super::AlterSubscriptionRetentionRequest,
4018 > for AlterSubscriptionRetentionSvc<T> {
4019 type Response = super::AlterSubscriptionRetentionResponse;
4020 type Future = BoxFuture<
4021 tonic::Response<Self::Response>,
4022 tonic::Status,
4023 >;
4024 fn call(
4025 &mut self,
4026 request: tonic::Request<
4027 super::AlterSubscriptionRetentionRequest,
4028 >,
4029 ) -> Self::Future {
4030 let inner = Arc::clone(&self.0);
4031 let fut = async move {
4032 <T as DdlService>::alter_subscription_retention(
4033 &inner,
4034 request,
4035 )
4036 .await
4037 };
4038 Box::pin(fut)
4039 }
4040 }
4041 let accept_compression_encodings = self.accept_compression_encodings;
4042 let send_compression_encodings = self.send_compression_encodings;
4043 let max_decoding_message_size = self.max_decoding_message_size;
4044 let max_encoding_message_size = self.max_encoding_message_size;
4045 let inner = self.inner.clone();
4046 let fut = async move {
4047 let method = AlterSubscriptionRetentionSvc(inner);
4048 let codec = tonic_prost::ProstCodec::default();
4049 let mut grpc = tonic::server::Grpc::new(codec)
4050 .apply_compression_config(
4051 accept_compression_encodings,
4052 send_compression_encodings,
4053 )
4054 .apply_max_message_size_config(
4055 max_decoding_message_size,
4056 max_encoding_message_size,
4057 );
4058 let res = grpc.unary(method, req).await;
4059 Ok(res)
4060 };
4061 Box::pin(fut)
4062 }
4063 "/ddl_service.DdlService/AlterSetSchema" => {
4064 #[allow(non_camel_case_types)]
4065 struct AlterSetSchemaSvc<T: DdlService>(pub Arc<T>);
4066 impl<
4067 T: DdlService,
4068 > tonic::server::UnaryService<super::AlterSetSchemaRequest>
4069 for AlterSetSchemaSvc<T> {
4070 type Response = super::AlterSetSchemaResponse;
4071 type Future = BoxFuture<
4072 tonic::Response<Self::Response>,
4073 tonic::Status,
4074 >;
4075 fn call(
4076 &mut self,
4077 request: tonic::Request<super::AlterSetSchemaRequest>,
4078 ) -> Self::Future {
4079 let inner = Arc::clone(&self.0);
4080 let fut = async move {
4081 <T as DdlService>::alter_set_schema(&inner, request).await
4082 };
4083 Box::pin(fut)
4084 }
4085 }
4086 let accept_compression_encodings = self.accept_compression_encodings;
4087 let send_compression_encodings = self.send_compression_encodings;
4088 let max_decoding_message_size = self.max_decoding_message_size;
4089 let max_encoding_message_size = self.max_encoding_message_size;
4090 let inner = self.inner.clone();
4091 let fut = async move {
4092 let method = AlterSetSchemaSvc(inner);
4093 let codec = tonic_prost::ProstCodec::default();
4094 let mut grpc = tonic::server::Grpc::new(codec)
4095 .apply_compression_config(
4096 accept_compression_encodings,
4097 send_compression_encodings,
4098 )
4099 .apply_max_message_size_config(
4100 max_decoding_message_size,
4101 max_encoding_message_size,
4102 );
4103 let res = grpc.unary(method, req).await;
4104 Ok(res)
4105 };
4106 Box::pin(fut)
4107 }
4108 "/ddl_service.DdlService/AlterParallelism" => {
4109 #[allow(non_camel_case_types)]
4110 struct AlterParallelismSvc<T: DdlService>(pub Arc<T>);
4111 impl<
4112 T: DdlService,
4113 > tonic::server::UnaryService<super::AlterParallelismRequest>
4114 for AlterParallelismSvc<T> {
4115 type Response = super::AlterParallelismResponse;
4116 type Future = BoxFuture<
4117 tonic::Response<Self::Response>,
4118 tonic::Status,
4119 >;
4120 fn call(
4121 &mut self,
4122 request: tonic::Request<super::AlterParallelismRequest>,
4123 ) -> Self::Future {
4124 let inner = Arc::clone(&self.0);
4125 let fut = async move {
4126 <T as DdlService>::alter_parallelism(&inner, request).await
4127 };
4128 Box::pin(fut)
4129 }
4130 }
4131 let accept_compression_encodings = self.accept_compression_encodings;
4132 let send_compression_encodings = self.send_compression_encodings;
4133 let max_decoding_message_size = self.max_decoding_message_size;
4134 let max_encoding_message_size = self.max_encoding_message_size;
4135 let inner = self.inner.clone();
4136 let fut = async move {
4137 let method = AlterParallelismSvc(inner);
4138 let codec = tonic_prost::ProstCodec::default();
4139 let mut grpc = tonic::server::Grpc::new(codec)
4140 .apply_compression_config(
4141 accept_compression_encodings,
4142 send_compression_encodings,
4143 )
4144 .apply_max_message_size_config(
4145 max_decoding_message_size,
4146 max_encoding_message_size,
4147 );
4148 let res = grpc.unary(method, req).await;
4149 Ok(res)
4150 };
4151 Box::pin(fut)
4152 }
4153 "/ddl_service.DdlService/AlterBackfillParallelism" => {
4154 #[allow(non_camel_case_types)]
4155 struct AlterBackfillParallelismSvc<T: DdlService>(pub Arc<T>);
4156 impl<
4157 T: DdlService,
4158 > tonic::server::UnaryService<super::AlterBackfillParallelismRequest>
4159 for AlterBackfillParallelismSvc<T> {
4160 type Response = super::AlterBackfillParallelismResponse;
4161 type Future = BoxFuture<
4162 tonic::Response<Self::Response>,
4163 tonic::Status,
4164 >;
4165 fn call(
4166 &mut self,
4167 request: tonic::Request<
4168 super::AlterBackfillParallelismRequest,
4169 >,
4170 ) -> Self::Future {
4171 let inner = Arc::clone(&self.0);
4172 let fut = async move {
4173 <T as DdlService>::alter_backfill_parallelism(
4174 &inner,
4175 request,
4176 )
4177 .await
4178 };
4179 Box::pin(fut)
4180 }
4181 }
4182 let accept_compression_encodings = self.accept_compression_encodings;
4183 let send_compression_encodings = self.send_compression_encodings;
4184 let max_decoding_message_size = self.max_decoding_message_size;
4185 let max_encoding_message_size = self.max_encoding_message_size;
4186 let inner = self.inner.clone();
4187 let fut = async move {
4188 let method = AlterBackfillParallelismSvc(inner);
4189 let codec = tonic_prost::ProstCodec::default();
4190 let mut grpc = tonic::server::Grpc::new(codec)
4191 .apply_compression_config(
4192 accept_compression_encodings,
4193 send_compression_encodings,
4194 )
4195 .apply_max_message_size_config(
4196 max_decoding_message_size,
4197 max_encoding_message_size,
4198 );
4199 let res = grpc.unary(method, req).await;
4200 Ok(res)
4201 };
4202 Box::pin(fut)
4203 }
4204 "/ddl_service.DdlService/AlterFragmentParallelism" => {
4205 #[allow(non_camel_case_types)]
4206 struct AlterFragmentParallelismSvc<T: DdlService>(pub Arc<T>);
4207 impl<
4208 T: DdlService,
4209 > tonic::server::UnaryService<super::AlterFragmentParallelismRequest>
4210 for AlterFragmentParallelismSvc<T> {
4211 type Response = super::AlterFragmentParallelismResponse;
4212 type Future = BoxFuture<
4213 tonic::Response<Self::Response>,
4214 tonic::Status,
4215 >;
4216 fn call(
4217 &mut self,
4218 request: tonic::Request<
4219 super::AlterFragmentParallelismRequest,
4220 >,
4221 ) -> Self::Future {
4222 let inner = Arc::clone(&self.0);
4223 let fut = async move {
4224 <T as DdlService>::alter_fragment_parallelism(
4225 &inner,
4226 request,
4227 )
4228 .await
4229 };
4230 Box::pin(fut)
4231 }
4232 }
4233 let accept_compression_encodings = self.accept_compression_encodings;
4234 let send_compression_encodings = self.send_compression_encodings;
4235 let max_decoding_message_size = self.max_decoding_message_size;
4236 let max_encoding_message_size = self.max_encoding_message_size;
4237 let inner = self.inner.clone();
4238 let fut = async move {
4239 let method = AlterFragmentParallelismSvc(inner);
4240 let codec = tonic_prost::ProstCodec::default();
4241 let mut grpc = tonic::server::Grpc::new(codec)
4242 .apply_compression_config(
4243 accept_compression_encodings,
4244 send_compression_encodings,
4245 )
4246 .apply_max_message_size_config(
4247 max_decoding_message_size,
4248 max_encoding_message_size,
4249 );
4250 let res = grpc.unary(method, req).await;
4251 Ok(res)
4252 };
4253 Box::pin(fut)
4254 }
4255 "/ddl_service.DdlService/AlterResourceGroup" => {
4256 #[allow(non_camel_case_types)]
4257 struct AlterResourceGroupSvc<T: DdlService>(pub Arc<T>);
4258 impl<
4259 T: DdlService,
4260 > tonic::server::UnaryService<super::AlterResourceGroupRequest>
4261 for AlterResourceGroupSvc<T> {
4262 type Response = super::AlterResourceGroupResponse;
4263 type Future = BoxFuture<
4264 tonic::Response<Self::Response>,
4265 tonic::Status,
4266 >;
4267 fn call(
4268 &mut self,
4269 request: tonic::Request<super::AlterResourceGroupRequest>,
4270 ) -> Self::Future {
4271 let inner = Arc::clone(&self.0);
4272 let fut = async move {
4273 <T as DdlService>::alter_resource_group(&inner, request)
4274 .await
4275 };
4276 Box::pin(fut)
4277 }
4278 }
4279 let accept_compression_encodings = self.accept_compression_encodings;
4280 let send_compression_encodings = self.send_compression_encodings;
4281 let max_decoding_message_size = self.max_decoding_message_size;
4282 let max_encoding_message_size = self.max_encoding_message_size;
4283 let inner = self.inner.clone();
4284 let fut = async move {
4285 let method = AlterResourceGroupSvc(inner);
4286 let codec = tonic_prost::ProstCodec::default();
4287 let mut grpc = tonic::server::Grpc::new(codec)
4288 .apply_compression_config(
4289 accept_compression_encodings,
4290 send_compression_encodings,
4291 )
4292 .apply_max_message_size_config(
4293 max_decoding_message_size,
4294 max_encoding_message_size,
4295 );
4296 let res = grpc.unary(method, req).await;
4297 Ok(res)
4298 };
4299 Box::pin(fut)
4300 }
4301 "/ddl_service.DdlService/DropTable" => {
4302 #[allow(non_camel_case_types)]
4303 struct DropTableSvc<T: DdlService>(pub Arc<T>);
4304 impl<
4305 T: DdlService,
4306 > tonic::server::UnaryService<super::DropTableRequest>
4307 for DropTableSvc<T> {
4308 type Response = super::DropTableResponse;
4309 type Future = BoxFuture<
4310 tonic::Response<Self::Response>,
4311 tonic::Status,
4312 >;
4313 fn call(
4314 &mut self,
4315 request: tonic::Request<super::DropTableRequest>,
4316 ) -> Self::Future {
4317 let inner = Arc::clone(&self.0);
4318 let fut = async move {
4319 <T as DdlService>::drop_table(&inner, request).await
4320 };
4321 Box::pin(fut)
4322 }
4323 }
4324 let accept_compression_encodings = self.accept_compression_encodings;
4325 let send_compression_encodings = self.send_compression_encodings;
4326 let max_decoding_message_size = self.max_decoding_message_size;
4327 let max_encoding_message_size = self.max_encoding_message_size;
4328 let inner = self.inner.clone();
4329 let fut = async move {
4330 let method = DropTableSvc(inner);
4331 let codec = tonic_prost::ProstCodec::default();
4332 let mut grpc = tonic::server::Grpc::new(codec)
4333 .apply_compression_config(
4334 accept_compression_encodings,
4335 send_compression_encodings,
4336 )
4337 .apply_max_message_size_config(
4338 max_decoding_message_size,
4339 max_encoding_message_size,
4340 );
4341 let res = grpc.unary(method, req).await;
4342 Ok(res)
4343 };
4344 Box::pin(fut)
4345 }
4346 "/ddl_service.DdlService/RisectlListStateTables" => {
4347 #[allow(non_camel_case_types)]
4348 struct RisectlListStateTablesSvc<T: DdlService>(pub Arc<T>);
4349 impl<
4350 T: DdlService,
4351 > tonic::server::UnaryService<super::RisectlListStateTablesRequest>
4352 for RisectlListStateTablesSvc<T> {
4353 type Response = super::RisectlListStateTablesResponse;
4354 type Future = BoxFuture<
4355 tonic::Response<Self::Response>,
4356 tonic::Status,
4357 >;
4358 fn call(
4359 &mut self,
4360 request: tonic::Request<super::RisectlListStateTablesRequest>,
4361 ) -> Self::Future {
4362 let inner = Arc::clone(&self.0);
4363 let fut = async move {
4364 <T as DdlService>::risectl_list_state_tables(
4365 &inner,
4366 request,
4367 )
4368 .await
4369 };
4370 Box::pin(fut)
4371 }
4372 }
4373 let accept_compression_encodings = self.accept_compression_encodings;
4374 let send_compression_encodings = self.send_compression_encodings;
4375 let max_decoding_message_size = self.max_decoding_message_size;
4376 let max_encoding_message_size = self.max_encoding_message_size;
4377 let inner = self.inner.clone();
4378 let fut = async move {
4379 let method = RisectlListStateTablesSvc(inner);
4380 let codec = tonic_prost::ProstCodec::default();
4381 let mut grpc = tonic::server::Grpc::new(codec)
4382 .apply_compression_config(
4383 accept_compression_encodings,
4384 send_compression_encodings,
4385 )
4386 .apply_max_message_size_config(
4387 max_decoding_message_size,
4388 max_encoding_message_size,
4389 );
4390 let res = grpc.unary(method, req).await;
4391 Ok(res)
4392 };
4393 Box::pin(fut)
4394 }
4395 "/ddl_service.DdlService/RisectlResumeBackfill" => {
4396 #[allow(non_camel_case_types)]
4397 struct RisectlResumeBackfillSvc<T: DdlService>(pub Arc<T>);
4398 impl<
4399 T: DdlService,
4400 > tonic::server::UnaryService<super::RisectlResumeBackfillRequest>
4401 for RisectlResumeBackfillSvc<T> {
4402 type Response = super::RisectlResumeBackfillResponse;
4403 type Future = BoxFuture<
4404 tonic::Response<Self::Response>,
4405 tonic::Status,
4406 >;
4407 fn call(
4408 &mut self,
4409 request: tonic::Request<super::RisectlResumeBackfillRequest>,
4410 ) -> Self::Future {
4411 let inner = Arc::clone(&self.0);
4412 let fut = async move {
4413 <T as DdlService>::risectl_resume_backfill(&inner, request)
4414 .await
4415 };
4416 Box::pin(fut)
4417 }
4418 }
4419 let accept_compression_encodings = self.accept_compression_encodings;
4420 let send_compression_encodings = self.send_compression_encodings;
4421 let max_decoding_message_size = self.max_decoding_message_size;
4422 let max_encoding_message_size = self.max_encoding_message_size;
4423 let inner = self.inner.clone();
4424 let fut = async move {
4425 let method = RisectlResumeBackfillSvc(inner);
4426 let codec = tonic_prost::ProstCodec::default();
4427 let mut grpc = tonic::server::Grpc::new(codec)
4428 .apply_compression_config(
4429 accept_compression_encodings,
4430 send_compression_encodings,
4431 )
4432 .apply_max_message_size_config(
4433 max_decoding_message_size,
4434 max_encoding_message_size,
4435 );
4436 let res = grpc.unary(method, req).await;
4437 Ok(res)
4438 };
4439 Box::pin(fut)
4440 }
4441 "/ddl_service.DdlService/CreateView" => {
4442 #[allow(non_camel_case_types)]
4443 struct CreateViewSvc<T: DdlService>(pub Arc<T>);
4444 impl<
4445 T: DdlService,
4446 > tonic::server::UnaryService<super::CreateViewRequest>
4447 for CreateViewSvc<T> {
4448 type Response = super::CreateViewResponse;
4449 type Future = BoxFuture<
4450 tonic::Response<Self::Response>,
4451 tonic::Status,
4452 >;
4453 fn call(
4454 &mut self,
4455 request: tonic::Request<super::CreateViewRequest>,
4456 ) -> Self::Future {
4457 let inner = Arc::clone(&self.0);
4458 let fut = async move {
4459 <T as DdlService>::create_view(&inner, request).await
4460 };
4461 Box::pin(fut)
4462 }
4463 }
4464 let accept_compression_encodings = self.accept_compression_encodings;
4465 let send_compression_encodings = self.send_compression_encodings;
4466 let max_decoding_message_size = self.max_decoding_message_size;
4467 let max_encoding_message_size = self.max_encoding_message_size;
4468 let inner = self.inner.clone();
4469 let fut = async move {
4470 let method = CreateViewSvc(inner);
4471 let codec = tonic_prost::ProstCodec::default();
4472 let mut grpc = tonic::server::Grpc::new(codec)
4473 .apply_compression_config(
4474 accept_compression_encodings,
4475 send_compression_encodings,
4476 )
4477 .apply_max_message_size_config(
4478 max_decoding_message_size,
4479 max_encoding_message_size,
4480 );
4481 let res = grpc.unary(method, req).await;
4482 Ok(res)
4483 };
4484 Box::pin(fut)
4485 }
4486 "/ddl_service.DdlService/DropView" => {
4487 #[allow(non_camel_case_types)]
4488 struct DropViewSvc<T: DdlService>(pub Arc<T>);
4489 impl<
4490 T: DdlService,
4491 > tonic::server::UnaryService<super::DropViewRequest>
4492 for DropViewSvc<T> {
4493 type Response = super::DropViewResponse;
4494 type Future = BoxFuture<
4495 tonic::Response<Self::Response>,
4496 tonic::Status,
4497 >;
4498 fn call(
4499 &mut self,
4500 request: tonic::Request<super::DropViewRequest>,
4501 ) -> Self::Future {
4502 let inner = Arc::clone(&self.0);
4503 let fut = async move {
4504 <T as DdlService>::drop_view(&inner, request).await
4505 };
4506 Box::pin(fut)
4507 }
4508 }
4509 let accept_compression_encodings = self.accept_compression_encodings;
4510 let send_compression_encodings = self.send_compression_encodings;
4511 let max_decoding_message_size = self.max_decoding_message_size;
4512 let max_encoding_message_size = self.max_encoding_message_size;
4513 let inner = self.inner.clone();
4514 let fut = async move {
4515 let method = DropViewSvc(inner);
4516 let codec = tonic_prost::ProstCodec::default();
4517 let mut grpc = tonic::server::Grpc::new(codec)
4518 .apply_compression_config(
4519 accept_compression_encodings,
4520 send_compression_encodings,
4521 )
4522 .apply_max_message_size_config(
4523 max_decoding_message_size,
4524 max_encoding_message_size,
4525 );
4526 let res = grpc.unary(method, req).await;
4527 Ok(res)
4528 };
4529 Box::pin(fut)
4530 }
4531 "/ddl_service.DdlService/CreateIndex" => {
4532 #[allow(non_camel_case_types)]
4533 struct CreateIndexSvc<T: DdlService>(pub Arc<T>);
4534 impl<
4535 T: DdlService,
4536 > tonic::server::UnaryService<super::CreateIndexRequest>
4537 for CreateIndexSvc<T> {
4538 type Response = super::CreateIndexResponse;
4539 type Future = BoxFuture<
4540 tonic::Response<Self::Response>,
4541 tonic::Status,
4542 >;
4543 fn call(
4544 &mut self,
4545 request: tonic::Request<super::CreateIndexRequest>,
4546 ) -> Self::Future {
4547 let inner = Arc::clone(&self.0);
4548 let fut = async move {
4549 <T as DdlService>::create_index(&inner, request).await
4550 };
4551 Box::pin(fut)
4552 }
4553 }
4554 let accept_compression_encodings = self.accept_compression_encodings;
4555 let send_compression_encodings = self.send_compression_encodings;
4556 let max_decoding_message_size = self.max_decoding_message_size;
4557 let max_encoding_message_size = self.max_encoding_message_size;
4558 let inner = self.inner.clone();
4559 let fut = async move {
4560 let method = CreateIndexSvc(inner);
4561 let codec = tonic_prost::ProstCodec::default();
4562 let mut grpc = tonic::server::Grpc::new(codec)
4563 .apply_compression_config(
4564 accept_compression_encodings,
4565 send_compression_encodings,
4566 )
4567 .apply_max_message_size_config(
4568 max_decoding_message_size,
4569 max_encoding_message_size,
4570 );
4571 let res = grpc.unary(method, req).await;
4572 Ok(res)
4573 };
4574 Box::pin(fut)
4575 }
4576 "/ddl_service.DdlService/DropIndex" => {
4577 #[allow(non_camel_case_types)]
4578 struct DropIndexSvc<T: DdlService>(pub Arc<T>);
4579 impl<
4580 T: DdlService,
4581 > tonic::server::UnaryService<super::DropIndexRequest>
4582 for DropIndexSvc<T> {
4583 type Response = super::DropIndexResponse;
4584 type Future = BoxFuture<
4585 tonic::Response<Self::Response>,
4586 tonic::Status,
4587 >;
4588 fn call(
4589 &mut self,
4590 request: tonic::Request<super::DropIndexRequest>,
4591 ) -> Self::Future {
4592 let inner = Arc::clone(&self.0);
4593 let fut = async move {
4594 <T as DdlService>::drop_index(&inner, request).await
4595 };
4596 Box::pin(fut)
4597 }
4598 }
4599 let accept_compression_encodings = self.accept_compression_encodings;
4600 let send_compression_encodings = self.send_compression_encodings;
4601 let max_decoding_message_size = self.max_decoding_message_size;
4602 let max_encoding_message_size = self.max_encoding_message_size;
4603 let inner = self.inner.clone();
4604 let fut = async move {
4605 let method = DropIndexSvc(inner);
4606 let codec = tonic_prost::ProstCodec::default();
4607 let mut grpc = tonic::server::Grpc::new(codec)
4608 .apply_compression_config(
4609 accept_compression_encodings,
4610 send_compression_encodings,
4611 )
4612 .apply_max_message_size_config(
4613 max_decoding_message_size,
4614 max_encoding_message_size,
4615 );
4616 let res = grpc.unary(method, req).await;
4617 Ok(res)
4618 };
4619 Box::pin(fut)
4620 }
4621 "/ddl_service.DdlService/CreateFunction" => {
4622 #[allow(non_camel_case_types)]
4623 struct CreateFunctionSvc<T: DdlService>(pub Arc<T>);
4624 impl<
4625 T: DdlService,
4626 > tonic::server::UnaryService<super::CreateFunctionRequest>
4627 for CreateFunctionSvc<T> {
4628 type Response = super::CreateFunctionResponse;
4629 type Future = BoxFuture<
4630 tonic::Response<Self::Response>,
4631 tonic::Status,
4632 >;
4633 fn call(
4634 &mut self,
4635 request: tonic::Request<super::CreateFunctionRequest>,
4636 ) -> Self::Future {
4637 let inner = Arc::clone(&self.0);
4638 let fut = async move {
4639 <T as DdlService>::create_function(&inner, request).await
4640 };
4641 Box::pin(fut)
4642 }
4643 }
4644 let accept_compression_encodings = self.accept_compression_encodings;
4645 let send_compression_encodings = self.send_compression_encodings;
4646 let max_decoding_message_size = self.max_decoding_message_size;
4647 let max_encoding_message_size = self.max_encoding_message_size;
4648 let inner = self.inner.clone();
4649 let fut = async move {
4650 let method = CreateFunctionSvc(inner);
4651 let codec = tonic_prost::ProstCodec::default();
4652 let mut grpc = tonic::server::Grpc::new(codec)
4653 .apply_compression_config(
4654 accept_compression_encodings,
4655 send_compression_encodings,
4656 )
4657 .apply_max_message_size_config(
4658 max_decoding_message_size,
4659 max_encoding_message_size,
4660 );
4661 let res = grpc.unary(method, req).await;
4662 Ok(res)
4663 };
4664 Box::pin(fut)
4665 }
4666 "/ddl_service.DdlService/DropFunction" => {
4667 #[allow(non_camel_case_types)]
4668 struct DropFunctionSvc<T: DdlService>(pub Arc<T>);
4669 impl<
4670 T: DdlService,
4671 > tonic::server::UnaryService<super::DropFunctionRequest>
4672 for DropFunctionSvc<T> {
4673 type Response = super::DropFunctionResponse;
4674 type Future = BoxFuture<
4675 tonic::Response<Self::Response>,
4676 tonic::Status,
4677 >;
4678 fn call(
4679 &mut self,
4680 request: tonic::Request<super::DropFunctionRequest>,
4681 ) -> Self::Future {
4682 let inner = Arc::clone(&self.0);
4683 let fut = async move {
4684 <T as DdlService>::drop_function(&inner, request).await
4685 };
4686 Box::pin(fut)
4687 }
4688 }
4689 let accept_compression_encodings = self.accept_compression_encodings;
4690 let send_compression_encodings = self.send_compression_encodings;
4691 let max_decoding_message_size = self.max_decoding_message_size;
4692 let max_encoding_message_size = self.max_encoding_message_size;
4693 let inner = self.inner.clone();
4694 let fut = async move {
4695 let method = DropFunctionSvc(inner);
4696 let codec = tonic_prost::ProstCodec::default();
4697 let mut grpc = tonic::server::Grpc::new(codec)
4698 .apply_compression_config(
4699 accept_compression_encodings,
4700 send_compression_encodings,
4701 )
4702 .apply_max_message_size_config(
4703 max_decoding_message_size,
4704 max_encoding_message_size,
4705 );
4706 let res = grpc.unary(method, req).await;
4707 Ok(res)
4708 };
4709 Box::pin(fut)
4710 }
4711 "/ddl_service.DdlService/ReplaceJobPlan" => {
4712 #[allow(non_camel_case_types)]
4713 struct ReplaceJobPlanSvc<T: DdlService>(pub Arc<T>);
4714 impl<
4715 T: DdlService,
4716 > tonic::server::UnaryService<super::ReplaceJobPlanRequest>
4717 for ReplaceJobPlanSvc<T> {
4718 type Response = super::ReplaceJobPlanResponse;
4719 type Future = BoxFuture<
4720 tonic::Response<Self::Response>,
4721 tonic::Status,
4722 >;
4723 fn call(
4724 &mut self,
4725 request: tonic::Request<super::ReplaceJobPlanRequest>,
4726 ) -> Self::Future {
4727 let inner = Arc::clone(&self.0);
4728 let fut = async move {
4729 <T as DdlService>::replace_job_plan(&inner, request).await
4730 };
4731 Box::pin(fut)
4732 }
4733 }
4734 let accept_compression_encodings = self.accept_compression_encodings;
4735 let send_compression_encodings = self.send_compression_encodings;
4736 let max_decoding_message_size = self.max_decoding_message_size;
4737 let max_encoding_message_size = self.max_encoding_message_size;
4738 let inner = self.inner.clone();
4739 let fut = async move {
4740 let method = ReplaceJobPlanSvc(inner);
4741 let codec = tonic_prost::ProstCodec::default();
4742 let mut grpc = tonic::server::Grpc::new(codec)
4743 .apply_compression_config(
4744 accept_compression_encodings,
4745 send_compression_encodings,
4746 )
4747 .apply_max_message_size_config(
4748 max_decoding_message_size,
4749 max_encoding_message_size,
4750 );
4751 let res = grpc.unary(method, req).await;
4752 Ok(res)
4753 };
4754 Box::pin(fut)
4755 }
4756 "/ddl_service.DdlService/GetTable" => {
4757 #[allow(non_camel_case_types)]
4758 struct GetTableSvc<T: DdlService>(pub Arc<T>);
4759 impl<
4760 T: DdlService,
4761 > tonic::server::UnaryService<super::GetTableRequest>
4762 for GetTableSvc<T> {
4763 type Response = super::GetTableResponse;
4764 type Future = BoxFuture<
4765 tonic::Response<Self::Response>,
4766 tonic::Status,
4767 >;
4768 fn call(
4769 &mut self,
4770 request: tonic::Request<super::GetTableRequest>,
4771 ) -> Self::Future {
4772 let inner = Arc::clone(&self.0);
4773 let fut = async move {
4774 <T as DdlService>::get_table(&inner, request).await
4775 };
4776 Box::pin(fut)
4777 }
4778 }
4779 let accept_compression_encodings = self.accept_compression_encodings;
4780 let send_compression_encodings = self.send_compression_encodings;
4781 let max_decoding_message_size = self.max_decoding_message_size;
4782 let max_encoding_message_size = self.max_encoding_message_size;
4783 let inner = self.inner.clone();
4784 let fut = async move {
4785 let method = GetTableSvc(inner);
4786 let codec = tonic_prost::ProstCodec::default();
4787 let mut grpc = tonic::server::Grpc::new(codec)
4788 .apply_compression_config(
4789 accept_compression_encodings,
4790 send_compression_encodings,
4791 )
4792 .apply_max_message_size_config(
4793 max_decoding_message_size,
4794 max_encoding_message_size,
4795 );
4796 let res = grpc.unary(method, req).await;
4797 Ok(res)
4798 };
4799 Box::pin(fut)
4800 }
4801 "/ddl_service.DdlService/GetDdlProgress" => {
4802 #[allow(non_camel_case_types)]
4803 struct GetDdlProgressSvc<T: DdlService>(pub Arc<T>);
4804 impl<
4805 T: DdlService,
4806 > tonic::server::UnaryService<super::GetDdlProgressRequest>
4807 for GetDdlProgressSvc<T> {
4808 type Response = super::GetDdlProgressResponse;
4809 type Future = BoxFuture<
4810 tonic::Response<Self::Response>,
4811 tonic::Status,
4812 >;
4813 fn call(
4814 &mut self,
4815 request: tonic::Request<super::GetDdlProgressRequest>,
4816 ) -> Self::Future {
4817 let inner = Arc::clone(&self.0);
4818 let fut = async move {
4819 <T as DdlService>::get_ddl_progress(&inner, request).await
4820 };
4821 Box::pin(fut)
4822 }
4823 }
4824 let accept_compression_encodings = self.accept_compression_encodings;
4825 let send_compression_encodings = self.send_compression_encodings;
4826 let max_decoding_message_size = self.max_decoding_message_size;
4827 let max_encoding_message_size = self.max_encoding_message_size;
4828 let inner = self.inner.clone();
4829 let fut = async move {
4830 let method = GetDdlProgressSvc(inner);
4831 let codec = tonic_prost::ProstCodec::default();
4832 let mut grpc = tonic::server::Grpc::new(codec)
4833 .apply_compression_config(
4834 accept_compression_encodings,
4835 send_compression_encodings,
4836 )
4837 .apply_max_message_size_config(
4838 max_decoding_message_size,
4839 max_encoding_message_size,
4840 );
4841 let res = grpc.unary(method, req).await;
4842 Ok(res)
4843 };
4844 Box::pin(fut)
4845 }
4846 "/ddl_service.DdlService/CreateConnection" => {
4847 #[allow(non_camel_case_types)]
4848 struct CreateConnectionSvc<T: DdlService>(pub Arc<T>);
4849 impl<
4850 T: DdlService,
4851 > tonic::server::UnaryService<super::CreateConnectionRequest>
4852 for CreateConnectionSvc<T> {
4853 type Response = super::CreateConnectionResponse;
4854 type Future = BoxFuture<
4855 tonic::Response<Self::Response>,
4856 tonic::Status,
4857 >;
4858 fn call(
4859 &mut self,
4860 request: tonic::Request<super::CreateConnectionRequest>,
4861 ) -> Self::Future {
4862 let inner = Arc::clone(&self.0);
4863 let fut = async move {
4864 <T as DdlService>::create_connection(&inner, request).await
4865 };
4866 Box::pin(fut)
4867 }
4868 }
4869 let accept_compression_encodings = self.accept_compression_encodings;
4870 let send_compression_encodings = self.send_compression_encodings;
4871 let max_decoding_message_size = self.max_decoding_message_size;
4872 let max_encoding_message_size = self.max_encoding_message_size;
4873 let inner = self.inner.clone();
4874 let fut = async move {
4875 let method = CreateConnectionSvc(inner);
4876 let codec = tonic_prost::ProstCodec::default();
4877 let mut grpc = tonic::server::Grpc::new(codec)
4878 .apply_compression_config(
4879 accept_compression_encodings,
4880 send_compression_encodings,
4881 )
4882 .apply_max_message_size_config(
4883 max_decoding_message_size,
4884 max_encoding_message_size,
4885 );
4886 let res = grpc.unary(method, req).await;
4887 Ok(res)
4888 };
4889 Box::pin(fut)
4890 }
4891 "/ddl_service.DdlService/ListConnections" => {
4892 #[allow(non_camel_case_types)]
4893 struct ListConnectionsSvc<T: DdlService>(pub Arc<T>);
4894 impl<
4895 T: DdlService,
4896 > tonic::server::UnaryService<super::ListConnectionsRequest>
4897 for ListConnectionsSvc<T> {
4898 type Response = super::ListConnectionsResponse;
4899 type Future = BoxFuture<
4900 tonic::Response<Self::Response>,
4901 tonic::Status,
4902 >;
4903 fn call(
4904 &mut self,
4905 request: tonic::Request<super::ListConnectionsRequest>,
4906 ) -> Self::Future {
4907 let inner = Arc::clone(&self.0);
4908 let fut = async move {
4909 <T as DdlService>::list_connections(&inner, request).await
4910 };
4911 Box::pin(fut)
4912 }
4913 }
4914 let accept_compression_encodings = self.accept_compression_encodings;
4915 let send_compression_encodings = self.send_compression_encodings;
4916 let max_decoding_message_size = self.max_decoding_message_size;
4917 let max_encoding_message_size = self.max_encoding_message_size;
4918 let inner = self.inner.clone();
4919 let fut = async move {
4920 let method = ListConnectionsSvc(inner);
4921 let codec = tonic_prost::ProstCodec::default();
4922 let mut grpc = tonic::server::Grpc::new(codec)
4923 .apply_compression_config(
4924 accept_compression_encodings,
4925 send_compression_encodings,
4926 )
4927 .apply_max_message_size_config(
4928 max_decoding_message_size,
4929 max_encoding_message_size,
4930 );
4931 let res = grpc.unary(method, req).await;
4932 Ok(res)
4933 };
4934 Box::pin(fut)
4935 }
4936 "/ddl_service.DdlService/DropConnection" => {
4937 #[allow(non_camel_case_types)]
4938 struct DropConnectionSvc<T: DdlService>(pub Arc<T>);
4939 impl<
4940 T: DdlService,
4941 > tonic::server::UnaryService<super::DropConnectionRequest>
4942 for DropConnectionSvc<T> {
4943 type Response = super::DropConnectionResponse;
4944 type Future = BoxFuture<
4945 tonic::Response<Self::Response>,
4946 tonic::Status,
4947 >;
4948 fn call(
4949 &mut self,
4950 request: tonic::Request<super::DropConnectionRequest>,
4951 ) -> Self::Future {
4952 let inner = Arc::clone(&self.0);
4953 let fut = async move {
4954 <T as DdlService>::drop_connection(&inner, request).await
4955 };
4956 Box::pin(fut)
4957 }
4958 }
4959 let accept_compression_encodings = self.accept_compression_encodings;
4960 let send_compression_encodings = self.send_compression_encodings;
4961 let max_decoding_message_size = self.max_decoding_message_size;
4962 let max_encoding_message_size = self.max_encoding_message_size;
4963 let inner = self.inner.clone();
4964 let fut = async move {
4965 let method = DropConnectionSvc(inner);
4966 let codec = tonic_prost::ProstCodec::default();
4967 let mut grpc = tonic::server::Grpc::new(codec)
4968 .apply_compression_config(
4969 accept_compression_encodings,
4970 send_compression_encodings,
4971 )
4972 .apply_max_message_size_config(
4973 max_decoding_message_size,
4974 max_encoding_message_size,
4975 );
4976 let res = grpc.unary(method, req).await;
4977 Ok(res)
4978 };
4979 Box::pin(fut)
4980 }
4981 "/ddl_service.DdlService/GetTables" => {
4982 #[allow(non_camel_case_types)]
4983 struct GetTablesSvc<T: DdlService>(pub Arc<T>);
4984 impl<
4985 T: DdlService,
4986 > tonic::server::UnaryService<super::GetTablesRequest>
4987 for GetTablesSvc<T> {
4988 type Response = super::GetTablesResponse;
4989 type Future = BoxFuture<
4990 tonic::Response<Self::Response>,
4991 tonic::Status,
4992 >;
4993 fn call(
4994 &mut self,
4995 request: tonic::Request<super::GetTablesRequest>,
4996 ) -> Self::Future {
4997 let inner = Arc::clone(&self.0);
4998 let fut = async move {
4999 <T as DdlService>::get_tables(&inner, request).await
5000 };
5001 Box::pin(fut)
5002 }
5003 }
5004 let accept_compression_encodings = self.accept_compression_encodings;
5005 let send_compression_encodings = self.send_compression_encodings;
5006 let max_decoding_message_size = self.max_decoding_message_size;
5007 let max_encoding_message_size = self.max_encoding_message_size;
5008 let inner = self.inner.clone();
5009 let fut = async move {
5010 let method = GetTablesSvc(inner);
5011 let codec = tonic_prost::ProstCodec::default();
5012 let mut grpc = tonic::server::Grpc::new(codec)
5013 .apply_compression_config(
5014 accept_compression_encodings,
5015 send_compression_encodings,
5016 )
5017 .apply_max_message_size_config(
5018 max_decoding_message_size,
5019 max_encoding_message_size,
5020 );
5021 let res = grpc.unary(method, req).await;
5022 Ok(res)
5023 };
5024 Box::pin(fut)
5025 }
5026 "/ddl_service.DdlService/Wait" => {
5027 #[allow(non_camel_case_types)]
5028 struct WaitSvc<T: DdlService>(pub Arc<T>);
5029 impl<T: DdlService> tonic::server::UnaryService<super::WaitRequest>
5030 for WaitSvc<T> {
5031 type Response = super::WaitResponse;
5032 type Future = BoxFuture<
5033 tonic::Response<Self::Response>,
5034 tonic::Status,
5035 >;
5036 fn call(
5037 &mut self,
5038 request: tonic::Request<super::WaitRequest>,
5039 ) -> Self::Future {
5040 let inner = Arc::clone(&self.0);
5041 let fut = async move {
5042 <T as DdlService>::wait(&inner, request).await
5043 };
5044 Box::pin(fut)
5045 }
5046 }
5047 let accept_compression_encodings = self.accept_compression_encodings;
5048 let send_compression_encodings = self.send_compression_encodings;
5049 let max_decoding_message_size = self.max_decoding_message_size;
5050 let max_encoding_message_size = self.max_encoding_message_size;
5051 let inner = self.inner.clone();
5052 let fut = async move {
5053 let method = WaitSvc(inner);
5054 let codec = tonic_prost::ProstCodec::default();
5055 let mut grpc = tonic::server::Grpc::new(codec)
5056 .apply_compression_config(
5057 accept_compression_encodings,
5058 send_compression_encodings,
5059 )
5060 .apply_max_message_size_config(
5061 max_decoding_message_size,
5062 max_encoding_message_size,
5063 );
5064 let res = grpc.unary(method, req).await;
5065 Ok(res)
5066 };
5067 Box::pin(fut)
5068 }
5069 "/ddl_service.DdlService/CommentOn" => {
5070 #[allow(non_camel_case_types)]
5071 struct CommentOnSvc<T: DdlService>(pub Arc<T>);
5072 impl<
5073 T: DdlService,
5074 > tonic::server::UnaryService<super::CommentOnRequest>
5075 for CommentOnSvc<T> {
5076 type Response = super::CommentOnResponse;
5077 type Future = BoxFuture<
5078 tonic::Response<Self::Response>,
5079 tonic::Status,
5080 >;
5081 fn call(
5082 &mut self,
5083 request: tonic::Request<super::CommentOnRequest>,
5084 ) -> Self::Future {
5085 let inner = Arc::clone(&self.0);
5086 let fut = async move {
5087 <T as DdlService>::comment_on(&inner, request).await
5088 };
5089 Box::pin(fut)
5090 }
5091 }
5092 let accept_compression_encodings = self.accept_compression_encodings;
5093 let send_compression_encodings = self.send_compression_encodings;
5094 let max_decoding_message_size = self.max_decoding_message_size;
5095 let max_encoding_message_size = self.max_encoding_message_size;
5096 let inner = self.inner.clone();
5097 let fut = async move {
5098 let method = CommentOnSvc(inner);
5099 let codec = tonic_prost::ProstCodec::default();
5100 let mut grpc = tonic::server::Grpc::new(codec)
5101 .apply_compression_config(
5102 accept_compression_encodings,
5103 send_compression_encodings,
5104 )
5105 .apply_max_message_size_config(
5106 max_decoding_message_size,
5107 max_encoding_message_size,
5108 );
5109 let res = grpc.unary(method, req).await;
5110 Ok(res)
5111 };
5112 Box::pin(fut)
5113 }
5114 "/ddl_service.DdlService/AutoSchemaChange" => {
5115 #[allow(non_camel_case_types)]
5116 struct AutoSchemaChangeSvc<T: DdlService>(pub Arc<T>);
5117 impl<
5118 T: DdlService,
5119 > tonic::server::UnaryService<super::AutoSchemaChangeRequest>
5120 for AutoSchemaChangeSvc<T> {
5121 type Response = super::AutoSchemaChangeResponse;
5122 type Future = BoxFuture<
5123 tonic::Response<Self::Response>,
5124 tonic::Status,
5125 >;
5126 fn call(
5127 &mut self,
5128 request: tonic::Request<super::AutoSchemaChangeRequest>,
5129 ) -> Self::Future {
5130 let inner = Arc::clone(&self.0);
5131 let fut = async move {
5132 <T as DdlService>::auto_schema_change(&inner, request).await
5133 };
5134 Box::pin(fut)
5135 }
5136 }
5137 let accept_compression_encodings = self.accept_compression_encodings;
5138 let send_compression_encodings = self.send_compression_encodings;
5139 let max_decoding_message_size = self.max_decoding_message_size;
5140 let max_encoding_message_size = self.max_encoding_message_size;
5141 let inner = self.inner.clone();
5142 let fut = async move {
5143 let method = AutoSchemaChangeSvc(inner);
5144 let codec = tonic_prost::ProstCodec::default();
5145 let mut grpc = tonic::server::Grpc::new(codec)
5146 .apply_compression_config(
5147 accept_compression_encodings,
5148 send_compression_encodings,
5149 )
5150 .apply_max_message_size_config(
5151 max_decoding_message_size,
5152 max_encoding_message_size,
5153 );
5154 let res = grpc.unary(method, req).await;
5155 Ok(res)
5156 };
5157 Box::pin(fut)
5158 }
5159 "/ddl_service.DdlService/AlterSwapRename" => {
5160 #[allow(non_camel_case_types)]
5161 struct AlterSwapRenameSvc<T: DdlService>(pub Arc<T>);
5162 impl<
5163 T: DdlService,
5164 > tonic::server::UnaryService<super::AlterSwapRenameRequest>
5165 for AlterSwapRenameSvc<T> {
5166 type Response = super::AlterSwapRenameResponse;
5167 type Future = BoxFuture<
5168 tonic::Response<Self::Response>,
5169 tonic::Status,
5170 >;
5171 fn call(
5172 &mut self,
5173 request: tonic::Request<super::AlterSwapRenameRequest>,
5174 ) -> Self::Future {
5175 let inner = Arc::clone(&self.0);
5176 let fut = async move {
5177 <T as DdlService>::alter_swap_rename(&inner, request).await
5178 };
5179 Box::pin(fut)
5180 }
5181 }
5182 let accept_compression_encodings = self.accept_compression_encodings;
5183 let send_compression_encodings = self.send_compression_encodings;
5184 let max_decoding_message_size = self.max_decoding_message_size;
5185 let max_encoding_message_size = self.max_encoding_message_size;
5186 let inner = self.inner.clone();
5187 let fut = async move {
5188 let method = AlterSwapRenameSvc(inner);
5189 let codec = tonic_prost::ProstCodec::default();
5190 let mut grpc = tonic::server::Grpc::new(codec)
5191 .apply_compression_config(
5192 accept_compression_encodings,
5193 send_compression_encodings,
5194 )
5195 .apply_max_message_size_config(
5196 max_decoding_message_size,
5197 max_encoding_message_size,
5198 );
5199 let res = grpc.unary(method, req).await;
5200 Ok(res)
5201 };
5202 Box::pin(fut)
5203 }
5204 "/ddl_service.DdlService/AlterDatabaseParam" => {
5205 #[allow(non_camel_case_types)]
5206 struct AlterDatabaseParamSvc<T: DdlService>(pub Arc<T>);
5207 impl<
5208 T: DdlService,
5209 > tonic::server::UnaryService<super::AlterDatabaseParamRequest>
5210 for AlterDatabaseParamSvc<T> {
5211 type Response = super::AlterDatabaseParamResponse;
5212 type Future = BoxFuture<
5213 tonic::Response<Self::Response>,
5214 tonic::Status,
5215 >;
5216 fn call(
5217 &mut self,
5218 request: tonic::Request<super::AlterDatabaseParamRequest>,
5219 ) -> Self::Future {
5220 let inner = Arc::clone(&self.0);
5221 let fut = async move {
5222 <T as DdlService>::alter_database_param(&inner, request)
5223 .await
5224 };
5225 Box::pin(fut)
5226 }
5227 }
5228 let accept_compression_encodings = self.accept_compression_encodings;
5229 let send_compression_encodings = self.send_compression_encodings;
5230 let max_decoding_message_size = self.max_decoding_message_size;
5231 let max_encoding_message_size = self.max_encoding_message_size;
5232 let inner = self.inner.clone();
5233 let fut = async move {
5234 let method = AlterDatabaseParamSvc(inner);
5235 let codec = tonic_prost::ProstCodec::default();
5236 let mut grpc = tonic::server::Grpc::new(codec)
5237 .apply_compression_config(
5238 accept_compression_encodings,
5239 send_compression_encodings,
5240 )
5241 .apply_max_message_size_config(
5242 max_decoding_message_size,
5243 max_encoding_message_size,
5244 );
5245 let res = grpc.unary(method, req).await;
5246 Ok(res)
5247 };
5248 Box::pin(fut)
5249 }
5250 "/ddl_service.DdlService/CompactIcebergTable" => {
5251 #[allow(non_camel_case_types)]
5252 struct CompactIcebergTableSvc<T: DdlService>(pub Arc<T>);
5253 impl<
5254 T: DdlService,
5255 > tonic::server::UnaryService<super::CompactIcebergTableRequest>
5256 for CompactIcebergTableSvc<T> {
5257 type Response = super::CompactIcebergTableResponse;
5258 type Future = BoxFuture<
5259 tonic::Response<Self::Response>,
5260 tonic::Status,
5261 >;
5262 fn call(
5263 &mut self,
5264 request: tonic::Request<super::CompactIcebergTableRequest>,
5265 ) -> Self::Future {
5266 let inner = Arc::clone(&self.0);
5267 let fut = async move {
5268 <T as DdlService>::compact_iceberg_table(&inner, request)
5269 .await
5270 };
5271 Box::pin(fut)
5272 }
5273 }
5274 let accept_compression_encodings = self.accept_compression_encodings;
5275 let send_compression_encodings = self.send_compression_encodings;
5276 let max_decoding_message_size = self.max_decoding_message_size;
5277 let max_encoding_message_size = self.max_encoding_message_size;
5278 let inner = self.inner.clone();
5279 let fut = async move {
5280 let method = CompactIcebergTableSvc(inner);
5281 let codec = tonic_prost::ProstCodec::default();
5282 let mut grpc = tonic::server::Grpc::new(codec)
5283 .apply_compression_config(
5284 accept_compression_encodings,
5285 send_compression_encodings,
5286 )
5287 .apply_max_message_size_config(
5288 max_decoding_message_size,
5289 max_encoding_message_size,
5290 );
5291 let res = grpc.unary(method, req).await;
5292 Ok(res)
5293 };
5294 Box::pin(fut)
5295 }
5296 "/ddl_service.DdlService/ExpireIcebergTableSnapshots" => {
5297 #[allow(non_camel_case_types)]
5298 struct ExpireIcebergTableSnapshotsSvc<T: DdlService>(pub Arc<T>);
5299 impl<
5300 T: DdlService,
5301 > tonic::server::UnaryService<
5302 super::ExpireIcebergTableSnapshotsRequest,
5303 > for ExpireIcebergTableSnapshotsSvc<T> {
5304 type Response = super::ExpireIcebergTableSnapshotsResponse;
5305 type Future = BoxFuture<
5306 tonic::Response<Self::Response>,
5307 tonic::Status,
5308 >;
5309 fn call(
5310 &mut self,
5311 request: tonic::Request<
5312 super::ExpireIcebergTableSnapshotsRequest,
5313 >,
5314 ) -> Self::Future {
5315 let inner = Arc::clone(&self.0);
5316 let fut = async move {
5317 <T as DdlService>::expire_iceberg_table_snapshots(
5318 &inner,
5319 request,
5320 )
5321 .await
5322 };
5323 Box::pin(fut)
5324 }
5325 }
5326 let accept_compression_encodings = self.accept_compression_encodings;
5327 let send_compression_encodings = self.send_compression_encodings;
5328 let max_decoding_message_size = self.max_decoding_message_size;
5329 let max_encoding_message_size = self.max_encoding_message_size;
5330 let inner = self.inner.clone();
5331 let fut = async move {
5332 let method = ExpireIcebergTableSnapshotsSvc(inner);
5333 let codec = tonic_prost::ProstCodec::default();
5334 let mut grpc = tonic::server::Grpc::new(codec)
5335 .apply_compression_config(
5336 accept_compression_encodings,
5337 send_compression_encodings,
5338 )
5339 .apply_max_message_size_config(
5340 max_decoding_message_size,
5341 max_encoding_message_size,
5342 );
5343 let res = grpc.unary(method, req).await;
5344 Ok(res)
5345 };
5346 Box::pin(fut)
5347 }
5348 "/ddl_service.DdlService/AlterCdcTableBackfillParallelism" => {
5349 #[allow(non_camel_case_types)]
5350 struct AlterCdcTableBackfillParallelismSvc<T: DdlService>(
5351 pub Arc<T>,
5352 );
5353 impl<
5354 T: DdlService,
5355 > tonic::server::UnaryService<
5356 super::AlterCdcTableBackfillParallelismRequest,
5357 > for AlterCdcTableBackfillParallelismSvc<T> {
5358 type Response = super::AlterCdcTableBackfillParallelismResponse;
5359 type Future = BoxFuture<
5360 tonic::Response<Self::Response>,
5361 tonic::Status,
5362 >;
5363 fn call(
5364 &mut self,
5365 request: tonic::Request<
5366 super::AlterCdcTableBackfillParallelismRequest,
5367 >,
5368 ) -> Self::Future {
5369 let inner = Arc::clone(&self.0);
5370 let fut = async move {
5371 <T as DdlService>::alter_cdc_table_backfill_parallelism(
5372 &inner,
5373 request,
5374 )
5375 .await
5376 };
5377 Box::pin(fut)
5378 }
5379 }
5380 let accept_compression_encodings = self.accept_compression_encodings;
5381 let send_compression_encodings = self.send_compression_encodings;
5382 let max_decoding_message_size = self.max_decoding_message_size;
5383 let max_encoding_message_size = self.max_encoding_message_size;
5384 let inner = self.inner.clone();
5385 let fut = async move {
5386 let method = AlterCdcTableBackfillParallelismSvc(inner);
5387 let codec = tonic_prost::ProstCodec::default();
5388 let mut grpc = tonic::server::Grpc::new(codec)
5389 .apply_compression_config(
5390 accept_compression_encodings,
5391 send_compression_encodings,
5392 )
5393 .apply_max_message_size_config(
5394 max_decoding_message_size,
5395 max_encoding_message_size,
5396 );
5397 let res = grpc.unary(method, req).await;
5398 Ok(res)
5399 };
5400 Box::pin(fut)
5401 }
5402 "/ddl_service.DdlService/AlterStreamingJobConfig" => {
5403 #[allow(non_camel_case_types)]
5404 struct AlterStreamingJobConfigSvc<T: DdlService>(pub Arc<T>);
5405 impl<
5406 T: DdlService,
5407 > tonic::server::UnaryService<super::AlterStreamingJobConfigRequest>
5408 for AlterStreamingJobConfigSvc<T> {
5409 type Response = super::AlterStreamingJobConfigResponse;
5410 type Future = BoxFuture<
5411 tonic::Response<Self::Response>,
5412 tonic::Status,
5413 >;
5414 fn call(
5415 &mut self,
5416 request: tonic::Request<
5417 super::AlterStreamingJobConfigRequest,
5418 >,
5419 ) -> Self::Future {
5420 let inner = Arc::clone(&self.0);
5421 let fut = async move {
5422 <T as DdlService>::alter_streaming_job_config(
5423 &inner,
5424 request,
5425 )
5426 .await
5427 };
5428 Box::pin(fut)
5429 }
5430 }
5431 let accept_compression_encodings = self.accept_compression_encodings;
5432 let send_compression_encodings = self.send_compression_encodings;
5433 let max_decoding_message_size = self.max_decoding_message_size;
5434 let max_encoding_message_size = self.max_encoding_message_size;
5435 let inner = self.inner.clone();
5436 let fut = async move {
5437 let method = AlterStreamingJobConfigSvc(inner);
5438 let codec = tonic_prost::ProstCodec::default();
5439 let mut grpc = tonic::server::Grpc::new(codec)
5440 .apply_compression_config(
5441 accept_compression_encodings,
5442 send_compression_encodings,
5443 )
5444 .apply_max_message_size_config(
5445 max_decoding_message_size,
5446 max_encoding_message_size,
5447 );
5448 let res = grpc.unary(method, req).await;
5449 Ok(res)
5450 };
5451 Box::pin(fut)
5452 }
5453 _ => {
5454 Box::pin(async move {
5455 let mut response = http::Response::new(
5456 tonic::body::Body::default(),
5457 );
5458 let headers = response.headers_mut();
5459 headers
5460 .insert(
5461 tonic::Status::GRPC_STATUS,
5462 (tonic::Code::Unimplemented as i32).into(),
5463 );
5464 headers
5465 .insert(
5466 http::header::CONTENT_TYPE,
5467 tonic::metadata::GRPC_CONTENT_TYPE,
5468 );
5469 Ok(response)
5470 })
5471 }
5472 }
5473 }
5474 }
5475 impl<T> Clone for DdlServiceServer<T> {
5476 fn clone(&self) -> Self {
5477 let inner = self.inner.clone();
5478 Self {
5479 inner,
5480 accept_compression_encodings: self.accept_compression_encodings,
5481 send_compression_encodings: self.send_compression_encodings,
5482 max_decoding_message_size: self.max_decoding_message_size,
5483 max_encoding_message_size: self.max_encoding_message_size,
5484 }
5485 }
5486 }
5487 pub const SERVICE_NAME: &str = "ddl_service.DdlService";
5489 impl<T> tonic::server::NamedService for DdlServiceServer<T> {
5490 const NAME: &'static str = SERVICE_NAME;
5491 }
5492}