Class TabularClassificationPredictionResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
com.google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.Builder
- All Implemented Interfaces:
TabularClassificationPredictionResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TabularClassificationPredictionResult
public static final class TabularClassificationPredictionResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
implements TabularClassificationPredictionResultOrBuilder
Prediction output format for Tabular Classification.Protobuf type
google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllClasses(Iterable<String> values) The name of the classes being classified, contains all possible values of the target column.addAllScores(Iterable<? extends Float> values) The model's confidence in each class being correct, higher value means higher confidence.addClasses(String value) The name of the classes being classified, contains all possible values of the target column.addClassesBytes(com.google.protobuf.ByteString value) The name of the classes being classified, contains all possible values of the target column.addScores(float value) The model's confidence in each class being correct, higher value means higher confidence.build()clear()The name of the classes being classified, contains all possible values of the target column.The model's confidence in each class being correct, higher value means higher confidence.getClasses(int index) The name of the classes being classified, contains all possible values of the target column.com.google.protobuf.ByteStringgetClassesBytes(int index) The name of the classes being classified, contains all possible values of the target column.intThe name of the classes being classified, contains all possible values of the target column.com.google.protobuf.ProtocolStringListThe name of the classes being classified, contains all possible values of the target column.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatgetScores(int index) The model's confidence in each class being correct, higher value means higher confidence.intThe model's confidence in each class being correct, higher value means higher confidence.The model's confidence in each class being correct, higher value means higher confidence.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setClasses(int index, String value) The name of the classes being classified, contains all possible values of the target column.setScores(int index, float value) The model's confidence in each class being correct, higher value means higher confidence.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TabularClassificationPredictionResult.Builder>
-
mergeFrom
public TabularClassificationPredictionResult.Builder mergeFrom(TabularClassificationPredictionResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TabularClassificationPredictionResult.Builder>
-
mergeFrom
public TabularClassificationPredictionResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TabularClassificationPredictionResult.Builder>- Throws:
IOException
-
getClassesList
public com.google.protobuf.ProtocolStringList getClassesList()The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Specified by:
getClassesListin interfaceTabularClassificationPredictionResultOrBuilder- Returns:
- A list containing the classes.
-
getClassesCount
public int getClassesCount()The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Specified by:
getClassesCountin interfaceTabularClassificationPredictionResultOrBuilder- Returns:
- The count of classes.
-
getClasses
The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Specified by:
getClassesin interfaceTabularClassificationPredictionResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The classes at the given index.
-
getClassesBytes
public com.google.protobuf.ByteString getClassesBytes(int index) The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Specified by:
getClassesBytesin interfaceTabularClassificationPredictionResultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the classes at the given index.
-
setClasses
The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Parameters:
index- The index to set the value at.value- The classes to set.- Returns:
- This builder for chaining.
-
addClasses
The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Parameters:
value- The classes to add.- Returns:
- This builder for chaining.
-
addAllClasses
The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Parameters:
values- The classes to add.- Returns:
- This builder for chaining.
-
clearClasses
The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Returns:
- This builder for chaining.
-
addClassesBytes
public TabularClassificationPredictionResult.Builder addClassesBytes(com.google.protobuf.ByteString value) The name of the classes being classified, contains all possible values of the target column.
repeated string classes = 1;- Parameters:
value- The bytes of the classes to add.- Returns:
- This builder for chaining.
-
getScoresList
The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Specified by:
getScoresListin interfaceTabularClassificationPredictionResultOrBuilder- Returns:
- A list containing the scores.
-
getScoresCount
public int getScoresCount()The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Specified by:
getScoresCountin interfaceTabularClassificationPredictionResultOrBuilder- Returns:
- The count of scores.
-
getScores
public float getScores(int index) The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Specified by:
getScoresin interfaceTabularClassificationPredictionResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The scores at the given index.
-
setScores
The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Parameters:
index- The index to set the value at.value- The scores to set.- Returns:
- This builder for chaining.
-
addScores
The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Parameters:
value- The scores to add.- Returns:
- This builder for chaining.
-
addAllScores
The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Parameters:
values- The scores to add.- Returns:
- This builder for chaining.
-
clearScores
The model's confidence in each class being correct, higher value means higher confidence. The N-th score corresponds to the N-th class in classes.
repeated float scores = 2;- Returns:
- This builder for chaining.
-