public static enum AnswerFeedback.CorrectnessLevel extends Enum<AnswerFeedback.CorrectnessLevel> implements ProtocolMessageEnum
The correctness level of an answer.Protobuf enum
google.cloud.dialogflow.v2beta1.AnswerFeedback.CorrectnessLevel
Enum Constant and Description |
---|
CORRECTNESS_LEVEL_UNSPECIFIED
Correctness level unspecified.
|
FULLY_CORRECT
Answer is fully correct.
|
NOT_CORRECT
Answer is totally wrong.
|
PARTIALLY_CORRECT
Answer is partially correct.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CORRECTNESS_LEVEL_UNSPECIFIED_VALUE
Correctness level unspecified.
|
static int |
FULLY_CORRECT_VALUE
Answer is fully correct.
|
static int |
NOT_CORRECT_VALUE
Answer is totally wrong.
|
static int |
PARTIALLY_CORRECT_VALUE
Answer is partially correct.
|
Modifier and Type | Method and Description |
---|---|
static AnswerFeedback.CorrectnessLevel |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<AnswerFeedback.CorrectnessLevel> |
internalGetValueMap() |
static AnswerFeedback.CorrectnessLevel |
valueOf(Descriptors.EnumValueDescriptor desc) |
static AnswerFeedback.CorrectnessLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AnswerFeedback.CorrectnessLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnswerFeedback.CorrectnessLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnswerFeedback.CorrectnessLevel CORRECTNESS_LEVEL_UNSPECIFIED
Correctness level unspecified.
CORRECTNESS_LEVEL_UNSPECIFIED = 0;
public static final AnswerFeedback.CorrectnessLevel NOT_CORRECT
Answer is totally wrong.
NOT_CORRECT = 1;
public static final AnswerFeedback.CorrectnessLevel PARTIALLY_CORRECT
Answer is partially correct.
PARTIALLY_CORRECT = 2;
public static final AnswerFeedback.CorrectnessLevel FULLY_CORRECT
Answer is fully correct.
FULLY_CORRECT = 3;
public static final AnswerFeedback.CorrectnessLevel UNRECOGNIZED
public static final int CORRECTNESS_LEVEL_UNSPECIFIED_VALUE
Correctness level unspecified.
CORRECTNESS_LEVEL_UNSPECIFIED = 0;
public static final int NOT_CORRECT_VALUE
Answer is totally wrong.
NOT_CORRECT = 1;
public static final int PARTIALLY_CORRECT_VALUE
Answer is partially correct.
PARTIALLY_CORRECT = 2;
public static final int FULLY_CORRECT_VALUE
Answer is fully correct.
FULLY_CORRECT = 3;
public static AnswerFeedback.CorrectnessLevel[] values()
for (AnswerFeedback.CorrectnessLevel c : AnswerFeedback.CorrectnessLevel.values()) System.out.println(c);
public static AnswerFeedback.CorrectnessLevel 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static AnswerFeedback.CorrectnessLevel valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static AnswerFeedback.CorrectnessLevel forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<AnswerFeedback.CorrectnessLevel> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static AnswerFeedback.CorrectnessLevel valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.