Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.ConnectRequestOrBuilder
io/agentscope/controlplane/proto/ConnectRequest.java:408–921构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.ConnectRequestOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Handshake (sent on connection establish, analogous to xDS initial DiscoveryRequest)
Protobuf type agentscope.protocol.v1.ConnectRequest
方法摘要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/ConnectRequest.java:412–415internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/ConnectRequest.java:417–423clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/controlplane/proto/ConnectRequest.java:435–445getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/ConnectRequest.java:447–451getDefaultInstanceForType
public io.agentscope.controlplane.proto.ConnectRequest getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.ConnectRequestio/agentscope/controlplane/proto/ConnectRequest.java:453–456build
public io.agentscope.controlplane.proto.ConnectRequest build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.controlplane.proto.ConnectRequestio/agentscope/controlplane/proto/ConnectRequest.java:458–465buildPartial
public io.agentscope.controlplane.proto.ConnectRequest buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.controlplane.proto.ConnectRequestio/agentscope/controlplane/proto/ConnectRequest.java:467–473mergeFrom
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/ConnectRequest.java:492–500mergeFrom
public Builder mergeFrom(io.agentscope.controlplane.proto.ConnectRequest other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.controlplane.proto.ConnectRequest | other(类型 `io.agentscope.controlplane.proto.ConnectRequest`)。The other. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:502–532isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/ConnectRequest.java:534–537mergeFrom
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/ConnectRequest.java:539–590getRuntime
public java.lang.String getRuntime()
获取运行时。
string runtime = 1;
java.lang.Stringio/agentscope/controlplane/proto/ConnectRequest.java:598–609getRuntimeBytes
public com.google.protobuf.ByteString getRuntimeBytes()
获取运行时字节。
string runtime = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConnectRequest.java:614–626setRuntime
public Builder setRuntime(java.lang.String value)
设置设置运行时。
string runtime = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 运行时到设置。The runtime to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:632–639clearRuntime
public Builder clearRuntime()
清空运行时。
string runtime = 1;
Builderio/agentscope/controlplane/proto/ConnectRequest.java:644–649setRuntimeBytes
public Builder setRuntimeBytes(com.google.protobuf.ByteString value)
设置设置运行时字节。
string runtime = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于运行时到设置。The bytes for runtime to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:655–663getSdkVersion
public java.lang.String getSdkVersion()
获取 getSdkVersion。
string sdk_version = 2;
java.lang.Stringio/agentscope/controlplane/proto/ConnectRequest.java:670–681getSdkVersionBytes
public com.google.protobuf.ByteString getSdkVersionBytes()
获取 getSdkVersionBytes。
string sdk_version = 2;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConnectRequest.java:686–698setSdkVersion
public Builder setSdkVersion(java.lang.String value)
设置该配置项。
string sdk_version = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | sdkVersion 到设置。The sdkVersion to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:704–711clearSdkVersion
public Builder clearSdkVersion()
清空 clearSdkVersion。
string sdk_version = 2;
Builderio/agentscope/controlplane/proto/ConnectRequest.java:716–721setSdkVersionBytes
public Builder setSdkVersionBytes(com.google.protobuf.ByteString value)
设置该配置项。
string sdk_version = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 sdkVersion 到设置。The bytes for sdkVersion to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:727–735getCapabilitiesList
public com.google.protobuf.ProtocolStringList getCapabilitiesList()
获取能力列表。
repeated string capabilities = 3;
com.google.protobuf.ProtocolStringListio/agentscope/controlplane/proto/ConnectRequest.java:749–753getCapabilitiesCount
public int getCapabilitiesCount()
获取能力数量。
repeated string capabilities = 3;
intio/agentscope/controlplane/proto/ConnectRequest.java:758–760getCapabilities
public java.lang.String getCapabilities(int index)
获取能力。
repeated string capabilities = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index of the element to return. |
java.lang.Stringio/agentscope/controlplane/proto/ConnectRequest.java:766–768getCapabilitiesBytes
public com.google.protobuf.ByteString getCapabilitiesBytes(int index)
获取能力字节。
repeated string capabilities = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引(类型 `int`)。The index of the value to return. |
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConnectRequest.java:774–777setCapabilities
public Builder setCapabilities(int index, java.lang.String value)
设置设置能力。
repeated string capabilities = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
index | int | 索引到设置值 at。The index to set the value at. |
value | java.lang.String | 能力到设置。The capabilities to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:784–792addCapabilities
public Builder addCapabilities(java.lang.String value)
添加能力。
repeated string capabilities = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 能力到添加。The capabilities to add. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:798–806addAllCapabilities
public Builder addAllCapabilities(java.lang.Iterable<java.lang.String> values)
添加所有能力。
repeated string capabilities = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
values | java.lang.Iterable<java.lang.String> | 能力到添加。The capabilities to add. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:812–820clearCapabilities
public Builder clearCapabilities()
清空能力。
repeated string capabilities = 3;
Builderio/agentscope/controlplane/proto/ConnectRequest.java:825–831addCapabilitiesBytes
public Builder addCapabilitiesBytes(com.google.protobuf.ByteString value)
添加能力字节。
repeated string capabilities = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 能力到添加的字节。The bytes of the capabilities to add. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:837–846getSessionAffinity
public java.lang.String getSessionAffinity()
获取 getSessionAffinity。
string session_affinity = 4;
java.lang.Stringio/agentscope/controlplane/proto/ConnectRequest.java:853–864getSessionAffinityBytes
public com.google.protobuf.ByteString getSessionAffinityBytes()
获取 getSessionAffinityBytes。
string session_affinity = 4;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ConnectRequest.java:869–881setSessionAffinity
public Builder setSessionAffinity(java.lang.String value)
设置该配置项。
string session_affinity = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | sessionAffinity 到设置。The sessionAffinity to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:887–894clearSessionAffinity
public Builder clearSessionAffinity()
清空 clearSessionAffinity。
string session_affinity = 4;
Builderio/agentscope/controlplane/proto/ConnectRequest.java:899–904setSessionAffinityBytes
public Builder setSessionAffinityBytes(com.google.protobuf.ByteString value)
设置该配置项。
string session_affinity = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 sessionAffinity 到设置。The bytes for sessionAffinity to set. |
Builderio/agentscope/controlplane/proto/ConnectRequest.java:910–918