Il generatore di richieste per le chiamate [LookupService::resolve_service][crate::client::LookupService::resolve_service].
Esempio
# use google_cloud_servicedirectory_v1::builder;
use builder::lookup_service::ResolveService;
# tokio_test::block_on(async {
let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> ResolveService {
# panic!();
// ... details omitted ...
}
Implementazioni
with_request
fn with_request<V: Into<crate::model::ResolveServiceRequest>>(self, v: V) -> Self
Imposta la richiesta completa, sostituendo i valori precedenti.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Imposta tutte le opzioni, sostituendo i valori precedenti.
invia
async fn send(self) -> Result<crate::model::ResolveServiceResponse>
Invia la richiesta.
set_name
fn set_name<T: Into<std::string::String>>(self, v: T) -> Self
Imposta il valore di [name][crate::model::ResolveServiceRequest::name].
Questo campo è obbligatorio per le richieste.
set_max_endpoints
fn set_max_endpoints<T: Into<i32>>(self, v: T) -> Self
Imposta il valore di [max_endpoints][crate::model::ResolveServiceRequest::max_endpoints].
set_endpoint_filter
fn set_endpoint_filter<T: Into<std::string::String>>(self, v: T) -> Self
Imposta il valore di [endpoint_filter][crate::model::ResolveServiceRequest::endpoint_filter].