AS AgentScopeAPI 手册 / API Reference

FileEntry

@JsonIgnoreProperties(ignoreUnknown = true) public class FileEntry
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:22–72

文件条目,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.sandbox.kubernetes.client.model 包。核心成员包括 getName、setName、getSize、setSize、getType、setType。

A file or directory entry returned by the sandbox filesystem list API.

构造器摘要Constructor Summary

构造器Constructor说明Description
public FileEntry()
初始化 `FileEntry` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.
public long getSize()
获取大小。
Returns the size.
public void setSize(long size)
设置大小。
Sets the size.
public String getType()
获取类型。
Returns the type.
public void setType(String type)
设置类型。
Sets the type.
public double getModTime()
获取 `getModTime`。
Returns the mod time.
public void setModTime(double modTime)
设置 `setModTime`。
Sets the mod time.

构造器详情Constructor Detail

FileEntry

public FileEntry()

初始化 FileEntry 实例。

Creates a new instance.

源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:39

方法详情Method Detail

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:41–43

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:45–47

getSize

public long getSize()

获取大小。

Returns the size.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:49–51

setSize

public void setSize(long size)

设置大小。

Sets the size.

参数Parameters
名称Name类型Type说明Description
sizelong大小(类型 `long`)。The size.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:53–55

getType

public String getType()

获取类型。

Returns the type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:57–59

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:61–63

getModTime

public double getModTime()

获取 getModTime。

Returns the mod time.

返回Returns double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:65–67

setModTime

public void setModTime(double modTime)

设置 setModTime。

Sets the mod time.

参数Parameters
名称Name类型Type说明Description
modTimedoublemod 时间(类型 `double`)。The mod time.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/model/FileEntry.java:69–71
基于官方固定版本源码静态生成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.