Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.ConversationTurnReportOrBuilder
io/agentscope/controlplane/proto/ConversationTurnReport.java:621–1497构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.ConversationTurnReportOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Protobuf type agentscope.protocol.v1.ConversationTurnReport
方法摘要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/ConversationTurnReport.java:625–628internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/ConversationTurnReport.java:630–636clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:648–663getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/ConversationTurnReport.java:665–669getDefaultInstanceForType
public io.agentscope.controlplane.proto.ConversationTurnReport getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.ConversationTurnReportio/agentscope/controlplane/proto/ConversationTurnReport.java:671–674build
public io.agentscope.controlplane.proto.ConversationTurnReport build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.ConversationTurnReportio/agentscope/controlplane/proto/ConversationTurnReport.java:676–683buildPartial
public io.agentscope.controlplane.proto.ConversationTurnReport buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.ConversationTurnReportio/agentscope/controlplane/proto/ConversationTurnReport.java:685–691mergeFrom
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/ConversationTurnReport.java:727–735mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.ConversationTurnReport other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.ConversationTurnReport | other(类型 `io.agentscope.controlplane.proto.ConversationTurnReport`)。The other. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:737–786isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/ConversationTurnReport.java:788–791mergeFrom
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/ConversationTurnReport.java:793–873getInvocationId
public java.lang.String getInvocationId()
获取 getInvocationId。
string invocation_id = 1;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:881–892getInvocationIdBytes
public com.google.protobuf.ByteString getInvocationIdBytes()
获取 getInvocationIdBytes。
string invocation_id = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:897–909setInvocationId
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/ConversationTurnReport.java:915–922clearInvocationId
public Builder clearInvocationId()
清空 clearInvocationId。
string invocation_id = 1;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:927–932setInvocationIdBytes
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/ConversationTurnReport.java:938–946getConversationId
public java.lang.String getConversationId()
获取会话标识。
string conversation_id = 2;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:953–964getConversationIdBytes
public com.google.protobuf.ByteString getConversationIdBytes()
获取会话标识字节。
string conversation_id = 2;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:969–981setConversationId
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/ConversationTurnReport.java:987–994clearConversationId
public Builder clearConversationId()
清空会话标识。
string conversation_id = 2;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:999–1004setConversationIdBytes
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/ConversationTurnReport.java:1010–1018getTurnId
public java.lang.String getTurnId()
获取轮次标识。
string turn_id = 3;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:1025–1036getTurnIdBytes
public com.google.protobuf.ByteString getTurnIdBytes()
获取轮次标识字节。
string turn_id = 3;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:1041–1053setTurnId
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/ConversationTurnReport.java:1059–1066clearTurnId
public Builder clearTurnId()
清空轮次标识。
string turn_id = 3;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1071–1076setTurnIdBytes
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/ConversationTurnReport.java:1082–1090getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 4;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:1097–1108getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 4;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:1113–1125setSessionId
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/ConversationTurnReport.java:1131–1138clearSessionId
public Builder clearSessionId()
清空会话标识。
string session_id = 4;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1143–1148setSessionIdBytes
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/ConversationTurnReport.java:1154–1162getGeneration
public long getGeneration()
获取 getGeneration。
int64 generation = 5;
longio/agentscope/controlplane/proto/ConversationTurnReport.java:1169–1172setGeneration
public Builder setGeneration(long value)
设置该配置项。
int64 generation = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 值(类型 `long`)。The generation to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1178–1184clearGeneration
public Builder clearGeneration()
清空 clearGeneration。
int64 generation = 5;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1189–1194getAction
public java.lang.String getAction()
获取动作。
accepted | started | delta | completed | failed | cancelled string action = 6;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:1205–1216getActionBytes
public com.google.protobuf.ByteString getActionBytes()
获取动作字节。
accepted | started | delta | completed | failed | cancelled string action = 6;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:1225–1237setAction
public Builder setAction(java.lang.String value)
设置设置动作。
accepted | started | delta | completed | failed | cancelled string action = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 动作到设置。The action to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1247–1254clearAction
public Builder clearAction()
清空动作。
accepted | started | delta | completed | failed | cancelled string action = 6;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1263–1268setActionBytes
public Builder setActionBytes(com.google.protobuf.ByteString value)
设置设置动作字节。
accepted | started | delta | completed | failed | cancelled string action = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于动作到设置。The bytes for action to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1278–1286getSequence
public long getSequence()
获取 getSequence。
int64 sequence = 7;
longio/agentscope/controlplane/proto/ConversationTurnReport.java:1293–1296setSequence
public Builder setSequence(long value)
设置该配置项。
int64 sequence = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 值(类型 `long`)。The sequence to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1302–1308clearSequence
public Builder clearSequence()
清空 clearSequence。
int64 sequence = 7;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1313–1318getPayload
public com.google.protobuf.ByteString getPayload()
获取负载。
bytes payload = 8;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:1325–1328setPayload
public Builder setPayload(com.google.protobuf.ByteString value)
设置设置负载。
bytes payload = 8;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 负载到设置。The payload to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1334–1340clearPayload
public Builder clearPayload()
清空负载。
bytes payload = 8;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1345–1350getErrorCode
public java.lang.String getErrorCode()
获取 getErrorCode。
string error_code = 9;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:1357–1368getErrorCodeBytes
public com.google.protobuf.ByteString getErrorCodeBytes()
获取 getErrorCodeBytes。
string error_code = 9;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:1373–1385setErrorCode
public Builder setErrorCode(java.lang.String value)
设置该配置项。
string error_code = 9;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | errorCode 到设置。The errorCode to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1391–1398clearErrorCode
public Builder clearErrorCode()
清空 clearErrorCode。
string error_code = 9;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1403–1408setErrorCodeBytes
public Builder setErrorCodeBytes(com.google.protobuf.ByteString value)
设置该配置项。
string error_code = 9;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 errorCode 到设置。The bytes for errorCode to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1414–1422getErrorMessage
public java.lang.String getErrorMessage()
获取错误消息。
string error_message = 10;
java.lang.Stringio/agentscope/controlplane/proto/ConversationTurnReport.java:1429–1440getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()
获取错误消息字节。
string error_message = 10;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConversationTurnReport.java:1445–1457setErrorMessage
public Builder setErrorMessage(java.lang.String value)
设置设置错误消息。
string error_message = 10;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | errorMessage 到设置。The errorMessage to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1463–1470clearErrorMessage
public Builder clearErrorMessage()
清空错误消息。
string error_message = 10;
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1475–1480setErrorMessageBytes
public Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
设置设置错误消息字节。
string error_message = 10;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 errorMessage 到设置。The bytes for errorMessage to set. |
Builderio/agentscope/controlplane/proto/ConversationTurnReport.java:1486–1494