#[non_exhaustive]pub struct ReasoningEngine {
pub name: String,
pub display_name: String,
pub description: String,
pub spec: Option<ReasoningEngineSpec>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
pub encryption_spec: Option<EncryptionSpec>,
pub labels: HashMap<String, String>,
/* private fields */
}reasoning-engine-service only.Expand description
ReasoningEngine provides a customizable runtime for models to determine which actions to take and in which order.
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.name: StringIdentifier. The resource name of the ReasoningEngine.
Format:
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
display_name: StringRequired. The display name of the ReasoningEngine.
description: StringOptional. The description of the ReasoningEngine.
spec: Option<ReasoningEngineSpec>Optional. Configurations of the ReasoningEngine
create_time: Option<Timestamp>Output only. Timestamp when this ReasoningEngine was created.
update_time: Option<Timestamp>Output only. Timestamp when this ReasoningEngine was most recently updated.
etag: StringOptional. Used to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
encryption_spec: Option<EncryptionSpec>Customer-managed encryption key spec for a ReasoningEngine. If set, this ReasoningEngine and all sub-resources of this ReasoningEngine will be secured by this key.
labels: HashMap<String, String>Labels for the ReasoningEngine.
Implementations§
Source§impl ReasoningEngine
impl ReasoningEngine
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = ReasoningEngine::new().set_display_name("example");Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_spec<T>(self, v: T) -> Selfwhere
T: Into<ReasoningEngineSpec>,
pub fn set_spec<T>(self, v: T) -> Selfwhere
T: Into<ReasoningEngineSpec>,
Sourcepub fn set_or_clear_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReasoningEngineSpec>,
pub fn set_or_clear_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReasoningEngineSpec>,
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = ReasoningEngine::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = ReasoningEngine::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ReasoningEngine::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = ReasoningEngine::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = ReasoningEngine::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = ReasoningEngine::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
Sets the value of encryption_spec.
§Example
use google_cloud_aiplatform_v1::model::EncryptionSpec;
let x = ReasoningEngine::new().set_encryption_spec(EncryptionSpec::default()/* use setters */);Sourcepub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
Sets or clears the value of encryption_spec.
§Example
use google_cloud_aiplatform_v1::model::EncryptionSpec;
let x = ReasoningEngine::new().set_or_clear_encryption_spec(Some(EncryptionSpec::default()/* use setters */));
let x = ReasoningEngine::new().set_or_clear_encryption_spec(None::<EncryptionSpec>);Trait Implementations§
Source§impl Clone for ReasoningEngine
impl Clone for ReasoningEngine
Source§fn clone(&self) -> ReasoningEngine
fn clone(&self) -> ReasoningEngine
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReasoningEngine
impl Debug for ReasoningEngine
Source§impl Default for ReasoningEngine
impl Default for ReasoningEngine
Source§fn default() -> ReasoningEngine
fn default() -> ReasoningEngine
Source§impl Message for ReasoningEngine
impl Message for ReasoningEngine
Source§impl PartialEq for ReasoningEngine
impl PartialEq for ReasoningEngine
impl StructuralPartialEq for ReasoningEngine
Auto Trait Implementations§
impl Freeze for ReasoningEngine
impl RefUnwindSafe for ReasoningEngine
impl Send for ReasoningEngine
impl Sync for ReasoningEngine
impl Unpin for ReasoningEngine
impl UnsafeUnpin for ReasoningEngine
impl UnwindSafe for ReasoningEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request