public static final class Api.ChatResp extends com.google.protobuf.GeneratedMessageV3 implements Api.ChatRespOrBuilder
api.ChatResp| Modifier and Type | Class and Description |
|---|---|
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| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsExtra(String key)
extra info
|
boolean |
equals(Object obj) |
Api.Choice |
getChoice()
The generated result
|
Api.ChoiceOrBuilder |
getChoiceOrBuilder()
The generated result
|
static Api.ChatResp |
getDefaultInstance() |
Api.ChatResp |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Api.Error |
getError()
Error if exists for the req
|
Api.ErrorOrBuilder |
getErrorOrBuilder()
Error if exists for the req
|
Map<String,String> |
getExtra()
Deprecated.
|
int |
getExtraCount()
extra info
|
Map<String,String> |
getExtraMap()
extra info
|
String |
getExtraOrDefault(String key,
String defaultValue)
extra info
|
String |
getExtraOrThrow(String key)
extra info
|
com.google.protobuf.Parser<Api.ChatResp> |
getParserForType() |
String |
getReqId()
Unified request id
|
com.google.protobuf.ByteString |
getReqIdBytes()
Unified request id
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Api.Usage |
getUsage()
The tokens usage
|
Api.UsageOrBuilder |
getUsageOrBuilder()
The tokens usage
|
boolean |
hasChoice()
The generated result
|
boolean |
hasError()
Error if exists for the req
|
int |
hashCode() |
boolean |
hasUsage()
The tokens usage
|
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, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getReqId()
Unified request id
string req_id = 1;getReqId in interface Api.ChatRespOrBuilderpublic com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 1;getReqIdBytes in interface Api.ChatRespOrBuilderpublic boolean hasError()
Error if exists for the req
.api.Error error = 2;hasError in interface Api.ChatRespOrBuilderpublic Api.Error getError()
Error if exists for the req
.api.Error error = 2;getError in interface Api.ChatRespOrBuilderpublic Api.ErrorOrBuilder getErrorOrBuilder()
Error if exists for the req
.api.Error error = 2;getErrorOrBuilder in interface Api.ChatRespOrBuilderpublic boolean hasChoice()
The generated result
.api.Choice choice = 3;hasChoice in interface Api.ChatRespOrBuilderpublic Api.Choice getChoice()
The generated result
.api.Choice choice = 3;getChoice in interface Api.ChatRespOrBuilderpublic Api.ChoiceOrBuilder getChoiceOrBuilder()
The generated result
.api.Choice choice = 3;getChoiceOrBuilder in interface Api.ChatRespOrBuilderpublic boolean hasUsage()
The tokens usage
.api.Usage usage = 4;hasUsage in interface Api.ChatRespOrBuilderpublic Api.Usage getUsage()
The tokens usage
.api.Usage usage = 4;getUsage in interface Api.ChatRespOrBuilderpublic Api.UsageOrBuilder getUsageOrBuilder()
The tokens usage
.api.Usage usage = 4;getUsageOrBuilder in interface Api.ChatRespOrBuilderpublic int getExtraCount()
Api.ChatRespOrBuilderextra info
map<string, string> extra = 100;getExtraCount in interface Api.ChatRespOrBuilderpublic boolean containsExtra(String key)
extra info
map<string, string> extra = 100;containsExtra in interface Api.ChatRespOrBuilder@Deprecated public Map<String,String> getExtra()
getExtraMap() instead.getExtra in interface Api.ChatRespOrBuilderpublic Map<String,String> getExtraMap()
extra info
map<string, string> extra = 100;getExtraMap in interface Api.ChatRespOrBuilderpublic String getExtraOrDefault(String key, String defaultValue)
extra info
map<string, string> extra = 100;getExtraOrDefault in interface Api.ChatRespOrBuilderpublic String getExtraOrThrow(String key)
extra info
map<string, string> extra = 100;getExtraOrThrow in interface Api.ChatRespOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class 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 in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Api.ChatResp.Builder newBuilder()
public static Api.ChatResp.Builder newBuilder(Api.ChatResp prototype)
public Api.ChatResp.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Api.ChatResp.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class 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 in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Api.ChatResp getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.