Package com.google.cloud.aiplatform.v1
Enum FunctionCallingConfig.Mode
java.lang.Object
java.lang.Enum<FunctionCallingConfig.Mode>
com.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FunctionCallingConfig.Mode>
- Enclosing class:
- FunctionCallingConfig
public static enum FunctionCallingConfig.Mode
extends Enum<FunctionCallingConfig.Mode>
implements com.google.protobuf.ProtocolMessageEnum
Function calling mode.Protobuf enum
google.cloud.aiplatform.v1.FunctionCallingConfig.Mode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionModel is constrained to always predicting function calls only.Default model behavior, model decides to predict either function calls or natural language response.Unspecified function calling mode.Model will not predict any function calls.Model is constrained to predict either function calls or natural language response. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intModel is constrained to always predicting function calls only.static final intDefault model behavior, model decides to predict either function calls or natural language response.static final intUnspecified function calling mode.static final intModel will not predict any function calls.static final intModel is constrained to predict either function calls or natural language response. -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionCallingConfig.ModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<FunctionCallingConfig.Mode>static FunctionCallingConfig.ModevalueOf(int value) Deprecated.static FunctionCallingConfig.ModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static FunctionCallingConfig.ModeReturns the enum constant of this type with the specified name.static FunctionCallingConfig.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MODE_UNSPECIFIED
Unspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0; -
AUTO
Default model behavior, model decides to predict either function calls or natural language response.
AUTO = 1; -
ANY
Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
ANY = 2; -
NONE
Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
NONE = 3; -
VALIDATED
Model is constrained to predict either function calls or natural language response. If [allowed_function_names][FunctionCallingConfig.allowed_function_names] are set, the predicted function calls will be limited to any one of `allowed_function_names`, else the predicted function calls will be any one of the provided [FunctionDeclaration].
VALIDATED = 5; -
UNRECOGNIZED
-
-
Field Details
-
MODE_UNSPECIFIED_VALUE
public static final int MODE_UNSPECIFIED_VALUEUnspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0;- See Also:
-
AUTO_VALUE
public static final int AUTO_VALUEDefault model behavior, model decides to predict either function calls or natural language response.
AUTO = 1;- See Also:
-
ANY_VALUE
public static final int ANY_VALUEModel is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
ANY = 2;- See Also:
-
NONE_VALUE
public static final int NONE_VALUEModel will not predict any function calls. Model behavior is same as when not passing any function declarations.
NONE = 3;- See Also:
-
VALIDATED_VALUE
public static final int VALIDATED_VALUEModel is constrained to predict either function calls or natural language response. If [allowed_function_names][FunctionCallingConfig.allowed_function_names] are set, the predicted function calls will be limited to any one of `allowed_function_names`, else the predicted function calls will be any one of the provided [FunctionDeclaration].
VALIDATED = 5;- 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<FunctionCallingConfig.Mode> 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 FunctionCallingConfig.Mode 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
-