Package com.google.cloud.dialogflow.v2
Enum DatastoreResponseReason
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DatastoreResponseReason>
@Generated
public enum DatastoreResponseReason
extends Enum<DatastoreResponseReason>
implements com.google.protobuf.ProtocolMessageEnum
Response reason from datastore which indicates data serving status or answer quality degradation.Protobuf enum
google.cloud.dialogflow.v2.DatastoreResponseReason-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAnswer generation encounters an error.Generative AI is disabled.Answer generation does not have enough information to generate answer.Answer generation is not grounded on reliable sources.Answer generation is blocked due to out of quota.Answer generation is blocked by RAI (Responsible AI) failure.Default value.No specific response reason from datastore.Search returns empty results.Search is blocked due to out of quota. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAnswer generation encounters an error.static final intGenerative AI is disabled.static final intAnswer generation does not have enough information to generate answer.static final intAnswer generation is not grounded on reliable sources.static final intAnswer generation is blocked due to out of quota.static final intAnswer generation is blocked by RAI (Responsible AI) failure.static final intDefault value.static final intNo specific response reason from datastore.static final intSearch returns empty results.static final intSearch is blocked due to out of quota. -
Method Summary
Modifier and TypeMethodDescriptionstatic DatastoreResponseReasonforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DatastoreResponseReason>static DatastoreResponseReasonvalueOf(int value) Deprecated.static DatastoreResponseReasonvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DatastoreResponseReasonReturns the enum constant of this type with the specified name.static DatastoreResponseReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATASTORE_RESPONSE_REASON_UNSPECIFIED
Default value.
DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0; -
NONE
No specific response reason from datastore.
NONE = 1; -
SEARCH_OUT_OF_QUOTA
Search is blocked due to out of quota.
SEARCH_OUT_OF_QUOTA = 2; -
SEARCH_EMPTY_RESULTS
Search returns empty results.
SEARCH_EMPTY_RESULTS = 3; -
ANSWER_GENERATION_GEN_AI_DISABLED
Generative AI is disabled.
ANSWER_GENERATION_GEN_AI_DISABLED = 4; -
ANSWER_GENERATION_OUT_OF_QUOTA
Answer generation is blocked due to out of quota.
ANSWER_GENERATION_OUT_OF_QUOTA = 5; -
ANSWER_GENERATION_ERROR
Answer generation encounters an error.
ANSWER_GENERATION_ERROR = 6; -
ANSWER_GENERATION_NOT_ENOUGH_INFO
Answer generation does not have enough information to generate answer.
ANSWER_GENERATION_NOT_ENOUGH_INFO = 7; -
ANSWER_GENERATION_RAI_FAILED
Answer generation is blocked by RAI (Responsible AI) failure.
ANSWER_GENERATION_RAI_FAILED = 8; -
ANSWER_GENERATION_NOT_GROUNDED
Answer generation is not grounded on reliable sources.
ANSWER_GENERATION_NOT_GROUNDED = 9; -
UNRECOGNIZED
-
-
Field Details
-
DATASTORE_RESPONSE_REASON_UNSPECIFIED_VALUE
public static final int DATASTORE_RESPONSE_REASON_UNSPECIFIED_VALUEDefault value.
DATASTORE_RESPONSE_REASON_UNSPECIFIED = 0;- See Also:
-
NONE_VALUE
public static final int NONE_VALUENo specific response reason from datastore.
NONE = 1;- See Also:
-
SEARCH_OUT_OF_QUOTA_VALUE
public static final int SEARCH_OUT_OF_QUOTA_VALUESearch is blocked due to out of quota.
SEARCH_OUT_OF_QUOTA = 2;- See Also:
-
SEARCH_EMPTY_RESULTS_VALUE
public static final int SEARCH_EMPTY_RESULTS_VALUESearch returns empty results.
SEARCH_EMPTY_RESULTS = 3;- See Also:
-
ANSWER_GENERATION_GEN_AI_DISABLED_VALUE
public static final int ANSWER_GENERATION_GEN_AI_DISABLED_VALUEGenerative AI is disabled.
ANSWER_GENERATION_GEN_AI_DISABLED = 4;- See Also:
-
ANSWER_GENERATION_OUT_OF_QUOTA_VALUE
public static final int ANSWER_GENERATION_OUT_OF_QUOTA_VALUEAnswer generation is blocked due to out of quota.
ANSWER_GENERATION_OUT_OF_QUOTA = 5;- See Also:
-
ANSWER_GENERATION_ERROR_VALUE
public static final int ANSWER_GENERATION_ERROR_VALUEAnswer generation encounters an error.
ANSWER_GENERATION_ERROR = 6;- See Also:
-
ANSWER_GENERATION_NOT_ENOUGH_INFO_VALUE
public static final int ANSWER_GENERATION_NOT_ENOUGH_INFO_VALUEAnswer generation does not have enough information to generate answer.
ANSWER_GENERATION_NOT_ENOUGH_INFO = 7;- See Also:
-
ANSWER_GENERATION_RAI_FAILED_VALUE
public static final int ANSWER_GENERATION_RAI_FAILED_VALUEAnswer generation is blocked by RAI (Responsible AI) failure.
ANSWER_GENERATION_RAI_FAILED = 8;- See Also:
-
ANSWER_GENERATION_NOT_GROUNDED_VALUE
public static final int ANSWER_GENERATION_NOT_GROUNDED_VALUEAnswer generation is not grounded on reliable sources.
ANSWER_GENERATION_NOT_GROUNDED = 9;- 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<DatastoreResponseReason> 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 DatastoreResponseReason 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
-