Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.HeartbeatOrBuilder
io/agentscope/aistio/proto/Heartbeat.java:225–391构建器,用于构建并配置目标实例。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.aistio.proto.HeartbeatOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Heartbeat (bidirectional keepalive)
Protobuf type agentscope.protocol.v1.Heartbeat
方法摘要Method Summary
方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/Heartbeat.java:229–232internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/aistio/proto/Heartbeat.java:234–240clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/aistio/proto/Heartbeat.java:252–258getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/Heartbeat.java:260–264getDefaultInstanceForType
public io.agentscope.aistio.proto.Heartbeat getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.aistio.proto.Heartbeatio/agentscope/aistio/proto/Heartbeat.java:266–269build
public io.agentscope.aistio.proto.Heartbeat build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.aistio.proto.Heartbeatio/agentscope/aistio/proto/Heartbeat.java:271–278buildPartial
public io.agentscope.aistio.proto.Heartbeat buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.aistio.proto.Heartbeatio/agentscope/aistio/proto/Heartbeat.java:280–286mergeFrom
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/aistio/proto/Heartbeat.java:295–303mergeFrom
public Builder mergeFrom(io.agentscope.aistio.proto.Heartbeat other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.aistio.proto.Heartbeat | other(类型 `io.agentscope.aistio.proto.Heartbeat`)。The other. |
Builderio/agentscope/aistio/proto/Heartbeat.java:305–313isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/aistio/proto/Heartbeat.java:315–318mergeFrom
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/aistio/proto/Heartbeat.java:320–355getTimestamp
public long getTimestamp()
获取时间戳。
int64 timestamp = 1;
longio/agentscope/aistio/proto/Heartbeat.java:363–366setTimestamp
public Builder setTimestamp(long value)
设置设置时间戳。
int64 timestamp = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 时间戳到设置。The timestamp to set. |
Builderio/agentscope/aistio/proto/Heartbeat.java:372–378clearTimestamp
public Builder clearTimestamp()
清空时间戳。
int64 timestamp = 1;
Builderio/agentscope/aistio/proto/Heartbeat.java:383–388