public static final class ClassificationPredictionResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder> implements ClassificationPredictionResultOrBuilder
Prediction output format for Image and Text Classification.Protobuf type
google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult| Modifier and Type | Method and Description |
|---|---|
ClassificationPredictionResult.Builder |
addAllConfidences(Iterable<? extends Float> values)
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
ClassificationPredictionResult.Builder |
addAllDisplayNames(Iterable<String> values)
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
ClassificationPredictionResult.Builder |
addAllIds(Iterable<? extends Long> values)
The resource IDs of the AnnotationSpecs that had been identified.
|
ClassificationPredictionResult.Builder |
addConfidences(float value)
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
ClassificationPredictionResult.Builder |
addDisplayNames(String value)
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
ClassificationPredictionResult.Builder |
addDisplayNamesBytes(com.google.protobuf.ByteString value)
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
ClassificationPredictionResult.Builder |
addIds(long value)
The resource IDs of the AnnotationSpecs that had been identified.
|
ClassificationPredictionResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClassificationPredictionResult |
build() |
ClassificationPredictionResult |
buildPartial() |
ClassificationPredictionResult.Builder |
clear() |
ClassificationPredictionResult.Builder |
clearConfidences()
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
ClassificationPredictionResult.Builder |
clearDisplayNames()
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
ClassificationPredictionResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ClassificationPredictionResult.Builder |
clearIds()
The resource IDs of the AnnotationSpecs that had been identified.
|
ClassificationPredictionResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ClassificationPredictionResult.Builder |
clone() |
float |
getConfidences(int index)
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
int |
getConfidencesCount()
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
List<Float> |
getConfidencesList()
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
ClassificationPredictionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
com.google.protobuf.ByteString |
getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
int |
getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
com.google.protobuf.ProtocolStringList |
getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
long |
getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified.
|
int |
getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified.
|
List<Long> |
getIdsList()
The resource IDs of the AnnotationSpecs that had been identified.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ClassificationPredictionResult.Builder |
mergeFrom(ClassificationPredictionResult other) |
ClassificationPredictionResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClassificationPredictionResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClassificationPredictionResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClassificationPredictionResult.Builder |
setConfidences(int index,
float value)
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence.
|
ClassificationPredictionResult.Builder |
setDisplayNames(int index,
String value)
The display names of the AnnotationSpecs that had been identified, order
matches the IDs.
|
ClassificationPredictionResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClassificationPredictionResult.Builder |
setIds(int index,
long value)
The resource IDs of the AnnotationSpecs that had been identified.
|
ClassificationPredictionResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ClassificationPredictionResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ClassificationPredictionResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ClassificationPredictionResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ClassificationPredictionResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder mergeFrom(ClassificationPredictionResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public ClassificationPredictionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassificationPredictionResult.Builder>IOExceptionpublic List<Long> getIdsList()
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;getIdsList in interface ClassificationPredictionResultOrBuilderpublic int getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;getIdsCount in interface ClassificationPredictionResultOrBuilderpublic long getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;getIds in interface ClassificationPredictionResultOrBuilderindex - The index of the element to return.public ClassificationPredictionResult.Builder setIds(int index, long value)
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;index - The index to set the value at.value - The ids to set.public ClassificationPredictionResult.Builder addIds(long value)
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;value - The ids to add.public ClassificationPredictionResult.Builder addAllIds(Iterable<? extends Long> values)
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;values - The ids to add.public ClassificationPredictionResult.Builder clearIds()
The resource IDs of the AnnotationSpecs that had been identified.
repeated int64 ids = 1;public com.google.protobuf.ProtocolStringList getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNamesList in interface ClassificationPredictionResultOrBuilderpublic int getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNamesCount in interface ClassificationPredictionResultOrBuilderpublic String getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNames in interface ClassificationPredictionResultOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;getDisplayNamesBytes in interface ClassificationPredictionResultOrBuilderindex - The index of the value to return.public ClassificationPredictionResult.Builder setDisplayNames(int index, String value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;index - The index to set the value at.value - The displayNames to set.public ClassificationPredictionResult.Builder addDisplayNames(String value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;value - The displayNames to add.public ClassificationPredictionResult.Builder addAllDisplayNames(Iterable<String> values)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;values - The displayNames to add.public ClassificationPredictionResult.Builder clearDisplayNames()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;public ClassificationPredictionResult.Builder addDisplayNamesBytes(com.google.protobuf.ByteString value)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;value - The bytes of the displayNames to add.public List<Float> getConfidencesList()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;getConfidencesList in interface ClassificationPredictionResultOrBuilderpublic int getConfidencesCount()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;getConfidencesCount in interface ClassificationPredictionResultOrBuilderpublic float getConfidences(int index)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;getConfidences in interface ClassificationPredictionResultOrBuilderindex - The index of the element to return.public ClassificationPredictionResult.Builder setConfidences(int index, float value)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;index - The index to set the value at.value - The confidences to set.public ClassificationPredictionResult.Builder addConfidences(float value)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;value - The confidences to add.public ClassificationPredictionResult.Builder addAllConfidences(Iterable<? extends Float> values)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;values - The confidences to add.public ClassificationPredictionResult.Builder clearConfidences()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 3;public final ClassificationPredictionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>public final ClassificationPredictionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationPredictionResult.Builder>Copyright © 2023 Google LLC. All rights reserved.