[PipelineService::list_locations][crate::client::PipelineService::list_locations] 呼び出しのリクエスト ビルダー。
例
# use google_cloud_aiplatform_v1::builder;
use builder::pipeline_service::ListLocations;
# 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() -> ListLocations {
# panic!();
// ... details omitted ...
}
実装
with_request
fn with_request<V: Into<location::model::ListLocationsRequest>>(self, v: V) -> Self
リクエスト全体を設定し、以前の値を置き換えます。
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
すべてのオプションを設定し、以前の値を置き換えます。
送信
async fn send(self) -> Result<location::model::ListLocationsResponse>
リクエストを送信します。
by_page
fn by_page(self) -> impl gax::paginator::Paginator<location::model::ListLocationsResponse, gax::error::Error>
コレクション内の各ページをストリーミングします。
by_item
fn by_item(self) -> impl gax::paginator::ItemPaginator<location::model::ListLocationsResponse, gax::error::Error>
コレクション内の各アイテムをストリーミングします。
set_name
fn set_name<T: Into<std::string::String>>(self, v: T) -> Self
[name][location::model::ListLocationsRequest::name] の値を設定します。
set_filter
fn set_filter<T: Into<std::string::String>>(self, v: T) -> Self
[filter][location::model::ListLocationsRequest::filter] の値を設定します。
set_page_size
fn set_page_size<T: Into<i32>>(self, v: T) -> Self
[page_size][location::model::ListLocationsRequest::page_size] の値を設定します。
set_page_token
fn set_page_token<T: Into<std::string::String>>(self, v: T) -> Self
[page_token][location::model::ListLocationsRequest::page_token] の値を設定します。