The request builder for [Versions::list_versions][crate::client::Versions::list_versions] calls.
Example
# use google_cloud_dialogflow_cx_v3::builder;
use builder::versions::ListVersions;
# tokio_test::block_on(async {
use gax::paginator::ItemPaginator;
let builder = prepare_request_builder();
let mut items = builder.by_item();
while let Some(result) = items.next().await {
let item = result?;
}
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> ListVersions {
# panic!();
// ... details omitted ...
}
Implementations
with_request
fn with_request<V: Into<crate::model::ListVersionsRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
send
async fn send(self) -> Result<crate::model::ListVersionsResponse>
Sends the request.
by_page
fn by_page(self) -> impl gax::paginator::Paginator<crate::model::ListVersionsResponse, gax::error::Error>
Streams each page in the collection.
by_item
fn by_item(self) -> impl gax::paginator::ItemPaginator<crate::model::ListVersionsResponse, gax::error::Error>
Streams each item in the collection.
set_parent
fn set_parent<T: Into<std::string::String>>(self, v: T) -> Self
Sets the value of [parent][crate::model::ListVersionsRequest::parent].
This is a required field for requests.
set_page_size
fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of [page_size][crate::model::ListVersionsRequest::page_size].
set_page_token
fn set_page_token<T: Into<std::string::String>>(self, v: T) -> Self
Sets the value of [page_token][crate::model::ListVersionsRequest::page_token].