Class TabularClassificationPredictionResult.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
- com.google.cloud.aiplatform.v1beta1.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.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder> implements TabularClassificationPredictionResultOrBuilder
Prediction output format for Tabular Classification.
Protobuf typegoogle.cloud.aiplatform.v1beta1.schema.predict.prediction.TabularClassificationPredictionResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TabularClassificationPredictionResult.BuilderaddAllClasses(Iterable<String> values)The name of the classes being classified, contains all possible values of the target column.TabularClassificationPredictionResult.BuilderaddAllScores(Iterable<? extends Float> values)The model's confidence in each class being correct, higher value means higher confidence.TabularClassificationPredictionResult.BuilderaddClasses(String value)The name of the classes being classified, contains all possible values of the target column.TabularClassificationPredictionResult.BuilderaddClassesBytes(com.google.protobuf.ByteString value)The name of the classes being classified, contains all possible values of the target column.TabularClassificationPredictionResult.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TabularClassificationPredictionResult.BuilderaddScores(float value)The model's confidence in each class being correct, higher value means higher confidence.TabularClassificationPredictionResultbuild()TabularClassificationPredictionResultbuildPartial()TabularClassificationPredictionResult.Builderclear()TabularClassificationPredictionResult.BuilderclearClasses()The name of the classes being classified, contains all possible values of the target column.TabularClassificationPredictionResult.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TabularClassificationPredictionResult.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TabularClassificationPredictionResult.BuilderclearScores()The model's confidence in each class being correct, higher value means higher confidence.TabularClassificationPredictionResult.Builderclone()StringgetClasses(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.intgetClassesCount()The name of the classes being classified, contains all possible values of the target column.com.google.protobuf.ProtocolStringListgetClassesList()The name of the classes being classified, contains all possible values of the target column.TabularClassificationPredictionResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()floatgetScores(int index)The model's confidence in each class being correct, higher value means higher confidence.intgetScoresCount()The model's confidence in each class being correct, higher value means higher confidence.List<Float>getScoresList()The model's confidence in each class being correct, higher value means higher confidence.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TabularClassificationPredictionResult.BuildermergeFrom(TabularClassificationPredictionResult other)TabularClassificationPredictionResult.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TabularClassificationPredictionResult.BuildermergeFrom(com.google.protobuf.Message other)TabularClassificationPredictionResult.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TabularClassificationPredictionResult.BuildersetClasses(int index, String value)The name of the classes being classified, contains all possible values of the target column.TabularClassificationPredictionResult.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TabularClassificationPredictionResult.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TabularClassificationPredictionResult.BuildersetScores(int index, float value)The model's confidence in each class being correct, higher value means higher confidence.TabularClassificationPredictionResult.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
clear
public TabularClassificationPredictionResult.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
getDefaultInstanceForType
public TabularClassificationPredictionResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TabularClassificationPredictionResult build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TabularClassificationPredictionResult buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TabularClassificationPredictionResult.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
setField
public TabularClassificationPredictionResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
clearField
public TabularClassificationPredictionResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
clearOneof
public TabularClassificationPredictionResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
setRepeatedField
public TabularClassificationPredictionResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
addRepeatedField
public TabularClassificationPredictionResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
mergeFrom
public TabularClassificationPredictionResult.Builder mergeFrom(com.google.protobuf.Message other)
- 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.GeneratedMessageV3.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
public String getClasses(int index)
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
public TabularClassificationPredictionResult.Builder setClasses(int index, String value)
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
public TabularClassificationPredictionResult.Builder addClasses(String value)
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
public TabularClassificationPredictionResult.Builder addAllClasses(Iterable<String> values)
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
public TabularClassificationPredictionResult.Builder 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
public List<Float> 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
public TabularClassificationPredictionResult.Builder setScores(int index, float value)
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
public TabularClassificationPredictionResult.Builder addScores(float value)
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
public TabularClassificationPredictionResult.Builder addAllScores(Iterable<? extends Float> values)
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
public TabularClassificationPredictionResult.Builder 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.
-
setUnknownFields
public final TabularClassificationPredictionResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
mergeUnknownFields
public final TabularClassificationPredictionResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TabularClassificationPredictionResult.Builder>
-
-