AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.ConnectRequestOrBuilder
源码Source 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说明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.ConnectRequest getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.controlplane.proto.ConnectRequest build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.controlplane.proto.ConnectRequest 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.ConnectRequest 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 getRuntime()
获取运行时。
`string runtime = 1;`
public com.google.protobuf.ByteString getRuntimeBytes()
获取运行时字节。
`string runtime = 1;`
public Builder setRuntime(java.lang.String value)
设置设置运行时。
`string runtime = 1;`
public Builder clearRuntime()
清空运行时。
`string runtime = 1;`
public Builder setRuntimeBytes(com.google.protobuf.ByteString value)
设置设置运行时字节。
`string runtime = 1;`
public java.lang.String getSdkVersion()
获取 `getSdkVersion`。
`string sdk_version = 2;`
public com.google.protobuf.ByteString getSdkVersionBytes()
获取 `getSdkVersionBytes`。
`string sdk_version = 2;`
public Builder setSdkVersion(java.lang.String value)
设置该配置项。
`string sdk_version = 2;`
public Builder clearSdkVersion()
清空 `clearSdkVersion`。
`string sdk_version = 2;`
public Builder setSdkVersionBytes(com.google.protobuf.ByteString value)
设置该配置项。
`string sdk_version = 2;`
public com.google.protobuf.ProtocolStringList getCapabilitiesList()
获取能力列表。
`repeated string capabilities = 3;`
public int getCapabilitiesCount()
获取能力数量。
`repeated string capabilities = 3;`
public java.lang.String getCapabilities(int index)
获取能力。
`repeated string capabilities = 3;`
public com.google.protobuf.ByteString getCapabilitiesBytes(int index)
获取能力字节。
`repeated string capabilities = 3;`
public Builder setCapabilities(int index, java.lang.String value)
设置设置能力。
`repeated string capabilities = 3;`
public Builder addCapabilities(java.lang.String value)
添加能力。
`repeated string capabilities = 3;`
public Builder addAllCapabilities(java.lang.Iterable<java.lang.String> values)
添加所有能力。
`repeated string capabilities = 3;`
public Builder clearCapabilities()
清空能力。
`repeated string capabilities = 3;`
public Builder addCapabilitiesBytes(com.google.protobuf.ByteString value)
添加能力字节。
`repeated string capabilities = 3;`
public java.lang.String getSessionAffinity()
获取 `getSessionAffinity`。
`string session_affinity = 4;`
public com.google.protobuf.ByteString getSessionAffinityBytes()
获取 `getSessionAffinityBytes`。
`string session_affinity = 4;`
public Builder setSessionAffinity(java.lang.String value)
设置该配置项。
`string session_affinity = 4;`
public Builder clearSessionAffinity()
清空 `clearSessionAffinity`。
`string session_affinity = 4;`
public Builder setSessionAffinityBytes(com.google.protobuf.ByteString value)
设置该配置项。
`string session_affinity = 4;`

方法详情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/ConnectRequest.java:412–415

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/ConnectRequest.java:417–423

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

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

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/ConnectRequest.java:447–451

getDefaultInstanceForType

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

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.ConnectRequest
返回io.agentscope.controlplane.协议.ConnectRequest。Returns io agentscope controlplane proto connect request.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:453–456

build

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

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.controlplane.proto.ConnectRequest
返回io.agentscope.controlplane.协议.ConnectRequest。Returns io agentscope controlplane proto connect request.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:458–465

buildPartial

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

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.controlplane.proto.ConnectRequest
返回io.agentscope.controlplane.协议.ConnectRequest。Returns io agentscope controlplane proto connect request.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:467–473

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/ConnectRequest.java:492–500

mergeFrom

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

设置该配置项。

Performs the merge from operation.

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

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

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

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/ConnectRequest.java:539–590

getRuntime

public java.lang.String getRuntime()

获取运行时。

string runtime = 1;

返回Returns java.lang.String
运行时。The runtime.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:598–609

getRuntimeBytes

public com.google.protobuf.ByteString getRuntimeBytes()

获取运行时字节。

