AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.UpstreamMetaOrBuilder
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:540–1266

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

Protobuf type agentscope.protocol.v1.UpstreamMeta

方法摘要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.UpstreamMeta getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.controlplane.proto.UpstreamMeta build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.controlplane.proto.UpstreamMeta 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.UpstreamMeta 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 getAgentKey()
获取智能体键。
`string agent_key = 1;`
public com.google.protobuf.ByteString getAgentKeyBytes()
获取智能体键字节。
`string agent_key = 1;`
public Builder setAgentKey(java.lang.String value)
设置设置智能体键。
`string agent_key = 1;`
public Builder clearAgentKey()
清空智能体键。
`string agent_key = 1;`
public Builder setAgentKeyBytes(com.google.protobuf.ByteString value)
设置设置智能体键字节。
`string agent_key = 1;`
public java.lang.String getInstanceKey()
获取实例键。
`string instance_key = 2;`
public com.google.protobuf.ByteString getInstanceKeyBytes()
获取实例键字节。
`string instance_key = 2;`
public Builder setInstanceKey(java.lang.String value)
设置设置实例键。
`string instance_key = 2;`
public Builder clearInstanceKey()
清空实例键。
`string instance_key = 2;`
public Builder setInstanceKeyBytes(com.google.protobuf.ByteString value)
设置设置实例键字节。
`string instance_key = 2;`
public java.lang.String getNamespace()
获取命名空间。
`string namespace = 3;`
public com.google.protobuf.ByteString getNamespaceBytes()
获取命名空间字节。
`string namespace = 3;`
public Builder setNamespace(java.lang.String value)
设置设置命名空间。
`string namespace = 3;`
public Builder clearNamespace()
清空命名空间。
`string namespace = 3;`
public Builder setNamespaceBytes(com.google.protobuf.ByteString value)
设置设置命名空间字节。
`string namespace = 3;`
public long getTimestamp()
获取时间戳。
`int64 timestamp = 4;`
public Builder setTimestamp(long value)
设置设置时间戳。
`int64 timestamp = 4;`
public Builder clearTimestamp()
清空时间戳。
`int64 timestamp = 4;`
public java.lang.String getTenant()
获取租户。
`string tenant = 5;`
public com.google.protobuf.ByteString getTenantBytes()
获取租户字节。
`string tenant = 5;`
public Builder setTenant(java.lang.String value)
设置设置租户。
`string tenant = 5;`
public Builder clearTenant()
清空租户。
`string tenant = 5;`
public Builder setTenantBytes(com.google.protobuf.ByteString value)
设置设置租户字节。
`string tenant = 5;`
public java.lang.String getAgentId()
获取智能体标识。
`string agent_id = 6;`
public com.google.protobuf.ByteString getAgentIdBytes()
获取智能体标识字节。
`string agent_id = 6;`
public Builder setAgentId(java.lang.String value)
设置设置智能体标识。
`string agent_id = 6;`
public Builder clearAgentId()
清空智能体标识。
`string agent_id = 6;`
public Builder setAgentIdBytes(com.google.protobuf.ByteString value)
设置设置智能体标识字节。
`string agent_id = 6;`
public java.lang.String getBindingId()
获取绑定标识。
`string binding_id = 7;`
public com.google.protobuf.ByteString getBindingIdBytes()
获取绑定标识字节。
`string binding_id = 7;`
public Builder setBindingId(java.lang.String value)
设置设置绑定标识。
`string binding_id = 7;`
public Builder clearBindingId()
清空绑定标识。
`string binding_id = 7;`
public Builder setBindingIdBytes(com.google.protobuf.ByteString value)
设置设置绑定标识字节。
`string binding_id = 7;`
public long getGeneration()
获取 `getGeneration`。
`int64 generation = 8;`
public Builder setGeneration(long value)
设置该配置项。
`int64 generation = 8;`
public Builder clearGeneration()
清空 `clearGeneration`。
`int64 generation = 8;`

方法详情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/UpstreamMeta.java:544–547

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/UpstreamMeta.java:549–555

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

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

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/UpstreamMeta.java:582–586

getDefaultInstanceForType

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

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.UpstreamMeta
返回io.agentscope.controlplane.协议.UpstreamMeta。Returns io agentscope controlplane proto upstream meta.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:588–591

build

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

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.controlplane.proto.UpstreamMeta
返回io.agentscope.controlplane.协议.UpstreamMeta。Returns io agentscope controlplane proto upstream meta.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:593–600

buildPartial

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

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.controlplane.proto.UpstreamMeta
返回io.agentscope.controlplane.协议.UpstreamMeta。Returns io agentscope controlplane proto upstream meta.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:602–608

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/UpstreamMeta.java:638–646

mergeFrom

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

设置该配置项。

Performs the merge from operation.

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

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

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

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/UpstreamMeta.java:696–766

getAgentKey

public java.lang.String getAgentKey()

获取智能体键。

string agent_key = 1;

返回Returns java.lang.String
返回java.lang.String。The agentKey.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:774–785

getAgentKeyBytes

public com.google.protobuf.ByteString getAgentKeyBytes()

获取智能体键字节。

