הבקשה ל-builder לקריאות [SchemaService::update_schema][crate::client::SchemaService::update_schema].
דוגמה
# 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 ...
}
הטמעות
with_request
fn with_request<V: Into<crate::model::UpdateSchemaRequest>>(self, v: V) -> Self
מגדיר את הבקשה המלאה ומחליף את כל הערכים הקודמים.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
מגדירה את כל האפשרויות ומחליפה את כל הערכים הקודמים.
send
async fn send(self) -> Result<longrunning::model::Operation>
שליחת הבקשה.
פעולות ממושכות
הפעולה הזו מתחילה פעולה ממושכת, אבל לא דוגמת אותה. מידע נוסף זמין בכתובת [update_schema][crate::client::SchemaService::update_schema].
דוגם
fn poller(self) -> impl lro::Poller<crate::model::Schema, crate::model::UpdateSchemaMetadata>
יוצר [Poller][lro::Poller] לעבודה עם update_schema.
set_schema
fn set_schema<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::Schema>,
מגדיר את הערך של [schema][crate::model::UpdateSchemaRequest::schema].
זהו שדה חובה בבקשות.
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>,
מגדיר או מוחק את הערך של [schema][crate::model::UpdateSchemaRequest::schema].
זהו שדה חובה בבקשות.
set_allow_missing
fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
מגדיר את הערך של [allow_missing][crate::model::UpdateSchemaRequest::allow_missing].