AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.aistio.proto.WorkspaceInfoOrBuilder
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:383–847

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

Protobuf type agentscope.protocol.v1.WorkspaceInfo

方法摘要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.WorkspaceInfo getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.aistio.proto.WorkspaceInfo build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.aistio.proto.WorkspaceInfo 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.WorkspaceInfo 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 getPath()
获取路径。
`string path = 1;`
public com.google.protobuf.ByteString getPathBytes()
获取路径字节。
`string path = 1;`
public Builder setPath(java.lang.String value)
设置设置路径。
`string path = 1;`
public Builder clearPath()
清空路径。
`string path = 1;`
public Builder setPathBytes(com.google.protobuf.ByteString value)
设置设置路径字节。
`string path = 1;`
public java.lang.String getMode()
获取模式。
``` isolated | shared | readonly
public com.google.protobuf.ByteString getModeBytes()
获取模式字节。
``` isolated | shared | readonly
public Builder setMode(java.lang.String value)
设置设置模式。
``` isolated | shared | readonly
public Builder clearMode()
清空模式。
``` isolated | shared | readonly
public Builder setModeBytes(com.google.protobuf.ByteString value)
设置设置模式字节。
``` isolated | shared | readonly
public long getSizeBytes()
获取大小字节。
`int64 size_bytes = 3;`
public Builder setSizeBytes(long value)
设置设置大小字节。
`int64 size_bytes = 3;`
public Builder clearSizeBytes()
清空大小字节。
`int64 size_bytes = 3;`
public java.lang.String getOwnerRef()
获取所有者引用。
``` session_id or subagent name
public com.google.protobuf.ByteString getOwnerRefBytes()
获取所有者引用字节。
``` session_id or subagent name
public Builder setOwnerRef(java.lang.String value)
设置设置所有者引用。
``` session_id or subagent name
public Builder clearOwnerRef()
清空所有者引用。
``` session_id or subagent name
public Builder setOwnerRefBytes(com.google.protobuf.ByteString value)
设置设置所有者引用字节。
``` session_id or subagent name

方法详情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/WorkspaceInfo.java:387–390

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/WorkspaceInfo.java:392–398

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

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

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/WorkspaceInfo.java:421–425

getDefaultInstanceForType

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

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.aistio.proto.WorkspaceInfo
返回io.agentscope.aistio.协议.WorkspaceInfo。Returns io agentscope aistio proto workspace info.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:427–430

build

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

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.aistio.proto.WorkspaceInfo
返回io.agentscope.aistio.协议.WorkspaceInfo。Returns io agentscope aistio proto workspace info.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:432–439

buildPartial

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

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.aistio.proto.WorkspaceInfo
返回io.agentscope.aistio.协议.WorkspaceInfo。Returns io agentscope aistio proto workspace info.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:441–447

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/WorkspaceInfo.java:465–473

mergeFrom

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

设置该配置项。

Performs the merge from operation.

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

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

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

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/WorkspaceInfo.java:505–555

getPath

public java.lang.String getPath()

获取路径。

string path = 1;

返回Returns java.lang.String
路径。The path.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:563–574

getPathBytes

public com.google.protobuf.ByteString getPathBytes()

获取路径字节。

string path = 1;

返回Returns com.google.protobuf.ByteString
字节用于路径。The bytes for path.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:579–591

setPath

public Builder setPath(java.lang.String value)

设置设置路径。

string path = 1;

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

clearPath

public Builder clearPath()

清空路径。

string path = 1;

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

setPathBytes

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

设置设置路径字节。

string path = 1;

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

getMode

public java.lang.String getMode()

获取模式。

isolated | shared | readonly string mode = 2;

返回Returns java.lang.String
模式。The mode.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:639–650

getModeBytes

public com.google.protobuf.ByteString getModeBytes()

获取模式字节。

isolated | shared | readonly string mode = 2;

返回Returns com.google.protobuf.ByteString
字节用于模式。The bytes for mode.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:659–671

setMode

public Builder setMode(java.lang.String value)

设置设置模式。

isolated | shared | readonly string mode = 2;

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

clearMode

public Builder clearMode()

清空模式。

isolated | shared | readonly string mode = 2;

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

setModeBytes

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

设置设置模式字节。

isolated | shared | readonly string mode = 2;

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

getSizeBytes

public long getSizeBytes()

获取大小字节。

int64 size_bytes = 3;

返回Returns long
返回数值结果。The sizeBytes.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:727–730

setSizeBytes

public Builder setSizeBytes(long value)

设置设置大小字节。

int64 size_bytes = 3;

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

clearSizeBytes

public Builder clearSizeBytes()

清空大小字节。

int64 size_bytes = 3;

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

getOwnerRef

public java.lang.String getOwnerRef()

获取所有者引用。

session_id or subagent name string owner_ref = 4;

返回Returns java.lang.String
返回java.lang.String。The ownerRef.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:763–774

getOwnerRefBytes

public com.google.protobuf.ByteString getOwnerRefBytes()

获取所有者引用字节。

session_id or subagent name string owner_ref = 4;

返回Returns com.google.protobuf.ByteString
字节用于 ownerRef。The bytes for ownerRef.
源码Source io/agentscope/aistio/proto/WorkspaceInfo.java:783–795

setOwnerRef

public Builder setOwnerRef(java.lang.String value)

设置设置所有者引用。

session_id or subagent name string owner_ref = 4;

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

clearOwnerRef

public Builder clearOwnerRef()

清空所有者引用。

session_id or subagent name string owner_ref = 4;

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

setOwnerRefBytes

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

设置设置所有者引用字节。

session_id or subagent name string owner_ref = 4;

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