Struct CreateRagCorpusRequest (0.5.0)

字段

父级

必需。要在其中创建 RagCorpus 的位置的资源名称。 格式:projects/{project}/locations/{location}

rag_corpus

必需。要创建的 RagCorpus。

实现

新

 fn new() -> Self

set_parent

 fn set_parent<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

设置 [parent][crate::model::CreateRagCorpusRequest::parent] 的值。

set_rag_corpus

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

设置 [rag_corpus][crate::model::CreateRagCorpusRequest::rag_corpus] 的值。

set_or_clear_rag_corpus

 fn set_or_clear_rag_corpus<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::RagCorpus>,

设置或清除 [rag_corpus][crate::model::CreateRagCorpusRequest::rag_corpus] 的值。