AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.EventReportAckOrBuilder
源码Source io/agentscope/controlplane/proto/EventReportAck.java:363–956

构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.EventReportAckOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。


EventReportAck is the durable commit acknowledgement for an EventReport.
A cursor is emitted only through the highest contiguous sequence committed
for that session in this report. Missing cursors remain pending and are
retransmitted by the data plane.

Protobuf type agentscope.protocol.v1.EventReportAck

方法摘要Method Summary

方法Method说明Description
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal
获取描述符。
Returns the descriptor.
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 `internalGetFieldAccessorTable` 结果。
Returns the internal get field accessor table.
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 `getDescriptorForType`。
Returns the descriptor for type.
public io.agentscope.controlplane.proto.EventReportAck getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.controlplane.proto.EventReportAck build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.controlplane.proto.EventReportAck buildPartial()
构建 `buildPartial`。
Builds the partial.
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
public Builder mergeFrom(io.agentscope.controlplane.proto.EventReportAck other)
设置该配置项。
Performs the merge from operation.
public final boolean isInitialized()
final
判断是否已初始化。
Returns whether the initialized.
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
设置该配置项。
Performs the merge from operation.
public java.lang.String getReportId()
获取报告标识。
`string report_id = 1;`
public com.google.protobuf.ByteString getReportIdBytes()
获取报告标识字节。
`string report_id = 1;`
public Builder setReportId(java.lang.String value)
设置设置报告标识。
`string report_id = 1;`
public Builder clearReportId()
清空报告标识。
`string report_id = 1;`
public Builder setReportIdBytes(com.google.protobuf.ByteString value)
设置设置报告标识字节。
`string report_id = 1;`
public java.util.List<io.agentscope.controlplane.proto.SessionEventCursor> getCommittedList()
获取 `getCommittedList`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public int getCommittedCount()
获取 `getCommittedCount`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public io.agentscope.controlplane.proto.SessionEventCursor getCommitted(int index)
获取 `getCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder setCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor value)
设置该配置项。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder setCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor.Builder builderForValue)
设置该配置项。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder addCommitted(io.agentscope.controlplane.proto.SessionEventCursor value)
添加 `addCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder addCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor value)
添加 `addCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder addCommitted(io.agentscope.controlplane.proto.SessionEventCursor.Builder builderForValue)
添加 `addCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder addCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor.Builder builderForValue)
添加 `addCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder addAllCommitted(java.lang.Iterable<? extends io.agentscope.controlplane.proto.SessionEventCursor> values)
添加 `addAllCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder clearCommitted()
清空 `clearCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public Builder removeCommitted(int index)
移除 `removeCommitted`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public io.agentscope.controlplane.proto.SessionEventCursor.Builder getCommittedBuilder(int index)
获取 `getCommittedBuilder`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public io.agentscope.controlplane.proto.SessionEventCursorOrBuilder getCommittedOrBuilder(int index)
获取 `getCommittedOrBuilder`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public java.util.List<? extends io.agentscope.controlplane.proto.SessionEventCursorOrBuilder> getCommittedOrBuilderList()
获取 `getCommittedOrBuilderList`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public io.agentscope.controlplane.proto.SessionEventCursor.Builder addCommittedBuilder()
添加 `addCommittedBuilder`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public io.agentscope.controlplane.proto.SessionEventCursor.Builder addCommittedBuilder(int index)
添加 `addCommittedBuilder`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public java.util.List<io.agentscope.controlplane.proto.SessionEventCursor.Builder> getCommittedBuilderList()
获取 `getCommittedBuilderList`。
`repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;`
public java.lang.String getError()
获取错误。
`string error = 3;`
public com.google.protobuf.ByteString getErrorBytes()
获取错误字节。
`string error = 3;`
public Builder setError(java.lang.String value)
设置设置错误。
`string error = 3;`
public Builder clearError()
清空错误。
`string error = 3;`
public Builder setErrorBytes(com.google.protobuf.ByteString value)
设置设置错误字节。
`string error = 3;`

方法详情Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal

获取描述符。

Returns the descriptor.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:367–370

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

返回 internalGetFieldAccessorTable 结果。

Returns the internal get field accessor table.

返回Returns com.google.protobuf.GeneratedMessage.FieldAccessorTable
返回com.google.protobuf.GeneratedMessage.FieldAccessorTable。Returns com google protobuf generated message field accessor table.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:372–378

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:390–404

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()

获取 getDescriptorForType。

Returns the descriptor for type.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:406–410

getDefaultInstanceForType

public io.agentscope.controlplane.proto.EventReportAck getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.EventReportAck
返回io.agentscope.controlplane.协议.EventReportAck。Returns io agentscope controlplane proto event report ack.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:412–415

build

public io.agentscope.controlplane.proto.EventReportAck build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.controlplane.proto.EventReportAck
返回io.agentscope.controlplane.协议.EventReportAck。Returns io agentscope controlplane proto event report ack.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:417–424

buildPartial

public io.agentscope.controlplane.proto.EventReportAck buildPartial()

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.controlplane.proto.EventReportAck
返回io.agentscope.controlplane.协议.EventReportAck。Returns io agentscope controlplane proto event report ack.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:426–433

mergeFrom

public Builder mergeFrom(com.google.protobuf.Message other)

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
othercom.google.protobuf.Messageother(类型 `com.google.protobuf.Message`)。The other.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:457–465

mergeFrom

public Builder mergeFrom(io.agentscope.controlplane.proto.EventReportAck other)

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
otherio.agentscope.controlplane.proto.EventReportAckother(类型 `io.agentscope.controlplane.proto.EventReportAck`)。The other.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:467–508

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:510–513

mergeFrom

public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:515–568

getReportId

public java.lang.String getReportId()

获取报告标识。

string report_id = 1;

返回Returns java.lang.String
返回java.lang.String。The reportId.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:576–587

getReportIdBytes

public com.google.protobuf.ByteString getReportIdBytes()

获取报告标识字节。

string report_id = 1;

返回Returns com.google.protobuf.ByteString
字节用于 reportId。The bytes for reportId.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:592–604

setReportId

public Builder setReportId(java.lang.String value)

设置设置报告标识。

string report_id = 1;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.StringreportId 到设置。The reportId to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:610–617

clearReportId

public Builder clearReportId()

清空报告标识。

string report_id = 1;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:622–627

setReportIdBytes

public Builder setReportIdBytes(com.google.protobuf.ByteString value)

设置设置报告标识字节。

string report_id = 1;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于 reportId 到设置。The bytes for reportId to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:633–641

getCommittedList

public java.util.List<io.agentscope.controlplane.proto.SessionEventCursor> getCommittedList()

获取 getCommittedList。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

返回Returns java.util.List<io.agentscope.controlplane.proto.SessionEventCursor>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:658–664

getCommittedCount

public int getCommittedCount()

获取 getCommittedCount。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:668–674

getCommitted

public io.agentscope.controlplane.proto.SessionEventCursor getCommitted(int index)

获取 getCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.controlplane.proto.SessionEventCursor
返回io.agentscope.controlplane.协议.SessionEventCursor。Returns io agentscope controlplane proto session event cursor.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:678–684

setCommitted

public Builder setCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor value)

设置该配置项。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
valueio.agentscope.controlplane.proto.SessionEventCursor值(类型 `io.agentscope.controlplane.proto.SessionEventCursor`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:688–701

setCommitted

public Builder setCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor.Builder builderForValue)

设置该配置项。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
builderForValueio.agentscope.controlplane.proto.SessionEventCursor.Builder构建器用于值(类型 `io.agentscope.controlplane.proto.SessionEventCursor.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:705–715

