Package com.google.cloud.retail.v2alpha
Enum Model.PageOptimizationConfig.Restriction
java.lang.Object
java.lang.Enum<Model.PageOptimizationConfig.Restriction>
com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Restriction
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Model.PageOptimizationConfig.Restriction>
- Enclosing class:
- Model.PageOptimizationConfig
public static enum Model.PageOptimizationConfig.Restriction
extends Enum<Model.PageOptimizationConfig.Restriction>
implements com.google.protobuf.ProtocolMessageEnum
Restrictions of expected returned results.Protobuf enum
google.cloud.retail.v2alpha.Model.PageOptimizationConfig.Restriction-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow any [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to be show on any number of panels.Unspecified value for restriction.Do not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.name][google.cloud.retail.v2alpha.Model.name] to be show on on different panels.Do not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.type][google.cloud.retail.v2alpha.Model.type] to be shown on different panels.Do not allow the same [ServingConfig.name][google.cloud.retail.v2alpha.ServingConfig.name] to be shown on multiple panels. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllow any [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to be show on any number of panels.static final intUnspecified value for restriction.static final intDo not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.name][google.cloud.retail.v2alpha.Model.name] to be show on on different panels.static final intDo not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.type][google.cloud.retail.v2alpha.Model.type] to be shown on different panels.static final intDo not allow the same [ServingConfig.name][google.cloud.retail.v2alpha.ServingConfig.name] to be shown on multiple panels. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Model.PageOptimizationConfig.Restriction>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESTRICTION_UNSPECIFIED
Unspecified value for restriction.
RESTRICTION_UNSPECIFIED = 0; -
NO_RESTRICTION
Allow any [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to be show on any number of panels. Example: `Panel1 candidates`: pdp_ctr, pdp_cvr, home_page_ctr_no_diversity `Panel2 candidates`: home_page_ctr_no_diversity, home_page_ctr_diversity, pdp_cvr_no_diversity `Restriction` = NO_RESTRICTION `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: []
NO_RESTRICTION = 1; -
UNIQUE_SERVING_CONFIG_RESTRICTION
Do not allow the same [ServingConfig.name][google.cloud.retail.v2alpha.ServingConfig.name] to be shown on multiple panels. Example: `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity </i> `Panel2 candidates`: <i> home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity </i> `Restriction` = `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: * <i> (home_page_ctr_no_diversity, home_page_ctr_no_diversity) </i>
UNIQUE_SERVING_CONFIG_RESTRICTION = 2; -
UNIQUE_MODEL_RESTRICTION
Do not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.name][google.cloud.retail.v2alpha.Model.name] to be show on on different panels. Example: `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity </i> `Panel2 candidates`: <i> home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity </i> `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: * <i> (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) </i>
UNIQUE_MODEL_RESTRICTION = 3; -
UNIQUE_MODEL_TYPE_RESTRICTION
Do not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.type][google.cloud.retail.v2alpha.Model.type] to be shown on different panels. Example: `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity </i> `Panel2 candidates`: <i> home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity </i> `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: * <i> (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) </i>
UNIQUE_MODEL_TYPE_RESTRICTION = 4; -
UNRECOGNIZED
-
-
Field Details
-
RESTRICTION_UNSPECIFIED_VALUE
public static final int RESTRICTION_UNSPECIFIED_VALUEUnspecified value for restriction.
RESTRICTION_UNSPECIFIED = 0;- See Also:
-
NO_RESTRICTION_VALUE
public static final int NO_RESTRICTION_VALUEAllow any [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to be show on any number of panels. Example: `Panel1 candidates`: pdp_ctr, pdp_cvr, home_page_ctr_no_diversity `Panel2 candidates`: home_page_ctr_no_diversity, home_page_ctr_diversity, pdp_cvr_no_diversity `Restriction` = NO_RESTRICTION `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: []
NO_RESTRICTION = 1;- See Also:
-
UNIQUE_SERVING_CONFIG_RESTRICTION_VALUE
public static final int UNIQUE_SERVING_CONFIG_RESTRICTION_VALUEDo not allow the same [ServingConfig.name][google.cloud.retail.v2alpha.ServingConfig.name] to be shown on multiple panels. Example: `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity </i> `Panel2 candidates`: <i> home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity </i> `Restriction` = `UNIQUE_SERVING_CONFIG_RESTRICTION` `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity_low) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: * <i> (home_page_ctr_no_diversity, home_page_ctr_no_diversity) </i>
UNIQUE_SERVING_CONFIG_RESTRICTION = 2;- See Also:
-
UNIQUE_MODEL_RESTRICTION_VALUE
public static final int UNIQUE_MODEL_RESTRICTION_VALUEDo not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.name][google.cloud.retail.v2alpha.Model.name] to be show on on different panels. Example: `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity </i> `Panel2 candidates`: <i> home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity </i> `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: * <i> (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) </i>
UNIQUE_MODEL_RESTRICTION = 3;- See Also:
-
UNIQUE_MODEL_TYPE_RESTRICTION_VALUE
public static final int UNIQUE_MODEL_TYPE_RESTRICTION_VALUEDo not allow multiple [ServingConfigs][google.cloud.retail.v2alpha.ServingConfig] with same [Model.type][google.cloud.retail.v2alpha.Model.type] to be shown on different panels. Example: `Panel1 candidates`: <i> pdp_ctr, pdp_cvr, home_page_ctr_no_diversity </i> `Panel2 candidates`: <i> home_page_ctr_no_diversity, home_page_ctr_diversity_low, pdp_cvr_no_diversity </i> `Restriction` = `UNIQUE_MODEL_RESTRICTION` `Valid combinations`: * <i> (pdp_ctr, home_page_ctr_no_diversity) * (pdp_ctr, home_page_ctr_diversity) * (pdp_cvr, home_page_ctr_no_diversity) * (pdp_cvr, home_page_ctr_diversity_low) * (home_page_ctr_no_diversity, pdp_cvr_no_diversity) </i> `Invalid combinations`: * <i> (pdp_ctr, pdp_cvr_no_diversity) * (pdp_ctr, pdp_cvr_no_diversity) * (pdp_cvr, pdp_cvr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_no_diversity) * (home_page_ctr_no_diversity, home_page_ctr_diversity) </i>
UNIQUE_MODEL_TYPE_RESTRICTION = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- 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.PageOptimizationConfig.Restriction> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Model.PageOptimizationConfig.Restriction 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
-