public static interface Api.ChatRespOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsExtra(String key)
extra info
map<string, string> extra = 100; |
Api.Choice |
getChoice()
The generated result
.api.Choice choice = 3; |
Api.ChoiceOrBuilder |
getChoiceOrBuilder()
The generated result
.api.Choice choice = 3; |
Api.Error |
getError()
Error if exists for the req
.api.Error error = 2; |
Api.ErrorOrBuilder |
getErrorOrBuilder()
Error if exists for the req
.api.Error error = 2; |
Map<String,String> |
getExtra()
已过时。
|
int |
getExtraCount()
extra info
map<string, string> extra = 100; |
Map<String,String> |
getExtraMap()
extra info
map<string, string> extra = 100; |
String |
getExtraOrDefault(String key,
String defaultValue)
extra info
map<string, string> extra = 100; |
String |
getExtraOrThrow(String key)
extra info
map<string, string> extra = 100; |
String |
getReqId()
Unified request id
string req_id = 1; |
com.google.protobuf.ByteString |
getReqIdBytes()
Unified request id
string req_id = 1; |
Api.Usage |
getUsage()
The tokens usage
.api.Usage usage = 4; |
Api.UsageOrBuilder |
getUsageOrBuilder()
The tokens usage
.api.Usage usage = 4; |
boolean |
hasChoice()
The generated result
.api.Choice choice = 3; |
boolean |
hasError()
Error if exists for the req
.api.Error error = 2; |
boolean |
hasUsage()
The tokens usage
.api.Usage usage = 4; |
String getReqId()
Unified request id
string req_id = 1;com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 1;boolean hasError()
Error if exists for the req
.api.Error error = 2;Api.Error getError()
Error if exists for the req
.api.Error error = 2;Api.ErrorOrBuilder getErrorOrBuilder()
Error if exists for the req
.api.Error error = 2;boolean hasChoice()
The generated result
.api.Choice choice = 3;Api.Choice getChoice()
The generated result
.api.Choice choice = 3;Api.ChoiceOrBuilder getChoiceOrBuilder()
The generated result
.api.Choice choice = 3;boolean hasUsage()
The tokens usage
.api.Usage usage = 4;Api.Usage getUsage()
The tokens usage
.api.Usage usage = 4;Api.UsageOrBuilder getUsageOrBuilder()
The tokens usage
.api.Usage usage = 4;int getExtraCount()
extra info
map<string, string> extra = 100;boolean containsExtra(String key)
extra info
map<string, string> extra = 100;@Deprecated Map<String,String> getExtra()
getExtraMap() instead.String getExtraOrDefault(String key, String defaultValue)
extra info
map<string, string> extra = 100;Copyright © 2025. All rights reserved.