addCommitted

public Builder addCommitted(io.agentscope.controlplane.proto.SessionEventCursor value)

添加 addCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
valueio.agentscope.controlplane.proto.SessionEventCursor值(类型 `io.agentscope.controlplane.proto.SessionEventCursor`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:719–731

addCommitted

public Builder addCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor value)

添加 addCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
valueio.agentscope.controlplane.proto.SessionEventCursor值(类型 `io.agentscope.controlplane.proto.SessionEventCursor`)。The value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:735–748

addCommitted

public Builder addCommitted(io.agentscope.controlplane.proto.SessionEventCursor.Builder builderForValue)

添加 addCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
builderForValueio.agentscope.controlplane.proto.SessionEventCursor.Builder构建器用于值(类型 `io.agentscope.controlplane.proto.SessionEventCursor.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:752–762

addCommitted

public Builder addCommitted(int index, io.agentscope.controlplane.proto.SessionEventCursor.Builder builderForValue)

添加 addCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
builderForValueio.agentscope.controlplane.proto.SessionEventCursor.Builder构建器用于值(类型 `io.agentscope.controlplane.proto.SessionEventCursor.Builder`)。The builder for value.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:766–776

addAllCommitted

public Builder addAllCommitted(java.lang.Iterable<? extends io.agentscope.controlplane.proto.SessionEventCursor> values)

添加 addAllCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
valuesjava.lang.Iterable<? extends io.agentscope.controlplane.proto.SessionEventCursor>值(类型 `java.lang.Iterable`)。The values.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:780–791

clearCommitted

public Builder clearCommitted()

清空 clearCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:795–804

removeCommitted

public Builder removeCommitted(int index)

移除 removeCommitted。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:808–817

getCommittedBuilder

public io.agentscope.controlplane.proto.SessionEventCursor.Builder getCommittedBuilder(int index)

获取 getCommittedBuilder。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.controlplane.proto.SessionEventCursor.Builder
返回io.agentscope.controlplane.协议.SessionEventCursor.构建器。Returns io agentscope controlplane proto session event cursor builder.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:821–824

getCommittedOrBuilder

public io.agentscope.controlplane.proto.SessionEventCursorOrBuilder getCommittedOrBuilder(int index)

获取 getCommittedOrBuilder。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.controlplane.proto.SessionEventCursorOrBuilder
返回io.agentscope.controlplane.协议.SessionEventCursorOrBuilder。Returns io agentscope controlplane proto session event cursor or builder.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:828–834

getCommittedOrBuilderList

public java.util.List<? extends io.agentscope.controlplane.proto.SessionEventCursorOrBuilder> getCommittedOrBuilderList()

获取 getCommittedOrBuilderList。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

返回Returns java.util.List<? extends io.agentscope.controlplane.proto.SessionEventCursorOrBuilder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:838–845

addCommittedBuilder

public io.agentscope.controlplane.proto.SessionEventCursor.Builder addCommittedBuilder()

添加 addCommittedBuilder。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

返回Returns io.agentscope.controlplane.proto.SessionEventCursor.Builder
返回io.agentscope.controlplane.协议.SessionEventCursor.构建器。Returns io agentscope controlplane proto session event cursor builder.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:849–852

addCommittedBuilder

public io.agentscope.controlplane.proto.SessionEventCursor.Builder addCommittedBuilder(int index)

添加 addCommittedBuilder。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.controlplane.proto.SessionEventCursor.Builder
返回io.agentscope.controlplane.协议.SessionEventCursor.构建器。Returns io agentscope controlplane proto session event cursor builder.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:856–860

getCommittedBuilderList

public java.util.List<io.agentscope.controlplane.proto.SessionEventCursor.Builder> getCommittedBuilderList()

获取 getCommittedBuilderList。

repeated .agentscope.protocol.v1.SessionEventCursor committed = 2;

返回Returns java.util.List<io.agentscope.controlplane.proto.SessionEventCursor.Builder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:864–867

getError

public java.lang.String getError()

获取错误。

string error = 3;

返回Returns java.lang.String
错误。The error.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:888–899

getErrorBytes

public com.google.protobuf.ByteString getErrorBytes()

获取错误字节。

string error = 3;

返回Returns com.google.protobuf.ByteString
字节用于错误。The bytes for error.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:904–916

setError

public Builder setError(java.lang.String value)

设置设置错误。

string error = 3;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String错误到设置。The error to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:922–929

clearError

public Builder clearError()

清空错误。

string error = 3;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:934–939

setErrorBytes

public Builder setErrorBytes(com.google.protobuf.ByteString value)

设置设置错误字节。

string error = 3;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于错误到设置。The bytes for error to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/EventReportAck.java:945–953
基于官方固定版本源码静态生成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.