Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.ConversationTurnCommandOrBuilder
io/agentscope/controlplane/proto/ConversationTurnCommand.java:675–1617构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.ConversationTurnCommandOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
ConversationTurnCommand is the explicit online invocation protocol. It is
separate from SessionCommand because user turns require public invocation
identity, fencing, acknowledgement, streaming, and a final result.
Protobuf type agentscope.protocol.v1.ConversationTurnCommand
方法摘要Method Summary
方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/ConversationTurnCommand.java:679–682internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/ConversationTurnCommand.java:684–690clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:702–718getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/ConversationTurnCommand.java:720–724getDefaultInstanceForType
public io.agentscope.controlplane.proto.ConversationTurnCommand getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.ConversationTurnCommandio/agentscope/controlplane/proto/ConversationTurnCommand.java:726–729build
public io.agentscope.controlplane.proto.ConversationTurnCommand build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.ConversationTurnCommandio/agentscope/controlplane/proto/ConversationTurnCommand.java:731–738buildPartial
public io.agentscope.controlplane.proto.ConversationTurnCommand buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.ConversationTurnCommandio/agentscope/controlplane/proto/ConversationTurnCommand.java:740–746mergeFrom
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | com.google.protobuf.Message | other(类型 `com.google.protobuf.Message`)。The other. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:785–793mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.ConversationTurnCommand other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.ConversationTurnCommand | other(类型 `io.agentscope.controlplane.proto.ConversationTurnCommand`)。The other. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:795–849isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/ConversationTurnCommand.java:851–854mergeFrom
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | com.google.protobuf.CodedInputStream | 输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
Builderjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/ConversationTurnCommand.java:856–941getInvocationId
public java.lang.String getInvocationId()
获取 getInvocationId。
string invocation_id = 1;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:949–960getInvocationIdBytes
public com.google.protobuf.ByteString getInvocationIdBytes()
获取 getInvocationIdBytes。
string invocation_id = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:965–977setInvocationId
public Builder setInvocationId(java.lang.String value)
设置该配置项。
string invocation_id = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | invocationId 到设置。The invocationId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:983–990clearInvocationId
public Builder clearInvocationId()
清空 clearInvocationId。
string invocation_id = 1;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:995–1000setInvocationIdBytes
public Builder setInvocationIdBytes(com.google.protobuf.ByteString value)
设置该配置项。
string invocation_id = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 invocationId 到设置。The bytes for invocationId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1006–1014getConversationId
public java.lang.String getConversationId()
获取会话标识。
string conversation_id = 2;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1021–1032getConversationIdBytes
public com.google.protobuf.ByteString getConversationIdBytes()
获取会话标识字节。
string conversation_id = 2;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1037–1049setConversationId
public Builder setConversationId(java.lang.String value)
设置设置会话标识。
string conversation_id = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | conversationId 到设置。The conversationId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1055–1062clearConversationId
public Builder clearConversationId()
清空会话标识。
string conversation_id = 2;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1067–1072setConversationIdBytes
public Builder setConversationIdBytes(com.google.protobuf.ByteString value)
设置设置会话标识字节。
string conversation_id = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 conversationId 到设置。The bytes for conversationId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1078–1086getTurnId
public java.lang.String getTurnId()
获取轮次标识。
string turn_id = 3;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1093–1104getTurnIdBytes
public com.google.protobuf.ByteString getTurnIdBytes()
获取轮次标识字节。
string turn_id = 3;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1109–1121setTurnId
public Builder setTurnId(java.lang.String value)
设置设置轮次标识。
string turn_id = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | turnId 到设置。The turnId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1127–1134clearTurnId
public Builder clearTurnId()
清空轮次标识。
string turn_id = 3;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1139–1144setTurnIdBytes
public Builder setTurnIdBytes(com.google.protobuf.ByteString value)
设置设置轮次标识字节。
string turn_id = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 turnId 到设置。The bytes for turnId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1150–1158getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 4;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1165–1176getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 4;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1181–1193setSessionId
public Builder setSessionId(java.lang.String value)
设置设置会话标识。
string session_id = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 会话标识到设置。The sessionId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1199–1206clearSessionId
public Builder clearSessionId()
清空会话标识。
string session_id = 4;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1211–1216setSessionIdBytes
public Builder setSessionIdBytes(com.google.protobuf.ByteString value)
设置设置会话标识字节。
string session_id = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于会话标识到设置。The bytes for sessionId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1222–1230getAgentId
public java.lang.String getAgentId()
获取智能体标识。
string agent_id = 5;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1237–1248getAgentIdBytes
public com.google.protobuf.ByteString getAgentIdBytes()
获取智能体标识字节。
string agent_id = 5;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1253–1265setAgentId
public Builder setAgentId(java.lang.String value)
设置设置智能体标识。
string agent_id = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | agentId 到设置。The agentId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1271–1278clearAgentId
public Builder clearAgentId()
清空智能体标识。
string agent_id = 5;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1283–1288setAgentIdBytes
public Builder setAgentIdBytes(com.google.protobuf.ByteString value)
设置设置智能体标识字节。
string agent_id = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 agentId 到设置。The bytes for agentId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1294–1302getBindingId
public java.lang.String getBindingId()
获取绑定标识。
string binding_id = 6;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1309–1320getBindingIdBytes
public com.google.protobuf.ByteString getBindingIdBytes()
获取绑定标识字节。
string binding_id = 6;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1325–1337setBindingId
public Builder setBindingId(java.lang.String value)
设置设置绑定标识。
string binding_id = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | bindingId 到设置。The bindingId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1343–1350clearBindingId
public Builder clearBindingId()
清空绑定标识。
string binding_id = 6;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1355–1360setBindingIdBytes
public Builder setBindingIdBytes(com.google.protobuf.ByteString value)
设置设置绑定标识字节。
string binding_id = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 bindingId 到设置。The bytes for bindingId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1366–1374getInstanceId
public java.lang.String getInstanceId()
获取实例标识。
string instance_id = 7;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1381–1392getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()
获取实例标识字节。
string instance_id = 7;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1397–1409setInstanceId
public Builder setInstanceId(java.lang.String value)
设置设置实例标识。
string instance_id = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | instanceId 到设置。The instanceId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1415–1422clearInstanceId
public Builder clearInstanceId()
清空实例标识。
string instance_id = 7;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1427–1432setInstanceIdBytes
public Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
设置设置实例标识字节。
string instance_id = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 instanceId 到设置。The bytes for instanceId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1438–1446getGeneration
public long getGeneration()
获取 getGeneration。
int64 generation = 8;
longio/agentscope/controlplane/proto/ConversationTurnCommand.java:1453–1456setGeneration
public Builder setGeneration(long value)
设置该配置项。
int64 generation = 8;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 值(类型 `long`)。The generation to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1462–1468clearGeneration
public Builder clearGeneration()
清空 clearGeneration。
int64 generation = 8;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1473–1478getInput
public com.google.protobuf.ByteString getInput()
获取输入。
bytes input = 9;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1485–1488setInput
public Builder setInput(com.google.protobuf.ByteString value)
设置设置输入。
bytes input = 9;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 输入到设置。The input to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1494–1500clearInput
public Builder clearInput()
清空输入。
bytes input = 9;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1505–1510getDeadline
public long getDeadline()
获取截止时间。
int64 deadline = 10;
longio/agentscope/controlplane/proto/ConversationTurnCommand.java:1517–1520setDeadline
public Builder setDeadline(long value)
设置设置截止时间。
int64 deadline = 10;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 截止时间到设置。The deadline to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1526–1532clearDeadline
public Builder clearDeadline()
清空截止时间。
int64 deadline = 10;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1537–1542getCorrelationId
public java.lang.String getCorrelationId()
获取 getCorrelationId。
string correlation_id = 11;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1549–1560getCorrelationIdBytes
public com.google.protobuf.ByteString getCorrelationIdBytes()
获取 getCorrelationIdBytes。
string correlation_id = 11;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnCommand.java:1565–1577setCorrelationId
public Builder setCorrelationId(java.lang.String value)
设置该配置项。
string correlation_id = 11;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 关联标识到设置。The correlationId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1583–1590clearCorrelationId
public Builder clearCorrelationId()
清空 clearCorrelationId。
string correlation_id = 11;
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1595–1600setCorrelationIdBytes
public Builder setCorrelationIdBytes(com.google.protobuf.ByteString value)
设置该配置项。
string correlation_id = 11;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于关联标识到设置。The bytes for correlationId to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnCommand.java:1606–1614