google_cloud_dataform_v1/
builder.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17pub mod dataform {
18    use crate::Result;
19
20    /// A builder for [Dataform][crate::client::Dataform].
21    ///
22    /// ```
23    /// # tokio_test::block_on(async {
24    /// # use google_cloud_dataform_v1::*;
25    /// # use builder::dataform::ClientBuilder;
26    /// # use client::Dataform;
27    /// let builder : ClientBuilder = Dataform::builder();
28    /// let client = builder
29    ///     .with_endpoint("https://dataform.googleapis.com")
30    ///     .build().await?;
31    /// # gax::client_builder::Result::<()>::Ok(()) });
32    /// ```
33    pub type ClientBuilder =
34        gax::client_builder::ClientBuilder<client::Factory, gaxi::options::Credentials>;
35
36    pub(crate) mod client {
37        use super::super::super::client::Dataform;
38        pub struct Factory;
39        impl gax::client_builder::internal::ClientFactory for Factory {
40            type Client = Dataform;
41            type Credentials = gaxi::options::Credentials;
42            async fn build(
43                self,
44                config: gaxi::options::ClientConfig,
45            ) -> gax::client_builder::Result<Self::Client> {
46                Self::Client::new(config).await
47            }
48        }
49    }
50
51    /// Common implementation for [crate::client::Dataform] request builders.
52    #[derive(Clone, Debug)]
53    pub(crate) struct RequestBuilder<R: std::default::Default> {
54        stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>,
55        request: R,
56        options: gax::options::RequestOptions,
57    }
58
59    impl<R> RequestBuilder<R>
60    where
61        R: std::default::Default,
62    {
63        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
64            Self {
65                stub,
66                request: R::default(),
67                options: gax::options::RequestOptions::default(),
68            }
69        }
70    }
71
72    /// The request builder for [Dataform::list_repositories][crate::client::Dataform::list_repositories] calls.
73    ///
74    /// # Example
75    /// ```no_run
76    /// # use google_cloud_dataform_v1::builder;
77    /// use builder::dataform::ListRepositories;
78    /// # tokio_test::block_on(async {
79    /// use gax::paginator::ItemPaginator;
80    ///
81    /// let builder = prepare_request_builder();
82    /// let mut items = builder.by_item();
83    /// while let Some(result) = items.next().await {
84    ///   let item = result?;
85    /// }
86    /// # gax::Result::<()>::Ok(()) });
87    ///
88    /// fn prepare_request_builder() -> ListRepositories {
89    ///   # panic!();
90    ///   // ... details omitted ...
91    /// }
92    /// ```
93    #[derive(Clone, Debug)]
94    pub struct ListRepositories(RequestBuilder<crate::model::ListRepositoriesRequest>);
95
96    impl ListRepositories {
97        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
98            Self(RequestBuilder::new(stub))
99        }
100
101        /// Sets the full request, replacing any prior values.
102        pub fn with_request<V: Into<crate::model::ListRepositoriesRequest>>(
103            mut self,
104            v: V,
105        ) -> Self {
106            self.0.request = v.into();
107            self
108        }
109
110        /// Sets all the options, replacing any prior values.
111        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
112            self.0.options = v.into();
113            self
114        }
115
116        /// Sends the request.
117        pub async fn send(self) -> Result<crate::model::ListRepositoriesResponse> {
118            (*self.0.stub)
119                .list_repositories(self.0.request, self.0.options)
120                .await
121                .map(gax::response::Response::into_body)
122        }
123
124        /// Streams each page in the collection.
125        pub fn by_page(
126            self,
127        ) -> impl gax::paginator::Paginator<crate::model::ListRepositoriesResponse, gax::error::Error>
128        {
129            use std::clone::Clone;
130            let token = self.0.request.page_token.clone();
131            let execute = move |token: String| {
132                let mut builder = self.clone();
133                builder.0.request = builder.0.request.set_page_token(token);
134                builder.send()
135            };
136            gax::paginator::internal::new_paginator(token, execute)
137        }
138
139        /// Streams each item in the collection.
140        pub fn by_item(
141            self,
142        ) -> impl gax::paginator::ItemPaginator<crate::model::ListRepositoriesResponse, gax::error::Error>
143        {
144            use gax::paginator::Paginator;
145            self.by_page().items()
146        }
147
148        /// Sets the value of [parent][crate::model::ListRepositoriesRequest::parent].
149        ///
150        /// This is a **required** field for requests.
151        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
152            self.0.request.parent = v.into();
153            self
154        }
155
156        /// Sets the value of [page_size][crate::model::ListRepositoriesRequest::page_size].
157        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
158            self.0.request.page_size = v.into();
159            self
160        }
161
162        /// Sets the value of [page_token][crate::model::ListRepositoriesRequest::page_token].
163        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
164            self.0.request.page_token = v.into();
165            self
166        }
167
168        /// Sets the value of [order_by][crate::model::ListRepositoriesRequest::order_by].
169        pub fn set_order_by<T: Into<std::string::String>>(mut self, v: T) -> Self {
170            self.0.request.order_by = v.into();
171            self
172        }
173
174        /// Sets the value of [filter][crate::model::ListRepositoriesRequest::filter].
175        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
176            self.0.request.filter = v.into();
177            self
178        }
179    }
180
181    #[doc(hidden)]
182    impl gax::options::internal::RequestBuilder for ListRepositories {
183        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
184            &mut self.0.options
185        }
186    }
187
188    /// The request builder for [Dataform::get_repository][crate::client::Dataform::get_repository] calls.
189    ///
190    /// # Example
191    /// ```no_run
192    /// # use google_cloud_dataform_v1::builder;
193    /// use builder::dataform::GetRepository;
194    /// # tokio_test::block_on(async {
195    ///
196    /// let builder = prepare_request_builder();
197    /// let response = builder.send().await?;
198    /// # gax::Result::<()>::Ok(()) });
199    ///
200    /// fn prepare_request_builder() -> GetRepository {
201    ///   # panic!();
202    ///   // ... details omitted ...
203    /// }
204    /// ```
205    #[derive(Clone, Debug)]
206    pub struct GetRepository(RequestBuilder<crate::model::GetRepositoryRequest>);
207
208    impl GetRepository {
209        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
210            Self(RequestBuilder::new(stub))
211        }
212
213        /// Sets the full request, replacing any prior values.
214        pub fn with_request<V: Into<crate::model::GetRepositoryRequest>>(mut self, v: V) -> Self {
215            self.0.request = v.into();
216            self
217        }
218
219        /// Sets all the options, replacing any prior values.
220        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
221            self.0.options = v.into();
222            self
223        }
224
225        /// Sends the request.
226        pub async fn send(self) -> Result<crate::model::Repository> {
227            (*self.0.stub)
228                .get_repository(self.0.request, self.0.options)
229                .await
230                .map(gax::response::Response::into_body)
231        }
232
233        /// Sets the value of [name][crate::model::GetRepositoryRequest::name].
234        ///
235        /// This is a **required** field for requests.
236        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
237            self.0.request.name = v.into();
238            self
239        }
240    }
241
242    #[doc(hidden)]
243    impl gax::options::internal::RequestBuilder for GetRepository {
244        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
245            &mut self.0.options
246        }
247    }
248
249    /// The request builder for [Dataform::create_repository][crate::client::Dataform::create_repository] calls.
250    ///
251    /// # Example
252    /// ```no_run
253    /// # use google_cloud_dataform_v1::builder;
254    /// use builder::dataform::CreateRepository;
255    /// # tokio_test::block_on(async {
256    ///
257    /// let builder = prepare_request_builder();
258    /// let response = builder.send().await?;
259    /// # gax::Result::<()>::Ok(()) });
260    ///
261    /// fn prepare_request_builder() -> CreateRepository {
262    ///   # panic!();
263    ///   // ... details omitted ...
264    /// }
265    /// ```
266    #[derive(Clone, Debug)]
267    pub struct CreateRepository(RequestBuilder<crate::model::CreateRepositoryRequest>);
268
269    impl CreateRepository {
270        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
271            Self(RequestBuilder::new(stub))
272        }
273
274        /// Sets the full request, replacing any prior values.
275        pub fn with_request<V: Into<crate::model::CreateRepositoryRequest>>(
276            mut self,
277            v: V,
278        ) -> Self {
279            self.0.request = v.into();
280            self
281        }
282
283        /// Sets all the options, replacing any prior values.
284        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
285            self.0.options = v.into();
286            self
287        }
288
289        /// Sends the request.
290        pub async fn send(self) -> Result<crate::model::Repository> {
291            (*self.0.stub)
292                .create_repository(self.0.request, self.0.options)
293                .await
294                .map(gax::response::Response::into_body)
295        }
296
297        /// Sets the value of [parent][crate::model::CreateRepositoryRequest::parent].
298        ///
299        /// This is a **required** field for requests.
300        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
301            self.0.request.parent = v.into();
302            self
303        }
304
305        /// Sets the value of [repository][crate::model::CreateRepositoryRequest::repository].
306        ///
307        /// This is a **required** field for requests.
308        pub fn set_repository<T>(mut self, v: T) -> Self
309        where
310            T: std::convert::Into<crate::model::Repository>,
311        {
312            self.0.request.repository = std::option::Option::Some(v.into());
313            self
314        }
315
316        /// Sets or clears the value of [repository][crate::model::CreateRepositoryRequest::repository].
317        ///
318        /// This is a **required** field for requests.
319        pub fn set_or_clear_repository<T>(mut self, v: std::option::Option<T>) -> Self
320        where
321            T: std::convert::Into<crate::model::Repository>,
322        {
323            self.0.request.repository = v.map(|x| x.into());
324            self
325        }
326
327        /// Sets the value of [repository_id][crate::model::CreateRepositoryRequest::repository_id].
328        ///
329        /// This is a **required** field for requests.
330        pub fn set_repository_id<T: Into<std::string::String>>(mut self, v: T) -> Self {
331            self.0.request.repository_id = v.into();
332            self
333        }
334    }
335
336    #[doc(hidden)]
337    impl gax::options::internal::RequestBuilder for CreateRepository {
338        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
339            &mut self.0.options
340        }
341    }
342
343    /// The request builder for [Dataform::update_repository][crate::client::Dataform::update_repository] calls.
344    ///
345    /// # Example
346    /// ```no_run
347    /// # use google_cloud_dataform_v1::builder;
348    /// use builder::dataform::UpdateRepository;
349    /// # tokio_test::block_on(async {
350    ///
351    /// let builder = prepare_request_builder();
352    /// let response = builder.send().await?;
353    /// # gax::Result::<()>::Ok(()) });
354    ///
355    /// fn prepare_request_builder() -> UpdateRepository {
356    ///   # panic!();
357    ///   // ... details omitted ...
358    /// }
359    /// ```
360    #[derive(Clone, Debug)]
361    pub struct UpdateRepository(RequestBuilder<crate::model::UpdateRepositoryRequest>);
362
363    impl UpdateRepository {
364        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
365            Self(RequestBuilder::new(stub))
366        }
367
368        /// Sets the full request, replacing any prior values.
369        pub fn with_request<V: Into<crate::model::UpdateRepositoryRequest>>(
370            mut self,
371            v: V,
372        ) -> Self {
373            self.0.request = v.into();
374            self
375        }
376
377        /// Sets all the options, replacing any prior values.
378        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
379            self.0.options = v.into();
380            self
381        }
382
383        /// Sends the request.
384        pub async fn send(self) -> Result<crate::model::Repository> {
385            (*self.0.stub)
386                .update_repository(self.0.request, self.0.options)
387                .await
388                .map(gax::response::Response::into_body)
389        }
390
391        /// Sets the value of [update_mask][crate::model::UpdateRepositoryRequest::update_mask].
392        pub fn set_update_mask<T>(mut self, v: T) -> Self
393        where
394            T: std::convert::Into<wkt::FieldMask>,
395        {
396            self.0.request.update_mask = std::option::Option::Some(v.into());
397            self
398        }
399
400        /// Sets or clears the value of [update_mask][crate::model::UpdateRepositoryRequest::update_mask].
401        pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
402        where
403            T: std::convert::Into<wkt::FieldMask>,
404        {
405            self.0.request.update_mask = v.map(|x| x.into());
406            self
407        }
408
409        /// Sets the value of [repository][crate::model::UpdateRepositoryRequest::repository].
410        ///
411        /// This is a **required** field for requests.
412        pub fn set_repository<T>(mut self, v: T) -> Self
413        where
414            T: std::convert::Into<crate::model::Repository>,
415        {
416            self.0.request.repository = std::option::Option::Some(v.into());
417            self
418        }
419
420        /// Sets or clears the value of [repository][crate::model::UpdateRepositoryRequest::repository].
421        ///
422        /// This is a **required** field for requests.
423        pub fn set_or_clear_repository<T>(mut self, v: std::option::Option<T>) -> Self
424        where
425            T: std::convert::Into<crate::model::Repository>,
426        {
427            self.0.request.repository = v.map(|x| x.into());
428            self
429        }
430    }
431
432    #[doc(hidden)]
433    impl gax::options::internal::RequestBuilder for UpdateRepository {
434        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
435            &mut self.0.options
436        }
437    }
438
439    /// The request builder for [Dataform::delete_repository][crate::client::Dataform::delete_repository] calls.
440    ///
441    /// # Example
442    /// ```no_run
443    /// # use google_cloud_dataform_v1::builder;
444    /// use builder::dataform::DeleteRepository;
445    /// # tokio_test::block_on(async {
446    ///
447    /// let builder = prepare_request_builder();
448    /// let response = builder.send().await?;
449    /// # gax::Result::<()>::Ok(()) });
450    ///
451    /// fn prepare_request_builder() -> DeleteRepository {
452    ///   # panic!();
453    ///   // ... details omitted ...
454    /// }
455    /// ```
456    #[derive(Clone, Debug)]
457    pub struct DeleteRepository(RequestBuilder<crate::model::DeleteRepositoryRequest>);
458
459    impl DeleteRepository {
460        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
461            Self(RequestBuilder::new(stub))
462        }
463
464        /// Sets the full request, replacing any prior values.
465        pub fn with_request<V: Into<crate::model::DeleteRepositoryRequest>>(
466            mut self,
467            v: V,
468        ) -> Self {
469            self.0.request = v.into();
470            self
471        }
472
473        /// Sets all the options, replacing any prior values.
474        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
475            self.0.options = v.into();
476            self
477        }
478
479        /// Sends the request.
480        pub async fn send(self) -> Result<()> {
481            (*self.0.stub)
482                .delete_repository(self.0.request, self.0.options)
483                .await
484                .map(gax::response::Response::into_body)
485        }
486
487        /// Sets the value of [name][crate::model::DeleteRepositoryRequest::name].
488        ///
489        /// This is a **required** field for requests.
490        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
491            self.0.request.name = v.into();
492            self
493        }
494
495        /// Sets the value of [force][crate::model::DeleteRepositoryRequest::force].
496        pub fn set_force<T: Into<bool>>(mut self, v: T) -> Self {
497            self.0.request.force = v.into();
498            self
499        }
500    }
501
502    #[doc(hidden)]
503    impl gax::options::internal::RequestBuilder for DeleteRepository {
504        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
505            &mut self.0.options
506        }
507    }
508
509    /// The request builder for [Dataform::commit_repository_changes][crate::client::Dataform::commit_repository_changes] calls.
510    ///
511    /// # Example
512    /// ```no_run
513    /// # use google_cloud_dataform_v1::builder;
514    /// use builder::dataform::CommitRepositoryChanges;
515    /// # tokio_test::block_on(async {
516    ///
517    /// let builder = prepare_request_builder();
518    /// let response = builder.send().await?;
519    /// # gax::Result::<()>::Ok(()) });
520    ///
521    /// fn prepare_request_builder() -> CommitRepositoryChanges {
522    ///   # panic!();
523    ///   // ... details omitted ...
524    /// }
525    /// ```
526    #[derive(Clone, Debug)]
527    pub struct CommitRepositoryChanges(
528        RequestBuilder<crate::model::CommitRepositoryChangesRequest>,
529    );
530
531    impl CommitRepositoryChanges {
532        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
533            Self(RequestBuilder::new(stub))
534        }
535
536        /// Sets the full request, replacing any prior values.
537        pub fn with_request<V: Into<crate::model::CommitRepositoryChangesRequest>>(
538            mut self,
539            v: V,
540        ) -> Self {
541            self.0.request = v.into();
542            self
543        }
544
545        /// Sets all the options, replacing any prior values.
546        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
547            self.0.options = v.into();
548            self
549        }
550
551        /// Sends the request.
552        pub async fn send(self) -> Result<crate::model::CommitRepositoryChangesResponse> {
553            (*self.0.stub)
554                .commit_repository_changes(self.0.request, self.0.options)
555                .await
556                .map(gax::response::Response::into_body)
557        }
558
559        /// Sets the value of [name][crate::model::CommitRepositoryChangesRequest::name].
560        ///
561        /// This is a **required** field for requests.
562        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
563            self.0.request.name = v.into();
564            self
565        }
566
567        /// Sets the value of [commit_metadata][crate::model::CommitRepositoryChangesRequest::commit_metadata].
568        ///
569        /// This is a **required** field for requests.
570        pub fn set_commit_metadata<T>(mut self, v: T) -> Self
571        where
572            T: std::convert::Into<crate::model::CommitMetadata>,
573        {
574            self.0.request.commit_metadata = std::option::Option::Some(v.into());
575            self
576        }
577
578        /// Sets or clears the value of [commit_metadata][crate::model::CommitRepositoryChangesRequest::commit_metadata].
579        ///
580        /// This is a **required** field for requests.
581        pub fn set_or_clear_commit_metadata<T>(mut self, v: std::option::Option<T>) -> Self
582        where
583            T: std::convert::Into<crate::model::CommitMetadata>,
584        {
585            self.0.request.commit_metadata = v.map(|x| x.into());
586            self
587        }
588
589        /// Sets the value of [required_head_commit_sha][crate::model::CommitRepositoryChangesRequest::required_head_commit_sha].
590        pub fn set_required_head_commit_sha<T: Into<std::string::String>>(mut self, v: T) -> Self {
591            self.0.request.required_head_commit_sha = v.into();
592            self
593        }
594
595        /// Sets the value of [file_operations][crate::model::CommitRepositoryChangesRequest::file_operations].
596        pub fn set_file_operations<T, K, V>(mut self, v: T) -> Self
597        where
598            T: std::iter::IntoIterator<Item = (K, V)>,
599            K: std::convert::Into<std::string::String>,
600            V: std::convert::Into<crate::model::commit_repository_changes_request::FileOperation>,
601        {
602            self.0.request.file_operations =
603                v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
604            self
605        }
606    }
607
608    #[doc(hidden)]
609    impl gax::options::internal::RequestBuilder for CommitRepositoryChanges {
610        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
611            &mut self.0.options
612        }
613    }
614
615    /// The request builder for [Dataform::read_repository_file][crate::client::Dataform::read_repository_file] calls.
616    ///
617    /// # Example
618    /// ```no_run
619    /// # use google_cloud_dataform_v1::builder;
620    /// use builder::dataform::ReadRepositoryFile;
621    /// # tokio_test::block_on(async {
622    ///
623    /// let builder = prepare_request_builder();
624    /// let response = builder.send().await?;
625    /// # gax::Result::<()>::Ok(()) });
626    ///
627    /// fn prepare_request_builder() -> ReadRepositoryFile {
628    ///   # panic!();
629    ///   // ... details omitted ...
630    /// }
631    /// ```
632    #[derive(Clone, Debug)]
633    pub struct ReadRepositoryFile(RequestBuilder<crate::model::ReadRepositoryFileRequest>);
634
635    impl ReadRepositoryFile {
636        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
637            Self(RequestBuilder::new(stub))
638        }
639
640        /// Sets the full request, replacing any prior values.
641        pub fn with_request<V: Into<crate::model::ReadRepositoryFileRequest>>(
642            mut self,
643            v: V,
644        ) -> Self {
645            self.0.request = v.into();
646            self
647        }
648
649        /// Sets all the options, replacing any prior values.
650        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
651            self.0.options = v.into();
652            self
653        }
654
655        /// Sends the request.
656        pub async fn send(self) -> Result<crate::model::ReadRepositoryFileResponse> {
657            (*self.0.stub)
658                .read_repository_file(self.0.request, self.0.options)
659                .await
660                .map(gax::response::Response::into_body)
661        }
662
663        /// Sets the value of [name][crate::model::ReadRepositoryFileRequest::name].
664        ///
665        /// This is a **required** field for requests.
666        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
667            self.0.request.name = v.into();
668            self
669        }
670
671        /// Sets the value of [commit_sha][crate::model::ReadRepositoryFileRequest::commit_sha].
672        pub fn set_commit_sha<T: Into<std::string::String>>(mut self, v: T) -> Self {
673            self.0.request.commit_sha = v.into();
674            self
675        }
676
677        /// Sets the value of [path][crate::model::ReadRepositoryFileRequest::path].
678        ///
679        /// This is a **required** field for requests.
680        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
681            self.0.request.path = v.into();
682            self
683        }
684    }
685
686    #[doc(hidden)]
687    impl gax::options::internal::RequestBuilder for ReadRepositoryFile {
688        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
689            &mut self.0.options
690        }
691    }
692
693    /// The request builder for [Dataform::query_repository_directory_contents][crate::client::Dataform::query_repository_directory_contents] calls.
694    ///
695    /// # Example
696    /// ```no_run
697    /// # use google_cloud_dataform_v1::builder;
698    /// use builder::dataform::QueryRepositoryDirectoryContents;
699    /// # tokio_test::block_on(async {
700    /// use gax::paginator::ItemPaginator;
701    ///
702    /// let builder = prepare_request_builder();
703    /// let mut items = builder.by_item();
704    /// while let Some(result) = items.next().await {
705    ///   let item = result?;
706    /// }
707    /// # gax::Result::<()>::Ok(()) });
708    ///
709    /// fn prepare_request_builder() -> QueryRepositoryDirectoryContents {
710    ///   # panic!();
711    ///   // ... details omitted ...
712    /// }
713    /// ```
714    #[derive(Clone, Debug)]
715    pub struct QueryRepositoryDirectoryContents(
716        RequestBuilder<crate::model::QueryRepositoryDirectoryContentsRequest>,
717    );
718
719    impl QueryRepositoryDirectoryContents {
720        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
721            Self(RequestBuilder::new(stub))
722        }
723
724        /// Sets the full request, replacing any prior values.
725        pub fn with_request<V: Into<crate::model::QueryRepositoryDirectoryContentsRequest>>(
726            mut self,
727            v: V,
728        ) -> Self {
729            self.0.request = v.into();
730            self
731        }
732
733        /// Sets all the options, replacing any prior values.
734        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
735            self.0.options = v.into();
736            self
737        }
738
739        /// Sends the request.
740        pub async fn send(self) -> Result<crate::model::QueryRepositoryDirectoryContentsResponse> {
741            (*self.0.stub)
742                .query_repository_directory_contents(self.0.request, self.0.options)
743                .await
744                .map(gax::response::Response::into_body)
745        }
746
747        /// Streams each page in the collection.
748        pub fn by_page(
749            self,
750        ) -> impl gax::paginator::Paginator<
751            crate::model::QueryRepositoryDirectoryContentsResponse,
752            gax::error::Error,
753        > {
754            use std::clone::Clone;
755            let token = self.0.request.page_token.clone();
756            let execute = move |token: String| {
757                let mut builder = self.clone();
758                builder.0.request = builder.0.request.set_page_token(token);
759                builder.send()
760            };
761            gax::paginator::internal::new_paginator(token, execute)
762        }
763
764        /// Streams each item in the collection.
765        pub fn by_item(
766            self,
767        ) -> impl gax::paginator::ItemPaginator<
768            crate::model::QueryRepositoryDirectoryContentsResponse,
769            gax::error::Error,
770        > {
771            use gax::paginator::Paginator;
772            self.by_page().items()
773        }
774
775        /// Sets the value of [name][crate::model::QueryRepositoryDirectoryContentsRequest::name].
776        ///
777        /// This is a **required** field for requests.
778        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
779            self.0.request.name = v.into();
780            self
781        }
782
783        /// Sets the value of [commit_sha][crate::model::QueryRepositoryDirectoryContentsRequest::commit_sha].
784        pub fn set_commit_sha<T: Into<std::string::String>>(mut self, v: T) -> Self {
785            self.0.request.commit_sha = v.into();
786            self
787        }
788
789        /// Sets the value of [path][crate::model::QueryRepositoryDirectoryContentsRequest::path].
790        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
791            self.0.request.path = v.into();
792            self
793        }
794
795        /// Sets the value of [page_size][crate::model::QueryRepositoryDirectoryContentsRequest::page_size].
796        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
797            self.0.request.page_size = v.into();
798            self
799        }
800
801        /// Sets the value of [page_token][crate::model::QueryRepositoryDirectoryContentsRequest::page_token].
802        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
803            self.0.request.page_token = v.into();
804            self
805        }
806    }
807
808    #[doc(hidden)]
809    impl gax::options::internal::RequestBuilder for QueryRepositoryDirectoryContents {
810        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
811            &mut self.0.options
812        }
813    }
814
815    /// The request builder for [Dataform::fetch_repository_history][crate::client::Dataform::fetch_repository_history] calls.
816    ///
817    /// # Example
818    /// ```no_run
819    /// # use google_cloud_dataform_v1::builder;
820    /// use builder::dataform::FetchRepositoryHistory;
821    /// # tokio_test::block_on(async {
822    /// use gax::paginator::ItemPaginator;
823    ///
824    /// let builder = prepare_request_builder();
825    /// let mut items = builder.by_item();
826    /// while let Some(result) = items.next().await {
827    ///   let item = result?;
828    /// }
829    /// # gax::Result::<()>::Ok(()) });
830    ///
831    /// fn prepare_request_builder() -> FetchRepositoryHistory {
832    ///   # panic!();
833    ///   // ... details omitted ...
834    /// }
835    /// ```
836    #[derive(Clone, Debug)]
837    pub struct FetchRepositoryHistory(RequestBuilder<crate::model::FetchRepositoryHistoryRequest>);
838
839    impl FetchRepositoryHistory {
840        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
841            Self(RequestBuilder::new(stub))
842        }
843
844        /// Sets the full request, replacing any prior values.
845        pub fn with_request<V: Into<crate::model::FetchRepositoryHistoryRequest>>(
846            mut self,
847            v: V,
848        ) -> Self {
849            self.0.request = v.into();
850            self
851        }
852
853        /// Sets all the options, replacing any prior values.
854        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
855            self.0.options = v.into();
856            self
857        }
858
859        /// Sends the request.
860        pub async fn send(self) -> Result<crate::model::FetchRepositoryHistoryResponse> {
861            (*self.0.stub)
862                .fetch_repository_history(self.0.request, self.0.options)
863                .await
864                .map(gax::response::Response::into_body)
865        }
866
867        /// Streams each page in the collection.
868        pub fn by_page(
869            self,
870        ) -> impl gax::paginator::Paginator<
871            crate::model::FetchRepositoryHistoryResponse,
872            gax::error::Error,
873        > {
874            use std::clone::Clone;
875            let token = self.0.request.page_token.clone();
876            let execute = move |token: String| {
877                let mut builder = self.clone();
878                builder.0.request = builder.0.request.set_page_token(token);
879                builder.send()
880            };
881            gax::paginator::internal::new_paginator(token, execute)
882        }
883
884        /// Streams each item in the collection.
885        pub fn by_item(
886            self,
887        ) -> impl gax::paginator::ItemPaginator<
888            crate::model::FetchRepositoryHistoryResponse,
889            gax::error::Error,
890        > {
891            use gax::paginator::Paginator;
892            self.by_page().items()
893        }
894
895        /// Sets the value of [name][crate::model::FetchRepositoryHistoryRequest::name].
896        ///
897        /// This is a **required** field for requests.
898        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
899            self.0.request.name = v.into();
900            self
901        }
902
903        /// Sets the value of [page_size][crate::model::FetchRepositoryHistoryRequest::page_size].
904        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
905            self.0.request.page_size = v.into();
906            self
907        }
908
909        /// Sets the value of [page_token][crate::model::FetchRepositoryHistoryRequest::page_token].
910        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
911            self.0.request.page_token = v.into();
912            self
913        }
914    }
915
916    #[doc(hidden)]
917    impl gax::options::internal::RequestBuilder for FetchRepositoryHistory {
918        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
919            &mut self.0.options
920        }
921    }
922
923    /// The request builder for [Dataform::compute_repository_access_token_status][crate::client::Dataform::compute_repository_access_token_status] calls.
924    ///
925    /// # Example
926    /// ```no_run
927    /// # use google_cloud_dataform_v1::builder;
928    /// use builder::dataform::ComputeRepositoryAccessTokenStatus;
929    /// # tokio_test::block_on(async {
930    ///
931    /// let builder = prepare_request_builder();
932    /// let response = builder.send().await?;
933    /// # gax::Result::<()>::Ok(()) });
934    ///
935    /// fn prepare_request_builder() -> ComputeRepositoryAccessTokenStatus {
936    ///   # panic!();
937    ///   // ... details omitted ...
938    /// }
939    /// ```
940    #[derive(Clone, Debug)]
941    pub struct ComputeRepositoryAccessTokenStatus(
942        RequestBuilder<crate::model::ComputeRepositoryAccessTokenStatusRequest>,
943    );
944
945    impl ComputeRepositoryAccessTokenStatus {
946        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
947            Self(RequestBuilder::new(stub))
948        }
949
950        /// Sets the full request, replacing any prior values.
951        pub fn with_request<V: Into<crate::model::ComputeRepositoryAccessTokenStatusRequest>>(
952            mut self,
953            v: V,
954        ) -> Self {
955            self.0.request = v.into();
956            self
957        }
958
959        /// Sets all the options, replacing any prior values.
960        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
961            self.0.options = v.into();
962            self
963        }
964
965        /// Sends the request.
966        pub async fn send(
967            self,
968        ) -> Result<crate::model::ComputeRepositoryAccessTokenStatusResponse> {
969            (*self.0.stub)
970                .compute_repository_access_token_status(self.0.request, self.0.options)
971                .await
972                .map(gax::response::Response::into_body)
973        }
974
975        /// Sets the value of [name][crate::model::ComputeRepositoryAccessTokenStatusRequest::name].
976        ///
977        /// This is a **required** field for requests.
978        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
979            self.0.request.name = v.into();
980            self
981        }
982    }
983
984    #[doc(hidden)]
985    impl gax::options::internal::RequestBuilder for ComputeRepositoryAccessTokenStatus {
986        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
987            &mut self.0.options
988        }
989    }
990
991    /// The request builder for [Dataform::fetch_remote_branches][crate::client::Dataform::fetch_remote_branches] calls.
992    ///
993    /// # Example
994    /// ```no_run
995    /// # use google_cloud_dataform_v1::builder;
996    /// use builder::dataform::FetchRemoteBranches;
997    /// # tokio_test::block_on(async {
998    ///
999    /// let builder = prepare_request_builder();
1000    /// let response = builder.send().await?;
1001    /// # gax::Result::<()>::Ok(()) });
1002    ///
1003    /// fn prepare_request_builder() -> FetchRemoteBranches {
1004    ///   # panic!();
1005    ///   // ... details omitted ...
1006    /// }
1007    /// ```
1008    #[derive(Clone, Debug)]
1009    pub struct FetchRemoteBranches(RequestBuilder<crate::model::FetchRemoteBranchesRequest>);
1010
1011    impl FetchRemoteBranches {
1012        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1013            Self(RequestBuilder::new(stub))
1014        }
1015
1016        /// Sets the full request, replacing any prior values.
1017        pub fn with_request<V: Into<crate::model::FetchRemoteBranchesRequest>>(
1018            mut self,
1019            v: V,
1020        ) -> Self {
1021            self.0.request = v.into();
1022            self
1023        }
1024
1025        /// Sets all the options, replacing any prior values.
1026        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1027            self.0.options = v.into();
1028            self
1029        }
1030
1031        /// Sends the request.
1032        pub async fn send(self) -> Result<crate::model::FetchRemoteBranchesResponse> {
1033            (*self.0.stub)
1034                .fetch_remote_branches(self.0.request, self.0.options)
1035                .await
1036                .map(gax::response::Response::into_body)
1037        }
1038
1039        /// Sets the value of [name][crate::model::FetchRemoteBranchesRequest::name].
1040        ///
1041        /// This is a **required** field for requests.
1042        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1043            self.0.request.name = v.into();
1044            self
1045        }
1046    }
1047
1048    #[doc(hidden)]
1049    impl gax::options::internal::RequestBuilder for FetchRemoteBranches {
1050        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1051            &mut self.0.options
1052        }
1053    }
1054
1055    /// The request builder for [Dataform::list_workspaces][crate::client::Dataform::list_workspaces] calls.
1056    ///
1057    /// # Example
1058    /// ```no_run
1059    /// # use google_cloud_dataform_v1::builder;
1060    /// use builder::dataform::ListWorkspaces;
1061    /// # tokio_test::block_on(async {
1062    /// use gax::paginator::ItemPaginator;
1063    ///
1064    /// let builder = prepare_request_builder();
1065    /// let mut items = builder.by_item();
1066    /// while let Some(result) = items.next().await {
1067    ///   let item = result?;
1068    /// }
1069    /// # gax::Result::<()>::Ok(()) });
1070    ///
1071    /// fn prepare_request_builder() -> ListWorkspaces {
1072    ///   # panic!();
1073    ///   // ... details omitted ...
1074    /// }
1075    /// ```
1076    #[derive(Clone, Debug)]
1077    pub struct ListWorkspaces(RequestBuilder<crate::model::ListWorkspacesRequest>);
1078
1079    impl ListWorkspaces {
1080        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1081            Self(RequestBuilder::new(stub))
1082        }
1083
1084        /// Sets the full request, replacing any prior values.
1085        pub fn with_request<V: Into<crate::model::ListWorkspacesRequest>>(mut self, v: V) -> Self {
1086            self.0.request = v.into();
1087            self
1088        }
1089
1090        /// Sets all the options, replacing any prior values.
1091        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1092            self.0.options = v.into();
1093            self
1094        }
1095
1096        /// Sends the request.
1097        pub async fn send(self) -> Result<crate::model::ListWorkspacesResponse> {
1098            (*self.0.stub)
1099                .list_workspaces(self.0.request, self.0.options)
1100                .await
1101                .map(gax::response::Response::into_body)
1102        }
1103
1104        /// Streams each page in the collection.
1105        pub fn by_page(
1106            self,
1107        ) -> impl gax::paginator::Paginator<crate::model::ListWorkspacesResponse, gax::error::Error>
1108        {
1109            use std::clone::Clone;
1110            let token = self.0.request.page_token.clone();
1111            let execute = move |token: String| {
1112                let mut builder = self.clone();
1113                builder.0.request = builder.0.request.set_page_token(token);
1114                builder.send()
1115            };
1116            gax::paginator::internal::new_paginator(token, execute)
1117        }
1118
1119        /// Streams each item in the collection.
1120        pub fn by_item(
1121            self,
1122        ) -> impl gax::paginator::ItemPaginator<crate::model::ListWorkspacesResponse, gax::error::Error>
1123        {
1124            use gax::paginator::Paginator;
1125            self.by_page().items()
1126        }
1127
1128        /// Sets the value of [parent][crate::model::ListWorkspacesRequest::parent].
1129        ///
1130        /// This is a **required** field for requests.
1131        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
1132            self.0.request.parent = v.into();
1133            self
1134        }
1135
1136        /// Sets the value of [page_size][crate::model::ListWorkspacesRequest::page_size].
1137        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
1138            self.0.request.page_size = v.into();
1139            self
1140        }
1141
1142        /// Sets the value of [page_token][crate::model::ListWorkspacesRequest::page_token].
1143        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
1144            self.0.request.page_token = v.into();
1145            self
1146        }
1147
1148        /// Sets the value of [order_by][crate::model::ListWorkspacesRequest::order_by].
1149        pub fn set_order_by<T: Into<std::string::String>>(mut self, v: T) -> Self {
1150            self.0.request.order_by = v.into();
1151            self
1152        }
1153
1154        /// Sets the value of [filter][crate::model::ListWorkspacesRequest::filter].
1155        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
1156            self.0.request.filter = v.into();
1157            self
1158        }
1159    }
1160
1161    #[doc(hidden)]
1162    impl gax::options::internal::RequestBuilder for ListWorkspaces {
1163        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1164            &mut self.0.options
1165        }
1166    }
1167
1168    /// The request builder for [Dataform::get_workspace][crate::client::Dataform::get_workspace] calls.
1169    ///
1170    /// # Example
1171    /// ```no_run
1172    /// # use google_cloud_dataform_v1::builder;
1173    /// use builder::dataform::GetWorkspace;
1174    /// # tokio_test::block_on(async {
1175    ///
1176    /// let builder = prepare_request_builder();
1177    /// let response = builder.send().await?;
1178    /// # gax::Result::<()>::Ok(()) });
1179    ///
1180    /// fn prepare_request_builder() -> GetWorkspace {
1181    ///   # panic!();
1182    ///   // ... details omitted ...
1183    /// }
1184    /// ```
1185    #[derive(Clone, Debug)]
1186    pub struct GetWorkspace(RequestBuilder<crate::model::GetWorkspaceRequest>);
1187
1188    impl GetWorkspace {
1189        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1190            Self(RequestBuilder::new(stub))
1191        }
1192
1193        /// Sets the full request, replacing any prior values.
1194        pub fn with_request<V: Into<crate::model::GetWorkspaceRequest>>(mut self, v: V) -> Self {
1195            self.0.request = v.into();
1196            self
1197        }
1198
1199        /// Sets all the options, replacing any prior values.
1200        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1201            self.0.options = v.into();
1202            self
1203        }
1204
1205        /// Sends the request.
1206        pub async fn send(self) -> Result<crate::model::Workspace> {
1207            (*self.0.stub)
1208                .get_workspace(self.0.request, self.0.options)
1209                .await
1210                .map(gax::response::Response::into_body)
1211        }
1212
1213        /// Sets the value of [name][crate::model::GetWorkspaceRequest::name].
1214        ///
1215        /// This is a **required** field for requests.
1216        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1217            self.0.request.name = v.into();
1218            self
1219        }
1220    }
1221
1222    #[doc(hidden)]
1223    impl gax::options::internal::RequestBuilder for GetWorkspace {
1224        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1225            &mut self.0.options
1226        }
1227    }
1228
1229    /// The request builder for [Dataform::create_workspace][crate::client::Dataform::create_workspace] calls.
1230    ///
1231    /// # Example
1232    /// ```no_run
1233    /// # use google_cloud_dataform_v1::builder;
1234    /// use builder::dataform::CreateWorkspace;
1235    /// # tokio_test::block_on(async {
1236    ///
1237    /// let builder = prepare_request_builder();
1238    /// let response = builder.send().await?;
1239    /// # gax::Result::<()>::Ok(()) });
1240    ///
1241    /// fn prepare_request_builder() -> CreateWorkspace {
1242    ///   # panic!();
1243    ///   // ... details omitted ...
1244    /// }
1245    /// ```
1246    #[derive(Clone, Debug)]
1247    pub struct CreateWorkspace(RequestBuilder<crate::model::CreateWorkspaceRequest>);
1248
1249    impl CreateWorkspace {
1250        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1251            Self(RequestBuilder::new(stub))
1252        }
1253
1254        /// Sets the full request, replacing any prior values.
1255        pub fn with_request<V: Into<crate::model::CreateWorkspaceRequest>>(mut self, v: V) -> Self {
1256            self.0.request = v.into();
1257            self
1258        }
1259
1260        /// Sets all the options, replacing any prior values.
1261        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1262            self.0.options = v.into();
1263            self
1264        }
1265
1266        /// Sends the request.
1267        pub async fn send(self) -> Result<crate::model::Workspace> {
1268            (*self.0.stub)
1269                .create_workspace(self.0.request, self.0.options)
1270                .await
1271                .map(gax::response::Response::into_body)
1272        }
1273
1274        /// Sets the value of [parent][crate::model::CreateWorkspaceRequest::parent].
1275        ///
1276        /// This is a **required** field for requests.
1277        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
1278            self.0.request.parent = v.into();
1279            self
1280        }
1281
1282        /// Sets the value of [workspace][crate::model::CreateWorkspaceRequest::workspace].
1283        ///
1284        /// This is a **required** field for requests.
1285        pub fn set_workspace<T>(mut self, v: T) -> Self
1286        where
1287            T: std::convert::Into<crate::model::Workspace>,
1288        {
1289            self.0.request.workspace = std::option::Option::Some(v.into());
1290            self
1291        }
1292
1293        /// Sets or clears the value of [workspace][crate::model::CreateWorkspaceRequest::workspace].
1294        ///
1295        /// This is a **required** field for requests.
1296        pub fn set_or_clear_workspace<T>(mut self, v: std::option::Option<T>) -> Self
1297        where
1298            T: std::convert::Into<crate::model::Workspace>,
1299        {
1300            self.0.request.workspace = v.map(|x| x.into());
1301            self
1302        }
1303
1304        /// Sets the value of [workspace_id][crate::model::CreateWorkspaceRequest::workspace_id].
1305        ///
1306        /// This is a **required** field for requests.
1307        pub fn set_workspace_id<T: Into<std::string::String>>(mut self, v: T) -> Self {
1308            self.0.request.workspace_id = v.into();
1309            self
1310        }
1311    }
1312
1313    #[doc(hidden)]
1314    impl gax::options::internal::RequestBuilder for CreateWorkspace {
1315        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1316            &mut self.0.options
1317        }
1318    }
1319
1320    /// The request builder for [Dataform::delete_workspace][crate::client::Dataform::delete_workspace] calls.
1321    ///
1322    /// # Example
1323    /// ```no_run
1324    /// # use google_cloud_dataform_v1::builder;
1325    /// use builder::dataform::DeleteWorkspace;
1326    /// # tokio_test::block_on(async {
1327    ///
1328    /// let builder = prepare_request_builder();
1329    /// let response = builder.send().await?;
1330    /// # gax::Result::<()>::Ok(()) });
1331    ///
1332    /// fn prepare_request_builder() -> DeleteWorkspace {
1333    ///   # panic!();
1334    ///   // ... details omitted ...
1335    /// }
1336    /// ```
1337    #[derive(Clone, Debug)]
1338    pub struct DeleteWorkspace(RequestBuilder<crate::model::DeleteWorkspaceRequest>);
1339
1340    impl DeleteWorkspace {
1341        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1342            Self(RequestBuilder::new(stub))
1343        }
1344
1345        /// Sets the full request, replacing any prior values.
1346        pub fn with_request<V: Into<crate::model::DeleteWorkspaceRequest>>(mut self, v: V) -> Self {
1347            self.0.request = v.into();
1348            self
1349        }
1350
1351        /// Sets all the options, replacing any prior values.
1352        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1353            self.0.options = v.into();
1354            self
1355        }
1356
1357        /// Sends the request.
1358        pub async fn send(self) -> Result<()> {
1359            (*self.0.stub)
1360                .delete_workspace(self.0.request, self.0.options)
1361                .await
1362                .map(gax::response::Response::into_body)
1363        }
1364
1365        /// Sets the value of [name][crate::model::DeleteWorkspaceRequest::name].
1366        ///
1367        /// This is a **required** field for requests.
1368        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1369            self.0.request.name = v.into();
1370            self
1371        }
1372    }
1373
1374    #[doc(hidden)]
1375    impl gax::options::internal::RequestBuilder for DeleteWorkspace {
1376        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1377            &mut self.0.options
1378        }
1379    }
1380
1381    /// The request builder for [Dataform::install_npm_packages][crate::client::Dataform::install_npm_packages] calls.
1382    ///
1383    /// # Example
1384    /// ```no_run
1385    /// # use google_cloud_dataform_v1::builder;
1386    /// use builder::dataform::InstallNpmPackages;
1387    /// # tokio_test::block_on(async {
1388    ///
1389    /// let builder = prepare_request_builder();
1390    /// let response = builder.send().await?;
1391    /// # gax::Result::<()>::Ok(()) });
1392    ///
1393    /// fn prepare_request_builder() -> InstallNpmPackages {
1394    ///   # panic!();
1395    ///   // ... details omitted ...
1396    /// }
1397    /// ```
1398    #[derive(Clone, Debug)]
1399    pub struct InstallNpmPackages(RequestBuilder<crate::model::InstallNpmPackagesRequest>);
1400
1401    impl InstallNpmPackages {
1402        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1403            Self(RequestBuilder::new(stub))
1404        }
1405
1406        /// Sets the full request, replacing any prior values.
1407        pub fn with_request<V: Into<crate::model::InstallNpmPackagesRequest>>(
1408            mut self,
1409            v: V,
1410        ) -> Self {
1411            self.0.request = v.into();
1412            self
1413        }
1414
1415        /// Sets all the options, replacing any prior values.
1416        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1417            self.0.options = v.into();
1418            self
1419        }
1420
1421        /// Sends the request.
1422        pub async fn send(self) -> Result<crate::model::InstallNpmPackagesResponse> {
1423            (*self.0.stub)
1424                .install_npm_packages(self.0.request, self.0.options)
1425                .await
1426                .map(gax::response::Response::into_body)
1427        }
1428
1429        /// Sets the value of [workspace][crate::model::InstallNpmPackagesRequest::workspace].
1430        ///
1431        /// This is a **required** field for requests.
1432        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
1433            self.0.request.workspace = v.into();
1434            self
1435        }
1436    }
1437
1438    #[doc(hidden)]
1439    impl gax::options::internal::RequestBuilder for InstallNpmPackages {
1440        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1441            &mut self.0.options
1442        }
1443    }
1444
1445    /// The request builder for [Dataform::pull_git_commits][crate::client::Dataform::pull_git_commits] calls.
1446    ///
1447    /// # Example
1448    /// ```no_run
1449    /// # use google_cloud_dataform_v1::builder;
1450    /// use builder::dataform::PullGitCommits;
1451    /// # tokio_test::block_on(async {
1452    ///
1453    /// let builder = prepare_request_builder();
1454    /// let response = builder.send().await?;
1455    /// # gax::Result::<()>::Ok(()) });
1456    ///
1457    /// fn prepare_request_builder() -> PullGitCommits {
1458    ///   # panic!();
1459    ///   // ... details omitted ...
1460    /// }
1461    /// ```
1462    #[derive(Clone, Debug)]
1463    pub struct PullGitCommits(RequestBuilder<crate::model::PullGitCommitsRequest>);
1464
1465    impl PullGitCommits {
1466        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1467            Self(RequestBuilder::new(stub))
1468        }
1469
1470        /// Sets the full request, replacing any prior values.
1471        pub fn with_request<V: Into<crate::model::PullGitCommitsRequest>>(mut self, v: V) -> Self {
1472            self.0.request = v.into();
1473            self
1474        }
1475
1476        /// Sets all the options, replacing any prior values.
1477        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1478            self.0.options = v.into();
1479            self
1480        }
1481
1482        /// Sends the request.
1483        pub async fn send(self) -> Result<crate::model::PullGitCommitsResponse> {
1484            (*self.0.stub)
1485                .pull_git_commits(self.0.request, self.0.options)
1486                .await
1487                .map(gax::response::Response::into_body)
1488        }
1489
1490        /// Sets the value of [name][crate::model::PullGitCommitsRequest::name].
1491        ///
1492        /// This is a **required** field for requests.
1493        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1494            self.0.request.name = v.into();
1495            self
1496        }
1497
1498        /// Sets the value of [remote_branch][crate::model::PullGitCommitsRequest::remote_branch].
1499        pub fn set_remote_branch<T: Into<std::string::String>>(mut self, v: T) -> Self {
1500            self.0.request.remote_branch = v.into();
1501            self
1502        }
1503
1504        /// Sets the value of [author][crate::model::PullGitCommitsRequest::author].
1505        ///
1506        /// This is a **required** field for requests.
1507        pub fn set_author<T>(mut self, v: T) -> Self
1508        where
1509            T: std::convert::Into<crate::model::CommitAuthor>,
1510        {
1511            self.0.request.author = std::option::Option::Some(v.into());
1512            self
1513        }
1514
1515        /// Sets or clears the value of [author][crate::model::PullGitCommitsRequest::author].
1516        ///
1517        /// This is a **required** field for requests.
1518        pub fn set_or_clear_author<T>(mut self, v: std::option::Option<T>) -> Self
1519        where
1520            T: std::convert::Into<crate::model::CommitAuthor>,
1521        {
1522            self.0.request.author = v.map(|x| x.into());
1523            self
1524        }
1525    }
1526
1527    #[doc(hidden)]
1528    impl gax::options::internal::RequestBuilder for PullGitCommits {
1529        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1530            &mut self.0.options
1531        }
1532    }
1533
1534    /// The request builder for [Dataform::push_git_commits][crate::client::Dataform::push_git_commits] calls.
1535    ///
1536    /// # Example
1537    /// ```no_run
1538    /// # use google_cloud_dataform_v1::builder;
1539    /// use builder::dataform::PushGitCommits;
1540    /// # tokio_test::block_on(async {
1541    ///
1542    /// let builder = prepare_request_builder();
1543    /// let response = builder.send().await?;
1544    /// # gax::Result::<()>::Ok(()) });
1545    ///
1546    /// fn prepare_request_builder() -> PushGitCommits {
1547    ///   # panic!();
1548    ///   // ... details omitted ...
1549    /// }
1550    /// ```
1551    #[derive(Clone, Debug)]
1552    pub struct PushGitCommits(RequestBuilder<crate::model::PushGitCommitsRequest>);
1553
1554    impl PushGitCommits {
1555        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1556            Self(RequestBuilder::new(stub))
1557        }
1558
1559        /// Sets the full request, replacing any prior values.
1560        pub fn with_request<V: Into<crate::model::PushGitCommitsRequest>>(mut self, v: V) -> Self {
1561            self.0.request = v.into();
1562            self
1563        }
1564
1565        /// Sets all the options, replacing any prior values.
1566        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1567            self.0.options = v.into();
1568            self
1569        }
1570
1571        /// Sends the request.
1572        pub async fn send(self) -> Result<crate::model::PushGitCommitsResponse> {
1573            (*self.0.stub)
1574                .push_git_commits(self.0.request, self.0.options)
1575                .await
1576                .map(gax::response::Response::into_body)
1577        }
1578
1579        /// Sets the value of [name][crate::model::PushGitCommitsRequest::name].
1580        ///
1581        /// This is a **required** field for requests.
1582        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1583            self.0.request.name = v.into();
1584            self
1585        }
1586
1587        /// Sets the value of [remote_branch][crate::model::PushGitCommitsRequest::remote_branch].
1588        pub fn set_remote_branch<T: Into<std::string::String>>(mut self, v: T) -> Self {
1589            self.0.request.remote_branch = v.into();
1590            self
1591        }
1592    }
1593
1594    #[doc(hidden)]
1595    impl gax::options::internal::RequestBuilder for PushGitCommits {
1596        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1597            &mut self.0.options
1598        }
1599    }
1600
1601    /// The request builder for [Dataform::fetch_file_git_statuses][crate::client::Dataform::fetch_file_git_statuses] calls.
1602    ///
1603    /// # Example
1604    /// ```no_run
1605    /// # use google_cloud_dataform_v1::builder;
1606    /// use builder::dataform::FetchFileGitStatuses;
1607    /// # tokio_test::block_on(async {
1608    ///
1609    /// let builder = prepare_request_builder();
1610    /// let response = builder.send().await?;
1611    /// # gax::Result::<()>::Ok(()) });
1612    ///
1613    /// fn prepare_request_builder() -> FetchFileGitStatuses {
1614    ///   # panic!();
1615    ///   // ... details omitted ...
1616    /// }
1617    /// ```
1618    #[derive(Clone, Debug)]
1619    pub struct FetchFileGitStatuses(RequestBuilder<crate::model::FetchFileGitStatusesRequest>);
1620
1621    impl FetchFileGitStatuses {
1622        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1623            Self(RequestBuilder::new(stub))
1624        }
1625
1626        /// Sets the full request, replacing any prior values.
1627        pub fn with_request<V: Into<crate::model::FetchFileGitStatusesRequest>>(
1628            mut self,
1629            v: V,
1630        ) -> Self {
1631            self.0.request = v.into();
1632            self
1633        }
1634
1635        /// Sets all the options, replacing any prior values.
1636        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1637            self.0.options = v.into();
1638            self
1639        }
1640
1641        /// Sends the request.
1642        pub async fn send(self) -> Result<crate::model::FetchFileGitStatusesResponse> {
1643            (*self.0.stub)
1644                .fetch_file_git_statuses(self.0.request, self.0.options)
1645                .await
1646                .map(gax::response::Response::into_body)
1647        }
1648
1649        /// Sets the value of [name][crate::model::FetchFileGitStatusesRequest::name].
1650        ///
1651        /// This is a **required** field for requests.
1652        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1653            self.0.request.name = v.into();
1654            self
1655        }
1656    }
1657
1658    #[doc(hidden)]
1659    impl gax::options::internal::RequestBuilder for FetchFileGitStatuses {
1660        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1661            &mut self.0.options
1662        }
1663    }
1664
1665    /// The request builder for [Dataform::fetch_git_ahead_behind][crate::client::Dataform::fetch_git_ahead_behind] calls.
1666    ///
1667    /// # Example
1668    /// ```no_run
1669    /// # use google_cloud_dataform_v1::builder;
1670    /// use builder::dataform::FetchGitAheadBehind;
1671    /// # tokio_test::block_on(async {
1672    ///
1673    /// let builder = prepare_request_builder();
1674    /// let response = builder.send().await?;
1675    /// # gax::Result::<()>::Ok(()) });
1676    ///
1677    /// fn prepare_request_builder() -> FetchGitAheadBehind {
1678    ///   # panic!();
1679    ///   // ... details omitted ...
1680    /// }
1681    /// ```
1682    #[derive(Clone, Debug)]
1683    pub struct FetchGitAheadBehind(RequestBuilder<crate::model::FetchGitAheadBehindRequest>);
1684
1685    impl FetchGitAheadBehind {
1686        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1687            Self(RequestBuilder::new(stub))
1688        }
1689
1690        /// Sets the full request, replacing any prior values.
1691        pub fn with_request<V: Into<crate::model::FetchGitAheadBehindRequest>>(
1692            mut self,
1693            v: V,
1694        ) -> Self {
1695            self.0.request = v.into();
1696            self
1697        }
1698
1699        /// Sets all the options, replacing any prior values.
1700        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1701            self.0.options = v.into();
1702            self
1703        }
1704
1705        /// Sends the request.
1706        pub async fn send(self) -> Result<crate::model::FetchGitAheadBehindResponse> {
1707            (*self.0.stub)
1708                .fetch_git_ahead_behind(self.0.request, self.0.options)
1709                .await
1710                .map(gax::response::Response::into_body)
1711        }
1712
1713        /// Sets the value of [name][crate::model::FetchGitAheadBehindRequest::name].
1714        ///
1715        /// This is a **required** field for requests.
1716        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1717            self.0.request.name = v.into();
1718            self
1719        }
1720
1721        /// Sets the value of [remote_branch][crate::model::FetchGitAheadBehindRequest::remote_branch].
1722        pub fn set_remote_branch<T: Into<std::string::String>>(mut self, v: T) -> Self {
1723            self.0.request.remote_branch = v.into();
1724            self
1725        }
1726    }
1727
1728    #[doc(hidden)]
1729    impl gax::options::internal::RequestBuilder for FetchGitAheadBehind {
1730        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1731            &mut self.0.options
1732        }
1733    }
1734
1735    /// The request builder for [Dataform::commit_workspace_changes][crate::client::Dataform::commit_workspace_changes] calls.
1736    ///
1737    /// # Example
1738    /// ```no_run
1739    /// # use google_cloud_dataform_v1::builder;
1740    /// use builder::dataform::CommitWorkspaceChanges;
1741    /// # tokio_test::block_on(async {
1742    ///
1743    /// let builder = prepare_request_builder();
1744    /// let response = builder.send().await?;
1745    /// # gax::Result::<()>::Ok(()) });
1746    ///
1747    /// fn prepare_request_builder() -> CommitWorkspaceChanges {
1748    ///   # panic!();
1749    ///   // ... details omitted ...
1750    /// }
1751    /// ```
1752    #[derive(Clone, Debug)]
1753    pub struct CommitWorkspaceChanges(RequestBuilder<crate::model::CommitWorkspaceChangesRequest>);
1754
1755    impl CommitWorkspaceChanges {
1756        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1757            Self(RequestBuilder::new(stub))
1758        }
1759
1760        /// Sets the full request, replacing any prior values.
1761        pub fn with_request<V: Into<crate::model::CommitWorkspaceChangesRequest>>(
1762            mut self,
1763            v: V,
1764        ) -> Self {
1765            self.0.request = v.into();
1766            self
1767        }
1768
1769        /// Sets all the options, replacing any prior values.
1770        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1771            self.0.options = v.into();
1772            self
1773        }
1774
1775        /// Sends the request.
1776        pub async fn send(self) -> Result<crate::model::CommitWorkspaceChangesResponse> {
1777            (*self.0.stub)
1778                .commit_workspace_changes(self.0.request, self.0.options)
1779                .await
1780                .map(gax::response::Response::into_body)
1781        }
1782
1783        /// Sets the value of [name][crate::model::CommitWorkspaceChangesRequest::name].
1784        ///
1785        /// This is a **required** field for requests.
1786        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1787            self.0.request.name = v.into();
1788            self
1789        }
1790
1791        /// Sets the value of [author][crate::model::CommitWorkspaceChangesRequest::author].
1792        ///
1793        /// This is a **required** field for requests.
1794        pub fn set_author<T>(mut self, v: T) -> Self
1795        where
1796            T: std::convert::Into<crate::model::CommitAuthor>,
1797        {
1798            self.0.request.author = std::option::Option::Some(v.into());
1799            self
1800        }
1801
1802        /// Sets or clears the value of [author][crate::model::CommitWorkspaceChangesRequest::author].
1803        ///
1804        /// This is a **required** field for requests.
1805        pub fn set_or_clear_author<T>(mut self, v: std::option::Option<T>) -> Self
1806        where
1807            T: std::convert::Into<crate::model::CommitAuthor>,
1808        {
1809            self.0.request.author = v.map(|x| x.into());
1810            self
1811        }
1812
1813        /// Sets the value of [commit_message][crate::model::CommitWorkspaceChangesRequest::commit_message].
1814        pub fn set_commit_message<T: Into<std::string::String>>(mut self, v: T) -> Self {
1815            self.0.request.commit_message = v.into();
1816            self
1817        }
1818
1819        /// Sets the value of [paths][crate::model::CommitWorkspaceChangesRequest::paths].
1820        pub fn set_paths<T, V>(mut self, v: T) -> Self
1821        where
1822            T: std::iter::IntoIterator<Item = V>,
1823            V: std::convert::Into<std::string::String>,
1824        {
1825            use std::iter::Iterator;
1826            self.0.request.paths = v.into_iter().map(|i| i.into()).collect();
1827            self
1828        }
1829    }
1830
1831    #[doc(hidden)]
1832    impl gax::options::internal::RequestBuilder for CommitWorkspaceChanges {
1833        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1834            &mut self.0.options
1835        }
1836    }
1837
1838    /// The request builder for [Dataform::reset_workspace_changes][crate::client::Dataform::reset_workspace_changes] calls.
1839    ///
1840    /// # Example
1841    /// ```no_run
1842    /// # use google_cloud_dataform_v1::builder;
1843    /// use builder::dataform::ResetWorkspaceChanges;
1844    /// # tokio_test::block_on(async {
1845    ///
1846    /// let builder = prepare_request_builder();
1847    /// let response = builder.send().await?;
1848    /// # gax::Result::<()>::Ok(()) });
1849    ///
1850    /// fn prepare_request_builder() -> ResetWorkspaceChanges {
1851    ///   # panic!();
1852    ///   // ... details omitted ...
1853    /// }
1854    /// ```
1855    #[derive(Clone, Debug)]
1856    pub struct ResetWorkspaceChanges(RequestBuilder<crate::model::ResetWorkspaceChangesRequest>);
1857
1858    impl ResetWorkspaceChanges {
1859        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1860            Self(RequestBuilder::new(stub))
1861        }
1862
1863        /// Sets the full request, replacing any prior values.
1864        pub fn with_request<V: Into<crate::model::ResetWorkspaceChangesRequest>>(
1865            mut self,
1866            v: V,
1867        ) -> Self {
1868            self.0.request = v.into();
1869            self
1870        }
1871
1872        /// Sets all the options, replacing any prior values.
1873        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1874            self.0.options = v.into();
1875            self
1876        }
1877
1878        /// Sends the request.
1879        pub async fn send(self) -> Result<crate::model::ResetWorkspaceChangesResponse> {
1880            (*self.0.stub)
1881                .reset_workspace_changes(self.0.request, self.0.options)
1882                .await
1883                .map(gax::response::Response::into_body)
1884        }
1885
1886        /// Sets the value of [name][crate::model::ResetWorkspaceChangesRequest::name].
1887        ///
1888        /// This is a **required** field for requests.
1889        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
1890            self.0.request.name = v.into();
1891            self
1892        }
1893
1894        /// Sets the value of [paths][crate::model::ResetWorkspaceChangesRequest::paths].
1895        pub fn set_paths<T, V>(mut self, v: T) -> Self
1896        where
1897            T: std::iter::IntoIterator<Item = V>,
1898            V: std::convert::Into<std::string::String>,
1899        {
1900            use std::iter::Iterator;
1901            self.0.request.paths = v.into_iter().map(|i| i.into()).collect();
1902            self
1903        }
1904
1905        /// Sets the value of [clean][crate::model::ResetWorkspaceChangesRequest::clean].
1906        pub fn set_clean<T: Into<bool>>(mut self, v: T) -> Self {
1907            self.0.request.clean = v.into();
1908            self
1909        }
1910    }
1911
1912    #[doc(hidden)]
1913    impl gax::options::internal::RequestBuilder for ResetWorkspaceChanges {
1914        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1915            &mut self.0.options
1916        }
1917    }
1918
1919    /// The request builder for [Dataform::fetch_file_diff][crate::client::Dataform::fetch_file_diff] calls.
1920    ///
1921    /// # Example
1922    /// ```no_run
1923    /// # use google_cloud_dataform_v1::builder;
1924    /// use builder::dataform::FetchFileDiff;
1925    /// # tokio_test::block_on(async {
1926    ///
1927    /// let builder = prepare_request_builder();
1928    /// let response = builder.send().await?;
1929    /// # gax::Result::<()>::Ok(()) });
1930    ///
1931    /// fn prepare_request_builder() -> FetchFileDiff {
1932    ///   # panic!();
1933    ///   // ... details omitted ...
1934    /// }
1935    /// ```
1936    #[derive(Clone, Debug)]
1937    pub struct FetchFileDiff(RequestBuilder<crate::model::FetchFileDiffRequest>);
1938
1939    impl FetchFileDiff {
1940        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
1941            Self(RequestBuilder::new(stub))
1942        }
1943
1944        /// Sets the full request, replacing any prior values.
1945        pub fn with_request<V: Into<crate::model::FetchFileDiffRequest>>(mut self, v: V) -> Self {
1946            self.0.request = v.into();
1947            self
1948        }
1949
1950        /// Sets all the options, replacing any prior values.
1951        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
1952            self.0.options = v.into();
1953            self
1954        }
1955
1956        /// Sends the request.
1957        pub async fn send(self) -> Result<crate::model::FetchFileDiffResponse> {
1958            (*self.0.stub)
1959                .fetch_file_diff(self.0.request, self.0.options)
1960                .await
1961                .map(gax::response::Response::into_body)
1962        }
1963
1964        /// Sets the value of [workspace][crate::model::FetchFileDiffRequest::workspace].
1965        ///
1966        /// This is a **required** field for requests.
1967        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
1968            self.0.request.workspace = v.into();
1969            self
1970        }
1971
1972        /// Sets the value of [path][crate::model::FetchFileDiffRequest::path].
1973        ///
1974        /// This is a **required** field for requests.
1975        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
1976            self.0.request.path = v.into();
1977            self
1978        }
1979    }
1980
1981    #[doc(hidden)]
1982    impl gax::options::internal::RequestBuilder for FetchFileDiff {
1983        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
1984            &mut self.0.options
1985        }
1986    }
1987
1988    /// The request builder for [Dataform::query_directory_contents][crate::client::Dataform::query_directory_contents] calls.
1989    ///
1990    /// # Example
1991    /// ```no_run
1992    /// # use google_cloud_dataform_v1::builder;
1993    /// use builder::dataform::QueryDirectoryContents;
1994    /// # tokio_test::block_on(async {
1995    /// use gax::paginator::ItemPaginator;
1996    ///
1997    /// let builder = prepare_request_builder();
1998    /// let mut items = builder.by_item();
1999    /// while let Some(result) = items.next().await {
2000    ///   let item = result?;
2001    /// }
2002    /// # gax::Result::<()>::Ok(()) });
2003    ///
2004    /// fn prepare_request_builder() -> QueryDirectoryContents {
2005    ///   # panic!();
2006    ///   // ... details omitted ...
2007    /// }
2008    /// ```
2009    #[derive(Clone, Debug)]
2010    pub struct QueryDirectoryContents(RequestBuilder<crate::model::QueryDirectoryContentsRequest>);
2011
2012    impl QueryDirectoryContents {
2013        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2014            Self(RequestBuilder::new(stub))
2015        }
2016
2017        /// Sets the full request, replacing any prior values.
2018        pub fn with_request<V: Into<crate::model::QueryDirectoryContentsRequest>>(
2019            mut self,
2020            v: V,
2021        ) -> Self {
2022            self.0.request = v.into();
2023            self
2024        }
2025
2026        /// Sets all the options, replacing any prior values.
2027        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2028            self.0.options = v.into();
2029            self
2030        }
2031
2032        /// Sends the request.
2033        pub async fn send(self) -> Result<crate::model::QueryDirectoryContentsResponse> {
2034            (*self.0.stub)
2035                .query_directory_contents(self.0.request, self.0.options)
2036                .await
2037                .map(gax::response::Response::into_body)
2038        }
2039
2040        /// Streams each page in the collection.
2041        pub fn by_page(
2042            self,
2043        ) -> impl gax::paginator::Paginator<
2044            crate::model::QueryDirectoryContentsResponse,
2045            gax::error::Error,
2046        > {
2047            use std::clone::Clone;
2048            let token = self.0.request.page_token.clone();
2049            let execute = move |token: String| {
2050                let mut builder = self.clone();
2051                builder.0.request = builder.0.request.set_page_token(token);
2052                builder.send()
2053            };
2054            gax::paginator::internal::new_paginator(token, execute)
2055        }
2056
2057        /// Streams each item in the collection.
2058        pub fn by_item(
2059            self,
2060        ) -> impl gax::paginator::ItemPaginator<
2061            crate::model::QueryDirectoryContentsResponse,
2062            gax::error::Error,
2063        > {
2064            use gax::paginator::Paginator;
2065            self.by_page().items()
2066        }
2067
2068        /// Sets the value of [workspace][crate::model::QueryDirectoryContentsRequest::workspace].
2069        ///
2070        /// This is a **required** field for requests.
2071        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2072            self.0.request.workspace = v.into();
2073            self
2074        }
2075
2076        /// Sets the value of [path][crate::model::QueryDirectoryContentsRequest::path].
2077        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2078            self.0.request.path = v.into();
2079            self
2080        }
2081
2082        /// Sets the value of [page_size][crate::model::QueryDirectoryContentsRequest::page_size].
2083        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
2084            self.0.request.page_size = v.into();
2085            self
2086        }
2087
2088        /// Sets the value of [page_token][crate::model::QueryDirectoryContentsRequest::page_token].
2089        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
2090            self.0.request.page_token = v.into();
2091            self
2092        }
2093    }
2094
2095    #[doc(hidden)]
2096    impl gax::options::internal::RequestBuilder for QueryDirectoryContents {
2097        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2098            &mut self.0.options
2099        }
2100    }
2101
2102    /// The request builder for [Dataform::search_files][crate::client::Dataform::search_files] calls.
2103    ///
2104    /// # Example
2105    /// ```no_run
2106    /// # use google_cloud_dataform_v1::builder;
2107    /// use builder::dataform::SearchFiles;
2108    /// # tokio_test::block_on(async {
2109    /// use gax::paginator::ItemPaginator;
2110    ///
2111    /// let builder = prepare_request_builder();
2112    /// let mut items = builder.by_item();
2113    /// while let Some(result) = items.next().await {
2114    ///   let item = result?;
2115    /// }
2116    /// # gax::Result::<()>::Ok(()) });
2117    ///
2118    /// fn prepare_request_builder() -> SearchFiles {
2119    ///   # panic!();
2120    ///   // ... details omitted ...
2121    /// }
2122    /// ```
2123    #[derive(Clone, Debug)]
2124    pub struct SearchFiles(RequestBuilder<crate::model::SearchFilesRequest>);
2125
2126    impl SearchFiles {
2127        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2128            Self(RequestBuilder::new(stub))
2129        }
2130
2131        /// Sets the full request, replacing any prior values.
2132        pub fn with_request<V: Into<crate::model::SearchFilesRequest>>(mut self, v: V) -> Self {
2133            self.0.request = v.into();
2134            self
2135        }
2136
2137        /// Sets all the options, replacing any prior values.
2138        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2139            self.0.options = v.into();
2140            self
2141        }
2142
2143        /// Sends the request.
2144        pub async fn send(self) -> Result<crate::model::SearchFilesResponse> {
2145            (*self.0.stub)
2146                .search_files(self.0.request, self.0.options)
2147                .await
2148                .map(gax::response::Response::into_body)
2149        }
2150
2151        /// Streams each page in the collection.
2152        pub fn by_page(
2153            self,
2154        ) -> impl gax::paginator::Paginator<crate::model::SearchFilesResponse, gax::error::Error>
2155        {
2156            use std::clone::Clone;
2157            let token = self.0.request.page_token.clone();
2158            let execute = move |token: String| {
2159                let mut builder = self.clone();
2160                builder.0.request = builder.0.request.set_page_token(token);
2161                builder.send()
2162            };
2163            gax::paginator::internal::new_paginator(token, execute)
2164        }
2165
2166        /// Streams each item in the collection.
2167        pub fn by_item(
2168            self,
2169        ) -> impl gax::paginator::ItemPaginator<crate::model::SearchFilesResponse, gax::error::Error>
2170        {
2171            use gax::paginator::Paginator;
2172            self.by_page().items()
2173        }
2174
2175        /// Sets the value of [workspace][crate::model::SearchFilesRequest::workspace].
2176        ///
2177        /// This is a **required** field for requests.
2178        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2179            self.0.request.workspace = v.into();
2180            self
2181        }
2182
2183        /// Sets the value of [page_size][crate::model::SearchFilesRequest::page_size].
2184        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
2185            self.0.request.page_size = v.into();
2186            self
2187        }
2188
2189        /// Sets the value of [page_token][crate::model::SearchFilesRequest::page_token].
2190        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
2191            self.0.request.page_token = v.into();
2192            self
2193        }
2194
2195        /// Sets the value of [filter][crate::model::SearchFilesRequest::filter].
2196        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
2197            self.0.request.filter = v.into();
2198            self
2199        }
2200    }
2201
2202    #[doc(hidden)]
2203    impl gax::options::internal::RequestBuilder for SearchFiles {
2204        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2205            &mut self.0.options
2206        }
2207    }
2208
2209    /// The request builder for [Dataform::make_directory][crate::client::Dataform::make_directory] calls.
2210    ///
2211    /// # Example
2212    /// ```no_run
2213    /// # use google_cloud_dataform_v1::builder;
2214    /// use builder::dataform::MakeDirectory;
2215    /// # tokio_test::block_on(async {
2216    ///
2217    /// let builder = prepare_request_builder();
2218    /// let response = builder.send().await?;
2219    /// # gax::Result::<()>::Ok(()) });
2220    ///
2221    /// fn prepare_request_builder() -> MakeDirectory {
2222    ///   # panic!();
2223    ///   // ... details omitted ...
2224    /// }
2225    /// ```
2226    #[derive(Clone, Debug)]
2227    pub struct MakeDirectory(RequestBuilder<crate::model::MakeDirectoryRequest>);
2228
2229    impl MakeDirectory {
2230        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2231            Self(RequestBuilder::new(stub))
2232        }
2233
2234        /// Sets the full request, replacing any prior values.
2235        pub fn with_request<V: Into<crate::model::MakeDirectoryRequest>>(mut self, v: V) -> Self {
2236            self.0.request = v.into();
2237            self
2238        }
2239
2240        /// Sets all the options, replacing any prior values.
2241        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2242            self.0.options = v.into();
2243            self
2244        }
2245
2246        /// Sends the request.
2247        pub async fn send(self) -> Result<crate::model::MakeDirectoryResponse> {
2248            (*self.0.stub)
2249                .make_directory(self.0.request, self.0.options)
2250                .await
2251                .map(gax::response::Response::into_body)
2252        }
2253
2254        /// Sets the value of [workspace][crate::model::MakeDirectoryRequest::workspace].
2255        ///
2256        /// This is a **required** field for requests.
2257        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2258            self.0.request.workspace = v.into();
2259            self
2260        }
2261
2262        /// Sets the value of [path][crate::model::MakeDirectoryRequest::path].
2263        ///
2264        /// This is a **required** field for requests.
2265        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2266            self.0.request.path = v.into();
2267            self
2268        }
2269    }
2270
2271    #[doc(hidden)]
2272    impl gax::options::internal::RequestBuilder for MakeDirectory {
2273        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2274            &mut self.0.options
2275        }
2276    }
2277
2278    /// The request builder for [Dataform::remove_directory][crate::client::Dataform::remove_directory] calls.
2279    ///
2280    /// # Example
2281    /// ```no_run
2282    /// # use google_cloud_dataform_v1::builder;
2283    /// use builder::dataform::RemoveDirectory;
2284    /// # tokio_test::block_on(async {
2285    ///
2286    /// let builder = prepare_request_builder();
2287    /// let response = builder.send().await?;
2288    /// # gax::Result::<()>::Ok(()) });
2289    ///
2290    /// fn prepare_request_builder() -> RemoveDirectory {
2291    ///   # panic!();
2292    ///   // ... details omitted ...
2293    /// }
2294    /// ```
2295    #[derive(Clone, Debug)]
2296    pub struct RemoveDirectory(RequestBuilder<crate::model::RemoveDirectoryRequest>);
2297
2298    impl RemoveDirectory {
2299        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2300            Self(RequestBuilder::new(stub))
2301        }
2302
2303        /// Sets the full request, replacing any prior values.
2304        pub fn with_request<V: Into<crate::model::RemoveDirectoryRequest>>(mut self, v: V) -> Self {
2305            self.0.request = v.into();
2306            self
2307        }
2308
2309        /// Sets all the options, replacing any prior values.
2310        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2311            self.0.options = v.into();
2312            self
2313        }
2314
2315        /// Sends the request.
2316        pub async fn send(self) -> Result<crate::model::RemoveDirectoryResponse> {
2317            (*self.0.stub)
2318                .remove_directory(self.0.request, self.0.options)
2319                .await
2320                .map(gax::response::Response::into_body)
2321        }
2322
2323        /// Sets the value of [workspace][crate::model::RemoveDirectoryRequest::workspace].
2324        ///
2325        /// This is a **required** field for requests.
2326        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2327            self.0.request.workspace = v.into();
2328            self
2329        }
2330
2331        /// Sets the value of [path][crate::model::RemoveDirectoryRequest::path].
2332        ///
2333        /// This is a **required** field for requests.
2334        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2335            self.0.request.path = v.into();
2336            self
2337        }
2338    }
2339
2340    #[doc(hidden)]
2341    impl gax::options::internal::RequestBuilder for RemoveDirectory {
2342        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2343            &mut self.0.options
2344        }
2345    }
2346
2347    /// The request builder for [Dataform::move_directory][crate::client::Dataform::move_directory] calls.
2348    ///
2349    /// # Example
2350    /// ```no_run
2351    /// # use google_cloud_dataform_v1::builder;
2352    /// use builder::dataform::MoveDirectory;
2353    /// # tokio_test::block_on(async {
2354    ///
2355    /// let builder = prepare_request_builder();
2356    /// let response = builder.send().await?;
2357    /// # gax::Result::<()>::Ok(()) });
2358    ///
2359    /// fn prepare_request_builder() -> MoveDirectory {
2360    ///   # panic!();
2361    ///   // ... details omitted ...
2362    /// }
2363    /// ```
2364    #[derive(Clone, Debug)]
2365    pub struct MoveDirectory(RequestBuilder<crate::model::MoveDirectoryRequest>);
2366
2367    impl MoveDirectory {
2368        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2369            Self(RequestBuilder::new(stub))
2370        }
2371
2372        /// Sets the full request, replacing any prior values.
2373        pub fn with_request<V: Into<crate::model::MoveDirectoryRequest>>(mut self, v: V) -> Self {
2374            self.0.request = v.into();
2375            self
2376        }
2377
2378        /// Sets all the options, replacing any prior values.
2379        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2380            self.0.options = v.into();
2381            self
2382        }
2383
2384        /// Sends the request.
2385        pub async fn send(self) -> Result<crate::model::MoveDirectoryResponse> {
2386            (*self.0.stub)
2387                .move_directory(self.0.request, self.0.options)
2388                .await
2389                .map(gax::response::Response::into_body)
2390        }
2391
2392        /// Sets the value of [workspace][crate::model::MoveDirectoryRequest::workspace].
2393        ///
2394        /// This is a **required** field for requests.
2395        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2396            self.0.request.workspace = v.into();
2397            self
2398        }
2399
2400        /// Sets the value of [path][crate::model::MoveDirectoryRequest::path].
2401        ///
2402        /// This is a **required** field for requests.
2403        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2404            self.0.request.path = v.into();
2405            self
2406        }
2407
2408        /// Sets the value of [new_path][crate::model::MoveDirectoryRequest::new_path].
2409        ///
2410        /// This is a **required** field for requests.
2411        pub fn set_new_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2412            self.0.request.new_path = v.into();
2413            self
2414        }
2415    }
2416
2417    #[doc(hidden)]
2418    impl gax::options::internal::RequestBuilder for MoveDirectory {
2419        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2420            &mut self.0.options
2421        }
2422    }
2423
2424    /// The request builder for [Dataform::read_file][crate::client::Dataform::read_file] calls.
2425    ///
2426    /// # Example
2427    /// ```no_run
2428    /// # use google_cloud_dataform_v1::builder;
2429    /// use builder::dataform::ReadFile;
2430    /// # tokio_test::block_on(async {
2431    ///
2432    /// let builder = prepare_request_builder();
2433    /// let response = builder.send().await?;
2434    /// # gax::Result::<()>::Ok(()) });
2435    ///
2436    /// fn prepare_request_builder() -> ReadFile {
2437    ///   # panic!();
2438    ///   // ... details omitted ...
2439    /// }
2440    /// ```
2441    #[derive(Clone, Debug)]
2442    pub struct ReadFile(RequestBuilder<crate::model::ReadFileRequest>);
2443
2444    impl ReadFile {
2445        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2446            Self(RequestBuilder::new(stub))
2447        }
2448
2449        /// Sets the full request, replacing any prior values.
2450        pub fn with_request<V: Into<crate::model::ReadFileRequest>>(mut self, v: V) -> Self {
2451            self.0.request = v.into();
2452            self
2453        }
2454
2455        /// Sets all the options, replacing any prior values.
2456        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2457            self.0.options = v.into();
2458            self
2459        }
2460
2461        /// Sends the request.
2462        pub async fn send(self) -> Result<crate::model::ReadFileResponse> {
2463            (*self.0.stub)
2464                .read_file(self.0.request, self.0.options)
2465                .await
2466                .map(gax::response::Response::into_body)
2467        }
2468
2469        /// Sets the value of [workspace][crate::model::ReadFileRequest::workspace].
2470        ///
2471        /// This is a **required** field for requests.
2472        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2473            self.0.request.workspace = v.into();
2474            self
2475        }
2476
2477        /// Sets the value of [path][crate::model::ReadFileRequest::path].
2478        ///
2479        /// This is a **required** field for requests.
2480        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2481            self.0.request.path = v.into();
2482            self
2483        }
2484
2485        /// Sets the value of [revision][crate::model::ReadFileRequest::revision].
2486        pub fn set_revision<T: Into<std::string::String>>(mut self, v: T) -> Self {
2487            self.0.request.revision = v.into();
2488            self
2489        }
2490    }
2491
2492    #[doc(hidden)]
2493    impl gax::options::internal::RequestBuilder for ReadFile {
2494        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2495            &mut self.0.options
2496        }
2497    }
2498
2499    /// The request builder for [Dataform::remove_file][crate::client::Dataform::remove_file] calls.
2500    ///
2501    /// # Example
2502    /// ```no_run
2503    /// # use google_cloud_dataform_v1::builder;
2504    /// use builder::dataform::RemoveFile;
2505    /// # tokio_test::block_on(async {
2506    ///
2507    /// let builder = prepare_request_builder();
2508    /// let response = builder.send().await?;
2509    /// # gax::Result::<()>::Ok(()) });
2510    ///
2511    /// fn prepare_request_builder() -> RemoveFile {
2512    ///   # panic!();
2513    ///   // ... details omitted ...
2514    /// }
2515    /// ```
2516    #[derive(Clone, Debug)]
2517    pub struct RemoveFile(RequestBuilder<crate::model::RemoveFileRequest>);
2518
2519    impl RemoveFile {
2520        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2521            Self(RequestBuilder::new(stub))
2522        }
2523
2524        /// Sets the full request, replacing any prior values.
2525        pub fn with_request<V: Into<crate::model::RemoveFileRequest>>(mut self, v: V) -> Self {
2526            self.0.request = v.into();
2527            self
2528        }
2529
2530        /// Sets all the options, replacing any prior values.
2531        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2532            self.0.options = v.into();
2533            self
2534        }
2535
2536        /// Sends the request.
2537        pub async fn send(self) -> Result<crate::model::RemoveFileResponse> {
2538            (*self.0.stub)
2539                .remove_file(self.0.request, self.0.options)
2540                .await
2541                .map(gax::response::Response::into_body)
2542        }
2543
2544        /// Sets the value of [workspace][crate::model::RemoveFileRequest::workspace].
2545        ///
2546        /// This is a **required** field for requests.
2547        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2548            self.0.request.workspace = v.into();
2549            self
2550        }
2551
2552        /// Sets the value of [path][crate::model::RemoveFileRequest::path].
2553        ///
2554        /// This is a **required** field for requests.
2555        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2556            self.0.request.path = v.into();
2557            self
2558        }
2559    }
2560
2561    #[doc(hidden)]
2562    impl gax::options::internal::RequestBuilder for RemoveFile {
2563        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2564            &mut self.0.options
2565        }
2566    }
2567
2568    /// The request builder for [Dataform::move_file][crate::client::Dataform::move_file] calls.
2569    ///
2570    /// # Example
2571    /// ```no_run
2572    /// # use google_cloud_dataform_v1::builder;
2573    /// use builder::dataform::MoveFile;
2574    /// # tokio_test::block_on(async {
2575    ///
2576    /// let builder = prepare_request_builder();
2577    /// let response = builder.send().await?;
2578    /// # gax::Result::<()>::Ok(()) });
2579    ///
2580    /// fn prepare_request_builder() -> MoveFile {
2581    ///   # panic!();
2582    ///   // ... details omitted ...
2583    /// }
2584    /// ```
2585    #[derive(Clone, Debug)]
2586    pub struct MoveFile(RequestBuilder<crate::model::MoveFileRequest>);
2587
2588    impl MoveFile {
2589        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2590            Self(RequestBuilder::new(stub))
2591        }
2592
2593        /// Sets the full request, replacing any prior values.
2594        pub fn with_request<V: Into<crate::model::MoveFileRequest>>(mut self, v: V) -> Self {
2595            self.0.request = v.into();
2596            self
2597        }
2598
2599        /// Sets all the options, replacing any prior values.
2600        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2601            self.0.options = v.into();
2602            self
2603        }
2604
2605        /// Sends the request.
2606        pub async fn send(self) -> Result<crate::model::MoveFileResponse> {
2607            (*self.0.stub)
2608                .move_file(self.0.request, self.0.options)
2609                .await
2610                .map(gax::response::Response::into_body)
2611        }
2612
2613        /// Sets the value of [workspace][crate::model::MoveFileRequest::workspace].
2614        ///
2615        /// This is a **required** field for requests.
2616        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2617            self.0.request.workspace = v.into();
2618            self
2619        }
2620
2621        /// Sets the value of [path][crate::model::MoveFileRequest::path].
2622        ///
2623        /// This is a **required** field for requests.
2624        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2625            self.0.request.path = v.into();
2626            self
2627        }
2628
2629        /// Sets the value of [new_path][crate::model::MoveFileRequest::new_path].
2630        ///
2631        /// This is a **required** field for requests.
2632        pub fn set_new_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2633            self.0.request.new_path = v.into();
2634            self
2635        }
2636    }
2637
2638    #[doc(hidden)]
2639    impl gax::options::internal::RequestBuilder for MoveFile {
2640        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2641            &mut self.0.options
2642        }
2643    }
2644
2645    /// The request builder for [Dataform::write_file][crate::client::Dataform::write_file] calls.
2646    ///
2647    /// # Example
2648    /// ```no_run
2649    /// # use google_cloud_dataform_v1::builder;
2650    /// use builder::dataform::WriteFile;
2651    /// # tokio_test::block_on(async {
2652    ///
2653    /// let builder = prepare_request_builder();
2654    /// let response = builder.send().await?;
2655    /// # gax::Result::<()>::Ok(()) });
2656    ///
2657    /// fn prepare_request_builder() -> WriteFile {
2658    ///   # panic!();
2659    ///   // ... details omitted ...
2660    /// }
2661    /// ```
2662    #[derive(Clone, Debug)]
2663    pub struct WriteFile(RequestBuilder<crate::model::WriteFileRequest>);
2664
2665    impl WriteFile {
2666        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2667            Self(RequestBuilder::new(stub))
2668        }
2669
2670        /// Sets the full request, replacing any prior values.
2671        pub fn with_request<V: Into<crate::model::WriteFileRequest>>(mut self, v: V) -> Self {
2672            self.0.request = v.into();
2673            self
2674        }
2675
2676        /// Sets all the options, replacing any prior values.
2677        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2678            self.0.options = v.into();
2679            self
2680        }
2681
2682        /// Sends the request.
2683        pub async fn send(self) -> Result<crate::model::WriteFileResponse> {
2684            (*self.0.stub)
2685                .write_file(self.0.request, self.0.options)
2686                .await
2687                .map(gax::response::Response::into_body)
2688        }
2689
2690        /// Sets the value of [workspace][crate::model::WriteFileRequest::workspace].
2691        ///
2692        /// This is a **required** field for requests.
2693        pub fn set_workspace<T: Into<std::string::String>>(mut self, v: T) -> Self {
2694            self.0.request.workspace = v.into();
2695            self
2696        }
2697
2698        /// Sets the value of [path][crate::model::WriteFileRequest::path].
2699        ///
2700        /// This is a **required** field for requests.
2701        pub fn set_path<T: Into<std::string::String>>(mut self, v: T) -> Self {
2702            self.0.request.path = v.into();
2703            self
2704        }
2705
2706        /// Sets the value of [contents][crate::model::WriteFileRequest::contents].
2707        ///
2708        /// This is a **required** field for requests.
2709        pub fn set_contents<T: Into<::bytes::Bytes>>(mut self, v: T) -> Self {
2710            self.0.request.contents = v.into();
2711            self
2712        }
2713    }
2714
2715    #[doc(hidden)]
2716    impl gax::options::internal::RequestBuilder for WriteFile {
2717        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2718            &mut self.0.options
2719        }
2720    }
2721
2722    /// The request builder for [Dataform::list_release_configs][crate::client::Dataform::list_release_configs] calls.
2723    ///
2724    /// # Example
2725    /// ```no_run
2726    /// # use google_cloud_dataform_v1::builder;
2727    /// use builder::dataform::ListReleaseConfigs;
2728    /// # tokio_test::block_on(async {
2729    /// use gax::paginator::ItemPaginator;
2730    ///
2731    /// let builder = prepare_request_builder();
2732    /// let mut items = builder.by_item();
2733    /// while let Some(result) = items.next().await {
2734    ///   let item = result?;
2735    /// }
2736    /// # gax::Result::<()>::Ok(()) });
2737    ///
2738    /// fn prepare_request_builder() -> ListReleaseConfigs {
2739    ///   # panic!();
2740    ///   // ... details omitted ...
2741    /// }
2742    /// ```
2743    #[derive(Clone, Debug)]
2744    pub struct ListReleaseConfigs(RequestBuilder<crate::model::ListReleaseConfigsRequest>);
2745
2746    impl ListReleaseConfigs {
2747        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2748            Self(RequestBuilder::new(stub))
2749        }
2750
2751        /// Sets the full request, replacing any prior values.
2752        pub fn with_request<V: Into<crate::model::ListReleaseConfigsRequest>>(
2753            mut self,
2754            v: V,
2755        ) -> Self {
2756            self.0.request = v.into();
2757            self
2758        }
2759
2760        /// Sets all the options, replacing any prior values.
2761        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2762            self.0.options = v.into();
2763            self
2764        }
2765
2766        /// Sends the request.
2767        pub async fn send(self) -> Result<crate::model::ListReleaseConfigsResponse> {
2768            (*self.0.stub)
2769                .list_release_configs(self.0.request, self.0.options)
2770                .await
2771                .map(gax::response::Response::into_body)
2772        }
2773
2774        /// Streams each page in the collection.
2775        pub fn by_page(
2776            self,
2777        ) -> impl gax::paginator::Paginator<crate::model::ListReleaseConfigsResponse, gax::error::Error>
2778        {
2779            use std::clone::Clone;
2780            let token = self.0.request.page_token.clone();
2781            let execute = move |token: String| {
2782                let mut builder = self.clone();
2783                builder.0.request = builder.0.request.set_page_token(token);
2784                builder.send()
2785            };
2786            gax::paginator::internal::new_paginator(token, execute)
2787        }
2788
2789        /// Streams each item in the collection.
2790        pub fn by_item(
2791            self,
2792        ) -> impl gax::paginator::ItemPaginator<
2793            crate::model::ListReleaseConfigsResponse,
2794            gax::error::Error,
2795        > {
2796            use gax::paginator::Paginator;
2797            self.by_page().items()
2798        }
2799
2800        /// Sets the value of [parent][crate::model::ListReleaseConfigsRequest::parent].
2801        ///
2802        /// This is a **required** field for requests.
2803        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
2804            self.0.request.parent = v.into();
2805            self
2806        }
2807
2808        /// Sets the value of [page_size][crate::model::ListReleaseConfigsRequest::page_size].
2809        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
2810            self.0.request.page_size = v.into();
2811            self
2812        }
2813
2814        /// Sets the value of [page_token][crate::model::ListReleaseConfigsRequest::page_token].
2815        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
2816            self.0.request.page_token = v.into();
2817            self
2818        }
2819    }
2820
2821    #[doc(hidden)]
2822    impl gax::options::internal::RequestBuilder for ListReleaseConfigs {
2823        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2824            &mut self.0.options
2825        }
2826    }
2827
2828    /// The request builder for [Dataform::get_release_config][crate::client::Dataform::get_release_config] calls.
2829    ///
2830    /// # Example
2831    /// ```no_run
2832    /// # use google_cloud_dataform_v1::builder;
2833    /// use builder::dataform::GetReleaseConfig;
2834    /// # tokio_test::block_on(async {
2835    ///
2836    /// let builder = prepare_request_builder();
2837    /// let response = builder.send().await?;
2838    /// # gax::Result::<()>::Ok(()) });
2839    ///
2840    /// fn prepare_request_builder() -> GetReleaseConfig {
2841    ///   # panic!();
2842    ///   // ... details omitted ...
2843    /// }
2844    /// ```
2845    #[derive(Clone, Debug)]
2846    pub struct GetReleaseConfig(RequestBuilder<crate::model::GetReleaseConfigRequest>);
2847
2848    impl GetReleaseConfig {
2849        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2850            Self(RequestBuilder::new(stub))
2851        }
2852
2853        /// Sets the full request, replacing any prior values.
2854        pub fn with_request<V: Into<crate::model::GetReleaseConfigRequest>>(
2855            mut self,
2856            v: V,
2857        ) -> Self {
2858            self.0.request = v.into();
2859            self
2860        }
2861
2862        /// Sets all the options, replacing any prior values.
2863        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2864            self.0.options = v.into();
2865            self
2866        }
2867
2868        /// Sends the request.
2869        pub async fn send(self) -> Result<crate::model::ReleaseConfig> {
2870            (*self.0.stub)
2871                .get_release_config(self.0.request, self.0.options)
2872                .await
2873                .map(gax::response::Response::into_body)
2874        }
2875
2876        /// Sets the value of [name][crate::model::GetReleaseConfigRequest::name].
2877        ///
2878        /// This is a **required** field for requests.
2879        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
2880            self.0.request.name = v.into();
2881            self
2882        }
2883    }
2884
2885    #[doc(hidden)]
2886    impl gax::options::internal::RequestBuilder for GetReleaseConfig {
2887        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2888            &mut self.0.options
2889        }
2890    }
2891
2892    /// The request builder for [Dataform::create_release_config][crate::client::Dataform::create_release_config] calls.
2893    ///
2894    /// # Example
2895    /// ```no_run
2896    /// # use google_cloud_dataform_v1::builder;
2897    /// use builder::dataform::CreateReleaseConfig;
2898    /// # tokio_test::block_on(async {
2899    ///
2900    /// let builder = prepare_request_builder();
2901    /// let response = builder.send().await?;
2902    /// # gax::Result::<()>::Ok(()) });
2903    ///
2904    /// fn prepare_request_builder() -> CreateReleaseConfig {
2905    ///   # panic!();
2906    ///   // ... details omitted ...
2907    /// }
2908    /// ```
2909    #[derive(Clone, Debug)]
2910    pub struct CreateReleaseConfig(RequestBuilder<crate::model::CreateReleaseConfigRequest>);
2911
2912    impl CreateReleaseConfig {
2913        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
2914            Self(RequestBuilder::new(stub))
2915        }
2916
2917        /// Sets the full request, replacing any prior values.
2918        pub fn with_request<V: Into<crate::model::CreateReleaseConfigRequest>>(
2919            mut self,
2920            v: V,
2921        ) -> Self {
2922            self.0.request = v.into();
2923            self
2924        }
2925
2926        /// Sets all the options, replacing any prior values.
2927        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
2928            self.0.options = v.into();
2929            self
2930        }
2931
2932        /// Sends the request.
2933        pub async fn send(self) -> Result<crate::model::ReleaseConfig> {
2934            (*self.0.stub)
2935                .create_release_config(self.0.request, self.0.options)
2936                .await
2937                .map(gax::response::Response::into_body)
2938        }
2939
2940        /// Sets the value of [parent][crate::model::CreateReleaseConfigRequest::parent].
2941        ///
2942        /// This is a **required** field for requests.
2943        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
2944            self.0.request.parent = v.into();
2945            self
2946        }
2947
2948        /// Sets the value of [release_config][crate::model::CreateReleaseConfigRequest::release_config].
2949        ///
2950        /// This is a **required** field for requests.
2951        pub fn set_release_config<T>(mut self, v: T) -> Self
2952        where
2953            T: std::convert::Into<crate::model::ReleaseConfig>,
2954        {
2955            self.0.request.release_config = std::option::Option::Some(v.into());
2956            self
2957        }
2958
2959        /// Sets or clears the value of [release_config][crate::model::CreateReleaseConfigRequest::release_config].
2960        ///
2961        /// This is a **required** field for requests.
2962        pub fn set_or_clear_release_config<T>(mut self, v: std::option::Option<T>) -> Self
2963        where
2964            T: std::convert::Into<crate::model::ReleaseConfig>,
2965        {
2966            self.0.request.release_config = v.map(|x| x.into());
2967            self
2968        }
2969
2970        /// Sets the value of [release_config_id][crate::model::CreateReleaseConfigRequest::release_config_id].
2971        ///
2972        /// This is a **required** field for requests.
2973        pub fn set_release_config_id<T: Into<std::string::String>>(mut self, v: T) -> Self {
2974            self.0.request.release_config_id = v.into();
2975            self
2976        }
2977    }
2978
2979    #[doc(hidden)]
2980    impl gax::options::internal::RequestBuilder for CreateReleaseConfig {
2981        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
2982            &mut self.0.options
2983        }
2984    }
2985
2986    /// The request builder for [Dataform::update_release_config][crate::client::Dataform::update_release_config] calls.
2987    ///
2988    /// # Example
2989    /// ```no_run
2990    /// # use google_cloud_dataform_v1::builder;
2991    /// use builder::dataform::UpdateReleaseConfig;
2992    /// # tokio_test::block_on(async {
2993    ///
2994    /// let builder = prepare_request_builder();
2995    /// let response = builder.send().await?;
2996    /// # gax::Result::<()>::Ok(()) });
2997    ///
2998    /// fn prepare_request_builder() -> UpdateReleaseConfig {
2999    ///   # panic!();
3000    ///   // ... details omitted ...
3001    /// }
3002    /// ```
3003    #[derive(Clone, Debug)]
3004    pub struct UpdateReleaseConfig(RequestBuilder<crate::model::UpdateReleaseConfigRequest>);
3005
3006    impl UpdateReleaseConfig {
3007        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3008            Self(RequestBuilder::new(stub))
3009        }
3010
3011        /// Sets the full request, replacing any prior values.
3012        pub fn with_request<V: Into<crate::model::UpdateReleaseConfigRequest>>(
3013            mut self,
3014            v: V,
3015        ) -> Self {
3016            self.0.request = v.into();
3017            self
3018        }
3019
3020        /// Sets all the options, replacing any prior values.
3021        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3022            self.0.options = v.into();
3023            self
3024        }
3025
3026        /// Sends the request.
3027        pub async fn send(self) -> Result<crate::model::ReleaseConfig> {
3028            (*self.0.stub)
3029                .update_release_config(self.0.request, self.0.options)
3030                .await
3031                .map(gax::response::Response::into_body)
3032        }
3033
3034        /// Sets the value of [update_mask][crate::model::UpdateReleaseConfigRequest::update_mask].
3035        pub fn set_update_mask<T>(mut self, v: T) -> Self
3036        where
3037            T: std::convert::Into<wkt::FieldMask>,
3038        {
3039            self.0.request.update_mask = std::option::Option::Some(v.into());
3040            self
3041        }
3042
3043        /// Sets or clears the value of [update_mask][crate::model::UpdateReleaseConfigRequest::update_mask].
3044        pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
3045        where
3046            T: std::convert::Into<wkt::FieldMask>,
3047        {
3048            self.0.request.update_mask = v.map(|x| x.into());
3049            self
3050        }
3051
3052        /// Sets the value of [release_config][crate::model::UpdateReleaseConfigRequest::release_config].
3053        ///
3054        /// This is a **required** field for requests.
3055        pub fn set_release_config<T>(mut self, v: T) -> Self
3056        where
3057            T: std::convert::Into<crate::model::ReleaseConfig>,
3058        {
3059            self.0.request.release_config = std::option::Option::Some(v.into());
3060            self
3061        }
3062
3063        /// Sets or clears the value of [release_config][crate::model::UpdateReleaseConfigRequest::release_config].
3064        ///
3065        /// This is a **required** field for requests.
3066        pub fn set_or_clear_release_config<T>(mut self, v: std::option::Option<T>) -> Self
3067        where
3068            T: std::convert::Into<crate::model::ReleaseConfig>,
3069        {
3070            self.0.request.release_config = v.map(|x| x.into());
3071            self
3072        }
3073    }
3074
3075    #[doc(hidden)]
3076    impl gax::options::internal::RequestBuilder for UpdateReleaseConfig {
3077        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3078            &mut self.0.options
3079        }
3080    }
3081
3082    /// The request builder for [Dataform::delete_release_config][crate::client::Dataform::delete_release_config] calls.
3083    ///
3084    /// # Example
3085    /// ```no_run
3086    /// # use google_cloud_dataform_v1::builder;
3087    /// use builder::dataform::DeleteReleaseConfig;
3088    /// # tokio_test::block_on(async {
3089    ///
3090    /// let builder = prepare_request_builder();
3091    /// let response = builder.send().await?;
3092    /// # gax::Result::<()>::Ok(()) });
3093    ///
3094    /// fn prepare_request_builder() -> DeleteReleaseConfig {
3095    ///   # panic!();
3096    ///   // ... details omitted ...
3097    /// }
3098    /// ```
3099    #[derive(Clone, Debug)]
3100    pub struct DeleteReleaseConfig(RequestBuilder<crate::model::DeleteReleaseConfigRequest>);
3101
3102    impl DeleteReleaseConfig {
3103        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3104            Self(RequestBuilder::new(stub))
3105        }
3106
3107        /// Sets the full request, replacing any prior values.
3108        pub fn with_request<V: Into<crate::model::DeleteReleaseConfigRequest>>(
3109            mut self,
3110            v: V,
3111        ) -> Self {
3112            self.0.request = v.into();
3113            self
3114        }
3115
3116        /// Sets all the options, replacing any prior values.
3117        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3118            self.0.options = v.into();
3119            self
3120        }
3121
3122        /// Sends the request.
3123        pub async fn send(self) -> Result<()> {
3124            (*self.0.stub)
3125                .delete_release_config(self.0.request, self.0.options)
3126                .await
3127                .map(gax::response::Response::into_body)
3128        }
3129
3130        /// Sets the value of [name][crate::model::DeleteReleaseConfigRequest::name].
3131        ///
3132        /// This is a **required** field for requests.
3133        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
3134            self.0.request.name = v.into();
3135            self
3136        }
3137    }
3138
3139    #[doc(hidden)]
3140    impl gax::options::internal::RequestBuilder for DeleteReleaseConfig {
3141        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3142            &mut self.0.options
3143        }
3144    }
3145
3146    /// The request builder for [Dataform::list_compilation_results][crate::client::Dataform::list_compilation_results] calls.
3147    ///
3148    /// # Example
3149    /// ```no_run
3150    /// # use google_cloud_dataform_v1::builder;
3151    /// use builder::dataform::ListCompilationResults;
3152    /// # tokio_test::block_on(async {
3153    /// use gax::paginator::ItemPaginator;
3154    ///
3155    /// let builder = prepare_request_builder();
3156    /// let mut items = builder.by_item();
3157    /// while let Some(result) = items.next().await {
3158    ///   let item = result?;
3159    /// }
3160    /// # gax::Result::<()>::Ok(()) });
3161    ///
3162    /// fn prepare_request_builder() -> ListCompilationResults {
3163    ///   # panic!();
3164    ///   // ... details omitted ...
3165    /// }
3166    /// ```
3167    #[derive(Clone, Debug)]
3168    pub struct ListCompilationResults(RequestBuilder<crate::model::ListCompilationResultsRequest>);
3169
3170    impl ListCompilationResults {
3171        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3172            Self(RequestBuilder::new(stub))
3173        }
3174
3175        /// Sets the full request, replacing any prior values.
3176        pub fn with_request<V: Into<crate::model::ListCompilationResultsRequest>>(
3177            mut self,
3178            v: V,
3179        ) -> Self {
3180            self.0.request = v.into();
3181            self
3182        }
3183
3184        /// Sets all the options, replacing any prior values.
3185        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3186            self.0.options = v.into();
3187            self
3188        }
3189
3190        /// Sends the request.
3191        pub async fn send(self) -> Result<crate::model::ListCompilationResultsResponse> {
3192            (*self.0.stub)
3193                .list_compilation_results(self.0.request, self.0.options)
3194                .await
3195                .map(gax::response::Response::into_body)
3196        }
3197
3198        /// Streams each page in the collection.
3199        pub fn by_page(
3200            self,
3201        ) -> impl gax::paginator::Paginator<
3202            crate::model::ListCompilationResultsResponse,
3203            gax::error::Error,
3204        > {
3205            use std::clone::Clone;
3206            let token = self.0.request.page_token.clone();
3207            let execute = move |token: String| {
3208                let mut builder = self.clone();
3209                builder.0.request = builder.0.request.set_page_token(token);
3210                builder.send()
3211            };
3212            gax::paginator::internal::new_paginator(token, execute)
3213        }
3214
3215        /// Streams each item in the collection.
3216        pub fn by_item(
3217            self,
3218        ) -> impl gax::paginator::ItemPaginator<
3219            crate::model::ListCompilationResultsResponse,
3220            gax::error::Error,
3221        > {
3222            use gax::paginator::Paginator;
3223            self.by_page().items()
3224        }
3225
3226        /// Sets the value of [parent][crate::model::ListCompilationResultsRequest::parent].
3227        ///
3228        /// This is a **required** field for requests.
3229        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
3230            self.0.request.parent = v.into();
3231            self
3232        }
3233
3234        /// Sets the value of [page_size][crate::model::ListCompilationResultsRequest::page_size].
3235        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
3236            self.0.request.page_size = v.into();
3237            self
3238        }
3239
3240        /// Sets the value of [page_token][crate::model::ListCompilationResultsRequest::page_token].
3241        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
3242            self.0.request.page_token = v.into();
3243            self
3244        }
3245
3246        /// Sets the value of [order_by][crate::model::ListCompilationResultsRequest::order_by].
3247        pub fn set_order_by<T: Into<std::string::String>>(mut self, v: T) -> Self {
3248            self.0.request.order_by = v.into();
3249            self
3250        }
3251
3252        /// Sets the value of [filter][crate::model::ListCompilationResultsRequest::filter].
3253        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
3254            self.0.request.filter = v.into();
3255            self
3256        }
3257    }
3258
3259    #[doc(hidden)]
3260    impl gax::options::internal::RequestBuilder for ListCompilationResults {
3261        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3262            &mut self.0.options
3263        }
3264    }
3265
3266    /// The request builder for [Dataform::get_compilation_result][crate::client::Dataform::get_compilation_result] calls.
3267    ///
3268    /// # Example
3269    /// ```no_run
3270    /// # use google_cloud_dataform_v1::builder;
3271    /// use builder::dataform::GetCompilationResult;
3272    /// # tokio_test::block_on(async {
3273    ///
3274    /// let builder = prepare_request_builder();
3275    /// let response = builder.send().await?;
3276    /// # gax::Result::<()>::Ok(()) });
3277    ///
3278    /// fn prepare_request_builder() -> GetCompilationResult {
3279    ///   # panic!();
3280    ///   // ... details omitted ...
3281    /// }
3282    /// ```
3283    #[derive(Clone, Debug)]
3284    pub struct GetCompilationResult(RequestBuilder<crate::model::GetCompilationResultRequest>);
3285
3286    impl GetCompilationResult {
3287        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3288            Self(RequestBuilder::new(stub))
3289        }
3290
3291        /// Sets the full request, replacing any prior values.
3292        pub fn with_request<V: Into<crate::model::GetCompilationResultRequest>>(
3293            mut self,
3294            v: V,
3295        ) -> Self {
3296            self.0.request = v.into();
3297            self
3298        }
3299
3300        /// Sets all the options, replacing any prior values.
3301        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3302            self.0.options = v.into();
3303            self
3304        }
3305
3306        /// Sends the request.
3307        pub async fn send(self) -> Result<crate::model::CompilationResult> {
3308            (*self.0.stub)
3309                .get_compilation_result(self.0.request, self.0.options)
3310                .await
3311                .map(gax::response::Response::into_body)
3312        }
3313
3314        /// Sets the value of [name][crate::model::GetCompilationResultRequest::name].
3315        ///
3316        /// This is a **required** field for requests.
3317        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
3318            self.0.request.name = v.into();
3319            self
3320        }
3321    }
3322
3323    #[doc(hidden)]
3324    impl gax::options::internal::RequestBuilder for GetCompilationResult {
3325        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3326            &mut self.0.options
3327        }
3328    }
3329
3330    /// The request builder for [Dataform::create_compilation_result][crate::client::Dataform::create_compilation_result] calls.
3331    ///
3332    /// # Example
3333    /// ```no_run
3334    /// # use google_cloud_dataform_v1::builder;
3335    /// use builder::dataform::CreateCompilationResult;
3336    /// # tokio_test::block_on(async {
3337    ///
3338    /// let builder = prepare_request_builder();
3339    /// let response = builder.send().await?;
3340    /// # gax::Result::<()>::Ok(()) });
3341    ///
3342    /// fn prepare_request_builder() -> CreateCompilationResult {
3343    ///   # panic!();
3344    ///   // ... details omitted ...
3345    /// }
3346    /// ```
3347    #[derive(Clone, Debug)]
3348    pub struct CreateCompilationResult(
3349        RequestBuilder<crate::model::CreateCompilationResultRequest>,
3350    );
3351
3352    impl CreateCompilationResult {
3353        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3354            Self(RequestBuilder::new(stub))
3355        }
3356
3357        /// Sets the full request, replacing any prior values.
3358        pub fn with_request<V: Into<crate::model::CreateCompilationResultRequest>>(
3359            mut self,
3360            v: V,
3361        ) -> Self {
3362            self.0.request = v.into();
3363            self
3364        }
3365
3366        /// Sets all the options, replacing any prior values.
3367        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3368            self.0.options = v.into();
3369            self
3370        }
3371
3372        /// Sends the request.
3373        pub async fn send(self) -> Result<crate::model::CompilationResult> {
3374            (*self.0.stub)
3375                .create_compilation_result(self.0.request, self.0.options)
3376                .await
3377                .map(gax::response::Response::into_body)
3378        }
3379
3380        /// Sets the value of [parent][crate::model::CreateCompilationResultRequest::parent].
3381        ///
3382        /// This is a **required** field for requests.
3383        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
3384            self.0.request.parent = v.into();
3385            self
3386        }
3387
3388        /// Sets the value of [compilation_result][crate::model::CreateCompilationResultRequest::compilation_result].
3389        ///
3390        /// This is a **required** field for requests.
3391        pub fn set_compilation_result<T>(mut self, v: T) -> Self
3392        where
3393            T: std::convert::Into<crate::model::CompilationResult>,
3394        {
3395            self.0.request.compilation_result = std::option::Option::Some(v.into());
3396            self
3397        }
3398
3399        /// Sets or clears the value of [compilation_result][crate::model::CreateCompilationResultRequest::compilation_result].
3400        ///
3401        /// This is a **required** field for requests.
3402        pub fn set_or_clear_compilation_result<T>(mut self, v: std::option::Option<T>) -> Self
3403        where
3404            T: std::convert::Into<crate::model::CompilationResult>,
3405        {
3406            self.0.request.compilation_result = v.map(|x| x.into());
3407            self
3408        }
3409    }
3410
3411    #[doc(hidden)]
3412    impl gax::options::internal::RequestBuilder for CreateCompilationResult {
3413        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3414            &mut self.0.options
3415        }
3416    }
3417
3418    /// The request builder for [Dataform::query_compilation_result_actions][crate::client::Dataform::query_compilation_result_actions] calls.
3419    ///
3420    /// # Example
3421    /// ```no_run
3422    /// # use google_cloud_dataform_v1::builder;
3423    /// use builder::dataform::QueryCompilationResultActions;
3424    /// # tokio_test::block_on(async {
3425    /// use gax::paginator::ItemPaginator;
3426    ///
3427    /// let builder = prepare_request_builder();
3428    /// let mut items = builder.by_item();
3429    /// while let Some(result) = items.next().await {
3430    ///   let item = result?;
3431    /// }
3432    /// # gax::Result::<()>::Ok(()) });
3433    ///
3434    /// fn prepare_request_builder() -> QueryCompilationResultActions {
3435    ///   # panic!();
3436    ///   // ... details omitted ...
3437    /// }
3438    /// ```
3439    #[derive(Clone, Debug)]
3440    pub struct QueryCompilationResultActions(
3441        RequestBuilder<crate::model::QueryCompilationResultActionsRequest>,
3442    );
3443
3444    impl QueryCompilationResultActions {
3445        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3446            Self(RequestBuilder::new(stub))
3447        }
3448
3449        /// Sets the full request, replacing any prior values.
3450        pub fn with_request<V: Into<crate::model::QueryCompilationResultActionsRequest>>(
3451            mut self,
3452            v: V,
3453        ) -> Self {
3454            self.0.request = v.into();
3455            self
3456        }
3457
3458        /// Sets all the options, replacing any prior values.
3459        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3460            self.0.options = v.into();
3461            self
3462        }
3463
3464        /// Sends the request.
3465        pub async fn send(self) -> Result<crate::model::QueryCompilationResultActionsResponse> {
3466            (*self.0.stub)
3467                .query_compilation_result_actions(self.0.request, self.0.options)
3468                .await
3469                .map(gax::response::Response::into_body)
3470        }
3471
3472        /// Streams each page in the collection.
3473        pub fn by_page(
3474            self,
3475        ) -> impl gax::paginator::Paginator<
3476            crate::model::QueryCompilationResultActionsResponse,
3477            gax::error::Error,
3478        > {
3479            use std::clone::Clone;
3480            let token = self.0.request.page_token.clone();
3481            let execute = move |token: String| {
3482                let mut builder = self.clone();
3483                builder.0.request = builder.0.request.set_page_token(token);
3484                builder.send()
3485            };
3486            gax::paginator::internal::new_paginator(token, execute)
3487        }
3488
3489        /// Streams each item in the collection.
3490        pub fn by_item(
3491            self,
3492        ) -> impl gax::paginator::ItemPaginator<
3493            crate::model::QueryCompilationResultActionsResponse,
3494            gax::error::Error,
3495        > {
3496            use gax::paginator::Paginator;
3497            self.by_page().items()
3498        }
3499
3500        /// Sets the value of [name][crate::model::QueryCompilationResultActionsRequest::name].
3501        ///
3502        /// This is a **required** field for requests.
3503        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
3504            self.0.request.name = v.into();
3505            self
3506        }
3507
3508        /// Sets the value of [page_size][crate::model::QueryCompilationResultActionsRequest::page_size].
3509        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
3510            self.0.request.page_size = v.into();
3511            self
3512        }
3513
3514        /// Sets the value of [page_token][crate::model::QueryCompilationResultActionsRequest::page_token].
3515        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
3516            self.0.request.page_token = v.into();
3517            self
3518        }
3519
3520        /// Sets the value of [filter][crate::model::QueryCompilationResultActionsRequest::filter].
3521        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
3522            self.0.request.filter = v.into();
3523            self
3524        }
3525    }
3526
3527    #[doc(hidden)]
3528    impl gax::options::internal::RequestBuilder for QueryCompilationResultActions {
3529        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3530            &mut self.0.options
3531        }
3532    }
3533
3534    /// The request builder for [Dataform::list_workflow_configs][crate::client::Dataform::list_workflow_configs] calls.
3535    ///
3536    /// # Example
3537    /// ```no_run
3538    /// # use google_cloud_dataform_v1::builder;
3539    /// use builder::dataform::ListWorkflowConfigs;
3540    /// # tokio_test::block_on(async {
3541    /// use gax::paginator::ItemPaginator;
3542    ///
3543    /// let builder = prepare_request_builder();
3544    /// let mut items = builder.by_item();
3545    /// while let Some(result) = items.next().await {
3546    ///   let item = result?;
3547    /// }
3548    /// # gax::Result::<()>::Ok(()) });
3549    ///
3550    /// fn prepare_request_builder() -> ListWorkflowConfigs {
3551    ///   # panic!();
3552    ///   // ... details omitted ...
3553    /// }
3554    /// ```
3555    #[derive(Clone, Debug)]
3556    pub struct ListWorkflowConfigs(RequestBuilder<crate::model::ListWorkflowConfigsRequest>);
3557
3558    impl ListWorkflowConfigs {
3559        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3560            Self(RequestBuilder::new(stub))
3561        }
3562
3563        /// Sets the full request, replacing any prior values.
3564        pub fn with_request<V: Into<crate::model::ListWorkflowConfigsRequest>>(
3565            mut self,
3566            v: V,
3567        ) -> Self {
3568            self.0.request = v.into();
3569            self
3570        }
3571
3572        /// Sets all the options, replacing any prior values.
3573        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3574            self.0.options = v.into();
3575            self
3576        }
3577
3578        /// Sends the request.
3579        pub async fn send(self) -> Result<crate::model::ListWorkflowConfigsResponse> {
3580            (*self.0.stub)
3581                .list_workflow_configs(self.0.request, self.0.options)
3582                .await
3583                .map(gax::response::Response::into_body)
3584        }
3585
3586        /// Streams each page in the collection.
3587        pub fn by_page(
3588            self,
3589        ) -> impl gax::paginator::Paginator<crate::model::ListWorkflowConfigsResponse, gax::error::Error>
3590        {
3591            use std::clone::Clone;
3592            let token = self.0.request.page_token.clone();
3593            let execute = move |token: String| {
3594                let mut builder = self.clone();
3595                builder.0.request = builder.0.request.set_page_token(token);
3596                builder.send()
3597            };
3598            gax::paginator::internal::new_paginator(token, execute)
3599        }
3600
3601        /// Streams each item in the collection.
3602        pub fn by_item(
3603            self,
3604        ) -> impl gax::paginator::ItemPaginator<
3605            crate::model::ListWorkflowConfigsResponse,
3606            gax::error::Error,
3607        > {
3608            use gax::paginator::Paginator;
3609            self.by_page().items()
3610        }
3611
3612        /// Sets the value of [parent][crate::model::ListWorkflowConfigsRequest::parent].
3613        ///
3614        /// This is a **required** field for requests.
3615        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
3616            self.0.request.parent = v.into();
3617            self
3618        }
3619
3620        /// Sets the value of [page_size][crate::model::ListWorkflowConfigsRequest::page_size].
3621        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
3622            self.0.request.page_size = v.into();
3623            self
3624        }
3625
3626        /// Sets the value of [page_token][crate::model::ListWorkflowConfigsRequest::page_token].
3627        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
3628            self.0.request.page_token = v.into();
3629            self
3630        }
3631    }
3632
3633    #[doc(hidden)]
3634    impl gax::options::internal::RequestBuilder for ListWorkflowConfigs {
3635        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3636            &mut self.0.options
3637        }
3638    }
3639
3640    /// The request builder for [Dataform::get_workflow_config][crate::client::Dataform::get_workflow_config] calls.
3641    ///
3642    /// # Example
3643    /// ```no_run
3644    /// # use google_cloud_dataform_v1::builder;
3645    /// use builder::dataform::GetWorkflowConfig;
3646    /// # tokio_test::block_on(async {
3647    ///
3648    /// let builder = prepare_request_builder();
3649    /// let response = builder.send().await?;
3650    /// # gax::Result::<()>::Ok(()) });
3651    ///
3652    /// fn prepare_request_builder() -> GetWorkflowConfig {
3653    ///   # panic!();
3654    ///   // ... details omitted ...
3655    /// }
3656    /// ```
3657    #[derive(Clone, Debug)]
3658    pub struct GetWorkflowConfig(RequestBuilder<crate::model::GetWorkflowConfigRequest>);
3659
3660    impl GetWorkflowConfig {
3661        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3662            Self(RequestBuilder::new(stub))
3663        }
3664
3665        /// Sets the full request, replacing any prior values.
3666        pub fn with_request<V: Into<crate::model::GetWorkflowConfigRequest>>(
3667            mut self,
3668            v: V,
3669        ) -> Self {
3670            self.0.request = v.into();
3671            self
3672        }
3673
3674        /// Sets all the options, replacing any prior values.
3675        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3676            self.0.options = v.into();
3677            self
3678        }
3679
3680        /// Sends the request.
3681        pub async fn send(self) -> Result<crate::model::WorkflowConfig> {
3682            (*self.0.stub)
3683                .get_workflow_config(self.0.request, self.0.options)
3684                .await
3685                .map(gax::response::Response::into_body)
3686        }
3687
3688        /// Sets the value of [name][crate::model::GetWorkflowConfigRequest::name].
3689        ///
3690        /// This is a **required** field for requests.
3691        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
3692            self.0.request.name = v.into();
3693            self
3694        }
3695    }
3696
3697    #[doc(hidden)]
3698    impl gax::options::internal::RequestBuilder for GetWorkflowConfig {
3699        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3700            &mut self.0.options
3701        }
3702    }
3703
3704    /// The request builder for [Dataform::create_workflow_config][crate::client::Dataform::create_workflow_config] calls.
3705    ///
3706    /// # Example
3707    /// ```no_run
3708    /// # use google_cloud_dataform_v1::builder;
3709    /// use builder::dataform::CreateWorkflowConfig;
3710    /// # tokio_test::block_on(async {
3711    ///
3712    /// let builder = prepare_request_builder();
3713    /// let response = builder.send().await?;
3714    /// # gax::Result::<()>::Ok(()) });
3715    ///
3716    /// fn prepare_request_builder() -> CreateWorkflowConfig {
3717    ///   # panic!();
3718    ///   // ... details omitted ...
3719    /// }
3720    /// ```
3721    #[derive(Clone, Debug)]
3722    pub struct CreateWorkflowConfig(RequestBuilder<crate::model::CreateWorkflowConfigRequest>);
3723
3724    impl CreateWorkflowConfig {
3725        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3726            Self(RequestBuilder::new(stub))
3727        }
3728
3729        /// Sets the full request, replacing any prior values.
3730        pub fn with_request<V: Into<crate::model::CreateWorkflowConfigRequest>>(
3731            mut self,
3732            v: V,
3733        ) -> Self {
3734            self.0.request = v.into();
3735            self
3736        }
3737
3738        /// Sets all the options, replacing any prior values.
3739        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3740            self.0.options = v.into();
3741            self
3742        }
3743
3744        /// Sends the request.
3745        pub async fn send(self) -> Result<crate::model::WorkflowConfig> {
3746            (*self.0.stub)
3747                .create_workflow_config(self.0.request, self.0.options)
3748                .await
3749                .map(gax::response::Response::into_body)
3750        }
3751
3752        /// Sets the value of [parent][crate::model::CreateWorkflowConfigRequest::parent].
3753        ///
3754        /// This is a **required** field for requests.
3755        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
3756            self.0.request.parent = v.into();
3757            self
3758        }
3759
3760        /// Sets the value of [workflow_config][crate::model::CreateWorkflowConfigRequest::workflow_config].
3761        ///
3762        /// This is a **required** field for requests.
3763        pub fn set_workflow_config<T>(mut self, v: T) -> Self
3764        where
3765            T: std::convert::Into<crate::model::WorkflowConfig>,
3766        {
3767            self.0.request.workflow_config = std::option::Option::Some(v.into());
3768            self
3769        }
3770
3771        /// Sets or clears the value of [workflow_config][crate::model::CreateWorkflowConfigRequest::workflow_config].
3772        ///
3773        /// This is a **required** field for requests.
3774        pub fn set_or_clear_workflow_config<T>(mut self, v: std::option::Option<T>) -> Self
3775        where
3776            T: std::convert::Into<crate::model::WorkflowConfig>,
3777        {
3778            self.0.request.workflow_config = v.map(|x| x.into());
3779            self
3780        }
3781
3782        /// Sets the value of [workflow_config_id][crate::model::CreateWorkflowConfigRequest::workflow_config_id].
3783        ///
3784        /// This is a **required** field for requests.
3785        pub fn set_workflow_config_id<T: Into<std::string::String>>(mut self, v: T) -> Self {
3786            self.0.request.workflow_config_id = v.into();
3787            self
3788        }
3789    }
3790
3791    #[doc(hidden)]
3792    impl gax::options::internal::RequestBuilder for CreateWorkflowConfig {
3793        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3794            &mut self.0.options
3795        }
3796    }
3797
3798    /// The request builder for [Dataform::update_workflow_config][crate::client::Dataform::update_workflow_config] calls.
3799    ///
3800    /// # Example
3801    /// ```no_run
3802    /// # use google_cloud_dataform_v1::builder;
3803    /// use builder::dataform::UpdateWorkflowConfig;
3804    /// # tokio_test::block_on(async {
3805    ///
3806    /// let builder = prepare_request_builder();
3807    /// let response = builder.send().await?;
3808    /// # gax::Result::<()>::Ok(()) });
3809    ///
3810    /// fn prepare_request_builder() -> UpdateWorkflowConfig {
3811    ///   # panic!();
3812    ///   // ... details omitted ...
3813    /// }
3814    /// ```
3815    #[derive(Clone, Debug)]
3816    pub struct UpdateWorkflowConfig(RequestBuilder<crate::model::UpdateWorkflowConfigRequest>);
3817
3818    impl UpdateWorkflowConfig {
3819        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3820            Self(RequestBuilder::new(stub))
3821        }
3822
3823        /// Sets the full request, replacing any prior values.
3824        pub fn with_request<V: Into<crate::model::UpdateWorkflowConfigRequest>>(
3825            mut self,
3826            v: V,
3827        ) -> Self {
3828            self.0.request = v.into();
3829            self
3830        }
3831
3832        /// Sets all the options, replacing any prior values.
3833        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3834            self.0.options = v.into();
3835            self
3836        }
3837
3838        /// Sends the request.
3839        pub async fn send(self) -> Result<crate::model::WorkflowConfig> {
3840            (*self.0.stub)
3841                .update_workflow_config(self.0.request, self.0.options)
3842                .await
3843                .map(gax::response::Response::into_body)
3844        }
3845
3846        /// Sets the value of [update_mask][crate::model::UpdateWorkflowConfigRequest::update_mask].
3847        pub fn set_update_mask<T>(mut self, v: T) -> Self
3848        where
3849            T: std::convert::Into<wkt::FieldMask>,
3850        {
3851            self.0.request.update_mask = std::option::Option::Some(v.into());
3852            self
3853        }
3854
3855        /// Sets or clears the value of [update_mask][crate::model::UpdateWorkflowConfigRequest::update_mask].
3856        pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
3857        where
3858            T: std::convert::Into<wkt::FieldMask>,
3859        {
3860            self.0.request.update_mask = v.map(|x| x.into());
3861            self
3862        }
3863
3864        /// Sets the value of [workflow_config][crate::model::UpdateWorkflowConfigRequest::workflow_config].
3865        ///
3866        /// This is a **required** field for requests.
3867        pub fn set_workflow_config<T>(mut self, v: T) -> Self
3868        where
3869            T: std::convert::Into<crate::model::WorkflowConfig>,
3870        {
3871            self.0.request.workflow_config = std::option::Option::Some(v.into());
3872            self
3873        }
3874
3875        /// Sets or clears the value of [workflow_config][crate::model::UpdateWorkflowConfigRequest::workflow_config].
3876        ///
3877        /// This is a **required** field for requests.
3878        pub fn set_or_clear_workflow_config<T>(mut self, v: std::option::Option<T>) -> Self
3879        where
3880            T: std::convert::Into<crate::model::WorkflowConfig>,
3881        {
3882            self.0.request.workflow_config = v.map(|x| x.into());
3883            self
3884        }
3885    }
3886
3887    #[doc(hidden)]
3888    impl gax::options::internal::RequestBuilder for UpdateWorkflowConfig {
3889        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3890            &mut self.0.options
3891        }
3892    }
3893
3894    /// The request builder for [Dataform::delete_workflow_config][crate::client::Dataform::delete_workflow_config] calls.
3895    ///
3896    /// # Example
3897    /// ```no_run
3898    /// # use google_cloud_dataform_v1::builder;
3899    /// use builder::dataform::DeleteWorkflowConfig;
3900    /// # tokio_test::block_on(async {
3901    ///
3902    /// let builder = prepare_request_builder();
3903    /// let response = builder.send().await?;
3904    /// # gax::Result::<()>::Ok(()) });
3905    ///
3906    /// fn prepare_request_builder() -> DeleteWorkflowConfig {
3907    ///   # panic!();
3908    ///   // ... details omitted ...
3909    /// }
3910    /// ```
3911    #[derive(Clone, Debug)]
3912    pub struct DeleteWorkflowConfig(RequestBuilder<crate::model::DeleteWorkflowConfigRequest>);
3913
3914    impl DeleteWorkflowConfig {
3915        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3916            Self(RequestBuilder::new(stub))
3917        }
3918
3919        /// Sets the full request, replacing any prior values.
3920        pub fn with_request<V: Into<crate::model::DeleteWorkflowConfigRequest>>(
3921            mut self,
3922            v: V,
3923        ) -> Self {
3924            self.0.request = v.into();
3925            self
3926        }
3927
3928        /// Sets all the options, replacing any prior values.
3929        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
3930            self.0.options = v.into();
3931            self
3932        }
3933
3934        /// Sends the request.
3935        pub async fn send(self) -> Result<()> {
3936            (*self.0.stub)
3937                .delete_workflow_config(self.0.request, self.0.options)
3938                .await
3939                .map(gax::response::Response::into_body)
3940        }
3941
3942        /// Sets the value of [name][crate::model::DeleteWorkflowConfigRequest::name].
3943        ///
3944        /// This is a **required** field for requests.
3945        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
3946            self.0.request.name = v.into();
3947            self
3948        }
3949    }
3950
3951    #[doc(hidden)]
3952    impl gax::options::internal::RequestBuilder for DeleteWorkflowConfig {
3953        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
3954            &mut self.0.options
3955        }
3956    }
3957
3958    /// The request builder for [Dataform::list_workflow_invocations][crate::client::Dataform::list_workflow_invocations] calls.
3959    ///
3960    /// # Example
3961    /// ```no_run
3962    /// # use google_cloud_dataform_v1::builder;
3963    /// use builder::dataform::ListWorkflowInvocations;
3964    /// # tokio_test::block_on(async {
3965    /// use gax::paginator::ItemPaginator;
3966    ///
3967    /// let builder = prepare_request_builder();
3968    /// let mut items = builder.by_item();
3969    /// while let Some(result) = items.next().await {
3970    ///   let item = result?;
3971    /// }
3972    /// # gax::Result::<()>::Ok(()) });
3973    ///
3974    /// fn prepare_request_builder() -> ListWorkflowInvocations {
3975    ///   # panic!();
3976    ///   // ... details omitted ...
3977    /// }
3978    /// ```
3979    #[derive(Clone, Debug)]
3980    pub struct ListWorkflowInvocations(
3981        RequestBuilder<crate::model::ListWorkflowInvocationsRequest>,
3982    );
3983
3984    impl ListWorkflowInvocations {
3985        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
3986            Self(RequestBuilder::new(stub))
3987        }
3988
3989        /// Sets the full request, replacing any prior values.
3990        pub fn with_request<V: Into<crate::model::ListWorkflowInvocationsRequest>>(
3991            mut self,
3992            v: V,
3993        ) -> Self {
3994            self.0.request = v.into();
3995            self
3996        }
3997
3998        /// Sets all the options, replacing any prior values.
3999        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4000            self.0.options = v.into();
4001            self
4002        }
4003
4004        /// Sends the request.
4005        pub async fn send(self) -> Result<crate::model::ListWorkflowInvocationsResponse> {
4006            (*self.0.stub)
4007                .list_workflow_invocations(self.0.request, self.0.options)
4008                .await
4009                .map(gax::response::Response::into_body)
4010        }
4011
4012        /// Streams each page in the collection.
4013        pub fn by_page(
4014            self,
4015        ) -> impl gax::paginator::Paginator<
4016            crate::model::ListWorkflowInvocationsResponse,
4017            gax::error::Error,
4018        > {
4019            use std::clone::Clone;
4020            let token = self.0.request.page_token.clone();
4021            let execute = move |token: String| {
4022                let mut builder = self.clone();
4023                builder.0.request = builder.0.request.set_page_token(token);
4024                builder.send()
4025            };
4026            gax::paginator::internal::new_paginator(token, execute)
4027        }
4028
4029        /// Streams each item in the collection.
4030        pub fn by_item(
4031            self,
4032        ) -> impl gax::paginator::ItemPaginator<
4033            crate::model::ListWorkflowInvocationsResponse,
4034            gax::error::Error,
4035        > {
4036            use gax::paginator::Paginator;
4037            self.by_page().items()
4038        }
4039
4040        /// Sets the value of [parent][crate::model::ListWorkflowInvocationsRequest::parent].
4041        ///
4042        /// This is a **required** field for requests.
4043        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
4044            self.0.request.parent = v.into();
4045            self
4046        }
4047
4048        /// Sets the value of [page_size][crate::model::ListWorkflowInvocationsRequest::page_size].
4049        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
4050            self.0.request.page_size = v.into();
4051            self
4052        }
4053
4054        /// Sets the value of [page_token][crate::model::ListWorkflowInvocationsRequest::page_token].
4055        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
4056            self.0.request.page_token = v.into();
4057            self
4058        }
4059
4060        /// Sets the value of [order_by][crate::model::ListWorkflowInvocationsRequest::order_by].
4061        pub fn set_order_by<T: Into<std::string::String>>(mut self, v: T) -> Self {
4062            self.0.request.order_by = v.into();
4063            self
4064        }
4065
4066        /// Sets the value of [filter][crate::model::ListWorkflowInvocationsRequest::filter].
4067        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
4068            self.0.request.filter = v.into();
4069            self
4070        }
4071    }
4072
4073    #[doc(hidden)]
4074    impl gax::options::internal::RequestBuilder for ListWorkflowInvocations {
4075        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4076            &mut self.0.options
4077        }
4078    }
4079
4080    /// The request builder for [Dataform::get_workflow_invocation][crate::client::Dataform::get_workflow_invocation] calls.
4081    ///
4082    /// # Example
4083    /// ```no_run
4084    /// # use google_cloud_dataform_v1::builder;
4085    /// use builder::dataform::GetWorkflowInvocation;
4086    /// # tokio_test::block_on(async {
4087    ///
4088    /// let builder = prepare_request_builder();
4089    /// let response = builder.send().await?;
4090    /// # gax::Result::<()>::Ok(()) });
4091    ///
4092    /// fn prepare_request_builder() -> GetWorkflowInvocation {
4093    ///   # panic!();
4094    ///   // ... details omitted ...
4095    /// }
4096    /// ```
4097    #[derive(Clone, Debug)]
4098    pub struct GetWorkflowInvocation(RequestBuilder<crate::model::GetWorkflowInvocationRequest>);
4099
4100    impl GetWorkflowInvocation {
4101        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4102            Self(RequestBuilder::new(stub))
4103        }
4104
4105        /// Sets the full request, replacing any prior values.
4106        pub fn with_request<V: Into<crate::model::GetWorkflowInvocationRequest>>(
4107            mut self,
4108            v: V,
4109        ) -> Self {
4110            self.0.request = v.into();
4111            self
4112        }
4113
4114        /// Sets all the options, replacing any prior values.
4115        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4116            self.0.options = v.into();
4117            self
4118        }
4119
4120        /// Sends the request.
4121        pub async fn send(self) -> Result<crate::model::WorkflowInvocation> {
4122            (*self.0.stub)
4123                .get_workflow_invocation(self.0.request, self.0.options)
4124                .await
4125                .map(gax::response::Response::into_body)
4126        }
4127
4128        /// Sets the value of [name][crate::model::GetWorkflowInvocationRequest::name].
4129        ///
4130        /// This is a **required** field for requests.
4131        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4132            self.0.request.name = v.into();
4133            self
4134        }
4135    }
4136
4137    #[doc(hidden)]
4138    impl gax::options::internal::RequestBuilder for GetWorkflowInvocation {
4139        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4140            &mut self.0.options
4141        }
4142    }
4143
4144    /// The request builder for [Dataform::create_workflow_invocation][crate::client::Dataform::create_workflow_invocation] calls.
4145    ///
4146    /// # Example
4147    /// ```no_run
4148    /// # use google_cloud_dataform_v1::builder;
4149    /// use builder::dataform::CreateWorkflowInvocation;
4150    /// # tokio_test::block_on(async {
4151    ///
4152    /// let builder = prepare_request_builder();
4153    /// let response = builder.send().await?;
4154    /// # gax::Result::<()>::Ok(()) });
4155    ///
4156    /// fn prepare_request_builder() -> CreateWorkflowInvocation {
4157    ///   # panic!();
4158    ///   // ... details omitted ...
4159    /// }
4160    /// ```
4161    #[derive(Clone, Debug)]
4162    pub struct CreateWorkflowInvocation(
4163        RequestBuilder<crate::model::CreateWorkflowInvocationRequest>,
4164    );
4165
4166    impl CreateWorkflowInvocation {
4167        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4168            Self(RequestBuilder::new(stub))
4169        }
4170
4171        /// Sets the full request, replacing any prior values.
4172        pub fn with_request<V: Into<crate::model::CreateWorkflowInvocationRequest>>(
4173            mut self,
4174            v: V,
4175        ) -> Self {
4176            self.0.request = v.into();
4177            self
4178        }
4179
4180        /// Sets all the options, replacing any prior values.
4181        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4182            self.0.options = v.into();
4183            self
4184        }
4185
4186        /// Sends the request.
4187        pub async fn send(self) -> Result<crate::model::WorkflowInvocation> {
4188            (*self.0.stub)
4189                .create_workflow_invocation(self.0.request, self.0.options)
4190                .await
4191                .map(gax::response::Response::into_body)
4192        }
4193
4194        /// Sets the value of [parent][crate::model::CreateWorkflowInvocationRequest::parent].
4195        ///
4196        /// This is a **required** field for requests.
4197        pub fn set_parent<T: Into<std::string::String>>(mut self, v: T) -> Self {
4198            self.0.request.parent = v.into();
4199            self
4200        }
4201
4202        /// Sets the value of [workflow_invocation][crate::model::CreateWorkflowInvocationRequest::workflow_invocation].
4203        ///
4204        /// This is a **required** field for requests.
4205        pub fn set_workflow_invocation<T>(mut self, v: T) -> Self
4206        where
4207            T: std::convert::Into<crate::model::WorkflowInvocation>,
4208        {
4209            self.0.request.workflow_invocation = std::option::Option::Some(v.into());
4210            self
4211        }
4212
4213        /// Sets or clears the value of [workflow_invocation][crate::model::CreateWorkflowInvocationRequest::workflow_invocation].
4214        ///
4215        /// This is a **required** field for requests.
4216        pub fn set_or_clear_workflow_invocation<T>(mut self, v: std::option::Option<T>) -> Self
4217        where
4218            T: std::convert::Into<crate::model::WorkflowInvocation>,
4219        {
4220            self.0.request.workflow_invocation = v.map(|x| x.into());
4221            self
4222        }
4223    }
4224
4225    #[doc(hidden)]
4226    impl gax::options::internal::RequestBuilder for CreateWorkflowInvocation {
4227        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4228            &mut self.0.options
4229        }
4230    }
4231
4232    /// The request builder for [Dataform::delete_workflow_invocation][crate::client::Dataform::delete_workflow_invocation] calls.
4233    ///
4234    /// # Example
4235    /// ```no_run
4236    /// # use google_cloud_dataform_v1::builder;
4237    /// use builder::dataform::DeleteWorkflowInvocation;
4238    /// # tokio_test::block_on(async {
4239    ///
4240    /// let builder = prepare_request_builder();
4241    /// let response = builder.send().await?;
4242    /// # gax::Result::<()>::Ok(()) });
4243    ///
4244    /// fn prepare_request_builder() -> DeleteWorkflowInvocation {
4245    ///   # panic!();
4246    ///   // ... details omitted ...
4247    /// }
4248    /// ```
4249    #[derive(Clone, Debug)]
4250    pub struct DeleteWorkflowInvocation(
4251        RequestBuilder<crate::model::DeleteWorkflowInvocationRequest>,
4252    );
4253
4254    impl DeleteWorkflowInvocation {
4255        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4256            Self(RequestBuilder::new(stub))
4257        }
4258
4259        /// Sets the full request, replacing any prior values.
4260        pub fn with_request<V: Into<crate::model::DeleteWorkflowInvocationRequest>>(
4261            mut self,
4262            v: V,
4263        ) -> Self {
4264            self.0.request = v.into();
4265            self
4266        }
4267
4268        /// Sets all the options, replacing any prior values.
4269        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4270            self.0.options = v.into();
4271            self
4272        }
4273
4274        /// Sends the request.
4275        pub async fn send(self) -> Result<()> {
4276            (*self.0.stub)
4277                .delete_workflow_invocation(self.0.request, self.0.options)
4278                .await
4279                .map(gax::response::Response::into_body)
4280        }
4281
4282        /// Sets the value of [name][crate::model::DeleteWorkflowInvocationRequest::name].
4283        ///
4284        /// This is a **required** field for requests.
4285        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4286            self.0.request.name = v.into();
4287            self
4288        }
4289    }
4290
4291    #[doc(hidden)]
4292    impl gax::options::internal::RequestBuilder for DeleteWorkflowInvocation {
4293        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4294            &mut self.0.options
4295        }
4296    }
4297
4298    /// The request builder for [Dataform::cancel_workflow_invocation][crate::client::Dataform::cancel_workflow_invocation] calls.
4299    ///
4300    /// # Example
4301    /// ```no_run
4302    /// # use google_cloud_dataform_v1::builder;
4303    /// use builder::dataform::CancelWorkflowInvocation;
4304    /// # tokio_test::block_on(async {
4305    ///
4306    /// let builder = prepare_request_builder();
4307    /// let response = builder.send().await?;
4308    /// # gax::Result::<()>::Ok(()) });
4309    ///
4310    /// fn prepare_request_builder() -> CancelWorkflowInvocation {
4311    ///   # panic!();
4312    ///   // ... details omitted ...
4313    /// }
4314    /// ```
4315    #[derive(Clone, Debug)]
4316    pub struct CancelWorkflowInvocation(
4317        RequestBuilder<crate::model::CancelWorkflowInvocationRequest>,
4318    );
4319
4320    impl CancelWorkflowInvocation {
4321        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4322            Self(RequestBuilder::new(stub))
4323        }
4324
4325        /// Sets the full request, replacing any prior values.
4326        pub fn with_request<V: Into<crate::model::CancelWorkflowInvocationRequest>>(
4327            mut self,
4328            v: V,
4329        ) -> Self {
4330            self.0.request = v.into();
4331            self
4332        }
4333
4334        /// Sets all the options, replacing any prior values.
4335        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4336            self.0.options = v.into();
4337            self
4338        }
4339
4340        /// Sends the request.
4341        pub async fn send(self) -> Result<crate::model::CancelWorkflowInvocationResponse> {
4342            (*self.0.stub)
4343                .cancel_workflow_invocation(self.0.request, self.0.options)
4344                .await
4345                .map(gax::response::Response::into_body)
4346        }
4347
4348        /// Sets the value of [name][crate::model::CancelWorkflowInvocationRequest::name].
4349        ///
4350        /// This is a **required** field for requests.
4351        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4352            self.0.request.name = v.into();
4353            self
4354        }
4355    }
4356
4357    #[doc(hidden)]
4358    impl gax::options::internal::RequestBuilder for CancelWorkflowInvocation {
4359        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4360            &mut self.0.options
4361        }
4362    }
4363
4364    /// The request builder for [Dataform::query_workflow_invocation_actions][crate::client::Dataform::query_workflow_invocation_actions] calls.
4365    ///
4366    /// # Example
4367    /// ```no_run
4368    /// # use google_cloud_dataform_v1::builder;
4369    /// use builder::dataform::QueryWorkflowInvocationActions;
4370    /// # tokio_test::block_on(async {
4371    /// use gax::paginator::ItemPaginator;
4372    ///
4373    /// let builder = prepare_request_builder();
4374    /// let mut items = builder.by_item();
4375    /// while let Some(result) = items.next().await {
4376    ///   let item = result?;
4377    /// }
4378    /// # gax::Result::<()>::Ok(()) });
4379    ///
4380    /// fn prepare_request_builder() -> QueryWorkflowInvocationActions {
4381    ///   # panic!();
4382    ///   // ... details omitted ...
4383    /// }
4384    /// ```
4385    #[derive(Clone, Debug)]
4386    pub struct QueryWorkflowInvocationActions(
4387        RequestBuilder<crate::model::QueryWorkflowInvocationActionsRequest>,
4388    );
4389
4390    impl QueryWorkflowInvocationActions {
4391        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4392            Self(RequestBuilder::new(stub))
4393        }
4394
4395        /// Sets the full request, replacing any prior values.
4396        pub fn with_request<V: Into<crate::model::QueryWorkflowInvocationActionsRequest>>(
4397            mut self,
4398            v: V,
4399        ) -> Self {
4400            self.0.request = v.into();
4401            self
4402        }
4403
4404        /// Sets all the options, replacing any prior values.
4405        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4406            self.0.options = v.into();
4407            self
4408        }
4409
4410        /// Sends the request.
4411        pub async fn send(self) -> Result<crate::model::QueryWorkflowInvocationActionsResponse> {
4412            (*self.0.stub)
4413                .query_workflow_invocation_actions(self.0.request, self.0.options)
4414                .await
4415                .map(gax::response::Response::into_body)
4416        }
4417
4418        /// Streams each page in the collection.
4419        pub fn by_page(
4420            self,
4421        ) -> impl gax::paginator::Paginator<
4422            crate::model::QueryWorkflowInvocationActionsResponse,
4423            gax::error::Error,
4424        > {
4425            use std::clone::Clone;
4426            let token = self.0.request.page_token.clone();
4427            let execute = move |token: String| {
4428                let mut builder = self.clone();
4429                builder.0.request = builder.0.request.set_page_token(token);
4430                builder.send()
4431            };
4432            gax::paginator::internal::new_paginator(token, execute)
4433        }
4434
4435        /// Streams each item in the collection.
4436        pub fn by_item(
4437            self,
4438        ) -> impl gax::paginator::ItemPaginator<
4439            crate::model::QueryWorkflowInvocationActionsResponse,
4440            gax::error::Error,
4441        > {
4442            use gax::paginator::Paginator;
4443            self.by_page().items()
4444        }
4445
4446        /// Sets the value of [name][crate::model::QueryWorkflowInvocationActionsRequest::name].
4447        ///
4448        /// This is a **required** field for requests.
4449        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4450            self.0.request.name = v.into();
4451            self
4452        }
4453
4454        /// Sets the value of [page_size][crate::model::QueryWorkflowInvocationActionsRequest::page_size].
4455        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
4456            self.0.request.page_size = v.into();
4457            self
4458        }
4459
4460        /// Sets the value of [page_token][crate::model::QueryWorkflowInvocationActionsRequest::page_token].
4461        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
4462            self.0.request.page_token = v.into();
4463            self
4464        }
4465    }
4466
4467    #[doc(hidden)]
4468    impl gax::options::internal::RequestBuilder for QueryWorkflowInvocationActions {
4469        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4470            &mut self.0.options
4471        }
4472    }
4473
4474    /// The request builder for [Dataform::get_config][crate::client::Dataform::get_config] calls.
4475    ///
4476    /// # Example
4477    /// ```no_run
4478    /// # use google_cloud_dataform_v1::builder;
4479    /// use builder::dataform::GetConfig;
4480    /// # tokio_test::block_on(async {
4481    ///
4482    /// let builder = prepare_request_builder();
4483    /// let response = builder.send().await?;
4484    /// # gax::Result::<()>::Ok(()) });
4485    ///
4486    /// fn prepare_request_builder() -> GetConfig {
4487    ///   # panic!();
4488    ///   // ... details omitted ...
4489    /// }
4490    /// ```
4491    #[derive(Clone, Debug)]
4492    pub struct GetConfig(RequestBuilder<crate::model::GetConfigRequest>);
4493
4494    impl GetConfig {
4495        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4496            Self(RequestBuilder::new(stub))
4497        }
4498
4499        /// Sets the full request, replacing any prior values.
4500        pub fn with_request<V: Into<crate::model::GetConfigRequest>>(mut self, v: V) -> Self {
4501            self.0.request = v.into();
4502            self
4503        }
4504
4505        /// Sets all the options, replacing any prior values.
4506        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4507            self.0.options = v.into();
4508            self
4509        }
4510
4511        /// Sends the request.
4512        pub async fn send(self) -> Result<crate::model::Config> {
4513            (*self.0.stub)
4514                .get_config(self.0.request, self.0.options)
4515                .await
4516                .map(gax::response::Response::into_body)
4517        }
4518
4519        /// Sets the value of [name][crate::model::GetConfigRequest::name].
4520        ///
4521        /// This is a **required** field for requests.
4522        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4523            self.0.request.name = v.into();
4524            self
4525        }
4526    }
4527
4528    #[doc(hidden)]
4529    impl gax::options::internal::RequestBuilder for GetConfig {
4530        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4531            &mut self.0.options
4532        }
4533    }
4534
4535    /// The request builder for [Dataform::update_config][crate::client::Dataform::update_config] calls.
4536    ///
4537    /// # Example
4538    /// ```no_run
4539    /// # use google_cloud_dataform_v1::builder;
4540    /// use builder::dataform::UpdateConfig;
4541    /// # tokio_test::block_on(async {
4542    ///
4543    /// let builder = prepare_request_builder();
4544    /// let response = builder.send().await?;
4545    /// # gax::Result::<()>::Ok(()) });
4546    ///
4547    /// fn prepare_request_builder() -> UpdateConfig {
4548    ///   # panic!();
4549    ///   // ... details omitted ...
4550    /// }
4551    /// ```
4552    #[derive(Clone, Debug)]
4553    pub struct UpdateConfig(RequestBuilder<crate::model::UpdateConfigRequest>);
4554
4555    impl UpdateConfig {
4556        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4557            Self(RequestBuilder::new(stub))
4558        }
4559
4560        /// Sets the full request, replacing any prior values.
4561        pub fn with_request<V: Into<crate::model::UpdateConfigRequest>>(mut self, v: V) -> Self {
4562            self.0.request = v.into();
4563            self
4564        }
4565
4566        /// Sets all the options, replacing any prior values.
4567        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4568            self.0.options = v.into();
4569            self
4570        }
4571
4572        /// Sends the request.
4573        pub async fn send(self) -> Result<crate::model::Config> {
4574            (*self.0.stub)
4575                .update_config(self.0.request, self.0.options)
4576                .await
4577                .map(gax::response::Response::into_body)
4578        }
4579
4580        /// Sets the value of [config][crate::model::UpdateConfigRequest::config].
4581        ///
4582        /// This is a **required** field for requests.
4583        pub fn set_config<T>(mut self, v: T) -> Self
4584        where
4585            T: std::convert::Into<crate::model::Config>,
4586        {
4587            self.0.request.config = std::option::Option::Some(v.into());
4588            self
4589        }
4590
4591        /// Sets or clears the value of [config][crate::model::UpdateConfigRequest::config].
4592        ///
4593        /// This is a **required** field for requests.
4594        pub fn set_or_clear_config<T>(mut self, v: std::option::Option<T>) -> Self
4595        where
4596            T: std::convert::Into<crate::model::Config>,
4597        {
4598            self.0.request.config = v.map(|x| x.into());
4599            self
4600        }
4601
4602        /// Sets the value of [update_mask][crate::model::UpdateConfigRequest::update_mask].
4603        pub fn set_update_mask<T>(mut self, v: T) -> Self
4604        where
4605            T: std::convert::Into<wkt::FieldMask>,
4606        {
4607            self.0.request.update_mask = std::option::Option::Some(v.into());
4608            self
4609        }
4610
4611        /// Sets or clears the value of [update_mask][crate::model::UpdateConfigRequest::update_mask].
4612        pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
4613        where
4614            T: std::convert::Into<wkt::FieldMask>,
4615        {
4616            self.0.request.update_mask = v.map(|x| x.into());
4617            self
4618        }
4619    }
4620
4621    #[doc(hidden)]
4622    impl gax::options::internal::RequestBuilder for UpdateConfig {
4623        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4624            &mut self.0.options
4625        }
4626    }
4627
4628    /// The request builder for [Dataform::list_locations][crate::client::Dataform::list_locations] calls.
4629    ///
4630    /// # Example
4631    /// ```no_run
4632    /// # use google_cloud_dataform_v1::builder;
4633    /// use builder::dataform::ListLocations;
4634    /// # tokio_test::block_on(async {
4635    /// use gax::paginator::ItemPaginator;
4636    ///
4637    /// let builder = prepare_request_builder();
4638    /// let mut items = builder.by_item();
4639    /// while let Some(result) = items.next().await {
4640    ///   let item = result?;
4641    /// }
4642    /// # gax::Result::<()>::Ok(()) });
4643    ///
4644    /// fn prepare_request_builder() -> ListLocations {
4645    ///   # panic!();
4646    ///   // ... details omitted ...
4647    /// }
4648    /// ```
4649    #[derive(Clone, Debug)]
4650    pub struct ListLocations(RequestBuilder<location::model::ListLocationsRequest>);
4651
4652    impl ListLocations {
4653        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4654            Self(RequestBuilder::new(stub))
4655        }
4656
4657        /// Sets the full request, replacing any prior values.
4658        pub fn with_request<V: Into<location::model::ListLocationsRequest>>(
4659            mut self,
4660            v: V,
4661        ) -> Self {
4662            self.0.request = v.into();
4663            self
4664        }
4665
4666        /// Sets all the options, replacing any prior values.
4667        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4668            self.0.options = v.into();
4669            self
4670        }
4671
4672        /// Sends the request.
4673        pub async fn send(self) -> Result<location::model::ListLocationsResponse> {
4674            (*self.0.stub)
4675                .list_locations(self.0.request, self.0.options)
4676                .await
4677                .map(gax::response::Response::into_body)
4678        }
4679
4680        /// Streams each page in the collection.
4681        pub fn by_page(
4682            self,
4683        ) -> impl gax::paginator::Paginator<location::model::ListLocationsResponse, gax::error::Error>
4684        {
4685            use std::clone::Clone;
4686            let token = self.0.request.page_token.clone();
4687            let execute = move |token: String| {
4688                let mut builder = self.clone();
4689                builder.0.request = builder.0.request.set_page_token(token);
4690                builder.send()
4691            };
4692            gax::paginator::internal::new_paginator(token, execute)
4693        }
4694
4695        /// Streams each item in the collection.
4696        pub fn by_item(
4697            self,
4698        ) -> impl gax::paginator::ItemPaginator<location::model::ListLocationsResponse, gax::error::Error>
4699        {
4700            use gax::paginator::Paginator;
4701            self.by_page().items()
4702        }
4703
4704        /// Sets the value of [name][location::model::ListLocationsRequest::name].
4705        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4706            self.0.request.name = v.into();
4707            self
4708        }
4709
4710        /// Sets the value of [filter][location::model::ListLocationsRequest::filter].
4711        pub fn set_filter<T: Into<std::string::String>>(mut self, v: T) -> Self {
4712            self.0.request.filter = v.into();
4713            self
4714        }
4715
4716        /// Sets the value of [page_size][location::model::ListLocationsRequest::page_size].
4717        pub fn set_page_size<T: Into<i32>>(mut self, v: T) -> Self {
4718            self.0.request.page_size = v.into();
4719            self
4720        }
4721
4722        /// Sets the value of [page_token][location::model::ListLocationsRequest::page_token].
4723        pub fn set_page_token<T: Into<std::string::String>>(mut self, v: T) -> Self {
4724            self.0.request.page_token = v.into();
4725            self
4726        }
4727    }
4728
4729    #[doc(hidden)]
4730    impl gax::options::internal::RequestBuilder for ListLocations {
4731        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4732            &mut self.0.options
4733        }
4734    }
4735
4736    /// The request builder for [Dataform::get_location][crate::client::Dataform::get_location] calls.
4737    ///
4738    /// # Example
4739    /// ```no_run
4740    /// # use google_cloud_dataform_v1::builder;
4741    /// use builder::dataform::GetLocation;
4742    /// # tokio_test::block_on(async {
4743    ///
4744    /// let builder = prepare_request_builder();
4745    /// let response = builder.send().await?;
4746    /// # gax::Result::<()>::Ok(()) });
4747    ///
4748    /// fn prepare_request_builder() -> GetLocation {
4749    ///   # panic!();
4750    ///   // ... details omitted ...
4751    /// }
4752    /// ```
4753    #[derive(Clone, Debug)]
4754    pub struct GetLocation(RequestBuilder<location::model::GetLocationRequest>);
4755
4756    impl GetLocation {
4757        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4758            Self(RequestBuilder::new(stub))
4759        }
4760
4761        /// Sets the full request, replacing any prior values.
4762        pub fn with_request<V: Into<location::model::GetLocationRequest>>(mut self, v: V) -> Self {
4763            self.0.request = v.into();
4764            self
4765        }
4766
4767        /// Sets all the options, replacing any prior values.
4768        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4769            self.0.options = v.into();
4770            self
4771        }
4772
4773        /// Sends the request.
4774        pub async fn send(self) -> Result<location::model::Location> {
4775            (*self.0.stub)
4776                .get_location(self.0.request, self.0.options)
4777                .await
4778                .map(gax::response::Response::into_body)
4779        }
4780
4781        /// Sets the value of [name][location::model::GetLocationRequest::name].
4782        pub fn set_name<T: Into<std::string::String>>(mut self, v: T) -> Self {
4783            self.0.request.name = v.into();
4784            self
4785        }
4786    }
4787
4788    #[doc(hidden)]
4789    impl gax::options::internal::RequestBuilder for GetLocation {
4790        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4791            &mut self.0.options
4792        }
4793    }
4794
4795    /// The request builder for [Dataform::set_iam_policy][crate::client::Dataform::set_iam_policy] calls.
4796    ///
4797    /// # Example
4798    /// ```no_run
4799    /// # use google_cloud_dataform_v1::builder;
4800    /// use builder::dataform::SetIamPolicy;
4801    /// # tokio_test::block_on(async {
4802    ///
4803    /// let builder = prepare_request_builder();
4804    /// let response = builder.send().await?;
4805    /// # gax::Result::<()>::Ok(()) });
4806    ///
4807    /// fn prepare_request_builder() -> SetIamPolicy {
4808    ///   # panic!();
4809    ///   // ... details omitted ...
4810    /// }
4811    /// ```
4812    #[derive(Clone, Debug)]
4813    pub struct SetIamPolicy(RequestBuilder<iam_v1::model::SetIamPolicyRequest>);
4814
4815    impl SetIamPolicy {
4816        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4817            Self(RequestBuilder::new(stub))
4818        }
4819
4820        /// Sets the full request, replacing any prior values.
4821        pub fn with_request<V: Into<iam_v1::model::SetIamPolicyRequest>>(mut self, v: V) -> Self {
4822            self.0.request = v.into();
4823            self
4824        }
4825
4826        /// Sets all the options, replacing any prior values.
4827        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4828            self.0.options = v.into();
4829            self
4830        }
4831
4832        /// Sends the request.
4833        pub async fn send(self) -> Result<iam_v1::model::Policy> {
4834            (*self.0.stub)
4835                .set_iam_policy(self.0.request, self.0.options)
4836                .await
4837                .map(gax::response::Response::into_body)
4838        }
4839
4840        /// Sets the value of [resource][iam_v1::model::SetIamPolicyRequest::resource].
4841        ///
4842        /// This is a **required** field for requests.
4843        pub fn set_resource<T: Into<std::string::String>>(mut self, v: T) -> Self {
4844            self.0.request.resource = v.into();
4845            self
4846        }
4847
4848        /// Sets the value of [policy][iam_v1::model::SetIamPolicyRequest::policy].
4849        ///
4850        /// This is a **required** field for requests.
4851        pub fn set_policy<T>(mut self, v: T) -> Self
4852        where
4853            T: std::convert::Into<iam_v1::model::Policy>,
4854        {
4855            self.0.request.policy = std::option::Option::Some(v.into());
4856            self
4857        }
4858
4859        /// Sets or clears the value of [policy][iam_v1::model::SetIamPolicyRequest::policy].
4860        ///
4861        /// This is a **required** field for requests.
4862        pub fn set_or_clear_policy<T>(mut self, v: std::option::Option<T>) -> Self
4863        where
4864            T: std::convert::Into<iam_v1::model::Policy>,
4865        {
4866            self.0.request.policy = v.map(|x| x.into());
4867            self
4868        }
4869
4870        /// Sets the value of [update_mask][iam_v1::model::SetIamPolicyRequest::update_mask].
4871        pub fn set_update_mask<T>(mut self, v: T) -> Self
4872        where
4873            T: std::convert::Into<wkt::FieldMask>,
4874        {
4875            self.0.request.update_mask = std::option::Option::Some(v.into());
4876            self
4877        }
4878
4879        /// Sets or clears the value of [update_mask][iam_v1::model::SetIamPolicyRequest::update_mask].
4880        pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
4881        where
4882            T: std::convert::Into<wkt::FieldMask>,
4883        {
4884            self.0.request.update_mask = v.map(|x| x.into());
4885            self
4886        }
4887    }
4888
4889    #[doc(hidden)]
4890    impl gax::options::internal::RequestBuilder for SetIamPolicy {
4891        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4892            &mut self.0.options
4893        }
4894    }
4895
4896    /// The request builder for [Dataform::get_iam_policy][crate::client::Dataform::get_iam_policy] calls.
4897    ///
4898    /// # Example
4899    /// ```no_run
4900    /// # use google_cloud_dataform_v1::builder;
4901    /// use builder::dataform::GetIamPolicy;
4902    /// # tokio_test::block_on(async {
4903    ///
4904    /// let builder = prepare_request_builder();
4905    /// let response = builder.send().await?;
4906    /// # gax::Result::<()>::Ok(()) });
4907    ///
4908    /// fn prepare_request_builder() -> GetIamPolicy {
4909    ///   # panic!();
4910    ///   // ... details omitted ...
4911    /// }
4912    /// ```
4913    #[derive(Clone, Debug)]
4914    pub struct GetIamPolicy(RequestBuilder<iam_v1::model::GetIamPolicyRequest>);
4915
4916    impl GetIamPolicy {
4917        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4918            Self(RequestBuilder::new(stub))
4919        }
4920
4921        /// Sets the full request, replacing any prior values.
4922        pub fn with_request<V: Into<iam_v1::model::GetIamPolicyRequest>>(mut self, v: V) -> Self {
4923            self.0.request = v.into();
4924            self
4925        }
4926
4927        /// Sets all the options, replacing any prior values.
4928        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
4929            self.0.options = v.into();
4930            self
4931        }
4932
4933        /// Sends the request.
4934        pub async fn send(self) -> Result<iam_v1::model::Policy> {
4935            (*self.0.stub)
4936                .get_iam_policy(self.0.request, self.0.options)
4937                .await
4938                .map(gax::response::Response::into_body)
4939        }
4940
4941        /// Sets the value of [resource][iam_v1::model::GetIamPolicyRequest::resource].
4942        ///
4943        /// This is a **required** field for requests.
4944        pub fn set_resource<T: Into<std::string::String>>(mut self, v: T) -> Self {
4945            self.0.request.resource = v.into();
4946            self
4947        }
4948
4949        /// Sets the value of [options][iam_v1::model::GetIamPolicyRequest::options].
4950        pub fn set_options<T>(mut self, v: T) -> Self
4951        where
4952            T: std::convert::Into<iam_v1::model::GetPolicyOptions>,
4953        {
4954            self.0.request.options = std::option::Option::Some(v.into());
4955            self
4956        }
4957
4958        /// Sets or clears the value of [options][iam_v1::model::GetIamPolicyRequest::options].
4959        pub fn set_or_clear_options<T>(mut self, v: std::option::Option<T>) -> Self
4960        where
4961            T: std::convert::Into<iam_v1::model::GetPolicyOptions>,
4962        {
4963            self.0.request.options = v.map(|x| x.into());
4964            self
4965        }
4966    }
4967
4968    #[doc(hidden)]
4969    impl gax::options::internal::RequestBuilder for GetIamPolicy {
4970        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
4971            &mut self.0.options
4972        }
4973    }
4974
4975    /// The request builder for [Dataform::test_iam_permissions][crate::client::Dataform::test_iam_permissions] calls.
4976    ///
4977    /// # Example
4978    /// ```no_run
4979    /// # use google_cloud_dataform_v1::builder;
4980    /// use builder::dataform::TestIamPermissions;
4981    /// # tokio_test::block_on(async {
4982    ///
4983    /// let builder = prepare_request_builder();
4984    /// let response = builder.send().await?;
4985    /// # gax::Result::<()>::Ok(()) });
4986    ///
4987    /// fn prepare_request_builder() -> TestIamPermissions {
4988    ///   # panic!();
4989    ///   // ... details omitted ...
4990    /// }
4991    /// ```
4992    #[derive(Clone, Debug)]
4993    pub struct TestIamPermissions(RequestBuilder<iam_v1::model::TestIamPermissionsRequest>);
4994
4995    impl TestIamPermissions {
4996        pub(crate) fn new(stub: std::sync::Arc<dyn super::super::stub::dynamic::Dataform>) -> Self {
4997            Self(RequestBuilder::new(stub))
4998        }
4999
5000        /// Sets the full request, replacing any prior values.
5001        pub fn with_request<V: Into<iam_v1::model::TestIamPermissionsRequest>>(
5002            mut self,
5003            v: V,
5004        ) -> Self {
5005            self.0.request = v.into();
5006            self
5007        }
5008
5009        /// Sets all the options, replacing any prior values.
5010        pub fn with_options<V: Into<gax::options::RequestOptions>>(mut self, v: V) -> Self {
5011            self.0.options = v.into();
5012            self
5013        }
5014
5015        /// Sends the request.
5016        pub async fn send(self) -> Result<iam_v1::model::TestIamPermissionsResponse> {
5017            (*self.0.stub)
5018                .test_iam_permissions(self.0.request, self.0.options)
5019                .await
5020                .map(gax::response::Response::into_body)
5021        }
5022
5023        /// Sets the value of [resource][iam_v1::model::TestIamPermissionsRequest::resource].
5024        ///
5025        /// This is a **required** field for requests.
5026        pub fn set_resource<T: Into<std::string::String>>(mut self, v: T) -> Self {
5027            self.0.request.resource = v.into();
5028            self
5029        }
5030
5031        /// Sets the value of [permissions][iam_v1::model::TestIamPermissionsRequest::permissions].
5032        ///
5033        /// This is a **required** field for requests.
5034        pub fn set_permissions<T, V>(mut self, v: T) -> Self
5035        where
5036            T: std::iter::IntoIterator<Item = V>,
5037            V: std::convert::Into<std::string::String>,
5038        {
5039            use std::iter::Iterator;
5040            self.0.request.permissions = v.into_iter().map(|i| i.into()).collect();
5041            self
5042        }
5043    }
5044
5045    #[doc(hidden)]
5046    impl gax::options::internal::RequestBuilder for TestIamPermissions {
5047        fn request_options(&mut self) -> &mut gax::options::RequestOptions {
5048            &mut self.0.options
5049        }
5050    }
5051}