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