public static final class Api.ClassificationResp extends com.google.protobuf.GeneratedMessageV3 implements Api.ClassificationRespOrBuilder
api.ClassificationResp| 限定符和类型 | 类和说明 |
|---|---|
static class |
Api.ClassificationResp.Builder
Protobuf type
api.ClassificationResp |
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 |
ERROR_FIELD_NUMBER |
static int |
LABEL_FIELD_NUMBER |
static int |
LABEL_LOGPROBOS_FIELD_NUMBER |
static int |
REQ_ID_FIELD_NUMBER |
static int |
USAGE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsLabelLogprobos(String key)
map<string, .api.LabelLogprobosValue> label_logprobos = 2; |
boolean |
equals(Object obj) |
static Api.ClassificationResp |
getDefaultInstance() |
Api.ClassificationResp |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Api.Error |
getError()
Error if exists for the req
.api.Error error = 5; |
Api.ErrorOrBuilder |
getErrorOrBuilder()
Error if exists for the req
.api.Error error = 5; |
String |
getLabel()
string label = 1; |
com.google.protobuf.ByteString |
getLabelBytes()
string label = 1; |
Map<String,Api.LabelLogprobosValue> |
getLabelLogprobos()
已过时。
|
int |
getLabelLogprobosCount()
map<string, .api.LabelLogprobosValue> label_logprobos = 2; |
Map<String,Api.LabelLogprobosValue> |
getLabelLogprobosMap()
map<string, .api.LabelLogprobosValue> label_logprobos = 2; |
Api.LabelLogprobosValue |
getLabelLogprobosOrDefault(String key,
Api.LabelLogprobosValue defaultValue)
map<string, .api.LabelLogprobosValue> label_logprobos = 2; |
Api.LabelLogprobosValue |
getLabelLogprobosOrThrow(String key)
map<string, .api.LabelLogprobosValue> label_logprobos = 2; |
com.google.protobuf.Parser<Api.ClassificationResp> |
getParserForType() |
String |
getReqId()
Unified request id
string req_id = 4; |
com.google.protobuf.ByteString |
getReqIdBytes()
Unified request id
string req_id = 4; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Api.Usage |
getUsage()
The tokens usage
.api.Usage usage = 3; |
Api.UsageOrBuilder |
getUsageOrBuilder()
The tokens usage
.api.Usage usage = 3; |
boolean |
hasError()
Error if exists for the req
.api.Error error = 5; |
int |
hashCode() |
boolean |
hasUsage()
The tokens usage
.api.Usage usage = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Api.ClassificationResp.Builder |
newBuilder() |
static Api.ClassificationResp.Builder |
newBuilder(Api.ClassificationResp prototype) |
Api.ClassificationResp.Builder |
newBuilderForType() |
protected Api.ClassificationResp.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Api.ClassificationResp |
parseDelimitedFrom(InputStream input) |
static Api.ClassificationResp |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ClassificationResp |
parseFrom(byte[] data) |
static Api.ClassificationResp |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ClassificationResp |
parseFrom(ByteBuffer data) |
static Api.ClassificationResp |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ClassificationResp |
parseFrom(com.google.protobuf.ByteString data) |
static Api.ClassificationResp |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ClassificationResp |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Api.ClassificationResp |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.ClassificationResp |
parseFrom(InputStream input) |
static Api.ClassificationResp |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Api.ClassificationResp> |
parser() |
Api.ClassificationResp.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 LABEL_FIELD_NUMBER
public static final int LABEL_LOGPROBOS_FIELD_NUMBER
public static final int USAGE_FIELD_NUMBER
public static final int REQ_ID_FIELD_NUMBER
public static final int ERROR_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 getLabel()
string label = 1;getLabel 在接口中 Api.ClassificationRespOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
string label = 1;getLabelBytes 在接口中 Api.ClassificationRespOrBuilderpublic int getLabelLogprobosCount()
Api.ClassificationRespOrBuildermap<string, .api.LabelLogprobosValue> label_logprobos = 2;public boolean containsLabelLogprobos(String key)
map<string, .api.LabelLogprobosValue> label_logprobos = 2;@Deprecated public Map<String,Api.LabelLogprobosValue> getLabelLogprobos()
getLabelLogprobosMap() instead.public Map<String,Api.LabelLogprobosValue> getLabelLogprobosMap()
map<string, .api.LabelLogprobosValue> label_logprobos = 2;public Api.LabelLogprobosValue getLabelLogprobosOrDefault(String key, Api.LabelLogprobosValue defaultValue)
map<string, .api.LabelLogprobosValue> label_logprobos = 2;public Api.LabelLogprobosValue getLabelLogprobosOrThrow(String key)
map<string, .api.LabelLogprobosValue> label_logprobos = 2;public boolean hasUsage()
The tokens usage
.api.Usage usage = 3;hasUsage 在接口中 Api.ClassificationRespOrBuilderpublic Api.Usage getUsage()
The tokens usage
.api.Usage usage = 3;getUsage 在接口中 Api.ClassificationRespOrBuilderpublic Api.UsageOrBuilder getUsageOrBuilder()
The tokens usage
.api.Usage usage = 3;public String getReqId()
Unified request id
string req_id = 4;getReqId 在接口中 Api.ClassificationRespOrBuilderpublic com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 4;getReqIdBytes 在接口中 Api.ClassificationRespOrBuilderpublic boolean hasError()
Error if exists for the req
.api.Error error = 5;hasError 在接口中 Api.ClassificationRespOrBuilderpublic Api.Error getError()
Error if exists for the req
.api.Error error = 5;getError 在接口中 Api.ClassificationRespOrBuilderpublic Api.ErrorOrBuilder getErrorOrBuilder()
Error if exists for the req
.api.Error error = 5;public 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.ClassificationResp parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ClassificationResp parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ClassificationResp parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ClassificationResp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ClassificationResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ClassificationResp parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.ClassificationResp parseFrom(InputStream input) throws IOException
IOExceptionpublic static Api.ClassificationResp parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Api.ClassificationResp parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Api.ClassificationResp parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Api.ClassificationResp parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Api.ClassificationResp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Api.ClassificationResp.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Api.ClassificationResp.Builder newBuilder()
public static Api.ClassificationResp.Builder newBuilder(Api.ClassificationResp prototype)
public Api.ClassificationResp.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Api.ClassificationResp.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Api.ClassificationResp getDefaultInstance()
public static com.google.protobuf.Parser<Api.ClassificationResp> parser()
public com.google.protobuf.Parser<Api.ClassificationResp> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Api.ClassificationResp getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.