구조체 CheckGrounding(0.5.0)

[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] 값을 설정합니다.