Package com.google.cloud.automl.v1beta1
Class TextSentimentProto.TextSentimentEvaluationMetrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextSentimentProto.TextSentimentEvaluationMetrics.Builder>
com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder
- All Implemented Interfaces:
TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextSentimentProto.TextSentimentEvaluationMetrics
public static final class TextSentimentProto.TextSentimentEvaluationMetrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TextSentimentProto.TextSentimentEvaluationMetrics.Builder>
implements TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder
Model evaluation metrics for text sentiment problems.Protobuf type
google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotationSpecId(Iterable<String> values) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.addAnnotationSpecId(String value) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.build()clear()Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.getAnnotationSpecId(int index) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.com.google.protobuf.ByteStringgetAnnotationSpecIdBytes(int index) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.intDeprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.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) setAnnotationSpecId(int index, String value) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated.Output only.setConfusionMatrix(ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) 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<TextSentimentProto.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<TextSentimentProto.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<TextSentimentProto.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
public TextSentimentProto.TextSentimentEvaluationMetrics.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextSentimentProto.TextSentimentEvaluationMetrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextSentimentProto.TextSentimentEvaluationMetrics.Builder>
-
mergeFrom
public TextSentimentProto.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<TextSentimentProto.TextSentimentEvaluationMetrics.Builder>- Throws:
IOException
-
getPrecision
public float getPrecision()Output only. Precision.
float precision = 1;- Specified by:
getPrecisionin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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 interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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 interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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 interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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 interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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 interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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 interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;- Specified by:
hasConfusionMatrixin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- 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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;- Specified by:
getConfusionMatrixin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- Returns:
- The confusionMatrix.
-
setConfusionMatrix
public TextSentimentProto.TextSentimentEvaluationMetrics.Builder setConfusionMatrix(ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; -
setConfusionMatrix
public TextSentimentProto.TextSentimentEvaluationMetrics.Builder setConfusionMatrix(ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; -
mergeConfusionMatrix
public TextSentimentProto.TextSentimentEvaluationMetrics.Builder mergeConfusionMatrix(ClassificationProto.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.v1beta1.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; -
getConfusionMatrixBuilder
public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; -
getConfusionMatrixOrBuilder
public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;- Specified by:
getConfusionMatrixOrBuilderin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder
-
getAnnotationSpecIdList
Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Specified by:
getAnnotationSpecIdListin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- Returns:
- A list containing the annotationSpecId.
-
getAnnotationSpecIdCount
Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Specified by:
getAnnotationSpecIdCountin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- Returns:
- The count of annotationSpecId.
-
getAnnotationSpecId
Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Specified by:
getAnnotationSpecIdin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The annotationSpecId at the given index.
-
getAnnotationSpecIdBytes
Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Specified by:
getAnnotationSpecIdBytesin interfaceTextSentimentProto.TextSentimentEvaluationMetricsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotationSpecId at the given index.
-
setAnnotationSpecId
@Deprecated public TextSentimentProto.TextSentimentEvaluationMetrics.Builder setAnnotationSpecId(int index, String value) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Parameters:
index- The index to set the value at.value- The annotationSpecId to set.- Returns:
- This builder for chaining.
-
addAnnotationSpecId
@Deprecated public TextSentimentProto.TextSentimentEvaluationMetrics.Builder addAnnotationSpecId(String value) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Parameters:
value- The annotationSpecId to add.- Returns:
- This builder for chaining.
-
addAllAnnotationSpecId
@Deprecated public TextSentimentProto.TextSentimentEvaluationMetrics.Builder addAllAnnotationSpecId(Iterable<String> values) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Parameters:
values- The annotationSpecId to add.- Returns:
- This builder for chaining.
-
clearAnnotationSpecId
@Deprecated public TextSentimentProto.TextSentimentEvaluationMetrics.Builder clearAnnotationSpecId()Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Returns:
- This builder for chaining.
-
addAnnotationSpecIdBytes
@Deprecated public TextSentimentProto.TextSentimentEvaluationMetrics.Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics.annotation_spec_id is deprecated. See google/cloud/automl/v1beta1/text_sentiment.proto;l=77Output only. The annotation spec ids used for this evaluation. Deprecated .
repeated string annotation_spec_id = 9 [deprecated = true];- Parameters:
value- The bytes of the annotationSpecId to add.- Returns:
- This builder for chaining.
-