public static final class TextSentimentEvaluationMetrics.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder> implements TextSentimentEvaluationMetricsOrBuilder
Model evaluation metrics for text sentiment problems.Protobuf type
google.cloud.automl.v1.TextSentimentEvaluationMetricsgetAllFields, 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<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextSentimentEvaluationMetrics build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextSentimentEvaluationMetrics buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextSentimentEvaluationMetrics.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.Builder mergeFrom(TextSentimentEvaluationMetrics other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder>public TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>IOExceptionpublic float getPrecision()
Output only. Precision.
float precision = 1;getPrecision in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setPrecision(float value)
Output only. Precision.
float precision = 1;value - The precision to set.public TextSentimentEvaluationMetrics.Builder clearPrecision()
Output only. Precision.
float precision = 1;public float getRecall()
Output only. Recall.
float recall = 2;getRecall in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setRecall(float value)
Output only. Recall.
float recall = 2;value - The recall to set.public TextSentimentEvaluationMetrics.Builder clearRecall()
Output only. Recall.
float recall = 2;public float getF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 3;getF1Score in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setF1Score(float value)
Output only. The harmonic mean of recall and precision.
float f1_score = 3;value - The f1Score to set.public TextSentimentEvaluationMetrics.Builder clearF1Score()
Output only. The harmonic mean of recall and precision.
float f1_score = 3;public float getMeanAbsoluteError()
Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float mean_absolute_error = 4;getMeanAbsoluteError in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setMeanAbsoluteError(float value)
Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float mean_absolute_error = 4;value - The meanAbsoluteError to set.public TextSentimentEvaluationMetrics.Builder clearMeanAbsoluteError()
Output only. Mean absolute error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float mean_absolute_error = 4;public float getMeanSquaredError()
Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float mean_squared_error = 5;getMeanSquaredError in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setMeanSquaredError(float value)
Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float mean_squared_error = 5;value - The meanSquaredError to set.public TextSentimentEvaluationMetrics.Builder clearMeanSquaredError()
Output only. Mean squared error. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float mean_squared_error = 5;public float getLinearKappa()
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float linear_kappa = 6;getLinearKappa in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setLinearKappa(float value)
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float linear_kappa = 6;value - The linearKappa to set.public TextSentimentEvaluationMetrics.Builder clearLinearKappa()
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float linear_kappa = 6;public float getQuadraticKappa()
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float quadratic_kappa = 7;getQuadraticKappa in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setQuadraticKappa(float value)
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float quadratic_kappa = 7;value - The quadraticKappa to set.public TextSentimentEvaluationMetrics.Builder clearQuadraticKappa()
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float quadratic_kappa = 7;public boolean hasConfusionMatrix()
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
hasConfusionMatrix in interface TextSentimentEvaluationMetricsOrBuilderpublic ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix()
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
getConfusionMatrix in interface TextSentimentEvaluationMetricsOrBuilderpublic TextSentimentEvaluationMetrics.Builder setConfusionMatrix(ClassificationEvaluationMetrics.ConfusionMatrix value)
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
public TextSentimentEvaluationMetrics.Builder setConfusionMatrix(ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue)
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
public TextSentimentEvaluationMetrics.Builder mergeConfusionMatrix(ClassificationEvaluationMetrics.ConfusionMatrix value)
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
public TextSentimentEvaluationMetrics.Builder clearConfusionMatrix()
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
public ClassificationEvaluationMetrics.ConfusionMatrix.Builder getConfusionMatrixBuilder()
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
public ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()
Output only. Confusion matrix of the evaluation. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
getConfusionMatrixOrBuilder in interface TextSentimentEvaluationMetricsOrBuilderpublic final TextSentimentEvaluationMetrics.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder>public final TextSentimentEvaluationMetrics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextSentimentEvaluationMetrics.Builder>Copyright © 2025 Google LLC. All rights reserved.