Enum google_api_proto::google::cloud::retail::v2::model::PeriodicTuningState
source · #[repr(i32)]pub enum PeriodicTuningState {
Unspecified = 0,
PeriodicTuningDisabled = 1,
AllTuningDisabled = 3,
PeriodicTuningEnabled = 2,
}
Expand description
Describes whether periodic tuning is enabled for this model
or not. Periodic tuning is scheduled at most every three months. You can
start a tuning process manually by using the TuneModel
method, which starts a tuning process immediately and resets the quarterly
schedule. Enabling or disabling periodic tuning does not affect any
current tuning processes.
Variants§
Unspecified = 0
Unspecified default value, should never be explicitly set.
PeriodicTuningDisabled = 1
The model has periodic tuning disabled. Tuning
can be reenabled by calling the EnableModelPeriodicTuning
method or by calling the TuneModel
method.
AllTuningDisabled = 3
The model cannot be tuned with periodic tuning OR the
TuneModel
method. Hide the options in customer UI and
reject any requests through the backend self serve API.
PeriodicTuningEnabled = 2
The model has periodic tuning enabled. Tuning
can be disabled by calling the DisableModelPeriodicTuning
method.
Implementations§
source§impl PeriodicTuningState
impl PeriodicTuningState
sourcepub fn from_i32(value: i32) -> Option<PeriodicTuningState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PeriodicTuningState>
Converts an i32
to a PeriodicTuningState
, or None
if value
is not a valid variant.
source§impl PeriodicTuningState
impl PeriodicTuningState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PeriodicTuningState
impl Clone for PeriodicTuningState
source§fn clone(&self) -> PeriodicTuningState
fn clone(&self) -> PeriodicTuningState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PeriodicTuningState
impl Debug for PeriodicTuningState
source§impl Default for PeriodicTuningState
impl Default for PeriodicTuningState
source§fn default() -> PeriodicTuningState
fn default() -> PeriodicTuningState
source§impl From<PeriodicTuningState> for i32
impl From<PeriodicTuningState> for i32
source§fn from(value: PeriodicTuningState) -> i32
fn from(value: PeriodicTuningState) -> i32
source§impl Hash for PeriodicTuningState
impl Hash for PeriodicTuningState
source§impl Ord for PeriodicTuningState
impl Ord for PeriodicTuningState
source§fn cmp(&self, other: &PeriodicTuningState) -> Ordering
fn cmp(&self, other: &PeriodicTuningState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PeriodicTuningState
impl PartialEq for PeriodicTuningState
source§fn eq(&self, other: &PeriodicTuningState) -> bool
fn eq(&self, other: &PeriodicTuningState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PeriodicTuningState
impl PartialOrd for PeriodicTuningState
source§fn partial_cmp(&self, other: &PeriodicTuningState) -> Option<Ordering>
fn partial_cmp(&self, other: &PeriodicTuningState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PeriodicTuningState
impl TryFrom<i32> for PeriodicTuningState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PeriodicTuningState, UnknownEnumValue>
fn try_from(value: i32) -> Result<PeriodicTuningState, UnknownEnumValue>
impl Copy for PeriodicTuningState
impl Eq for PeriodicTuningState
impl StructuralPartialEq for PeriodicTuningState
Auto Trait Implementations§
impl Freeze for PeriodicTuningState
impl RefUnwindSafe for PeriodicTuningState
impl Send for PeriodicTuningState
impl Sync for PeriodicTuningState
impl Unpin for PeriodicTuningState
impl UnwindSafe for PeriodicTuningState
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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