DashScopePublicKeyResponse
@JsonIgnoreProperties(ignoreUnknown = true) public class DashScopePublicKeyResponse
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:37–131DashScope Public 键响应,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 getRequestId、setRequestId、getData、setData、getCode、setCode。
DashScope public key response DTO.
This class represents the response structure from DashScope's public key API.
Example JSON:
`{
"request_id": "xxx-xxx-xxx",
"data": {
"public_key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnojrB579xgPQN5f46SvoRAiQBPWBaPzWh7hp51fWI+OsQk7KqH0qMcw8i0eK5rfOvJIPujOQgnes1ph9/gKAst9NzXVIl9JJYUSPtzTvOabhp4yvS3KBf9g3xHYVjYgW33SOY74Ue/tgbCXn717rV6gXb4sVvq9XK/1BrDcGbEOQEZEgBTFkm/g3lpWLQtACwwqHffoA9eQtkkz15ZFKosAgbR8LedfIvxAl2zk15REzxXiRcFgc9/tLF0U1t2Sxt9FkQefxYwn6EZawTsRJvf4kqF3MaPdTcDbOp0iSNvCl2qzPSf/F+Oll2CUM1tFAEu81oa4l0WaDR3UtvqOtyQIDAQAB",
"public_key_id": "1"
}
}
`
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
PublicKeyData | 类class | Public 键数据,与模型服务通信并返回生成或向量化结果。 Public key data containing the key ID and key value. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public DashScopePublicKeyResponse() | 初始化 `DashScopePublicKeyResponse` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getRequestId() | 获取请求标识。 Returns the request id. |
public void setRequestId(String requestId) | 设置请求标识。 Sets the request id. |
public PublicKeyData getData() | 获取数据。 Returns the data. |
public void setData(PublicKeyData data) | 设置数据。 Sets the data. |
public String getCode() | 获取 `getCode`。 Returns the code. |
public void setCode(String code) | 设置 `setCode`。 Sets the code. |
public String getMessage() | 获取消息。 Returns the message. |
public void setMessage(String message) | 设置消息。 Sets the message. |
public boolean isError() | 判断是否错误。 Check if this response represents an error. |
构造器详情Constructor Detail
DashScopePublicKeyResponse
public DashScopePublicKeyResponse()
初始化 DashScopePublicKeyResponse 实例。
Creates a new instance.
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:56方法详情Method Detail
getRequestId
public String getRequestId()
获取请求标识。
Returns the request id.
Stringio/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:58–60setRequestId
public void setRequestId(String requestId)
设置请求标识。
Sets the request id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
requestId | String | 请求标识(类型 `String`)。The request id. |
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:62–64getData
public PublicKeyData getData()
获取数据。
Returns the data.
PublicKeyDataio/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:66–68setData
public void setData(PublicKeyData data)
设置数据。
Sets the data.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | PublicKeyData | 数据(类型 `PublicKeyData`)。The data. |
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:70–72getCode
public String getCode()
获取 getCode。
Returns the code.
Stringio/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:74–76setCode
public void setCode(String code)
设置 setCode。
Sets the code.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
code | String | code(类型 `String`)。The code. |
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:78–80getMessage
public String getMessage()
获取消息。
Returns the message.
Stringio/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:82–84setMessage
public void setMessage(String message)
设置消息。
Sets the message.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:86–88isError
public boolean isError()
判断是否错误。
Check if this response represents an error.
booleanio/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:95–97嵌套类详情Nested Class Detail
PublicKeyData
@JsonIgnoreProperties(ignoreUnknown = true) public static class PublicKeyDataPublic 键数据,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 getPublicKey、setPublicKey、getPublicKeyId、setPublicKeyId、PublicKeyData。
Public key data containing the key ID and key value.