#[non_exhaustive]pub struct RagManagedDbConfig {
pub tier: Option<Tier>,
/* private fields */
}vertex-rag-data-service only.Expand description
Configuration message for RagManagedDb used by RagEngine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tier: Option<Tier>The tier of the RagManagedDb.
Implementations§
Source§impl RagManagedDbConfig
impl RagManagedDbConfig
pub fn new() -> Self
Sourcepub fn set_tier<T: Into<Option<Tier>>>(self, v: T) -> Self
pub fn set_tier<T: Into<Option<Tier>>>(self, v: T) -> Self
Sets the value of tier.
Note that all the setters affecting tier are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::rag_managed_db_config::Scaled;
let x = RagManagedDbConfig::new().set_tier(Some(
google_cloud_aiplatform_v1::model::rag_managed_db_config::Tier::Scaled(Scaled::default().into())));Sourcepub fn scaled(&self) -> Option<&Box<Scaled>>
pub fn scaled(&self) -> Option<&Box<Scaled>>
The value of tier
if it holds a Scaled, None if the field is not set or
holds a different branch.
Sourcepub fn set_scaled<T: Into<Box<Scaled>>>(self, v: T) -> Self
pub fn set_scaled<T: Into<Box<Scaled>>>(self, v: T) -> Self
Sets the value of tier
to hold a Scaled.
Note that all the setters affecting tier are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::rag_managed_db_config::Scaled;
let x = RagManagedDbConfig::new().set_scaled(Scaled::default()/* use setters */);
assert!(x.scaled().is_some());
assert!(x.basic().is_none());
assert!(x.unprovisioned().is_none());Sourcepub fn basic(&self) -> Option<&Box<Basic>>
pub fn basic(&self) -> Option<&Box<Basic>>
The value of tier
if it holds a Basic, None if the field is not set or
holds a different branch.
Sourcepub fn set_basic<T: Into<Box<Basic>>>(self, v: T) -> Self
pub fn set_basic<T: Into<Box<Basic>>>(self, v: T) -> Self
Sets the value of tier
to hold a Basic.
Note that all the setters affecting tier are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::rag_managed_db_config::Basic;
let x = RagManagedDbConfig::new().set_basic(Basic::default()/* use setters */);
assert!(x.basic().is_some());
assert!(x.scaled().is_none());
assert!(x.unprovisioned().is_none());Sourcepub fn unprovisioned(&self) -> Option<&Box<Unprovisioned>>
pub fn unprovisioned(&self) -> Option<&Box<Unprovisioned>>
The value of tier
if it holds a Unprovisioned, None if the field is not set or
holds a different branch.
Sourcepub fn set_unprovisioned<T: Into<Box<Unprovisioned>>>(self, v: T) -> Self
pub fn set_unprovisioned<T: Into<Box<Unprovisioned>>>(self, v: T) -> Self
Sets the value of tier
to hold a Unprovisioned.
Note that all the setters affecting tier are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::rag_managed_db_config::Unprovisioned;
let x = RagManagedDbConfig::new().set_unprovisioned(Unprovisioned::default()/* use setters */);
assert!(x.unprovisioned().is_some());
assert!(x.scaled().is_none());
assert!(x.basic().is_none());Trait Implementations§
Source§impl Clone for RagManagedDbConfig
impl Clone for RagManagedDbConfig
Source§fn clone(&self) -> RagManagedDbConfig
fn clone(&self) -> RagManagedDbConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more