Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.InstanceHealthOrBuilder
io/agentscope/controlplane/proto/InstanceHealth.java:345–729构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.InstanceHealthOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Instance health reported by data plane
Protobuf type agentscope.protocol.v1.InstanceHealth
方法摘要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/InstanceHealth.java:349–352internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/InstanceHealth.java:354–360clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/InstanceHealth.java:372–382getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/InstanceHealth.java:384–388getDefaultInstanceForType
public io.agentscope.controlplane.proto.InstanceHealth getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.InstanceHealthio/agentscope/controlplane/proto/InstanceHealth.java:390–393build
public io.agentscope.controlplane.proto.InstanceHealth build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.InstanceHealthio/agentscope/controlplane/proto/InstanceHealth.java:395–402buildPartial
public io.agentscope.controlplane.proto.InstanceHealth buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.InstanceHealthio/agentscope/controlplane/proto/InstanceHealth.java:404–410mergeFrom
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/InstanceHealth.java:431–439mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.InstanceHealth other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.InstanceHealth | other(类型 `io.agentscope.controlplane.proto.InstanceHealth`)。The other. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:441–463isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/InstanceHealth.java:465–468mergeFrom
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/InstanceHealth.java:470–525getHealthy
public boolean getHealthy()
获取 getHealthy。
bool healthy = 1;
booleanio/agentscope/controlplane/proto/InstanceHealth.java:533–536setHealthy
public Builder setHealthy(boolean value)
设置该配置项。
bool healthy = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | boolean | 值(类型 `boolean`)。The healthy to set. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:542–548clearHealthy
public Builder clearHealthy()
清空 clearHealthy。
bool healthy = 1;
Builderio/agentscope/controlplane/proto/InstanceHealth.java:553–558getReason
public java.lang.String getReason()
获取推理。
string reason = 2;
java.lang.Stringio/agentscope/controlplane/proto/InstanceHealth.java:565–576getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()
获取推理字节。
string reason = 2;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/InstanceHealth.java:581–593setReason
public Builder setReason(java.lang.String value)
设置设置推理。
string reason = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 推理到设置。The reason to set. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:599–606clearReason
public Builder clearReason()
清空推理。
string reason = 2;
Builderio/agentscope/controlplane/proto/InstanceHealth.java:611–616setReasonBytes
public Builder setReasonBytes(com.google.protobuf.ByteString value)
设置设置推理字节。
string reason = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于推理到设置。The bytes for reason to set. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:622–630getActiveSessions
public int getActiveSessions()
获取 getActiveSessions。
int32 active_sessions = 3;
intio/agentscope/controlplane/proto/InstanceHealth.java:637–640setActiveSessions
public Builder setActiveSessions(int value)
设置该配置项。
int32 active_sessions = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | int | activeSessions 到设置。The activeSessions to set. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:646–652clearActiveSessions
public Builder clearActiveSessions()
清空 clearActiveSessions。
int32 active_sessions = 3;
Builderio/agentscope/controlplane/proto/InstanceHealth.java:657–662getCpuUsage
public double getCpuUsage()
获取 getCpuUsage。
double cpu_usage = 4;
doubleio/agentscope/controlplane/proto/InstanceHealth.java:669–672setCpuUsage
public Builder setCpuUsage(double value)
设置该配置项。
double cpu_usage = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | double | cpuUsage 到设置。The cpuUsage to set. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:678–684clearCpuUsage
public Builder clearCpuUsage()
清空 clearCpuUsage。
double cpu_usage = 4;
Builderio/agentscope/controlplane/proto/InstanceHealth.java:689–694getMemoryUsage
public double getMemoryUsage()
获取记忆用量。
double memory_usage = 5;
doubleio/agentscope/controlplane/proto/InstanceHealth.java:701–704setMemoryUsage
public Builder setMemoryUsage(double value)
设置设置记忆用量。
double memory_usage = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | double | memoryUsage 到设置。The memoryUsage to set. |
Builderio/agentscope/controlplane/proto/InstanceHealth.java:710–716clearMemoryUsage
public Builder clearMemoryUsage()
清空记忆用量。
double memory_usage = 5;
Builderio/agentscope/controlplane/proto/InstanceHealth.java:721–726