[TranslationService::list_adaptive_mt_datasets][crate::client::TranslationService::list_adaptive_mt_datasets] 呼叫的要求建構工具。
範例
# use google_cloud_translation_v3::builder;
use builder::translation_service::ListAdaptiveMtDatasets;
# 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() -> ListAdaptiveMtDatasets {
# panic!();
// ... details omitted ...
}
實作
with_request
fn with_request<V: Into<crate::model::ListAdaptiveMtDatasetsRequest>>(self, v: V) -> Self
設定完整要求,取代任何先前的值。
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
設定所有選項,取代任何先前的值。
傳送
async fn send(self) -> Result<crate::model::ListAdaptiveMtDatasetsResponse>
傳送要求。
by_page
fn by_page(self) -> impl gax::paginator::Paginator<crate::model::ListAdaptiveMtDatasetsResponse, gax::error::Error>
串流集合中的每個頁面。
by_item
fn by_item(self) -> impl gax::paginator::ItemPaginator<crate::model::ListAdaptiveMtDatasetsResponse, gax::error::Error>
串流集合中的每個項目。
set_parent
fn set_parent<T: Into<std::string::String>>(self, v: T) -> Self
設定 [parent][crate::model::ListAdaptiveMtDatasetsRequest::parent] 的值。
這是要求的必填欄位。
set_page_size
fn set_page_size<T: Into<i32>>(self, v: T) -> Self
設定 [page_size][crate::model::ListAdaptiveMtDatasetsRequest::page_size] 的值。
set_page_token
fn set_page_token<T: Into<std::string::String>>(self, v: T) -> Self
設定 [page_token][crate::model::ListAdaptiveMtDatasetsRequest::page_token] 的值。
set_filter
fn set_filter<T: Into<std::string::String>>(self, v: T) -> Self
設定 [filter][crate::model::ListAdaptiveMtDatasetsRequest::filter] 的值。