AS AgentScopeAPI 手册 / API Reference

PayloadCase

public enum PayloadCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum
源码Source io/agentscope/aistio/proto/Downstream.java:48–89

定义负载取值的枚举。位于 io.agentscope.aistio.proto 包,实现 com.google.protobuf.Internal.EnumLite、com.google.protobuf.AbstractMessage.InternalOneOfEnum。核心成员包括 valueOf、forNumber、getNumber、CONNECT_ACK、CONFIG_PUSH、SESSION_CMD。

A enum in io.agentscope.aistio.proto that defines enum values used when components deploys, schedules and serves agents. Declared in io.agentscope.aistio.proto. Implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
CONNECT_ACK
执行连接确认相关操作。
Performs the CONNECT ACK operation.
CONFIG_PUSH
执行配置推送相关操作。
Performs the CONFIG PUSH operation.
SESSION_CMD
执行会话 CMD相关操作。
Performs the SESSION CMD operation.
EXECUTION_ATTEMPT
执行执行尝试相关操作。
Performs the EXECUTION ATTEMPT operation.
HEARTBEAT
执行心跳相关操作。
Performs the HEARTBEAT operation.
CONVERSATION_TURN
执行会话轮次相关操作。
Performs the CONVERSATION TURN operation.
EVENT_ACK
执行事件确认相关操作。
Performs the EVENT ACK operation.
PAYLOAD_NOT_SET
执行负载不设置相关操作。
Performs the PAYLOAD NOT SET operation.

方法摘要Method Summary

方法Method说明Description
public static PayloadCase valueOf(int value)
staticdeprecated
设置值的。
Performs the value of operation.
public static PayloadCase forNumber(int value)
static
设置用于数量。
Performs the for number operation.
public int getNumber()
获取数量。
Returns the number.

枚举常量详情Enum Constant Detail

CONNECT_ACK

CONNECT_ACK(10)
staticfinal

执行连接确认相关操作。

Performs the CONNECT ACK operation.

源码Source io/agentscope/aistio/proto/Downstream.java:51

CONFIG_PUSH

CONFIG_PUSH(11)
staticfinal

执行配置推送相关操作。

Performs the CONFIG PUSH operation.

源码Source io/agentscope/aistio/proto/Downstream.java:52

SESSION_CMD

SESSION_CMD(12)
staticfinal

执行会话 CMD相关操作。

Performs the SESSION CMD operation.

源码Source io/agentscope/aistio/proto/Downstream.java:53

EXECUTION_ATTEMPT

EXECUTION_ATTEMPT(13)
staticfinal

执行执行尝试相关操作。

Performs the EXECUTION ATTEMPT operation.

源码Source io/agentscope/aistio/proto/Downstream.java:54

HEARTBEAT

HEARTBEAT(14)
staticfinal

执行心跳相关操作。

Performs the HEARTBEAT operation.

源码Source io/agentscope/aistio/proto/Downstream.java:55

CONVERSATION_TURN

CONVERSATION_TURN(15)
staticfinal

执行会话轮次相关操作。

Performs the CONVERSATION TURN operation.

源码Source io/agentscope/aistio/proto/Downstream.java:56

EVENT_ACK

EVENT_ACK(16)
staticfinal

执行事件确认相关操作。

Performs the EVENT ACK operation.

源码Source io/agentscope/aistio/proto/Downstream.java:57

PAYLOAD_NOT_SET

PAYLOAD_NOT_SET(0)
staticfinal

执行负载不设置相关操作。

Performs the PAYLOAD NOT SET operation.

源码Source io/agentscope/aistio/proto/Downstream.java:58

方法详情Method Detail

valueOf

public static PayloadCase valueOf(int value)
staticdeprecated

设置值的。

Performs the value of operation.

已弃用。Deprecated. 已弃用,请改用受支持的替代 API。Use `#forNumber(int)` instead.
参数Parameters
名称Name类型Type说明Description
valueint值(类型 `int`)。The number of the enum to look for.
返回Returns PayloadCase
返回负载取值。The enum associated with the given number.
源码Source io/agentscope/aistio/proto/Downstream.java:68–71

forNumber

public static PayloadCase forNumber(int value)
static

设置用于数量。

Performs the for number operation.

参数Parameters
名称Name类型Type说明Description
valueint值(类型 `int`)。The value.
返回Returns PayloadCase
返回负载取值。Returns payload case.
源码Source io/agentscope/aistio/proto/Downstream.java:73–85

getNumber

public int getNumber()

获取数量。

Returns the number.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/aistio/proto/Downstream.java:86–88
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.