string agent_key = 1;

返回Returns com.google.protobuf.ByteString
字节用于 agentKey。The bytes for agentKey.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:790–802

setAgentKey

public Builder setAgentKey(java.lang.String value)

设置设置智能体键。

string agent_key = 1;

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

clearAgentKey

public Builder clearAgentKey()

清空智能体键。

string agent_key = 1;

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

setAgentKeyBytes

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

设置设置智能体键字节。

string agent_key = 1;

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

getInstanceKey

public java.lang.String getInstanceKey()

获取实例键。

string instance_key = 2;

返回Returns java.lang.String
返回java.lang.String。The instanceKey.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:846–857

getInstanceKeyBytes

public com.google.protobuf.ByteString getInstanceKeyBytes()

获取实例键字节。

string instance_key = 2;

返回Returns com.google.protobuf.ByteString
字节用于 instanceKey。The bytes for instanceKey.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:862–874

setInstanceKey

public Builder setInstanceKey(java.lang.String value)

设置设置实例键。

string instance_key = 2;

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

clearInstanceKey

public Builder clearInstanceKey()

清空实例键。

string instance_key = 2;

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

setInstanceKeyBytes

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

设置设置实例键字节。

string instance_key = 2;

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

getNamespace

public java.lang.String getNamespace()

获取命名空间。

string namespace = 3;

返回Returns java.lang.String
命名空间。The namespace.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:918–929

getNamespaceBytes

public com.google.protobuf.ByteString getNamespaceBytes()

获取命名空间字节。

string namespace = 3;

返回Returns com.google.protobuf.ByteString
字节用于命名空间。The bytes for namespace.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:934–946

setNamespace

public Builder setNamespace(java.lang.String value)

设置设置命名空间。

string namespace = 3;

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

clearNamespace

public Builder clearNamespace()

清空命名空间。

string namespace = 3;

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

setNamespaceBytes

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

设置设置命名空间字节。

string namespace = 3;

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

getTimestamp

public long getTimestamp()

获取时间戳。

int64 timestamp = 4;

返回Returns long
时间戳。The timestamp.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:990–993

setTimestamp

public Builder setTimestamp(long value)

设置设置时间戳。

int64 timestamp = 4;

参数Parameters
名称Name类型Type说明Description
valuelong时间戳到设置。The timestamp to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:999–1005

clearTimestamp

public Builder clearTimestamp()

清空时间戳。

int64 timestamp = 4;

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

getTenant

public java.lang.String getTenant()

获取租户。

string tenant = 5;

返回Returns java.lang.String
租户。The tenant.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1022–1033

getTenantBytes

public com.google.protobuf.ByteString getTenantBytes()

获取租户字节。

string tenant = 5;

返回Returns com.google.protobuf.ByteString
字节用于租户。The bytes for tenant.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1038–1050

setTenant

public Builder setTenant(java.lang.String value)

设置设置租户。

string tenant = 5;

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

clearTenant

public Builder clearTenant()

清空租户。

string tenant = 5;

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

setTenantBytes

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

设置设置租户字节。

string tenant = 5;

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

getAgentId

public java.lang.String getAgentId()

获取智能体标识。

string agent_id = 6;

返回Returns java.lang.String
返回java.lang.String。The agentId.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1094–1105

getAgentIdBytes

public com.google.protobuf.ByteString getAgentIdBytes()

获取智能体标识字节。

string agent_id = 6;

返回Returns com.google.protobuf.ByteString
字节用于 agentId。The bytes for agentId.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1110–1122

setAgentId

public Builder setAgentId(java.lang.String value)

设置设置智能体标识。

string agent_id = 6;

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

clearAgentId

public Builder clearAgentId()

清空智能体标识。

string agent_id = 6;

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

setAgentIdBytes

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

设置设置智能体标识字节。

string agent_id = 6;

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

getBindingId

public java.lang.String getBindingId()

获取绑定标识。

string binding_id = 7;

返回Returns java.lang.String
返回java.lang.String。The bindingId.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1166–1177

getBindingIdBytes

public com.google.protobuf.ByteString getBindingIdBytes()

获取绑定标识字节。

string binding_id = 7;

返回Returns com.google.protobuf.ByteString
字节用于 bindingId。The bytes for bindingId.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1182–1194

setBindingId

public Builder setBindingId(java.lang.String value)

设置设置绑定标识。

string binding_id = 7;

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

clearBindingId

public Builder clearBindingId()

清空绑定标识。

string binding_id = 7;

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

setBindingIdBytes

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

设置设置绑定标识字节。

string binding_id = 7;

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

getGeneration

public long getGeneration()

获取 getGeneration。

int64 generation = 8;

返回Returns long
返回数值结果。The generation.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1238–1241

setGeneration

public Builder setGeneration(long value)

设置该配置项。

int64 generation = 8;

参数Parameters
名称Name类型Type说明Description
valuelong值(类型 `long`)。The generation to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1247–1253

clearGeneration

public Builder clearGeneration()

清空 clearGeneration。

int64 generation = 8;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/UpstreamMeta.java:1258–1263
基于官方固定版本源码静态生成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.