Struct CreateRagCorpusRequest (0.5.0)

Fields

parent

Required. The resource name of the Location to create the RagCorpus in. Format: projects/{project}/locations/{location}

rag_corpus

Required. The RagCorpus to create.

Implementations

new

 fn new() -> Self

set_parent

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

Sets the value of [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>,

Sets the value of [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>,

Sets or clears the value of [rag_corpus][crate::model::CreateRagCorpusRequest::rag_corpus].