Builder permintaan untuk panggilan [SchemaService::update_schema][crate::client::SchemaService::update_schema].
Contoh
# use google_cloud_discoveryengine_v1::builder;
use builder::schema_service::UpdateSchema;
# tokio_test::block_on(async {
use lro::Poller;
let builder = prepare_request_builder();
let response = builder.poller().until_done().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> UpdateSchema {
# panic!();
// ... details omitted ...
}
Implementasi
with_request
fn with_request<V: Into<crate::model::UpdateSchemaRequest>>(self, v: V) -> Self
Menetapkan permintaan lengkap, menggantikan nilai sebelumnya.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Menetapkan semua opsi, menggantikan nilai sebelumnya.
kirim
async fn send(self) -> Result<longrunning::model::Operation>
Mengirim permintaan.
Operasi yang berjalan lama
Tindakan ini akan memulai, tetapi tidak melakukan polling, operasi yang berjalan lama. Informasi selengkapnya tentang [update_schema][crate::client::SchemaService::update_schema].
poller
fn poller(self) -> impl lro::Poller<crate::model::Schema, crate::model::UpdateSchemaMetadata>
Membuat [Poller][lro::Poller] untuk digunakan dengan update_schema.
set_schema
fn set_schema<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::Schema>,
Menetapkan nilai [schema][crate::model::UpdateSchemaRequest::schema].
Kolom ini wajib diisi untuk permintaan.
set_or_clear_schema
fn set_or_clear_schema<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::Schema>,
Menetapkan atau menghapus nilai [schema][crate::model::UpdateSchemaRequest::schema].
Kolom ini wajib diisi untuk permintaan.
set_allow_missing
fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Menetapkan nilai [allow_missing][crate::model::UpdateSchemaRequest::allow_missing].