Package com.google.cloud.retail.v2
Enum Model.PeriodicTuningState
- java.lang.Object
-
- java.lang.Enum<Model.PeriodicTuningState>
-
- com.google.cloud.retail.v2.Model.PeriodicTuningState
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Model.PeriodicTuningState>
- Enclosing class:
- Model
public static enum Model.PeriodicTuningState extends Enum<Model.PeriodicTuningState> implements com.google.protobuf.ProtocolMessageEnum
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.
Protobuf enumgoogle.cloud.retail.v2.Model.PeriodicTuningState
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_TUNING_DISABLED
The model cannot be tuned with periodic tuning OR the `TuneModel` method.PERIODIC_TUNING_DISABLED
The model has periodic tuning disabled.PERIODIC_TUNING_ENABLED
The model has periodic tuning enabled.PERIODIC_TUNING_STATE_UNSPECIFIED
Unspecified default value, should never be explicitly set.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_TUNING_DISABLED_VALUE
The model cannot be tuned with periodic tuning OR the `TuneModel` method.static int
PERIODIC_TUNING_DISABLED_VALUE
The model has periodic tuning disabled.static int
PERIODIC_TUNING_ENABLED_VALUE
The model has periodic tuning enabled.static int
PERIODIC_TUNING_STATE_UNSPECIFIED_VALUE
Unspecified default value, should never be explicitly set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Model.PeriodicTuningState
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Model.PeriodicTuningState>
internalGetValueMap()
static Model.PeriodicTuningState
valueOf(int value)
Deprecated.static Model.PeriodicTuningState
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Model.PeriodicTuningState
valueOf(String name)
Returns the enum constant of this type with the specified name.static Model.PeriodicTuningState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERIODIC_TUNING_STATE_UNSPECIFIED
public static final Model.PeriodicTuningState PERIODIC_TUNING_STATE_UNSPECIFIED
Unspecified default value, should never be explicitly set.
PERIODIC_TUNING_STATE_UNSPECIFIED = 0;
-
PERIODIC_TUNING_DISABLED
public static final Model.PeriodicTuningState PERIODIC_TUNING_DISABLED
The model has periodic tuning disabled. Tuning can be reenabled by calling the `EnableModelPeriodicTuning` method or by calling the `TuneModel` method.
PERIODIC_TUNING_DISABLED = 1;
-
ALL_TUNING_DISABLED
public static final Model.PeriodicTuningState ALL_TUNING_DISABLED
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.
ALL_TUNING_DISABLED = 3;
-
PERIODIC_TUNING_ENABLED
public static final Model.PeriodicTuningState PERIODIC_TUNING_ENABLED
The model has periodic tuning enabled. Tuning can be disabled by calling the `DisableModelPeriodicTuning` method.
PERIODIC_TUNING_ENABLED = 2;
-
UNRECOGNIZED
public static final Model.PeriodicTuningState UNRECOGNIZED
-
-
Field Detail
-
PERIODIC_TUNING_STATE_UNSPECIFIED_VALUE
public static final int PERIODIC_TUNING_STATE_UNSPECIFIED_VALUE
Unspecified default value, should never be explicitly set.
PERIODIC_TUNING_STATE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
PERIODIC_TUNING_DISABLED_VALUE
public static final int PERIODIC_TUNING_DISABLED_VALUE
The model has periodic tuning disabled. Tuning can be reenabled by calling the `EnableModelPeriodicTuning` method or by calling the `TuneModel` method.
PERIODIC_TUNING_DISABLED = 1;
- See Also:
- Constant Field Values
-
ALL_TUNING_DISABLED_VALUE
public static final int ALL_TUNING_DISABLED_VALUE
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.
ALL_TUNING_DISABLED = 3;
- See Also:
- Constant Field Values
-
PERIODIC_TUNING_ENABLED_VALUE
public static final int PERIODIC_TUNING_ENABLED_VALUE
The model has periodic tuning enabled. Tuning can be disabled by calling the `DisableModelPeriodicTuning` method.
PERIODIC_TUNING_ENABLED = 2;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Model.PeriodicTuningState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Model.PeriodicTuningState c : Model.PeriodicTuningState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Model.PeriodicTuningState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Model.PeriodicTuningState valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static Model.PeriodicTuningState forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Model.PeriodicTuningState> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Model.PeriodicTuningState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-