[GroundedGenerationService::check_grounding][crate::client::GroundedGenerationService::check_grounding] 呼び出しのリクエスト ビルダー。
例
# use google_cloud_discoveryengine_v1::builder;
use builder::grounded_generation_service::CheckGrounding;
# tokio_test::block_on(async {
let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> CheckGrounding {
# panic!();
// ... details omitted ...
}
実装
with_request
fn with_request<V: Into<crate::model::CheckGroundingRequest>>(self, v: V) -> Self
リクエスト全体を設定し、以前の値を置き換えます。
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
すべてのオプションを設定し、以前の値を置き換えます。
送信
async fn send(self) -> Result<crate::model::CheckGroundingResponse>
リクエストを送信します。
set_grounding_config
fn set_grounding_config<T: Into<std::string::String>>(self, v: T) -> Self
[grounding_config][crate::model::CheckGroundingRequest::grounding_config] の値を設定します。
これはリクエストの必須項目です。
set_answer_candidate
fn set_answer_candidate<T: Into<std::string::String>>(self, v: T) -> Self
[answer_candidate][crate::model::CheckGroundingRequest::answer_candidate] の値を設定します。
set_facts
fn set_facts<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<crate::model::GroundingFact>,
[facts][crate::model::CheckGroundingRequest::facts] の値を設定します。
set_grounding_spec
fn set_grounding_spec<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::CheckGroundingSpec>,
[grounding_spec][crate::model::CheckGroundingRequest::grounding_spec] の値を設定します。
set_or_clear_grounding_spec
fn set_or_clear_grounding_spec<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::CheckGroundingSpec>,
[grounding_spec][crate::model::CheckGroundingRequest::grounding_spec] の値を設定またはクリアします。
set_user_labels
fn set_user_labels<T, K, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
K: std::convert::Into<std::string::String>,
V: std::convert::Into<std::string::String>,
[user_labels][crate::model::CheckGroundingRequest::user_labels] の値を設定します。