public static final class Api.ChatResp.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder> implements Api.ChatRespOrBuilder
api.ChatResp| 限定符和类型 | 方法和说明 |
|---|---|
Api.ChatResp.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.ChatResp |
build() |
Api.ChatResp |
buildPartial() |
Api.ChatResp.Builder |
clear() |
Api.ChatResp.Builder |
clearChoice()
The generated result
.api.Choice choice = 3; |
Api.ChatResp.Builder |
clearError()
Error if exists for the req
.api.Error error = 2; |
Api.ChatResp.Builder |
clearExtra() |
Api.ChatResp.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Api.ChatResp.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Api.ChatResp.Builder |
clearReqId()
Unified request id
string req_id = 1; |
Api.ChatResp.Builder |
clearUsage()
The tokens usage
.api.Usage usage = 4; |
Api.ChatResp.Builder |
clone() |
boolean |
containsExtra(String key)
extra info
map<string, string> extra = 100; |
Api.Choice |
getChoice()
The generated result
.api.Choice choice = 3; |
Api.Choice.Builder |
getChoiceBuilder()
The generated result
.api.Choice choice = 3; |
Api.ChoiceOrBuilder |
getChoiceOrBuilder()
The generated result
.api.Choice choice = 3; |
Api.ChatResp |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Api.Error |
getError()
Error if exists for the req
.api.Error error = 2; |
Api.Error.Builder |
getErrorBuilder()
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; |
Map<String,String> |
getMutableExtra()
已过时。
|
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.Usage.Builder |
getUsageBuilder()
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; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Api.ChatResp.Builder |
mergeChoice(Api.Choice value)
The generated result
.api.Choice choice = 3; |
Api.ChatResp.Builder |
mergeError(Api.Error value)
Error if exists for the req
.api.Error error = 2; |
Api.ChatResp.Builder |
mergeFrom(Api.ChatResp other) |
Api.ChatResp.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Api.ChatResp.Builder |
mergeFrom(com.google.protobuf.Message other) |
Api.ChatResp.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Api.ChatResp.Builder |
mergeUsage(Api.Usage value)
The tokens usage
.api.Usage usage = 4; |
Api.ChatResp.Builder |
putAllExtra(Map<String,String> values)
extra info
map<string, string> extra = 100; |
Api.ChatResp.Builder |
putExtra(String key,
String value)
extra info
map<string, string> extra = 100; |
Api.ChatResp.Builder |
removeExtra(String key)
extra info
map<string, string> extra = 100; |
Api.ChatResp.Builder |
setChoice(Api.Choice.Builder builderForValue)
The generated result
.api.Choice choice = 3; |
Api.ChatResp.Builder |
setChoice(Api.Choice value)
The generated result
.api.Choice choice = 3; |
Api.ChatResp.Builder |
setError(Api.Error.Builder builderForValue)
Error if exists for the req
.api.Error error = 2; |
Api.ChatResp.Builder |
setError(Api.Error value)
Error if exists for the req
.api.Error error = 2; |
Api.ChatResp.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.ChatResp.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Api.ChatResp.Builder |
setReqId(String value)
Unified request id
string req_id = 1; |
Api.ChatResp.Builder |
setReqIdBytes(com.google.protobuf.ByteString value)
Unified request id
string req_id = 1; |
Api.ChatResp.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Api.ChatResp.Builder |
setUsage(Api.Usage.Builder builderForValue)
The tokens usage
.api.Usage usage = 4; |
Api.ChatResp.Builder |
setUsage(Api.Usage value)
The tokens usage
.api.Usage usage = 4; |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Api.ChatResp build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Api.ChatResp buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Api.ChatResp.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder mergeFrom(Api.ChatResp other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public Api.ChatResp.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Api.ChatResp.Builder>IOExceptionpublic String getReqId()
Unified request id
string req_id = 1;getReqId 在接口中 Api.ChatRespOrBuilderpublic com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 1;getReqIdBytes 在接口中 Api.ChatRespOrBuilderpublic Api.ChatResp.Builder setReqId(String value)
Unified request id
string req_id = 1;value - The reqId to set.public Api.ChatResp.Builder clearReqId()
Unified request id
string req_id = 1;public Api.ChatResp.Builder setReqIdBytes(com.google.protobuf.ByteString value)
Unified request id
string req_id = 1;value - The bytes for reqId to set.public boolean hasError()
Error if exists for the req
.api.Error error = 2;hasError 在接口中 Api.ChatRespOrBuilderpublic Api.Error getError()
Error if exists for the req
.api.Error error = 2;getError 在接口中 Api.ChatRespOrBuilderpublic Api.ChatResp.Builder setError(Api.Error value)
Error if exists for the req
.api.Error error = 2;public Api.ChatResp.Builder setError(Api.Error.Builder builderForValue)
Error if exists for the req
.api.Error error = 2;public Api.ChatResp.Builder mergeError(Api.Error value)
Error if exists for the req
.api.Error error = 2;public Api.ChatResp.Builder clearError()
Error if exists for the req
.api.Error error = 2;public Api.Error.Builder getErrorBuilder()
Error if exists for the req
.api.Error error = 2;public Api.ErrorOrBuilder getErrorOrBuilder()
Error if exists for the req
.api.Error error = 2;getErrorOrBuilder 在接口中 Api.ChatRespOrBuilderpublic boolean hasChoice()
The generated result
.api.Choice choice = 3;hasChoice 在接口中 Api.ChatRespOrBuilderpublic Api.Choice getChoice()
The generated result
.api.Choice choice = 3;getChoice 在接口中 Api.ChatRespOrBuilderpublic Api.ChatResp.Builder setChoice(Api.Choice value)
The generated result
.api.Choice choice = 3;public Api.ChatResp.Builder setChoice(Api.Choice.Builder builderForValue)
The generated result
.api.Choice choice = 3;public Api.ChatResp.Builder mergeChoice(Api.Choice value)
The generated result
.api.Choice choice = 3;public Api.ChatResp.Builder clearChoice()
The generated result
.api.Choice choice = 3;public Api.Choice.Builder getChoiceBuilder()
The generated result
.api.Choice choice = 3;public Api.ChoiceOrBuilder getChoiceOrBuilder()
The generated result
.api.Choice choice = 3;getChoiceOrBuilder 在接口中 Api.ChatRespOrBuilderpublic boolean hasUsage()
The tokens usage
.api.Usage usage = 4;hasUsage 在接口中 Api.ChatRespOrBuilderpublic Api.Usage getUsage()
The tokens usage
.api.Usage usage = 4;getUsage 在接口中 Api.ChatRespOrBuilderpublic Api.ChatResp.Builder setUsage(Api.Usage value)
The tokens usage
.api.Usage usage = 4;public Api.ChatResp.Builder setUsage(Api.Usage.Builder builderForValue)
The tokens usage
.api.Usage usage = 4;public Api.ChatResp.Builder mergeUsage(Api.Usage value)
The tokens usage
.api.Usage usage = 4;public Api.ChatResp.Builder clearUsage()
The tokens usage
.api.Usage usage = 4;public Api.Usage.Builder getUsageBuilder()
The tokens usage
.api.Usage usage = 4;public Api.UsageOrBuilder getUsageOrBuilder()
The tokens usage
.api.Usage usage = 4;getUsageOrBuilder 在接口中 Api.ChatRespOrBuilderpublic int getExtraCount()
Api.ChatRespOrBuilderextra info
map<string, string> extra = 100;getExtraCount 在接口中 Api.ChatRespOrBuilderpublic boolean containsExtra(String key)
extra info
map<string, string> extra = 100;containsExtra 在接口中 Api.ChatRespOrBuilder@Deprecated public Map<String,String> getExtra()
getExtraMap() instead.getExtra 在接口中 Api.ChatRespOrBuilderpublic Map<String,String> getExtraMap()
extra info
map<string, string> extra = 100;getExtraMap 在接口中 Api.ChatRespOrBuilderpublic String getExtraOrDefault(String key, String defaultValue)
extra info
map<string, string> extra = 100;getExtraOrDefault 在接口中 Api.ChatRespOrBuilderpublic String getExtraOrThrow(String key)
extra info
map<string, string> extra = 100;getExtraOrThrow 在接口中 Api.ChatRespOrBuilderpublic Api.ChatResp.Builder clearExtra()
public Api.ChatResp.Builder removeExtra(String key)
extra info
map<string, string> extra = 100;@Deprecated public Map<String,String> getMutableExtra()
public Api.ChatResp.Builder putExtra(String key, String value)
extra info
map<string, string> extra = 100;public Api.ChatResp.Builder putAllExtra(Map<String,String> values)
extra info
map<string, string> extra = 100;public final Api.ChatResp.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>public final Api.ChatResp.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Api.ChatResp.Builder>Copyright © 2025. All rights reserved.