Struct google_api_proto::google::cloud::discoveryengine::v1alpha::engine::RecommendationMetadata
source · pub struct RecommendationMetadata {
pub serving_state: i32,
pub data_state: i32,
pub last_tune_time: Option<Timestamp>,
pub tuning_operation: String,
}
Expand description
Additional information of a recommendation engine.
Fields§
§serving_state: i32
Output only. The serving state of the engine: ACTIVE
, NOT_ACTIVE
.
data_state: i32
Output only. The state of data requirements for this engine: DATA_OK
and DATA_ERROR
.
Engine cannot be trained if the data is in
DATA_ERROR
state. Engine can have DATA_ERROR
state even
if serving state is ACTIVE
: engines were trained successfully before,
but cannot be refreshed because the underlying engine no longer has
sufficient data for training.
last_tune_time: Option<Timestamp>
Output only. The timestamp when the latest successful tune finished. Only applicable on Media Recommendation engines.
tuning_operation: String
Output only. The latest tune operation id associated with the engine. Only applicable on Media Recommendation engines.
If present, this operation id can be used to determine if there is an ongoing tune for this engine. To check the operation status, send the GetOperation request with this operation id in the engine resource format. If no tuning has happened for this engine, the string is empty.
Implementations§
source§impl RecommendationMetadata
impl RecommendationMetadata
sourcepub fn serving_state(&self) -> ServingState
pub fn serving_state(&self) -> ServingState
Returns the enum value of serving_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_serving_state(&mut self, value: ServingState)
pub fn set_serving_state(&mut self, value: ServingState)
Sets serving_state
to the provided enum value.
sourcepub fn data_state(&self) -> DataState
pub fn data_state(&self) -> DataState
Returns the enum value of data_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_data_state(&mut self, value: DataState)
pub fn set_data_state(&mut self, value: DataState)
Sets data_state
to the provided enum value.
Trait Implementations§
source§impl Clone for RecommendationMetadata
impl Clone for RecommendationMetadata
source§fn clone(&self) -> RecommendationMetadata
fn clone(&self) -> RecommendationMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationMetadata
impl Debug for RecommendationMetadata
source§impl Default for RecommendationMetadata
impl Default for RecommendationMetadata
source§impl Message for RecommendationMetadata
impl Message for RecommendationMetadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RecommendationMetadata
impl PartialEq for RecommendationMetadata
source§fn eq(&self, other: &RecommendationMetadata) -> bool
fn eq(&self, other: &RecommendationMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationMetadata
Auto Trait Implementations§
impl Freeze for RecommendationMetadata
impl RefUnwindSafe for RecommendationMetadata
impl Send for RecommendationMetadata
impl Sync for RecommendationMetadata
impl Unpin for RecommendationMetadata
impl UnwindSafe for RecommendationMetadata
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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