構造体 CreateRagCorpusRequest(0.5.0)

VertexRagDataService.CreateRagCorpus のリクエスト メッセージ。

フィールド

親

必須。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] の値を設定またはクリアします。