Der Request Builder für [PipelineService::list_locations][crate::client::PipelineService::list_locations]-Aufrufe.
Beispiel
# 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 ...
}
Implementierungen
with_request
fn with_request<V: Into<location::model::ListLocationsRequest>>(self, v: V) -> Self
Legt die vollständige Anfrage fest und ersetzt alle vorherigen Werte.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Legt alle Optionen fest und ersetzt alle vorherigen Werte.
senden
async fn send(self) -> Result<location::model::ListLocationsResponse>
Sendet die Anfrage.
by_page
fn by_page(self) -> impl gax::paginator::Paginator<location::model::ListLocationsResponse, gax::error::Error>
Streamt jede Seite in der Sammlung.
by_item
fn by_item(self) -> impl gax::paginator::ItemPaginator<location::model::ListLocationsResponse, gax::error::Error>
Streamt jedes Element in der Sammlung.
set_name
fn set_name<T: Into<std::string::String>>(self, v: T) -> Self
Legt den Wert von [name][location::model::ListLocationsRequest::name] fest.
set_filter
fn set_filter<T: Into<std::string::String>>(self, v: T) -> Self
Legt den Wert von [filter][location::model::ListLocationsRequest::filter] fest.
set_page_size
fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Legt den Wert von [page_size][location::model::ListLocationsRequest::page_size] fest.
set_page_token
fn set_page_token<T: Into<std::string::String>>(self, v: T) -> Self
Legt den Wert von [page_token][location::model::ListLocationsRequest::page_token] fest.