public static final class Api.ClassificationResp extends com.google.protobuf.GeneratedMessageV3 implements Api.ClassificationRespOrBuilder
api.ClassificationResp| Modifier and Type | Class and Description |
|---|---|
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| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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.ErrorOrBuilder |
getErrorOrBuilder()
Error if exists for the req
|
String |
getLabel()
string label = 1; |
com.google.protobuf.ByteString |
getLabelBytes()
string label = 1; |
Map<String,Api.LabelLogprobosValue> |
getLabelLogprobos()
Deprecated.
|
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
|
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 |
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.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, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 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 getLabel()
string label = 1;getLabel in interface Api.ClassificationRespOrBuilderpublic com.google.protobuf.ByteString getLabelBytes()
string label = 1;getLabelBytes in interface Api.ClassificationRespOrBuilderpublic int getLabelLogprobosCount()
Api.ClassificationRespOrBuildermap<string, .api.LabelLogprobosValue> label_logprobos = 2;getLabelLogprobosCount in interface Api.ClassificationRespOrBuilderpublic boolean containsLabelLogprobos(String key)
map<string, .api.LabelLogprobosValue> label_logprobos = 2;containsLabelLogprobos in interface Api.ClassificationRespOrBuilder@Deprecated public Map<String,Api.LabelLogprobosValue> getLabelLogprobos()
getLabelLogprobosMap() instead.getLabelLogprobos in interface Api.ClassificationRespOrBuilderpublic Map<String,Api.LabelLogprobosValue> getLabelLogprobosMap()
map<string, .api.LabelLogprobosValue> label_logprobos = 2;getLabelLogprobosMap in interface Api.ClassificationRespOrBuilderpublic Api.LabelLogprobosValue getLabelLogprobosOrDefault(String key, Api.LabelLogprobosValue defaultValue)
map<string, .api.LabelLogprobosValue> label_logprobos = 2;getLabelLogprobosOrDefault in interface Api.ClassificationRespOrBuilderpublic Api.LabelLogprobosValue getLabelLogprobosOrThrow(String key)
map<string, .api.LabelLogprobosValue> label_logprobos = 2;getLabelLogprobosOrThrow in interface Api.ClassificationRespOrBuilderpublic boolean hasUsage()
The tokens usage
.api.Usage usage = 3;hasUsage in interface Api.ClassificationRespOrBuilderpublic Api.Usage getUsage()
The tokens usage
.api.Usage usage = 3;getUsage in interface Api.ClassificationRespOrBuilderpublic Api.UsageOrBuilder getUsageOrBuilder()
The tokens usage
.api.Usage usage = 3;getUsageOrBuilder in interface Api.ClassificationRespOrBuilderpublic String getReqId()
Unified request id
string req_id = 4;getReqId in interface Api.ClassificationRespOrBuilderpublic com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 4;getReqIdBytes in interface Api.ClassificationRespOrBuilderpublic boolean hasError()
Error if exists for the req
.api.Error error = 5;hasError in interface Api.ClassificationRespOrBuilderpublic Api.Error getError()
Error if exists for the req
.api.Error error = 5;getError in interface Api.ClassificationRespOrBuilderpublic Api.ErrorOrBuilder getErrorOrBuilder()
Error if exists for the req
.api.Error error = 5;getErrorOrBuilder in interface Api.ClassificationRespOrBuilderpublic 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.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 in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Api.ClassificationResp.Builder newBuilder()
public static Api.ClassificationResp.Builder newBuilder(Api.ClassificationResp prototype)
public Api.ClassificationResp.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Api.ClassificationResp.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class 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 in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Api.ClassificationResp getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.