Package com.google.cloud.automl.v1
Class TextSentimentEvaluationMetrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextSentimentEvaluationMetrics.Builder>
com.google.cloud.automl.v1.TextSentimentEvaluationMetrics.Builder
- All Implemented Interfaces:
TextSentimentEvaluationMetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextSentimentEvaluationMetrics
public static final class TextSentimentEvaluationMetrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TextSentimentEvaluationMetrics.Builder>
implements TextSentimentEvaluationMetricsOrBuilder
Model evaluation metrics for text sentiment problems.Protobuf type
google.cloud.automl.v1.TextSentimentEvaluationMetrics-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatOutput only.floatOutput only.floatOutput only.floatOutput only.floatOutput only.floatOutput only.floatOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.Output only.setF1Score(float value) Output only.setLinearKappa(float value) Output only.setMeanAbsoluteError(float value) Output only.setMeanSquaredError(float value) Output only.setPrecision(float value) Output only.setQuadraticKappa(float value) Output only.setRecall(float value) Output only.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<TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextSentimentEvaluationMetrics.Builder>
-
mergeFrom
public TextSentimentEvaluationMetrics.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<TextSentimentEvaluationMetrics.Builder>- Throws:
IOException
-
getPrecision
public float getPrecision()Output only. Precision.
float precision = 1;- Specified by:
getPrecisionin interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The precision.
-
setPrecision
Output only. Precision.
float precision = 1;- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
Output only. Precision.
float precision = 1;- Returns:
- This builder for chaining.
-
getRecall
public float getRecall()Output only. Recall.
float recall = 2;- Specified by:
getRecallin interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The recall.
-
setRecall
Output only. Recall.
float recall = 2;- Parameters:
value- The recall to set.- Returns:
- This builder for chaining.
-
clearRecall
Output only. Recall.
float recall = 2;- Returns:
- This builder for chaining.
-
getF1Score
public float getF1Score()Output only. The harmonic mean of recall and precision.
float f1_score = 3;- Specified by:
getF1Scorein interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The f1Score.
-
setF1Score
Output only. The harmonic mean of recall and precision.
float f1_score = 3;- Parameters:
value- The f1Score to set.- Returns:
- This builder for chaining.
-
clearF1Score
Output only. The harmonic mean of recall and precision.
float f1_score = 3;- Returns:
- This builder for chaining.
-
getMeanAbsoluteError
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;- Specified by:
getMeanAbsoluteErrorin interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The meanAbsoluteError.
-
setMeanAbsoluteError
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;- Parameters:
value- The meanAbsoluteError to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getMeanSquaredError
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;- Specified by:
getMeanSquaredErrorin interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The meanSquaredError.
-
setMeanSquaredError
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;- Parameters:
value- The meanSquaredError to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getLinearKappa
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;- Specified by:
getLinearKappain interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The linearKappa.
-
setLinearKappa
Output only. Linear weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float linear_kappa = 6;- Parameters:
value- The linearKappa to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getQuadraticKappa
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;- Specified by:
getQuadraticKappain interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The quadraticKappa.
-
setQuadraticKappa
Output only. Quadratic weighted kappa. Only set for the overall model evaluation, not for evaluation of a single annotation spec.
float quadratic_kappa = 7;- Parameters:
value- The quadraticKappa to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasConfusionMatrix
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;- Specified by:
hasConfusionMatrixin interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- Whether the confusionMatrix field is set.
-
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;- Specified by:
getConfusionMatrixin interfaceTextSentimentEvaluationMetricsOrBuilder- Returns:
- The confusionMatrix.
-
setConfusionMatrix
public 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; -
setConfusionMatrix
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; -
mergeConfusionMatrix
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; -
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; -
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; -
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;- Specified by:
getConfusionMatrixOrBuilderin interfaceTextSentimentEvaluationMetricsOrBuilder
-