Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.UpstreamMetaOrBuilder
io/agentscope/aistio/proto/UpstreamMeta.java:540–1266构建器,用于构建并配置目标实例。位于 io.agentscope.aistio.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.aistio.proto.UpstreamMetaOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。
Protobuf type agentscope.protocol.v1.UpstreamMeta
方法摘要Method Summary
方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/UpstreamMeta.java:544–547internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/aistio/proto/UpstreamMeta.java:549–555clear
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
Builderio/agentscope/aistio/proto/UpstreamMeta.java:567–580getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 getDescriptorForType。
Returns the descriptor for type.
com.google.protobuf.Descriptors.Descriptorio/agentscope/aistio/proto/UpstreamMeta.java:582–586getDefaultInstanceForType
public io.agentscope.aistio.proto.UpstreamMeta getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.aistio.proto.UpstreamMetaio/agentscope/aistio/proto/UpstreamMeta.java:588–591build
public io.agentscope.aistio.proto.UpstreamMeta build()
构建并返回最终实例。
Creates and returns an instance.
io.agentscope.aistio.proto.UpstreamMetaio/agentscope/aistio/proto/UpstreamMeta.java:593–600buildPartial
public io.agentscope.aistio.proto.UpstreamMeta buildPartial()
构建 buildPartial。
Builds the partial.
io.agentscope.aistio.proto.UpstreamMetaio/agentscope/aistio/proto/UpstreamMeta.java:602–608mergeFrom
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/aistio/proto/UpstreamMeta.java:638–646mergeFrom
public Builder mergeFrom(io.agentscope.aistio.proto.UpstreamMeta other)
设置该配置项。
Performs the merge from operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
other | io.agentscope.aistio.proto.UpstreamMeta | other(类型 `io.agentscope.aistio.proto.UpstreamMeta`)。The other. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:648–689isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/aistio/proto/UpstreamMeta.java:691–694mergeFrom
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/aistio/proto/UpstreamMeta.java:696–766getAgentKey
public java.lang.String getAgentKey()
获取智能体键。
string agent_key = 1;
java.lang.Stringio/agentscope/aistio/proto/UpstreamMeta.java:774–785getAgentKeyBytes
public com.google.protobuf.ByteString getAgentKeyBytes()
获取智能体键字节。
string agent_key = 1;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/UpstreamMeta.java:790–802setAgentKey
public Builder setAgentKey(java.lang.String value)
设置设置智能体键。
string agent_key = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | agentKey 到设置。The agentKey to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:808–815clearAgentKey
public Builder clearAgentKey()
清空智能体键。
string agent_key = 1;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:820–825setAgentKeyBytes
public Builder setAgentKeyBytes(com.google.protobuf.ByteString value)
设置设置智能体键字节。
string agent_key = 1;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 agentKey 到设置。The bytes for agentKey to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:831–839getInstanceKey
public java.lang.String getInstanceKey()
获取实例键。
string instance_key = 2;
java.lang.Stringio/agentscope/aistio/proto/UpstreamMeta.java:846–857getInstanceKeyBytes
public com.google.protobuf.ByteString getInstanceKeyBytes()
获取实例键字节。
string instance_key = 2;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/UpstreamMeta.java:862–874setInstanceKey
public Builder setInstanceKey(java.lang.String value)
设置设置实例键。
string instance_key = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | instanceKey 到设置。The instanceKey to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:880–887clearInstanceKey
public Builder clearInstanceKey()
清空实例键。
string instance_key = 2;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:892–897setInstanceKeyBytes
public Builder setInstanceKeyBytes(com.google.protobuf.ByteString value)
设置设置实例键字节。
string instance_key = 2;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 instanceKey 到设置。The bytes for instanceKey to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:903–911getNamespace
public java.lang.String getNamespace()
获取命名空间。
string namespace = 3;
java.lang.Stringio/agentscope/aistio/proto/UpstreamMeta.java:918–929getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
获取命名空间字节。
string namespace = 3;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/UpstreamMeta.java:934–946setNamespace
public Builder setNamespace(java.lang.String value)
设置设置命名空间。
string namespace = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 命名空间到设置。The namespace to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:952–959clearNamespace
public Builder clearNamespace()
清空命名空间。
string namespace = 3;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:964–969setNamespaceBytes
public Builder setNamespaceBytes(com.google.protobuf.ByteString value)
设置设置命名空间字节。
string namespace = 3;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于命名空间到设置。The bytes for namespace to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:975–983getTimestamp
public long getTimestamp()
获取时间戳。
int64 timestamp = 4;
longio/agentscope/aistio/proto/UpstreamMeta.java:990–993setTimestamp
public Builder setTimestamp(long value)
设置设置时间戳。
int64 timestamp = 4;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 时间戳到设置。The timestamp to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:999–1005clearTimestamp
public Builder clearTimestamp()
清空时间戳。
int64 timestamp = 4;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1010–1015getTenant
public java.lang.String getTenant()
获取租户。
string tenant = 5;
java.lang.Stringio/agentscope/aistio/proto/UpstreamMeta.java:1022–1033getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()
获取租户字节。
string tenant = 5;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/UpstreamMeta.java:1038–1050setTenant
public Builder setTenant(java.lang.String value)
设置设置租户。
string tenant = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | 租户到设置。The tenant to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1056–1063clearTenant
public Builder clearTenant()
清空租户。
string tenant = 5;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1068–1073setTenantBytes
public Builder setTenantBytes(com.google.protobuf.ByteString value)
设置设置租户字节。
string tenant = 5;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于租户到设置。The bytes for tenant to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1079–1087getAgentId
public java.lang.String getAgentId()
获取智能体标识。
string agent_id = 6;
java.lang.Stringio/agentscope/aistio/proto/UpstreamMeta.java:1094–1105getAgentIdBytes
public com.google.protobuf.ByteString getAgentIdBytes()
获取智能体标识字节。
string agent_id = 6;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/UpstreamMeta.java:1110–1122setAgentId
public Builder setAgentId(java.lang.String value)
设置设置智能体标识。
string agent_id = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | agentId 到设置。The agentId to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1128–1135clearAgentId
public Builder clearAgentId()
清空智能体标识。
string agent_id = 6;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1140–1145setAgentIdBytes
public Builder setAgentIdBytes(com.google.protobuf.ByteString value)
设置设置智能体标识字节。
string agent_id = 6;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 agentId 到设置。The bytes for agentId to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1151–1159getBindingId
public java.lang.String getBindingId()
获取绑定标识。
string binding_id = 7;
java.lang.Stringio/agentscope/aistio/proto/UpstreamMeta.java:1166–1177getBindingIdBytes
public com.google.protobuf.ByteString getBindingIdBytes()
获取绑定标识字节。
string binding_id = 7;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/UpstreamMeta.java:1182–1194setBindingId
public Builder setBindingId(java.lang.String value)
设置设置绑定标识。
string binding_id = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | java.lang.String | bindingId 到设置。The bindingId to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1200–1207clearBindingId
public Builder clearBindingId()
清空绑定标识。
string binding_id = 7;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1212–1217setBindingIdBytes
public Builder setBindingIdBytes(com.google.protobuf.ByteString value)
设置设置绑定标识字节。
string binding_id = 7;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | com.google.protobuf.ByteString | 字节用于 bindingId 到设置。The bytes for bindingId to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1223–1231getGeneration
public long getGeneration()
获取 getGeneration。
int64 generation = 8;
longio/agentscope/aistio/proto/UpstreamMeta.java:1238–1241setGeneration
public Builder setGeneration(long value)
设置该配置项。
int64 generation = 8;
| 名称Name | 类型Type | 说明Description |
|---|---|---|
value | long | 值(类型 `long`)。The generation to set. |
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1247–1253clearGeneration
public Builder clearGeneration()
清空 clearGeneration。
int64 generation = 8;
Builderio/agentscope/aistio/proto/UpstreamMeta.java:1258–1263