string runtime = 1;

返回Returns com.google.protobuf.ByteString
字节用于运行时。The bytes for runtime.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:614–626

setRuntime

public Builder setRuntime(java.lang.String value)

设置设置运行时。

string runtime = 1;

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

clearRuntime

public Builder clearRuntime()

清空运行时。

string runtime = 1;

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

setRuntimeBytes

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

设置设置运行时字节。

string runtime = 1;

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

getSdkVersion

public java.lang.String getSdkVersion()

获取 getSdkVersion。

string sdk_version = 2;

返回Returns java.lang.String
返回java.lang.String。The sdkVersion.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:670–681

getSdkVersionBytes

public com.google.protobuf.ByteString getSdkVersionBytes()

获取 getSdkVersionBytes。

string sdk_version = 2;

返回Returns com.google.protobuf.ByteString
字节用于 sdkVersion。The bytes for sdkVersion.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:686–698

setSdkVersion

public Builder setSdkVersion(java.lang.String value)

设置该配置项。

string sdk_version = 2;

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

clearSdkVersion

public Builder clearSdkVersion()

清空 clearSdkVersion。

string sdk_version = 2;

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

setSdkVersionBytes

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

设置该配置项。

string sdk_version = 2;

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

getCapabilitiesList

public com.google.protobuf.ProtocolStringList getCapabilitiesList()

获取能力列表。

repeated string capabilities = 3;

返回Returns com.google.protobuf.ProtocolStringList
返回com.google.protobuf.ProtocolStringList。A list containing the capabilities.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:749–753

getCapabilitiesCount

public int getCapabilitiesCount()

获取能力数量。

repeated string capabilities = 3;

返回Returns int
能力的数量。The count of capabilities.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:758–760

getCapabilities

public java.lang.String getCapabilities(int index)

获取能力。

repeated string capabilities = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index of the element to return.
返回Returns java.lang.String
返回java.lang.String。The capabilities at the given index.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:766–768

getCapabilitiesBytes

public com.google.protobuf.ByteString getCapabilitiesBytes(int index)

获取能力字节。

repeated string capabilities = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index of the value to return.
返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes of the capabilities at the given index.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:774–777

setCapabilities

public Builder setCapabilities(int index, java.lang.String value)

设置设置能力。

repeated string capabilities = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引到设置值 at。The index to set the value at.
valuejava.lang.String能力到设置。The capabilities to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:784–792

addCapabilities

public Builder addCapabilities(java.lang.String value)

添加能力。

repeated string capabilities = 3;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String能力到添加。The capabilities to add.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:798–806

addAllCapabilities

public Builder addAllCapabilities(java.lang.Iterable<java.lang.String> values)

添加所有能力。

repeated string capabilities = 3;

参数Parameters
名称Name类型Type说明Description
valuesjava.lang.Iterable<java.lang.String>能力到添加。The capabilities to add.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:812–820

clearCapabilities

public Builder clearCapabilities()

清空能力。

repeated string capabilities = 3;

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

addCapabilitiesBytes

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

添加能力字节。

repeated string capabilities = 3;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString能力到添加的字节。The bytes of the capabilities to add.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:837–846

getSessionAffinity

public java.lang.String getSessionAffinity()

获取 getSessionAffinity。

string session_affinity = 4;

返回Returns java.lang.String
返回java.lang.String。The sessionAffinity.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:853–864

getSessionAffinityBytes

public com.google.protobuf.ByteString getSessionAffinityBytes()

获取 getSessionAffinityBytes。

string session_affinity = 4;

返回Returns com.google.protobuf.ByteString
字节用于 sessionAffinity。The bytes for sessionAffinity.
源码Source io/agentscope/controlplane/proto/ConnectRequest.java:869–881

setSessionAffinity

public Builder setSessionAffinity(java.lang.String value)

设置该配置项。

string session_affinity = 4;

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

clearSessionAffinity

public Builder clearSessionAffinity()

清空 clearSessionAffinity。

string session_affinity = 4;

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

setSessionAffinityBytes

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

设置该配置项。

string session_affinity = 4;

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