AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.ConfigPushOrBuilder
源码Source io/agentscope/aistio/proto/ConfigPush.java:354–757

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


Config push (analogous to xDS DiscoveryResponse)

Protobuf type agentscope.protocol.v1.ConfigPush

方法摘要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.aistio.proto.ConfigPush getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.aistio.proto.ConfigPush build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.aistio.proto.ConfigPush buildPartial()
构建 `buildPartial`。
Builds the partial.
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
public Builder mergeFrom(io.agentscope.aistio.proto.ConfigPush 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 int getConfigTypeValue()
获取配置类型值。
`.agentscope.protocol.v1.ConfigType config_type = 1;`
public Builder setConfigTypeValue(int value)
设置设置配置类型值。
`.agentscope.protocol.v1.ConfigType config_type = 1;`
public io.agentscope.aistio.proto.ConfigType getConfigType()
获取配置类型。
`.agentscope.protocol.v1.ConfigType config_type = 1;`
public Builder setConfigType(io.agentscope.aistio.proto.ConfigType value)
设置设置配置类型。
`.agentscope.protocol.v1.ConfigType config_type = 1;`
public Builder clearConfigType()
清空配置类型。
`.agentscope.protocol.v1.ConfigType config_type = 1;`
public java.lang.String getVersion()
获取版本。
`string version = 2;`
public com.google.protobuf.ByteString getVersionBytes()
获取版本字节。
`string version = 2;`
public Builder setVersion(java.lang.String value)
设置设置版本。
`string version = 2;`
public Builder clearVersion()
清空版本。
`string version = 2;`
public Builder setVersionBytes(com.google.protobuf.ByteString value)
设置设置版本字节。
`string version = 2;`
public com.google.protobuf.ByteString getResources()
获取 `getResources`。
`bytes resources = 3;`
public Builder setResources(com.google.protobuf.ByteString value)
设置该配置项。
`bytes resources = 3;`
public Builder clearResources()
清空 `clearResources`。
`bytes resources = 3;`
public java.lang.String getNonce()
获取 `getNonce`。
`string nonce = 4;`
public com.google.protobuf.ByteString getNonceBytes()
获取 `getNonceBytes`。
`string nonce = 4;`
public Builder setNonce(java.lang.String value)
设置该配置项。
`string nonce = 4;`
public Builder clearNonce()
清空 `clearNonce`。
`string nonce = 4;`
public Builder setNonceBytes(com.google.protobuf.ByteString value)
设置该配置项。
`string nonce = 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/aistio/proto/ConfigPush.java:358–361

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/aistio/proto/ConfigPush.java:363–369

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

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

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/aistio/proto/ConfigPush.java:392–396

getDefaultInstanceForType

public io.agentscope.aistio.proto.ConfigPush getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.aistio.proto.ConfigPush
返回io.agentscope.aistio.协议.ConfigPush。Returns io agentscope aistio proto config push.
源码Source io/agentscope/aistio/proto/ConfigPush.java:398–401

build

public io.agentscope.aistio.proto.ConfigPush build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.aistio.proto.ConfigPush
返回io.agentscope.aistio.协议.ConfigPush。Returns io agentscope aistio proto config push.
源码Source io/agentscope/aistio/proto/ConfigPush.java:403–410

buildPartial

public io.agentscope.aistio.proto.ConfigPush buildPartial()

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.aistio.proto.ConfigPush
返回io.agentscope.aistio.协议.ConfigPush。Returns io agentscope aistio proto config push.
源码Source io/agentscope/aistio/proto/ConfigPush.java:412–418

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/aistio/proto/ConfigPush.java:436–444

mergeFrom

public Builder mergeFrom(io.agentscope.aistio.proto.ConfigPush other)

设置该配置项。

Performs the merge from operation.

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

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/aistio/proto/ConfigPush.java:469–472

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/aistio/proto/ConfigPush.java:474–524

getConfigTypeValue

public int getConfigTypeValue()

获取配置类型值。

.agentscope.protocol.v1.ConfigType config_type = 1;

返回Returns int
返回数值结果。The enum numeric value on the wire for configType.
源码Source io/agentscope/aistio/proto/ConfigPush.java:532–534

setConfigTypeValue

public Builder setConfigTypeValue(int value)

设置设置配置类型值。

.agentscope.protocol.v1.ConfigType config_type = 1;

参数Parameters
名称Name类型Type说明Description
valueint值(类型 `int`)。The enum numeric value on the wire for configType to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/aistio/proto/ConfigPush.java:540–545

getConfigType

public io.agentscope.aistio.proto.ConfigType getConfigType()

获取配置类型。

.agentscope.protocol.v1.ConfigType config_type = 1;

返回Returns io.agentscope.aistio.proto.ConfigType
返回io.agentscope.aistio.协议.ConfigType。The configType.
源码Source io/agentscope/aistio/proto/ConfigPush.java:550–554

setConfigType

public Builder setConfigType(io.agentscope.aistio.proto.ConfigType value)

设置设置配置类型。

.agentscope.protocol.v1.ConfigType config_type = 1;

参数Parameters
名称Name类型Type说明Description
valueio.agentscope.aistio.proto.ConfigTypeconfigType 到设置。The configType to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/aistio/proto/ConfigPush.java:560–568

clearConfigType

public Builder clearConfigType()

清空配置类型。

.agentscope.protocol.v1.ConfigType config_type = 1;

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

getVersion

public java.lang.String getVersion()

获取版本。

string version = 2;

返回Returns java.lang.String
版本。The version.
源码Source io/agentscope/aistio/proto/ConfigPush.java:585–596

getVersionBytes

public com.google.protobuf.ByteString getVersionBytes()

获取版本字节。

string version = 2;

返回Returns com.google.protobuf.ByteString
字节用于版本。The bytes for version.
源码Source io/agentscope/aistio/proto/ConfigPush.java:601–613

setVersion

public Builder setVersion(java.lang.String value)

设置设置版本。

string version = 2;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String版本到设置。The version to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/aistio/proto/ConfigPush.java:619–626

clearVersion

public Builder clearVersion()

清空版本。

string version = 2;

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

setVersionBytes

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

设置设置版本字节。

string version = 2;

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

getResources

public com.google.protobuf.ByteString getResources()

获取 getResources。

bytes resources = 3;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The resources.
源码Source io/agentscope/aistio/proto/ConfigPush.java:657–660

setResources

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

设置该配置项。

bytes resources = 3;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString值(类型 `com.google.protobuf.ByteString`)。The resources to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/aistio/proto/ConfigPush.java:666–672

clearResources

public Builder clearResources()

清空 clearResources。

bytes resources = 3;

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

getNonce

public java.lang.String getNonce()

获取 getNonce。

string nonce = 4;

返回Returns java.lang.String
返回java.lang.String。The nonce.
源码Source io/agentscope/aistio/proto/ConfigPush.java:689–700

getNonceBytes

public com.google.protobuf.ByteString getNonceBytes()

获取 getNonceBytes。

string nonce = 4;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes for nonce.
源码Source io/agentscope/aistio/proto/ConfigPush.java:705–717

setNonce

public Builder setNonce(java.lang.String value)

设置该配置项。

string nonce = 4;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String值(类型 `java.lang.String`)。The nonce to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/aistio/proto/ConfigPush.java:723–730

clearNonce

public Builder clearNonce()

清空 clearNonce。

string nonce = 4;

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

setNonceBytes

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

设置该配置项。

string nonce = 4;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString值(类型 `com.google.protobuf.ByteString`)。The bytes for nonce to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/aistio/proto/ConfigPush.java:746–754
基于官方固定版本源码静态生成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.