public static enum RecommendationStateInfo.State extends Enum<RecommendationStateInfo.State> implements com.google.protobuf.ProtocolMessageEnum
Represents Recommendation State.Protobuf enum
google.cloud.recommender.v1.RecommendationStateInfo.State| Enum Constant and Description |
|---|
ACTIVE
Recommendation is active and can be applied.
|
CLAIMED
Recommendation is in claimed state.
|
DISMISSED
Recommendation is in dismissed state.
|
FAILED
Recommendation is in failed state.
|
STATE_UNSPECIFIED
Default state.
|
SUCCEEDED
Recommendation is in succeeded state.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_VALUE
Recommendation is active and can be applied.
|
static int |
CLAIMED_VALUE
Recommendation is in claimed state.
|
static int |
DISMISSED_VALUE
Recommendation is in dismissed state.
|
static int |
FAILED_VALUE
Recommendation is in failed state.
|
static int |
STATE_UNSPECIFIED_VALUE
Default state.
|
static int |
SUCCEEDED_VALUE
Recommendation is in succeeded state.
|
| Modifier and Type | Method and Description |
|---|---|
static RecommendationStateInfo.State |
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<RecommendationStateInfo.State> |
internalGetValueMap() |
static RecommendationStateInfo.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RecommendationStateInfo.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RecommendationStateInfo.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecommendationStateInfo.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecommendationStateInfo.State STATE_UNSPECIFIED
Default state. Don't use directly.
STATE_UNSPECIFIED = 0;public static final RecommendationStateInfo.State ACTIVE
Recommendation is active and can be applied. Recommendations content can be updated by Google. ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
ACTIVE = 1;public static final RecommendationStateInfo.State CLAIMED
Recommendation is in claimed state. Recommendations content is immutable and cannot be updated by Google. CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
CLAIMED = 6;public static final RecommendationStateInfo.State SUCCEEDED
Recommendation is in succeeded state. Recommendations content is immutable and cannot be updated by Google. SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED.
SUCCEEDED = 3;public static final RecommendationStateInfo.State FAILED
Recommendation is in failed state. Recommendations content is immutable and cannot be updated by Google. FAILED recommendations can be marked as SUCCEEDED, or FAILED.
FAILED = 4;public static final RecommendationStateInfo.State DISMISSED
Recommendation is in dismissed state. Recommendation content can be updated by Google. DISMISSED recommendations can be marked as ACTIVE.
DISMISSED = 5;public static final RecommendationStateInfo.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Default state. Don't use directly.
STATE_UNSPECIFIED = 0;public static final int ACTIVE_VALUE
Recommendation is active and can be applied. Recommendations content can be updated by Google. ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
ACTIVE = 1;public static final int CLAIMED_VALUE
Recommendation is in claimed state. Recommendations content is immutable and cannot be updated by Google. CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
CLAIMED = 6;public static final int SUCCEEDED_VALUE
Recommendation is in succeeded state. Recommendations content is immutable and cannot be updated by Google. SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED.
SUCCEEDED = 3;public static final int FAILED_VALUE
Recommendation is in failed state. Recommendations content is immutable and cannot be updated by Google. FAILED recommendations can be marked as SUCCEEDED, or FAILED.
FAILED = 4;public static final int DISMISSED_VALUE
Recommendation is in dismissed state. Recommendation content can be updated by Google. DISMISSED recommendations can be marked as ACTIVE.
DISMISSED = 5;public static RecommendationStateInfo.State[] values()
for (RecommendationStateInfo.State c : RecommendationStateInfo.State.values()) System.out.println(c);
public static RecommendationStateInfo.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static RecommendationStateInfo.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RecommendationStateInfo.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RecommendationStateInfo.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RecommendationStateInfo.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 Google LLC. All rights reserved.