Struct UpdateSchema (0.5.0)

The request builder for [SchemaService::update_schema][crate::client::SchemaService::update_schema] calls.

Example

# 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 ...
}

Implementations

with_request

 fn with_request<V: Into<crate::model::UpdateSchemaRequest>>(self, v: V) -> Self

Sets the full request, replacing any prior values.

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

Sets all the options, replacing any prior values.

send

async fn send(self) -> Result<longrunning::model::Operation>

Sends the request.

Long running operations

This starts, but does not poll, a longrunning operation. More information on [update_schema][crate::client::SchemaService::update_schema].

poller

 fn poller(self) -> impl lro::Poller<crate::model::Schema, crate::model::UpdateSchemaMetadata>

Creates a [Poller][lro::Poller] to work with update_schema.

set_schema

 fn set_schema<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Schema>,

Sets the value of [schema][crate::model::UpdateSchemaRequest::schema].

This is a required field for requests.

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>,

Sets or clears the value of [schema][crate::model::UpdateSchemaRequest::schema].

This is a required field for requests.

set_allow_missing

 fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self

Sets the value of [allow_missing][crate::model::UpdateSchemaRequest::allow_missing].