public static final class Api.ChatResp extends com.google.protobuf.GeneratedMessageV3 implements Api.ChatRespOrBuilder
api.ChatResp| 限定符和类型 | 类和说明 |
|---|---|
static class |
Api.ChatResp.Builder
Protobuf type
api.ChatResp |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CHOICE_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
EXTRA_FIELD_NUMBER |
static int |
REQ_ID_FIELD_NUMBER |
static int |
USAGE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsExtra(String key)
extra info
map<string, string> extra = 100; |
boolean |
equals(Object obj) |
Api.Choice |
getChoice()
The generated result
.api.Choice choice = 3; |
Api.ChoiceOrBuilder |
getChoiceOrBuilder()
The generated result
.api.Choice choice = 3; |
static Api.ChatResp |
getDefaultInstance() |
Api.ChatResp |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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; |
com.google.protobuf.Parser<Api.ChatResp> |
getParserForType() |
String |
getReqId()
Unified request id
string req_id = 1; |
com.google.protobuf.ByteString |
getReqIdBytes()
Unified request id
string req_id = 1; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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; |
int |
hashCode() |
boolean |
hasUsage()
The tokens usage
.api.Usage usage = 4; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Api.ChatResp.Builder |
newBuilder() |
static Api.ChatResp.Builder |
newBuilder(Api.ChatResp prototype) |
Api.ChatResp.Builder |
newBuilderForType() |
protected Api.ChatResp.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Api.ChatResp |
parseDelimitedFrom(InputStream input) |
static Api.ChatResp |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ChatResp |
parseFrom(byte[] data) |
static Api.ChatResp |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ChatResp |
parseFrom(ByteBuffer data) |
static Api.ChatResp |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ChatResp |
parseFrom(com.google.protobuf.ByteString data) |
static Api.ChatResp |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ChatResp |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Api.ChatResp |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ChatResp |
parseFrom(InputStream input) |
static Api.ChatResp |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Api.ChatResp> |
parser() |
Api.ChatResp.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int REQ_ID_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static final int CHOICE_FIELD_NUMBER
public static final int USAGE_FIELD_NUMBER
public static final int EXTRA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public 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 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.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.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.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 final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static Api.ChatResp parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ChatResp parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ChatResp parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ChatResp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ChatResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ChatResp parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ChatResp parseFrom(InputStream input) throws IOException
IOExceptionpublic static Api.ChatResp parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Api.ChatResp parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Api.ChatResp parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Api.ChatResp parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Api.ChatResp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Api.ChatResp.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Api.ChatResp.Builder newBuilder()
public static Api.ChatResp.Builder newBuilder(Api.ChatResp prototype)
public Api.ChatResp.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Api.ChatResp.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Api.ChatResp getDefaultInstance()
public static com.google.protobuf.Parser<Api.ChatResp> parser()
public com.google.protobuf.Parser<Api.ChatResp> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Api.ChatResp getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.