Enum Class ReflectAndRetryToolPlugin.TrackingScope
java.lang.Object
java.lang.Enum<ReflectAndRetryToolPlugin.TrackingScope>
com.google.adk.plugins.ReflectAndRetryToolPlugin.TrackingScope
- All Implemented Interfaces:
Serializable, Comparable<ReflectAndRetryToolPlugin.TrackingScope>, Constable
- Enclosing class:
ReflectAndRetryToolPlugin
@Experimental
public static enum ReflectAndRetryToolPlugin.TrackingScope
extends Enum<ReflectAndRetryToolPlugin.TrackingScope>
用于定义用于跟踪工具故障次数的生命周期范围(即工具从启动到关闭的整个使用过程)。
-
嵌套类概述
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
枚举常量概述
Enum ConstantsEnum ConstantDescription这些失败记录会一直保存在插件实例的生命周期内,并在所有调用该插件的过程中被共享。失败次数仅针对单次调用进行记录,并通过该调用的 ID 来标识。 -
方法概述
Modifier and TypeMethodDescription返回该类中具有指定名称的枚举常量。values()返回一个数组,其中包含该枚举类中的所有常量,并按照它们被声明的顺序排列。
-
枚举常量详细信息
-
INVOCATION
失败次数仅针对单次调用进行记录,并通过该调用的 ID 来标识。 -
GLOBAL
这些失败记录会一直保存在插件实例的生命周期内,并在所有调用该插件的过程中被共享。
-
-
方法详细信息(Method Details)
-
values
返回一个数组,其中包含该枚举类中的所有常量,并按照它们被声明的顺序排列。- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
返回该类中具有指定名称的枚举常量。 该字符串必须与指定的名称完全匹配。 确切地;准确地 这是一个用于在该类中声明枚举常量的标识符。(不允许使用多余的空白字符。)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-