All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.EvalMetrics Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * EvalMetrics
 * 
* * Protobuf type {@code clarifai.api.EvalMetrics} */ public final class EvalMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.EvalMetrics) EvalMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use EvalMetrics.newBuilder() to construct. private EvalMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvalMetrics() { userId_ = ""; appId_ = ""; id_ = ""; binaryMetrics_ = java.util.Collections.emptyList(); testSet_ = java.util.Collections.emptyList(); metricsByArea_ = java.util.Collections.emptyList(); metricsByClass_ = java.util.Collections.emptyList(); trackerMetrics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EvalMetrics(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EvalMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.clarifai.grpc.api.status.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.clarifai.grpc.api.status.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 18: { com.clarifai.grpc.api.MetricsSummary.Builder subBuilder = null; if (summary_ != null) { subBuilder = summary_.toBuilder(); } summary_ = input.readMessage(com.clarifai.grpc.api.MetricsSummary.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(summary_); summary_ = subBuilder.buildPartial(); } break; } case 26: { com.clarifai.grpc.api.ConfusionMatrix.Builder subBuilder = null; if (confusionMatrix_ != null) { subBuilder = confusionMatrix_.toBuilder(); } confusionMatrix_ = input.readMessage(com.clarifai.grpc.api.ConfusionMatrix.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(confusionMatrix_); confusionMatrix_ = subBuilder.buildPartial(); } break; } case 34: { com.clarifai.grpc.api.CooccurrenceMatrix.Builder subBuilder = null; if (cooccurrenceMatrix_ != null) { subBuilder = cooccurrenceMatrix_.toBuilder(); } cooccurrenceMatrix_ = input.readMessage(com.clarifai.grpc.api.CooccurrenceMatrix.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cooccurrenceMatrix_); cooccurrenceMatrix_ = subBuilder.buildPartial(); } break; } case 42: { com.clarifai.grpc.api.LabelDistribution.Builder subBuilder = null; if (labelCounts_ != null) { subBuilder = labelCounts_.toBuilder(); } labelCounts_ = input.readMessage(com.clarifai.grpc.api.LabelDistribution.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labelCounts_); labelCounts_ = subBuilder.buildPartial(); } break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { binaryMetrics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } binaryMetrics_.add( input.readMessage(com.clarifai.grpc.api.BinaryMetrics.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { testSet_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } testSet_.add( input.readMessage(com.clarifai.grpc.api.EvalTestSetEntry.parser(), extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { metricsByArea_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } metricsByArea_.add( input.readMessage(com.clarifai.grpc.api.BinaryMetrics.parser(), extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { metricsByClass_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } metricsByClass_.add( input.readMessage(com.clarifai.grpc.api.BinaryMetrics.parser(), extensionRegistry)); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 90: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { trackerMetrics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } trackerMetrics_.add( input.readMessage(com.clarifai.grpc.api.TrackerMetrics.parser(), extensionRegistry)); break; } case 98: { com.clarifai.grpc.api.EvalInfo.Builder subBuilder = null; if (evalInfo_ != null) { subBuilder = evalInfo_.toBuilder(); } evalInfo_ = input.readMessage(com.clarifai.grpc.api.EvalInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(evalInfo_); evalInfo_ = subBuilder.buildPartial(); } break; } case 106: { com.clarifai.grpc.api.Model.Builder subBuilder = null; if (model_ != null) { subBuilder = model_.toBuilder(); } model_ = input.readMessage(com.clarifai.grpc.api.Model.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(model_); model_ = subBuilder.buildPartial(); } break; } case 114: { com.clarifai.grpc.api.Dataset.Builder subBuilder = null; if (groundTruthDataset_ != null) { subBuilder = groundTruthDataset_.toBuilder(); } groundTruthDataset_ = input.readMessage(com.clarifai.grpc.api.Dataset.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groundTruthDataset_); groundTruthDataset_ = subBuilder.buildPartial(); } break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); appId_ = s; break; } case 138: { com.clarifai.grpc.api.ExtendedMetrics.Builder subBuilder = null; if (extendedMetrics_ != null) { subBuilder = extendedMetrics_.toBuilder(); } extendedMetrics_ = input.readMessage(com.clarifai.grpc.api.ExtendedMetrics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(extendedMetrics_); extendedMetrics_ = subBuilder.buildPartial(); } break; } case 146: { com.clarifai.grpc.api.Dataset.Builder subBuilder = null; if (predictionsDataset_ != null) { subBuilder = predictionsDataset_.toBuilder(); } predictionsDataset_ = input.readMessage(com.clarifai.grpc.api.Dataset.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(predictionsDataset_); predictionsDataset_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { binaryMetrics_ = java.util.Collections.unmodifiableList(binaryMetrics_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { testSet_ = java.util.Collections.unmodifiableList(testSet_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { metricsByArea_ = java.util.Collections.unmodifiableList(metricsByArea_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { metricsByClass_ = java.util.Collections.unmodifiableList(metricsByClass_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { trackerMetrics_ = java.util.Collections.unmodifiableList(trackerMetrics_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.EvalMetrics.class, com.clarifai.grpc.api.EvalMetrics.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.clarifai.grpc.api.status.Status status_; /** * .clarifai.api.status.Status status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** * .clarifai.api.status.Status status = 1; * @return The status. */ @java.lang.Override public com.clarifai.grpc.api.status.Status getStatus() { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } /** * .clarifai.api.status.Status status = 1; */ @java.lang.Override public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int USER_ID_FIELD_NUMBER = 15; private volatile java.lang.Object userId_; /** *
   * user id that owns this evaluation
   * 
* * string user_id = 15; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** *
   * user id that owns this evaluation
   * 
* * string user_id = 15; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APP_ID_FIELD_NUMBER = 16; private volatile java.lang.Object appId_; /** *
   * app id that owns this evaluation
   * 
* * string app_id = 16; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } } /** *
   * app id that owns this evaluation
   * 
* * string app_id = 16; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 10; private volatile java.lang.Object id_; /** *
   * Id of this evaluation
   * 
* * string id = 10; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
   * Id of this evaluation
   * 
* * string id = 10; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_FIELD_NUMBER = 13; private com.clarifai.grpc.api.Model model_; /** *
   * Model to evaluate
   * 
* * .clarifai.api.Model model = 13; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** *
   * Model to evaluate
   * 
* * .clarifai.api.Model model = 13; * @return The model. */ @java.lang.Override public com.clarifai.grpc.api.Model getModel() { return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_; } /** *
   * Model to evaluate
   * 
* * .clarifai.api.Model model = 13; */ @java.lang.Override public com.clarifai.grpc.api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int GROUND_TRUTH_DATASET_FIELD_NUMBER = 14; private com.clarifai.grpc.api.Dataset groundTruthDataset_; /** *
   * The ground truth dataset
   * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; * @return Whether the groundTruthDataset field is set. */ @java.lang.Override public boolean hasGroundTruthDataset() { return groundTruthDataset_ != null; } /** *
   * The ground truth dataset
   * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; * @return The groundTruthDataset. */ @java.lang.Override public com.clarifai.grpc.api.Dataset getGroundTruthDataset() { return groundTruthDataset_ == null ? com.clarifai.grpc.api.Dataset.getDefaultInstance() : groundTruthDataset_; } /** *
   * The ground truth dataset
   * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ @java.lang.Override public com.clarifai.grpc.api.DatasetOrBuilder getGroundTruthDatasetOrBuilder() { return getGroundTruthDataset(); } public static final int PREDICTIONS_DATASET_FIELD_NUMBER = 18; private com.clarifai.grpc.api.Dataset predictionsDataset_; /** *
   * The dataset with predictions
   * 
* * .clarifai.api.Dataset predictions_dataset = 18; * @return Whether the predictionsDataset field is set. */ @java.lang.Override public boolean hasPredictionsDataset() { return predictionsDataset_ != null; } /** *
   * The dataset with predictions
   * 
* * .clarifai.api.Dataset predictions_dataset = 18; * @return The predictionsDataset. */ @java.lang.Override public com.clarifai.grpc.api.Dataset getPredictionsDataset() { return predictionsDataset_ == null ? com.clarifai.grpc.api.Dataset.getDefaultInstance() : predictionsDataset_; } /** *
   * The dataset with predictions
   * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ @java.lang.Override public com.clarifai.grpc.api.DatasetOrBuilder getPredictionsDatasetOrBuilder() { return getPredictionsDataset(); } public static final int SUMMARY_FIELD_NUMBER = 2; private com.clarifai.grpc.api.MetricsSummary summary_; /** * .clarifai.api.MetricsSummary summary = 2; * @return Whether the summary field is set. */ @java.lang.Override public boolean hasSummary() { return summary_ != null; } /** * .clarifai.api.MetricsSummary summary = 2; * @return The summary. */ @java.lang.Override public com.clarifai.grpc.api.MetricsSummary getSummary() { return summary_ == null ? com.clarifai.grpc.api.MetricsSummary.getDefaultInstance() : summary_; } /** * .clarifai.api.MetricsSummary summary = 2; */ @java.lang.Override public com.clarifai.grpc.api.MetricsSummaryOrBuilder getSummaryOrBuilder() { return getSummary(); } public static final int CONFUSION_MATRIX_FIELD_NUMBER = 3; private com.clarifai.grpc.api.ConfusionMatrix confusionMatrix_; /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; * @return Whether the confusionMatrix field is set. */ @java.lang.Override public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; * @return The confusionMatrix. */ @java.lang.Override public com.clarifai.grpc.api.ConfusionMatrix getConfusionMatrix() { return confusionMatrix_ == null ? com.clarifai.grpc.api.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ @java.lang.Override public com.clarifai.grpc.api.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } public static final int COOCCURRENCE_MATRIX_FIELD_NUMBER = 4; private com.clarifai.grpc.api.CooccurrenceMatrix cooccurrenceMatrix_; /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; * @return Whether the cooccurrenceMatrix field is set. */ @java.lang.Override public boolean hasCooccurrenceMatrix() { return cooccurrenceMatrix_ != null; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; * @return The cooccurrenceMatrix. */ @java.lang.Override public com.clarifai.grpc.api.CooccurrenceMatrix getCooccurrenceMatrix() { return cooccurrenceMatrix_ == null ? com.clarifai.grpc.api.CooccurrenceMatrix.getDefaultInstance() : cooccurrenceMatrix_; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ @java.lang.Override public com.clarifai.grpc.api.CooccurrenceMatrixOrBuilder getCooccurrenceMatrixOrBuilder() { return getCooccurrenceMatrix(); } public static final int LABEL_COUNTS_FIELD_NUMBER = 5; private com.clarifai.grpc.api.LabelDistribution labelCounts_; /** * .clarifai.api.LabelDistribution label_counts = 5; * @return Whether the labelCounts field is set. */ @java.lang.Override public boolean hasLabelCounts() { return labelCounts_ != null; } /** * .clarifai.api.LabelDistribution label_counts = 5; * @return The labelCounts. */ @java.lang.Override public com.clarifai.grpc.api.LabelDistribution getLabelCounts() { return labelCounts_ == null ? com.clarifai.grpc.api.LabelDistribution.getDefaultInstance() : labelCounts_; } /** * .clarifai.api.LabelDistribution label_counts = 5; */ @java.lang.Override public com.clarifai.grpc.api.LabelDistributionOrBuilder getLabelCountsOrBuilder() { return getLabelCounts(); } public static final int BINARY_METRICS_FIELD_NUMBER = 6; private java.util.List binaryMetrics_; /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ @java.lang.Override public java.util.List getBinaryMetricsList() { return binaryMetrics_; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ @java.lang.Override public java.util.List getBinaryMetricsOrBuilderList() { return binaryMetrics_; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ @java.lang.Override public int getBinaryMetricsCount() { return binaryMetrics_.size(); } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ @java.lang.Override public com.clarifai.grpc.api.BinaryMetrics getBinaryMetrics(int index) { return binaryMetrics_.get(index); } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ @java.lang.Override public com.clarifai.grpc.api.BinaryMetricsOrBuilder getBinaryMetricsOrBuilder( int index) { return binaryMetrics_.get(index); } public static final int TEST_SET_FIELD_NUMBER = 7; private java.util.List testSet_; /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ @java.lang.Override public java.util.List getTestSetList() { return testSet_; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ @java.lang.Override public java.util.List getTestSetOrBuilderList() { return testSet_; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ @java.lang.Override public int getTestSetCount() { return testSet_.size(); } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ @java.lang.Override public com.clarifai.grpc.api.EvalTestSetEntry getTestSet(int index) { return testSet_.get(index); } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ @java.lang.Override public com.clarifai.grpc.api.EvalTestSetEntryOrBuilder getTestSetOrBuilder( int index) { return testSet_.get(index); } public static final int METRICS_BY_AREA_FIELD_NUMBER = 8; private java.util.List metricsByArea_; /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ @java.lang.Override public java.util.List getMetricsByAreaList() { return metricsByArea_; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ @java.lang.Override public java.util.List getMetricsByAreaOrBuilderList() { return metricsByArea_; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ @java.lang.Override public int getMetricsByAreaCount() { return metricsByArea_.size(); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ @java.lang.Override public com.clarifai.grpc.api.BinaryMetrics getMetricsByArea(int index) { return metricsByArea_.get(index); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ @java.lang.Override public com.clarifai.grpc.api.BinaryMetricsOrBuilder getMetricsByAreaOrBuilder( int index) { return metricsByArea_.get(index); } public static final int METRICS_BY_CLASS_FIELD_NUMBER = 9; private java.util.List metricsByClass_; /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ @java.lang.Override public java.util.List getMetricsByClassList() { return metricsByClass_; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ @java.lang.Override public java.util.List getMetricsByClassOrBuilderList() { return metricsByClass_; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ @java.lang.Override public int getMetricsByClassCount() { return metricsByClass_.size(); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ @java.lang.Override public com.clarifai.grpc.api.BinaryMetrics getMetricsByClass(int index) { return metricsByClass_.get(index); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ @java.lang.Override public com.clarifai.grpc.api.BinaryMetricsOrBuilder getMetricsByClassOrBuilder( int index) { return metricsByClass_.get(index); } public static final int TRACKER_METRICS_FIELD_NUMBER = 11; private java.util.List trackerMetrics_; /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ @java.lang.Override public java.util.List getTrackerMetricsList() { return trackerMetrics_; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ @java.lang.Override public java.util.List getTrackerMetricsOrBuilderList() { return trackerMetrics_; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ @java.lang.Override public int getTrackerMetricsCount() { return trackerMetrics_.size(); } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ @java.lang.Override public com.clarifai.grpc.api.TrackerMetrics getTrackerMetrics(int index) { return trackerMetrics_.get(index); } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ @java.lang.Override public com.clarifai.grpc.api.TrackerMetricsOrBuilder getTrackerMetricsOrBuilder( int index) { return trackerMetrics_.get(index); } public static final int EVAL_INFO_FIELD_NUMBER = 12; private com.clarifai.grpc.api.EvalInfo evalInfo_; /** *
   * Evaluation parameters to pass. Expected to match what
   * is defined in the model type for the respective model.
   * 
* * .clarifai.api.EvalInfo eval_info = 12; * @return Whether the evalInfo field is set. */ @java.lang.Override public boolean hasEvalInfo() { return evalInfo_ != null; } /** *
   * Evaluation parameters to pass. Expected to match what
   * is defined in the model type for the respective model.
   * 
* * .clarifai.api.EvalInfo eval_info = 12; * @return The evalInfo. */ @java.lang.Override public com.clarifai.grpc.api.EvalInfo getEvalInfo() { return evalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : evalInfo_; } /** *
   * Evaluation parameters to pass. Expected to match what
   * is defined in the model type for the respective model.
   * 
* * .clarifai.api.EvalInfo eval_info = 12; */ @java.lang.Override public com.clarifai.grpc.api.EvalInfoOrBuilder getEvalInfoOrBuilder() { return getEvalInfo(); } public static final int EXTENDED_METRICS_FIELD_NUMBER = 17; private com.clarifai.grpc.api.ExtendedMetrics extendedMetrics_; /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; * @return Whether the extendedMetrics field is set. */ @java.lang.Override public boolean hasExtendedMetrics() { return extendedMetrics_ != null; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; * @return The extendedMetrics. */ @java.lang.Override public com.clarifai.grpc.api.ExtendedMetrics getExtendedMetrics() { return extendedMetrics_ == null ? com.clarifai.grpc.api.ExtendedMetrics.getDefaultInstance() : extendedMetrics_; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ @java.lang.Override public com.clarifai.grpc.api.ExtendedMetricsOrBuilder getExtendedMetricsOrBuilder() { return getExtendedMetrics(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != null) { output.writeMessage(1, getStatus()); } if (summary_ != null) { output.writeMessage(2, getSummary()); } if (confusionMatrix_ != null) { output.writeMessage(3, getConfusionMatrix()); } if (cooccurrenceMatrix_ != null) { output.writeMessage(4, getCooccurrenceMatrix()); } if (labelCounts_ != null) { output.writeMessage(5, getLabelCounts()); } for (int i = 0; i < binaryMetrics_.size(); i++) { output.writeMessage(6, binaryMetrics_.get(i)); } for (int i = 0; i < testSet_.size(); i++) { output.writeMessage(7, testSet_.get(i)); } for (int i = 0; i < metricsByArea_.size(); i++) { output.writeMessage(8, metricsByArea_.get(i)); } for (int i = 0; i < metricsByClass_.size(); i++) { output.writeMessage(9, metricsByClass_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_); } for (int i = 0; i < trackerMetrics_.size(); i++) { output.writeMessage(11, trackerMetrics_.get(i)); } if (evalInfo_ != null) { output.writeMessage(12, getEvalInfo()); } if (model_ != null) { output.writeMessage(13, getModel()); } if (groundTruthDataset_ != null) { output.writeMessage(14, getGroundTruthDataset()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, appId_); } if (extendedMetrics_ != null) { output.writeMessage(17, getExtendedMetrics()); } if (predictionsDataset_ != null) { output.writeMessage(18, getPredictionsDataset()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (summary_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSummary()); } if (confusionMatrix_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getConfusionMatrix()); } if (cooccurrenceMatrix_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCooccurrenceMatrix()); } if (labelCounts_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLabelCounts()); } for (int i = 0; i < binaryMetrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, binaryMetrics_.get(i)); } for (int i = 0; i < testSet_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, testSet_.get(i)); } for (int i = 0; i < metricsByArea_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, metricsByArea_.get(i)); } for (int i = 0; i < metricsByClass_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, metricsByClass_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_); } for (int i = 0; i < trackerMetrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, trackerMetrics_.get(i)); } if (evalInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getEvalInfo()); } if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getModel()); } if (groundTruthDataset_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getGroundTruthDataset()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, appId_); } if (extendedMetrics_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getExtendedMetrics()); } if (predictionsDataset_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getPredictionsDataset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.EvalMetrics)) { return super.equals(obj); } com.clarifai.grpc.api.EvalMetrics other = (com.clarifai.grpc.api.EvalMetrics) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getUserId() .equals(other.getUserId())) return false; if (!getAppId() .equals(other.getAppId())) return false; if (!getId() .equals(other.getId())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (hasGroundTruthDataset() != other.hasGroundTruthDataset()) return false; if (hasGroundTruthDataset()) { if (!getGroundTruthDataset() .equals(other.getGroundTruthDataset())) return false; } if (hasPredictionsDataset() != other.hasPredictionsDataset()) return false; if (hasPredictionsDataset()) { if (!getPredictionsDataset() .equals(other.getPredictionsDataset())) return false; } if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { if (!getSummary() .equals(other.getSummary())) return false; } if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; if (hasConfusionMatrix()) { if (!getConfusionMatrix() .equals(other.getConfusionMatrix())) return false; } if (hasCooccurrenceMatrix() != other.hasCooccurrenceMatrix()) return false; if (hasCooccurrenceMatrix()) { if (!getCooccurrenceMatrix() .equals(other.getCooccurrenceMatrix())) return false; } if (hasLabelCounts() != other.hasLabelCounts()) return false; if (hasLabelCounts()) { if (!getLabelCounts() .equals(other.getLabelCounts())) return false; } if (!getBinaryMetricsList() .equals(other.getBinaryMetricsList())) return false; if (!getTestSetList() .equals(other.getTestSetList())) return false; if (!getMetricsByAreaList() .equals(other.getMetricsByAreaList())) return false; if (!getMetricsByClassList() .equals(other.getMetricsByClassList())) return false; if (!getTrackerMetricsList() .equals(other.getTrackerMetricsList())) return false; if (hasEvalInfo() != other.hasEvalInfo()) return false; if (hasEvalInfo()) { if (!getEvalInfo() .equals(other.getEvalInfo())) return false; } if (hasExtendedMetrics() != other.hasExtendedMetrics()) return false; if (hasExtendedMetrics()) { if (!getExtendedMetrics() .equals(other.getExtendedMetrics())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } if (hasGroundTruthDataset()) { hash = (37 * hash) + GROUND_TRUTH_DATASET_FIELD_NUMBER; hash = (53 * hash) + getGroundTruthDataset().hashCode(); } if (hasPredictionsDataset()) { hash = (37 * hash) + PREDICTIONS_DATASET_FIELD_NUMBER; hash = (53 * hash) + getPredictionsDataset().hashCode(); } if (hasSummary()) { hash = (37 * hash) + SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getSummary().hashCode(); } if (hasConfusionMatrix()) { hash = (37 * hash) + CONFUSION_MATRIX_FIELD_NUMBER; hash = (53 * hash) + getConfusionMatrix().hashCode(); } if (hasCooccurrenceMatrix()) { hash = (37 * hash) + COOCCURRENCE_MATRIX_FIELD_NUMBER; hash = (53 * hash) + getCooccurrenceMatrix().hashCode(); } if (hasLabelCounts()) { hash = (37 * hash) + LABEL_COUNTS_FIELD_NUMBER; hash = (53 * hash) + getLabelCounts().hashCode(); } if (getBinaryMetricsCount() > 0) { hash = (37 * hash) + BINARY_METRICS_FIELD_NUMBER; hash = (53 * hash) + getBinaryMetricsList().hashCode(); } if (getTestSetCount() > 0) { hash = (37 * hash) + TEST_SET_FIELD_NUMBER; hash = (53 * hash) + getTestSetList().hashCode(); } if (getMetricsByAreaCount() > 0) { hash = (37 * hash) + METRICS_BY_AREA_FIELD_NUMBER; hash = (53 * hash) + getMetricsByAreaList().hashCode(); } if (getMetricsByClassCount() > 0) { hash = (37 * hash) + METRICS_BY_CLASS_FIELD_NUMBER; hash = (53 * hash) + getMetricsByClassList().hashCode(); } if (getTrackerMetricsCount() > 0) { hash = (37 * hash) + TRACKER_METRICS_FIELD_NUMBER; hash = (53 * hash) + getTrackerMetricsList().hashCode(); } if (hasEvalInfo()) { hash = (37 * hash) + EVAL_INFO_FIELD_NUMBER; hash = (53 * hash) + getEvalInfo().hashCode(); } if (hasExtendedMetrics()) { hash = (37 * hash) + EXTENDED_METRICS_FIELD_NUMBER; hash = (53 * hash) + getExtendedMetrics().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.EvalMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.EvalMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.EvalMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.EvalMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.EvalMetrics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.EvalMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.EvalMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * EvalMetrics
   * 
* * Protobuf type {@code clarifai.api.EvalMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.EvalMetrics) com.clarifai.grpc.api.EvalMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.EvalMetrics.class, com.clarifai.grpc.api.EvalMetrics.Builder.class); } // Construct using com.clarifai.grpc.api.EvalMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBinaryMetricsFieldBuilder(); getTestSetFieldBuilder(); getMetricsByAreaFieldBuilder(); getMetricsByClassFieldBuilder(); getTrackerMetricsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } userId_ = ""; appId_ = ""; id_ = ""; if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } if (groundTruthDatasetBuilder_ == null) { groundTruthDataset_ = null; } else { groundTruthDataset_ = null; groundTruthDatasetBuilder_ = null; } if (predictionsDatasetBuilder_ == null) { predictionsDataset_ = null; } else { predictionsDataset_ = null; predictionsDatasetBuilder_ = null; } if (summaryBuilder_ == null) { summary_ = null; } else { summary_ = null; summaryBuilder_ = null; } if (confusionMatrixBuilder_ == null) { confusionMatrix_ = null; } else { confusionMatrix_ = null; confusionMatrixBuilder_ = null; } if (cooccurrenceMatrixBuilder_ == null) { cooccurrenceMatrix_ = null; } else { cooccurrenceMatrix_ = null; cooccurrenceMatrixBuilder_ = null; } if (labelCountsBuilder_ == null) { labelCounts_ = null; } else { labelCounts_ = null; labelCountsBuilder_ = null; } if (binaryMetricsBuilder_ == null) { binaryMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { binaryMetricsBuilder_.clear(); } if (testSetBuilder_ == null) { testSet_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { testSetBuilder_.clear(); } if (metricsByAreaBuilder_ == null) { metricsByArea_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { metricsByAreaBuilder_.clear(); } if (metricsByClassBuilder_ == null) { metricsByClass_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { metricsByClassBuilder_.clear(); } if (trackerMetricsBuilder_ == null) { trackerMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { trackerMetricsBuilder_.clear(); } if (evalInfoBuilder_ == null) { evalInfo_ = null; } else { evalInfo_ = null; evalInfoBuilder_ = null; } if (extendedMetricsBuilder_ == null) { extendedMetrics_ = null; } else { extendedMetrics_ = null; extendedMetricsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalMetrics_descriptor; } @java.lang.Override public com.clarifai.grpc.api.EvalMetrics getDefaultInstanceForType() { return com.clarifai.grpc.api.EvalMetrics.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.EvalMetrics build() { com.clarifai.grpc.api.EvalMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.EvalMetrics buildPartial() { com.clarifai.grpc.api.EvalMetrics result = new com.clarifai.grpc.api.EvalMetrics(this); int from_bitField0_ = bitField0_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } result.userId_ = userId_; result.appId_ = appId_; result.id_ = id_; if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } if (groundTruthDatasetBuilder_ == null) { result.groundTruthDataset_ = groundTruthDataset_; } else { result.groundTruthDataset_ = groundTruthDatasetBuilder_.build(); } if (predictionsDatasetBuilder_ == null) { result.predictionsDataset_ = predictionsDataset_; } else { result.predictionsDataset_ = predictionsDatasetBuilder_.build(); } if (summaryBuilder_ == null) { result.summary_ = summary_; } else { result.summary_ = summaryBuilder_.build(); } if (confusionMatrixBuilder_ == null) { result.confusionMatrix_ = confusionMatrix_; } else { result.confusionMatrix_ = confusionMatrixBuilder_.build(); } if (cooccurrenceMatrixBuilder_ == null) { result.cooccurrenceMatrix_ = cooccurrenceMatrix_; } else { result.cooccurrenceMatrix_ = cooccurrenceMatrixBuilder_.build(); } if (labelCountsBuilder_ == null) { result.labelCounts_ = labelCounts_; } else { result.labelCounts_ = labelCountsBuilder_.build(); } if (binaryMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { binaryMetrics_ = java.util.Collections.unmodifiableList(binaryMetrics_); bitField0_ = (bitField0_ & ~0x00000001); } result.binaryMetrics_ = binaryMetrics_; } else { result.binaryMetrics_ = binaryMetricsBuilder_.build(); } if (testSetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { testSet_ = java.util.Collections.unmodifiableList(testSet_); bitField0_ = (bitField0_ & ~0x00000002); } result.testSet_ = testSet_; } else { result.testSet_ = testSetBuilder_.build(); } if (metricsByAreaBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { metricsByArea_ = java.util.Collections.unmodifiableList(metricsByArea_); bitField0_ = (bitField0_ & ~0x00000004); } result.metricsByArea_ = metricsByArea_; } else { result.metricsByArea_ = metricsByAreaBuilder_.build(); } if (metricsByClassBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { metricsByClass_ = java.util.Collections.unmodifiableList(metricsByClass_); bitField0_ = (bitField0_ & ~0x00000008); } result.metricsByClass_ = metricsByClass_; } else { result.metricsByClass_ = metricsByClassBuilder_.build(); } if (trackerMetricsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { trackerMetrics_ = java.util.Collections.unmodifiableList(trackerMetrics_); bitField0_ = (bitField0_ & ~0x00000010); } result.trackerMetrics_ = trackerMetrics_; } else { result.trackerMetrics_ = trackerMetricsBuilder_.build(); } if (evalInfoBuilder_ == null) { result.evalInfo_ = evalInfo_; } else { result.evalInfo_ = evalInfoBuilder_.build(); } if (extendedMetricsBuilder_ == null) { result.extendedMetrics_ = extendedMetrics_; } else { result.extendedMetrics_ = extendedMetricsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.EvalMetrics) { return mergeFrom((com.clarifai.grpc.api.EvalMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.EvalMetrics other) { if (other == com.clarifai.grpc.api.EvalMetrics.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasModel()) { mergeModel(other.getModel()); } if (other.hasGroundTruthDataset()) { mergeGroundTruthDataset(other.getGroundTruthDataset()); } if (other.hasPredictionsDataset()) { mergePredictionsDataset(other.getPredictionsDataset()); } if (other.hasSummary()) { mergeSummary(other.getSummary()); } if (other.hasConfusionMatrix()) { mergeConfusionMatrix(other.getConfusionMatrix()); } if (other.hasCooccurrenceMatrix()) { mergeCooccurrenceMatrix(other.getCooccurrenceMatrix()); } if (other.hasLabelCounts()) { mergeLabelCounts(other.getLabelCounts()); } if (binaryMetricsBuilder_ == null) { if (!other.binaryMetrics_.isEmpty()) { if (binaryMetrics_.isEmpty()) { binaryMetrics_ = other.binaryMetrics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBinaryMetricsIsMutable(); binaryMetrics_.addAll(other.binaryMetrics_); } onChanged(); } } else { if (!other.binaryMetrics_.isEmpty()) { if (binaryMetricsBuilder_.isEmpty()) { binaryMetricsBuilder_.dispose(); binaryMetricsBuilder_ = null; binaryMetrics_ = other.binaryMetrics_; bitField0_ = (bitField0_ & ~0x00000001); binaryMetricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBinaryMetricsFieldBuilder() : null; } else { binaryMetricsBuilder_.addAllMessages(other.binaryMetrics_); } } } if (testSetBuilder_ == null) { if (!other.testSet_.isEmpty()) { if (testSet_.isEmpty()) { testSet_ = other.testSet_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTestSetIsMutable(); testSet_.addAll(other.testSet_); } onChanged(); } } else { if (!other.testSet_.isEmpty()) { if (testSetBuilder_.isEmpty()) { testSetBuilder_.dispose(); testSetBuilder_ = null; testSet_ = other.testSet_; bitField0_ = (bitField0_ & ~0x00000002); testSetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTestSetFieldBuilder() : null; } else { testSetBuilder_.addAllMessages(other.testSet_); } } } if (metricsByAreaBuilder_ == null) { if (!other.metricsByArea_.isEmpty()) { if (metricsByArea_.isEmpty()) { metricsByArea_ = other.metricsByArea_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMetricsByAreaIsMutable(); metricsByArea_.addAll(other.metricsByArea_); } onChanged(); } } else { if (!other.metricsByArea_.isEmpty()) { if (metricsByAreaBuilder_.isEmpty()) { metricsByAreaBuilder_.dispose(); metricsByAreaBuilder_ = null; metricsByArea_ = other.metricsByArea_; bitField0_ = (bitField0_ & ~0x00000004); metricsByAreaBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsByAreaFieldBuilder() : null; } else { metricsByAreaBuilder_.addAllMessages(other.metricsByArea_); } } } if (metricsByClassBuilder_ == null) { if (!other.metricsByClass_.isEmpty()) { if (metricsByClass_.isEmpty()) { metricsByClass_ = other.metricsByClass_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMetricsByClassIsMutable(); metricsByClass_.addAll(other.metricsByClass_); } onChanged(); } } else { if (!other.metricsByClass_.isEmpty()) { if (metricsByClassBuilder_.isEmpty()) { metricsByClassBuilder_.dispose(); metricsByClassBuilder_ = null; metricsByClass_ = other.metricsByClass_; bitField0_ = (bitField0_ & ~0x00000008); metricsByClassBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsByClassFieldBuilder() : null; } else { metricsByClassBuilder_.addAllMessages(other.metricsByClass_); } } } if (trackerMetricsBuilder_ == null) { if (!other.trackerMetrics_.isEmpty()) { if (trackerMetrics_.isEmpty()) { trackerMetrics_ = other.trackerMetrics_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTrackerMetricsIsMutable(); trackerMetrics_.addAll(other.trackerMetrics_); } onChanged(); } } else { if (!other.trackerMetrics_.isEmpty()) { if (trackerMetricsBuilder_.isEmpty()) { trackerMetricsBuilder_.dispose(); trackerMetricsBuilder_ = null; trackerMetrics_ = other.trackerMetrics_; bitField0_ = (bitField0_ & ~0x00000010); trackerMetricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTrackerMetricsFieldBuilder() : null; } else { trackerMetricsBuilder_.addAllMessages(other.trackerMetrics_); } } } if (other.hasEvalInfo()) { mergeEvalInfo(other.getEvalInfo()); } if (other.hasExtendedMetrics()) { mergeExtendedMetrics(other.getExtendedMetrics()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.clarifai.grpc.api.EvalMetrics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.EvalMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.status.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_; /** * .clarifai.api.status.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** * .clarifai.api.status.Status status = 1; * @return The status. */ public com.clarifai.grpc.api.status.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * .clarifai.api.status.Status status = 1; */ public Builder setStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** * .clarifai.api.status.Status status = 1; */ public Builder setStatus( com.clarifai.grpc.api.status.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.status.Status status = 1; */ public Builder mergeStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.clarifai.grpc.api.status.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.status.Status status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** * .clarifai.api.status.Status status = 1; */ public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * .clarifai.api.status.Status status = 1; */ public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } } /** * .clarifai.api.status.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.lang.Object userId_ = ""; /** *
     * user id that owns this evaluation
     * 
* * string user_id = 15; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * user id that owns this evaluation
     * 
* * string user_id = 15; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * user id that owns this evaluation
     * 
* * string user_id = 15; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** *
     * user id that owns this evaluation
     * 
* * string user_id = 15; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** *
     * user id that owns this evaluation
     * 
* * string user_id = 15; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private java.lang.Object appId_ = ""; /** *
     * app id that owns this evaluation
     * 
* * string app_id = 16; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * app id that owns this evaluation
     * 
* * string app_id = 16; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * app id that owns this evaluation
     * 
* * string app_id = 16; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); return this; } /** *
     * app id that owns this evaluation
     * 
* * string app_id = 16; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** *
     * app id that owns this evaluation
     * 
* * string app_id = 16; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
     * Id of this evaluation
     * 
* * string id = 10; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Id of this evaluation
     * 
* * string id = 10; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Id of this evaluation
     * 
* * string id = 10; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * Id of this evaluation
     * 
* * string id = 10; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Id of this evaluation
     * 
* * string id = 10; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private com.clarifai.grpc.api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder> modelBuilder_; /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; * @return The model. */ public com.clarifai.grpc.api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ public Builder setModel(com.clarifai.grpc.api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ public Builder setModel( com.clarifai.grpc.api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ public Builder mergeModel(com.clarifai.grpc.api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.clarifai.grpc.api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ public com.clarifai.grpc.api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ public com.clarifai.grpc.api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_; } } /** *
     * Model to evaluate
     * 
* * .clarifai.api.Model model = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Model, com.clarifai.grpc.api.Model.Builder, com.clarifai.grpc.api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private com.clarifai.grpc.api.Dataset groundTruthDataset_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder> groundTruthDatasetBuilder_; /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; * @return Whether the groundTruthDataset field is set. */ public boolean hasGroundTruthDataset() { return groundTruthDatasetBuilder_ != null || groundTruthDataset_ != null; } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; * @return The groundTruthDataset. */ public com.clarifai.grpc.api.Dataset getGroundTruthDataset() { if (groundTruthDatasetBuilder_ == null) { return groundTruthDataset_ == null ? com.clarifai.grpc.api.Dataset.getDefaultInstance() : groundTruthDataset_; } else { return groundTruthDatasetBuilder_.getMessage(); } } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ public Builder setGroundTruthDataset(com.clarifai.grpc.api.Dataset value) { if (groundTruthDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groundTruthDataset_ = value; onChanged(); } else { groundTruthDatasetBuilder_.setMessage(value); } return this; } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ public Builder setGroundTruthDataset( com.clarifai.grpc.api.Dataset.Builder builderForValue) { if (groundTruthDatasetBuilder_ == null) { groundTruthDataset_ = builderForValue.build(); onChanged(); } else { groundTruthDatasetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ public Builder mergeGroundTruthDataset(com.clarifai.grpc.api.Dataset value) { if (groundTruthDatasetBuilder_ == null) { if (groundTruthDataset_ != null) { groundTruthDataset_ = com.clarifai.grpc.api.Dataset.newBuilder(groundTruthDataset_).mergeFrom(value).buildPartial(); } else { groundTruthDataset_ = value; } onChanged(); } else { groundTruthDatasetBuilder_.mergeFrom(value); } return this; } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ public Builder clearGroundTruthDataset() { if (groundTruthDatasetBuilder_ == null) { groundTruthDataset_ = null; onChanged(); } else { groundTruthDataset_ = null; groundTruthDatasetBuilder_ = null; } return this; } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ public com.clarifai.grpc.api.Dataset.Builder getGroundTruthDatasetBuilder() { onChanged(); return getGroundTruthDatasetFieldBuilder().getBuilder(); } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ public com.clarifai.grpc.api.DatasetOrBuilder getGroundTruthDatasetOrBuilder() { if (groundTruthDatasetBuilder_ != null) { return groundTruthDatasetBuilder_.getMessageOrBuilder(); } else { return groundTruthDataset_ == null ? com.clarifai.grpc.api.Dataset.getDefaultInstance() : groundTruthDataset_; } } /** *
     * The ground truth dataset
     * 
* * .clarifai.api.Dataset ground_truth_dataset = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder> getGroundTruthDatasetFieldBuilder() { if (groundTruthDatasetBuilder_ == null) { groundTruthDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder>( getGroundTruthDataset(), getParentForChildren(), isClean()); groundTruthDataset_ = null; } return groundTruthDatasetBuilder_; } private com.clarifai.grpc.api.Dataset predictionsDataset_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder> predictionsDatasetBuilder_; /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; * @return Whether the predictionsDataset field is set. */ public boolean hasPredictionsDataset() { return predictionsDatasetBuilder_ != null || predictionsDataset_ != null; } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; * @return The predictionsDataset. */ public com.clarifai.grpc.api.Dataset getPredictionsDataset() { if (predictionsDatasetBuilder_ == null) { return predictionsDataset_ == null ? com.clarifai.grpc.api.Dataset.getDefaultInstance() : predictionsDataset_; } else { return predictionsDatasetBuilder_.getMessage(); } } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ public Builder setPredictionsDataset(com.clarifai.grpc.api.Dataset value) { if (predictionsDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } predictionsDataset_ = value; onChanged(); } else { predictionsDatasetBuilder_.setMessage(value); } return this; } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ public Builder setPredictionsDataset( com.clarifai.grpc.api.Dataset.Builder builderForValue) { if (predictionsDatasetBuilder_ == null) { predictionsDataset_ = builderForValue.build(); onChanged(); } else { predictionsDatasetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ public Builder mergePredictionsDataset(com.clarifai.grpc.api.Dataset value) { if (predictionsDatasetBuilder_ == null) { if (predictionsDataset_ != null) { predictionsDataset_ = com.clarifai.grpc.api.Dataset.newBuilder(predictionsDataset_).mergeFrom(value).buildPartial(); } else { predictionsDataset_ = value; } onChanged(); } else { predictionsDatasetBuilder_.mergeFrom(value); } return this; } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ public Builder clearPredictionsDataset() { if (predictionsDatasetBuilder_ == null) { predictionsDataset_ = null; onChanged(); } else { predictionsDataset_ = null; predictionsDatasetBuilder_ = null; } return this; } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ public com.clarifai.grpc.api.Dataset.Builder getPredictionsDatasetBuilder() { onChanged(); return getPredictionsDatasetFieldBuilder().getBuilder(); } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ public com.clarifai.grpc.api.DatasetOrBuilder getPredictionsDatasetOrBuilder() { if (predictionsDatasetBuilder_ != null) { return predictionsDatasetBuilder_.getMessageOrBuilder(); } else { return predictionsDataset_ == null ? com.clarifai.grpc.api.Dataset.getDefaultInstance() : predictionsDataset_; } } /** *
     * The dataset with predictions
     * 
* * .clarifai.api.Dataset predictions_dataset = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder> getPredictionsDatasetFieldBuilder() { if (predictionsDatasetBuilder_ == null) { predictionsDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Dataset, com.clarifai.grpc.api.Dataset.Builder, com.clarifai.grpc.api.DatasetOrBuilder>( getPredictionsDataset(), getParentForChildren(), isClean()); predictionsDataset_ = null; } return predictionsDatasetBuilder_; } private com.clarifai.grpc.api.MetricsSummary summary_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.MetricsSummary, com.clarifai.grpc.api.MetricsSummary.Builder, com.clarifai.grpc.api.MetricsSummaryOrBuilder> summaryBuilder_; /** * .clarifai.api.MetricsSummary summary = 2; * @return Whether the summary field is set. */ public boolean hasSummary() { return summaryBuilder_ != null || summary_ != null; } /** * .clarifai.api.MetricsSummary summary = 2; * @return The summary. */ public com.clarifai.grpc.api.MetricsSummary getSummary() { if (summaryBuilder_ == null) { return summary_ == null ? com.clarifai.grpc.api.MetricsSummary.getDefaultInstance() : summary_; } else { return summaryBuilder_.getMessage(); } } /** * .clarifai.api.MetricsSummary summary = 2; */ public Builder setSummary(com.clarifai.grpc.api.MetricsSummary value) { if (summaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } summary_ = value; onChanged(); } else { summaryBuilder_.setMessage(value); } return this; } /** * .clarifai.api.MetricsSummary summary = 2; */ public Builder setSummary( com.clarifai.grpc.api.MetricsSummary.Builder builderForValue) { if (summaryBuilder_ == null) { summary_ = builderForValue.build(); onChanged(); } else { summaryBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.MetricsSummary summary = 2; */ public Builder mergeSummary(com.clarifai.grpc.api.MetricsSummary value) { if (summaryBuilder_ == null) { if (summary_ != null) { summary_ = com.clarifai.grpc.api.MetricsSummary.newBuilder(summary_).mergeFrom(value).buildPartial(); } else { summary_ = value; } onChanged(); } else { summaryBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.MetricsSummary summary = 2; */ public Builder clearSummary() { if (summaryBuilder_ == null) { summary_ = null; onChanged(); } else { summary_ = null; summaryBuilder_ = null; } return this; } /** * .clarifai.api.MetricsSummary summary = 2; */ public com.clarifai.grpc.api.MetricsSummary.Builder getSummaryBuilder() { onChanged(); return getSummaryFieldBuilder().getBuilder(); } /** * .clarifai.api.MetricsSummary summary = 2; */ public com.clarifai.grpc.api.MetricsSummaryOrBuilder getSummaryOrBuilder() { if (summaryBuilder_ != null) { return summaryBuilder_.getMessageOrBuilder(); } else { return summary_ == null ? com.clarifai.grpc.api.MetricsSummary.getDefaultInstance() : summary_; } } /** * .clarifai.api.MetricsSummary summary = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.MetricsSummary, com.clarifai.grpc.api.MetricsSummary.Builder, com.clarifai.grpc.api.MetricsSummaryOrBuilder> getSummaryFieldBuilder() { if (summaryBuilder_ == null) { summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.MetricsSummary, com.clarifai.grpc.api.MetricsSummary.Builder, com.clarifai.grpc.api.MetricsSummaryOrBuilder>( getSummary(), getParentForChildren(), isClean()); summary_ = null; } return summaryBuilder_; } private com.clarifai.grpc.api.ConfusionMatrix confusionMatrix_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ConfusionMatrix, com.clarifai.grpc.api.ConfusionMatrix.Builder, com.clarifai.grpc.api.ConfusionMatrixOrBuilder> confusionMatrixBuilder_; /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; * @return The confusionMatrix. */ public com.clarifai.grpc.api.ConfusionMatrix getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { return confusionMatrix_ == null ? com.clarifai.grpc.api.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } else { return confusionMatrixBuilder_.getMessage(); } } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ public Builder setConfusionMatrix(com.clarifai.grpc.api.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); } confusionMatrix_ = value; onChanged(); } else { confusionMatrixBuilder_.setMessage(value); } return this; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ public Builder setConfusionMatrix( com.clarifai.grpc.api.ConfusionMatrix.Builder builderForValue) { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = builderForValue.build(); onChanged(); } else { confusionMatrixBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ public Builder mergeConfusionMatrix(com.clarifai.grpc.api.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = com.clarifai.grpc.api.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); } else { confusionMatrix_ = value; } onChanged(); } else { confusionMatrixBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = null; onChanged(); } else { confusionMatrix_ = null; confusionMatrixBuilder_ = null; } return this; } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ public com.clarifai.grpc.api.ConfusionMatrix.Builder getConfusionMatrixBuilder() { onChanged(); return getConfusionMatrixFieldBuilder().getBuilder(); } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ public com.clarifai.grpc.api.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { return confusionMatrix_ == null ? com.clarifai.grpc.api.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } } /** * .clarifai.api.ConfusionMatrix confusion_matrix = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ConfusionMatrix, com.clarifai.grpc.api.ConfusionMatrix.Builder, com.clarifai.grpc.api.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ConfusionMatrix, com.clarifai.grpc.api.ConfusionMatrix.Builder, com.clarifai.grpc.api.ConfusionMatrixOrBuilder>( getConfusionMatrix(), getParentForChildren(), isClean()); confusionMatrix_ = null; } return confusionMatrixBuilder_; } private com.clarifai.grpc.api.CooccurrenceMatrix cooccurrenceMatrix_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.CooccurrenceMatrix, com.clarifai.grpc.api.CooccurrenceMatrix.Builder, com.clarifai.grpc.api.CooccurrenceMatrixOrBuilder> cooccurrenceMatrixBuilder_; /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; * @return Whether the cooccurrenceMatrix field is set. */ public boolean hasCooccurrenceMatrix() { return cooccurrenceMatrixBuilder_ != null || cooccurrenceMatrix_ != null; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; * @return The cooccurrenceMatrix. */ public com.clarifai.grpc.api.CooccurrenceMatrix getCooccurrenceMatrix() { if (cooccurrenceMatrixBuilder_ == null) { return cooccurrenceMatrix_ == null ? com.clarifai.grpc.api.CooccurrenceMatrix.getDefaultInstance() : cooccurrenceMatrix_; } else { return cooccurrenceMatrixBuilder_.getMessage(); } } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ public Builder setCooccurrenceMatrix(com.clarifai.grpc.api.CooccurrenceMatrix value) { if (cooccurrenceMatrixBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cooccurrenceMatrix_ = value; onChanged(); } else { cooccurrenceMatrixBuilder_.setMessage(value); } return this; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ public Builder setCooccurrenceMatrix( com.clarifai.grpc.api.CooccurrenceMatrix.Builder builderForValue) { if (cooccurrenceMatrixBuilder_ == null) { cooccurrenceMatrix_ = builderForValue.build(); onChanged(); } else { cooccurrenceMatrixBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ public Builder mergeCooccurrenceMatrix(com.clarifai.grpc.api.CooccurrenceMatrix value) { if (cooccurrenceMatrixBuilder_ == null) { if (cooccurrenceMatrix_ != null) { cooccurrenceMatrix_ = com.clarifai.grpc.api.CooccurrenceMatrix.newBuilder(cooccurrenceMatrix_).mergeFrom(value).buildPartial(); } else { cooccurrenceMatrix_ = value; } onChanged(); } else { cooccurrenceMatrixBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ public Builder clearCooccurrenceMatrix() { if (cooccurrenceMatrixBuilder_ == null) { cooccurrenceMatrix_ = null; onChanged(); } else { cooccurrenceMatrix_ = null; cooccurrenceMatrixBuilder_ = null; } return this; } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ public com.clarifai.grpc.api.CooccurrenceMatrix.Builder getCooccurrenceMatrixBuilder() { onChanged(); return getCooccurrenceMatrixFieldBuilder().getBuilder(); } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ public com.clarifai.grpc.api.CooccurrenceMatrixOrBuilder getCooccurrenceMatrixOrBuilder() { if (cooccurrenceMatrixBuilder_ != null) { return cooccurrenceMatrixBuilder_.getMessageOrBuilder(); } else { return cooccurrenceMatrix_ == null ? com.clarifai.grpc.api.CooccurrenceMatrix.getDefaultInstance() : cooccurrenceMatrix_; } } /** * .clarifai.api.CooccurrenceMatrix cooccurrence_matrix = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.CooccurrenceMatrix, com.clarifai.grpc.api.CooccurrenceMatrix.Builder, com.clarifai.grpc.api.CooccurrenceMatrixOrBuilder> getCooccurrenceMatrixFieldBuilder() { if (cooccurrenceMatrixBuilder_ == null) { cooccurrenceMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.CooccurrenceMatrix, com.clarifai.grpc.api.CooccurrenceMatrix.Builder, com.clarifai.grpc.api.CooccurrenceMatrixOrBuilder>( getCooccurrenceMatrix(), getParentForChildren(), isClean()); cooccurrenceMatrix_ = null; } return cooccurrenceMatrixBuilder_; } private com.clarifai.grpc.api.LabelDistribution labelCounts_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.LabelDistribution, com.clarifai.grpc.api.LabelDistribution.Builder, com.clarifai.grpc.api.LabelDistributionOrBuilder> labelCountsBuilder_; /** * .clarifai.api.LabelDistribution label_counts = 5; * @return Whether the labelCounts field is set. */ public boolean hasLabelCounts() { return labelCountsBuilder_ != null || labelCounts_ != null; } /** * .clarifai.api.LabelDistribution label_counts = 5; * @return The labelCounts. */ public com.clarifai.grpc.api.LabelDistribution getLabelCounts() { if (labelCountsBuilder_ == null) { return labelCounts_ == null ? com.clarifai.grpc.api.LabelDistribution.getDefaultInstance() : labelCounts_; } else { return labelCountsBuilder_.getMessage(); } } /** * .clarifai.api.LabelDistribution label_counts = 5; */ public Builder setLabelCounts(com.clarifai.grpc.api.LabelDistribution value) { if (labelCountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labelCounts_ = value; onChanged(); } else { labelCountsBuilder_.setMessage(value); } return this; } /** * .clarifai.api.LabelDistribution label_counts = 5; */ public Builder setLabelCounts( com.clarifai.grpc.api.LabelDistribution.Builder builderForValue) { if (labelCountsBuilder_ == null) { labelCounts_ = builderForValue.build(); onChanged(); } else { labelCountsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.LabelDistribution label_counts = 5; */ public Builder mergeLabelCounts(com.clarifai.grpc.api.LabelDistribution value) { if (labelCountsBuilder_ == null) { if (labelCounts_ != null) { labelCounts_ = com.clarifai.grpc.api.LabelDistribution.newBuilder(labelCounts_).mergeFrom(value).buildPartial(); } else { labelCounts_ = value; } onChanged(); } else { labelCountsBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.LabelDistribution label_counts = 5; */ public Builder clearLabelCounts() { if (labelCountsBuilder_ == null) { labelCounts_ = null; onChanged(); } else { labelCounts_ = null; labelCountsBuilder_ = null; } return this; } /** * .clarifai.api.LabelDistribution label_counts = 5; */ public com.clarifai.grpc.api.LabelDistribution.Builder getLabelCountsBuilder() { onChanged(); return getLabelCountsFieldBuilder().getBuilder(); } /** * .clarifai.api.LabelDistribution label_counts = 5; */ public com.clarifai.grpc.api.LabelDistributionOrBuilder getLabelCountsOrBuilder() { if (labelCountsBuilder_ != null) { return labelCountsBuilder_.getMessageOrBuilder(); } else { return labelCounts_ == null ? com.clarifai.grpc.api.LabelDistribution.getDefaultInstance() : labelCounts_; } } /** * .clarifai.api.LabelDistribution label_counts = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.LabelDistribution, com.clarifai.grpc.api.LabelDistribution.Builder, com.clarifai.grpc.api.LabelDistributionOrBuilder> getLabelCountsFieldBuilder() { if (labelCountsBuilder_ == null) { labelCountsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.LabelDistribution, com.clarifai.grpc.api.LabelDistribution.Builder, com.clarifai.grpc.api.LabelDistributionOrBuilder>( getLabelCounts(), getParentForChildren(), isClean()); labelCounts_ = null; } return labelCountsBuilder_; } private java.util.List binaryMetrics_ = java.util.Collections.emptyList(); private void ensureBinaryMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { binaryMetrics_ = new java.util.ArrayList(binaryMetrics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder> binaryMetricsBuilder_; /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public java.util.List getBinaryMetricsList() { if (binaryMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(binaryMetrics_); } else { return binaryMetricsBuilder_.getMessageList(); } } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public int getBinaryMetricsCount() { if (binaryMetricsBuilder_ == null) { return binaryMetrics_.size(); } else { return binaryMetricsBuilder_.getCount(); } } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public com.clarifai.grpc.api.BinaryMetrics getBinaryMetrics(int index) { if (binaryMetricsBuilder_ == null) { return binaryMetrics_.get(index); } else { return binaryMetricsBuilder_.getMessage(index); } } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder setBinaryMetrics( int index, com.clarifai.grpc.api.BinaryMetrics value) { if (binaryMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBinaryMetricsIsMutable(); binaryMetrics_.set(index, value); onChanged(); } else { binaryMetricsBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder setBinaryMetrics( int index, com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (binaryMetricsBuilder_ == null) { ensureBinaryMetricsIsMutable(); binaryMetrics_.set(index, builderForValue.build()); onChanged(); } else { binaryMetricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder addBinaryMetrics(com.clarifai.grpc.api.BinaryMetrics value) { if (binaryMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBinaryMetricsIsMutable(); binaryMetrics_.add(value); onChanged(); } else { binaryMetricsBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder addBinaryMetrics( int index, com.clarifai.grpc.api.BinaryMetrics value) { if (binaryMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBinaryMetricsIsMutable(); binaryMetrics_.add(index, value); onChanged(); } else { binaryMetricsBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder addBinaryMetrics( com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (binaryMetricsBuilder_ == null) { ensureBinaryMetricsIsMutable(); binaryMetrics_.add(builderForValue.build()); onChanged(); } else { binaryMetricsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder addBinaryMetrics( int index, com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (binaryMetricsBuilder_ == null) { ensureBinaryMetricsIsMutable(); binaryMetrics_.add(index, builderForValue.build()); onChanged(); } else { binaryMetricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder addAllBinaryMetrics( java.lang.Iterable values) { if (binaryMetricsBuilder_ == null) { ensureBinaryMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, binaryMetrics_); onChanged(); } else { binaryMetricsBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder clearBinaryMetrics() { if (binaryMetricsBuilder_ == null) { binaryMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { binaryMetricsBuilder_.clear(); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public Builder removeBinaryMetrics(int index) { if (binaryMetricsBuilder_ == null) { ensureBinaryMetricsIsMutable(); binaryMetrics_.remove(index); onChanged(); } else { binaryMetricsBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public com.clarifai.grpc.api.BinaryMetrics.Builder getBinaryMetricsBuilder( int index) { return getBinaryMetricsFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public com.clarifai.grpc.api.BinaryMetricsOrBuilder getBinaryMetricsOrBuilder( int index) { if (binaryMetricsBuilder_ == null) { return binaryMetrics_.get(index); } else { return binaryMetricsBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public java.util.List getBinaryMetricsOrBuilderList() { if (binaryMetricsBuilder_ != null) { return binaryMetricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(binaryMetrics_); } } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public com.clarifai.grpc.api.BinaryMetrics.Builder addBinaryMetricsBuilder() { return getBinaryMetricsFieldBuilder().addBuilder( com.clarifai.grpc.api.BinaryMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public com.clarifai.grpc.api.BinaryMetrics.Builder addBinaryMetricsBuilder( int index) { return getBinaryMetricsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.BinaryMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.BinaryMetrics binary_metrics = 6; */ public java.util.List getBinaryMetricsBuilderList() { return getBinaryMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder> getBinaryMetricsFieldBuilder() { if (binaryMetricsBuilder_ == null) { binaryMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder>( binaryMetrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); binaryMetrics_ = null; } return binaryMetricsBuilder_; } private java.util.List testSet_ = java.util.Collections.emptyList(); private void ensureTestSetIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { testSet_ = new java.util.ArrayList(testSet_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EvalTestSetEntry, com.clarifai.grpc.api.EvalTestSetEntry.Builder, com.clarifai.grpc.api.EvalTestSetEntryOrBuilder> testSetBuilder_; /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public java.util.List getTestSetList() { if (testSetBuilder_ == null) { return java.util.Collections.unmodifiableList(testSet_); } else { return testSetBuilder_.getMessageList(); } } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public int getTestSetCount() { if (testSetBuilder_ == null) { return testSet_.size(); } else { return testSetBuilder_.getCount(); } } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public com.clarifai.grpc.api.EvalTestSetEntry getTestSet(int index) { if (testSetBuilder_ == null) { return testSet_.get(index); } else { return testSetBuilder_.getMessage(index); } } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder setTestSet( int index, com.clarifai.grpc.api.EvalTestSetEntry value) { if (testSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTestSetIsMutable(); testSet_.set(index, value); onChanged(); } else { testSetBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder setTestSet( int index, com.clarifai.grpc.api.EvalTestSetEntry.Builder builderForValue) { if (testSetBuilder_ == null) { ensureTestSetIsMutable(); testSet_.set(index, builderForValue.build()); onChanged(); } else { testSetBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder addTestSet(com.clarifai.grpc.api.EvalTestSetEntry value) { if (testSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTestSetIsMutable(); testSet_.add(value); onChanged(); } else { testSetBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder addTestSet( int index, com.clarifai.grpc.api.EvalTestSetEntry value) { if (testSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTestSetIsMutable(); testSet_.add(index, value); onChanged(); } else { testSetBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder addTestSet( com.clarifai.grpc.api.EvalTestSetEntry.Builder builderForValue) { if (testSetBuilder_ == null) { ensureTestSetIsMutable(); testSet_.add(builderForValue.build()); onChanged(); } else { testSetBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder addTestSet( int index, com.clarifai.grpc.api.EvalTestSetEntry.Builder builderForValue) { if (testSetBuilder_ == null) { ensureTestSetIsMutable(); testSet_.add(index, builderForValue.build()); onChanged(); } else { testSetBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder addAllTestSet( java.lang.Iterable values) { if (testSetBuilder_ == null) { ensureTestSetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, testSet_); onChanged(); } else { testSetBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder clearTestSet() { if (testSetBuilder_ == null) { testSet_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { testSetBuilder_.clear(); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public Builder removeTestSet(int index) { if (testSetBuilder_ == null) { ensureTestSetIsMutable(); testSet_.remove(index); onChanged(); } else { testSetBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public com.clarifai.grpc.api.EvalTestSetEntry.Builder getTestSetBuilder( int index) { return getTestSetFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public com.clarifai.grpc.api.EvalTestSetEntryOrBuilder getTestSetOrBuilder( int index) { if (testSetBuilder_ == null) { return testSet_.get(index); } else { return testSetBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public java.util.List getTestSetOrBuilderList() { if (testSetBuilder_ != null) { return testSetBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(testSet_); } } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public com.clarifai.grpc.api.EvalTestSetEntry.Builder addTestSetBuilder() { return getTestSetFieldBuilder().addBuilder( com.clarifai.grpc.api.EvalTestSetEntry.getDefaultInstance()); } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public com.clarifai.grpc.api.EvalTestSetEntry.Builder addTestSetBuilder( int index) { return getTestSetFieldBuilder().addBuilder( index, com.clarifai.grpc.api.EvalTestSetEntry.getDefaultInstance()); } /** * repeated .clarifai.api.EvalTestSetEntry test_set = 7; */ public java.util.List getTestSetBuilderList() { return getTestSetFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EvalTestSetEntry, com.clarifai.grpc.api.EvalTestSetEntry.Builder, com.clarifai.grpc.api.EvalTestSetEntryOrBuilder> getTestSetFieldBuilder() { if (testSetBuilder_ == null) { testSetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EvalTestSetEntry, com.clarifai.grpc.api.EvalTestSetEntry.Builder, com.clarifai.grpc.api.EvalTestSetEntryOrBuilder>( testSet_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); testSet_ = null; } return testSetBuilder_; } private java.util.List metricsByArea_ = java.util.Collections.emptyList(); private void ensureMetricsByAreaIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { metricsByArea_ = new java.util.ArrayList(metricsByArea_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder> metricsByAreaBuilder_; /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public java.util.List getMetricsByAreaList() { if (metricsByAreaBuilder_ == null) { return java.util.Collections.unmodifiableList(metricsByArea_); } else { return metricsByAreaBuilder_.getMessageList(); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public int getMetricsByAreaCount() { if (metricsByAreaBuilder_ == null) { return metricsByArea_.size(); } else { return metricsByAreaBuilder_.getCount(); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public com.clarifai.grpc.api.BinaryMetrics getMetricsByArea(int index) { if (metricsByAreaBuilder_ == null) { return metricsByArea_.get(index); } else { return metricsByAreaBuilder_.getMessage(index); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder setMetricsByArea( int index, com.clarifai.grpc.api.BinaryMetrics value) { if (metricsByAreaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsByAreaIsMutable(); metricsByArea_.set(index, value); onChanged(); } else { metricsByAreaBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder setMetricsByArea( int index, com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (metricsByAreaBuilder_ == null) { ensureMetricsByAreaIsMutable(); metricsByArea_.set(index, builderForValue.build()); onChanged(); } else { metricsByAreaBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder addMetricsByArea(com.clarifai.grpc.api.BinaryMetrics value) { if (metricsByAreaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsByAreaIsMutable(); metricsByArea_.add(value); onChanged(); } else { metricsByAreaBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder addMetricsByArea( int index, com.clarifai.grpc.api.BinaryMetrics value) { if (metricsByAreaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsByAreaIsMutable(); metricsByArea_.add(index, value); onChanged(); } else { metricsByAreaBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder addMetricsByArea( com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (metricsByAreaBuilder_ == null) { ensureMetricsByAreaIsMutable(); metricsByArea_.add(builderForValue.build()); onChanged(); } else { metricsByAreaBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder addMetricsByArea( int index, com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (metricsByAreaBuilder_ == null) { ensureMetricsByAreaIsMutable(); metricsByArea_.add(index, builderForValue.build()); onChanged(); } else { metricsByAreaBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder addAllMetricsByArea( java.lang.Iterable values) { if (metricsByAreaBuilder_ == null) { ensureMetricsByAreaIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metricsByArea_); onChanged(); } else { metricsByAreaBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder clearMetricsByArea() { if (metricsByAreaBuilder_ == null) { metricsByArea_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { metricsByAreaBuilder_.clear(); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public Builder removeMetricsByArea(int index) { if (metricsByAreaBuilder_ == null) { ensureMetricsByAreaIsMutable(); metricsByArea_.remove(index); onChanged(); } else { metricsByAreaBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public com.clarifai.grpc.api.BinaryMetrics.Builder getMetricsByAreaBuilder( int index) { return getMetricsByAreaFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public com.clarifai.grpc.api.BinaryMetricsOrBuilder getMetricsByAreaOrBuilder( int index) { if (metricsByAreaBuilder_ == null) { return metricsByArea_.get(index); } else { return metricsByAreaBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public java.util.List getMetricsByAreaOrBuilderList() { if (metricsByAreaBuilder_ != null) { return metricsByAreaBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metricsByArea_); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public com.clarifai.grpc.api.BinaryMetrics.Builder addMetricsByAreaBuilder() { return getMetricsByAreaFieldBuilder().addBuilder( com.clarifai.grpc.api.BinaryMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public com.clarifai.grpc.api.BinaryMetrics.Builder addMetricsByAreaBuilder( int index) { return getMetricsByAreaFieldBuilder().addBuilder( index, com.clarifai.grpc.api.BinaryMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_area = 8; */ public java.util.List getMetricsByAreaBuilderList() { return getMetricsByAreaFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder> getMetricsByAreaFieldBuilder() { if (metricsByAreaBuilder_ == null) { metricsByAreaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder>( metricsByArea_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); metricsByArea_ = null; } return metricsByAreaBuilder_; } private java.util.List metricsByClass_ = java.util.Collections.emptyList(); private void ensureMetricsByClassIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { metricsByClass_ = new java.util.ArrayList(metricsByClass_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder> metricsByClassBuilder_; /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public java.util.List getMetricsByClassList() { if (metricsByClassBuilder_ == null) { return java.util.Collections.unmodifiableList(metricsByClass_); } else { return metricsByClassBuilder_.getMessageList(); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public int getMetricsByClassCount() { if (metricsByClassBuilder_ == null) { return metricsByClass_.size(); } else { return metricsByClassBuilder_.getCount(); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public com.clarifai.grpc.api.BinaryMetrics getMetricsByClass(int index) { if (metricsByClassBuilder_ == null) { return metricsByClass_.get(index); } else { return metricsByClassBuilder_.getMessage(index); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder setMetricsByClass( int index, com.clarifai.grpc.api.BinaryMetrics value) { if (metricsByClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsByClassIsMutable(); metricsByClass_.set(index, value); onChanged(); } else { metricsByClassBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder setMetricsByClass( int index, com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (metricsByClassBuilder_ == null) { ensureMetricsByClassIsMutable(); metricsByClass_.set(index, builderForValue.build()); onChanged(); } else { metricsByClassBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder addMetricsByClass(com.clarifai.grpc.api.BinaryMetrics value) { if (metricsByClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsByClassIsMutable(); metricsByClass_.add(value); onChanged(); } else { metricsByClassBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder addMetricsByClass( int index, com.clarifai.grpc.api.BinaryMetrics value) { if (metricsByClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsByClassIsMutable(); metricsByClass_.add(index, value); onChanged(); } else { metricsByClassBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder addMetricsByClass( com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (metricsByClassBuilder_ == null) { ensureMetricsByClassIsMutable(); metricsByClass_.add(builderForValue.build()); onChanged(); } else { metricsByClassBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder addMetricsByClass( int index, com.clarifai.grpc.api.BinaryMetrics.Builder builderForValue) { if (metricsByClassBuilder_ == null) { ensureMetricsByClassIsMutable(); metricsByClass_.add(index, builderForValue.build()); onChanged(); } else { metricsByClassBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder addAllMetricsByClass( java.lang.Iterable values) { if (metricsByClassBuilder_ == null) { ensureMetricsByClassIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metricsByClass_); onChanged(); } else { metricsByClassBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder clearMetricsByClass() { if (metricsByClassBuilder_ == null) { metricsByClass_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { metricsByClassBuilder_.clear(); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public Builder removeMetricsByClass(int index) { if (metricsByClassBuilder_ == null) { ensureMetricsByClassIsMutable(); metricsByClass_.remove(index); onChanged(); } else { metricsByClassBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public com.clarifai.grpc.api.BinaryMetrics.Builder getMetricsByClassBuilder( int index) { return getMetricsByClassFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public com.clarifai.grpc.api.BinaryMetricsOrBuilder getMetricsByClassOrBuilder( int index) { if (metricsByClassBuilder_ == null) { return metricsByClass_.get(index); } else { return metricsByClassBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public java.util.List getMetricsByClassOrBuilderList() { if (metricsByClassBuilder_ != null) { return metricsByClassBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metricsByClass_); } } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public com.clarifai.grpc.api.BinaryMetrics.Builder addMetricsByClassBuilder() { return getMetricsByClassFieldBuilder().addBuilder( com.clarifai.grpc.api.BinaryMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public com.clarifai.grpc.api.BinaryMetrics.Builder addMetricsByClassBuilder( int index) { return getMetricsByClassFieldBuilder().addBuilder( index, com.clarifai.grpc.api.BinaryMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.BinaryMetrics metrics_by_class = 9; */ public java.util.List getMetricsByClassBuilderList() { return getMetricsByClassFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder> getMetricsByClassFieldBuilder() { if (metricsByClassBuilder_ == null) { metricsByClassBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.BinaryMetrics, com.clarifai.grpc.api.BinaryMetrics.Builder, com.clarifai.grpc.api.BinaryMetricsOrBuilder>( metricsByClass_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); metricsByClass_ = null; } return metricsByClassBuilder_; } private java.util.List trackerMetrics_ = java.util.Collections.emptyList(); private void ensureTrackerMetricsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { trackerMetrics_ = new java.util.ArrayList(trackerMetrics_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.TrackerMetrics, com.clarifai.grpc.api.TrackerMetrics.Builder, com.clarifai.grpc.api.TrackerMetricsOrBuilder> trackerMetricsBuilder_; /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public java.util.List getTrackerMetricsList() { if (trackerMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(trackerMetrics_); } else { return trackerMetricsBuilder_.getMessageList(); } } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public int getTrackerMetricsCount() { if (trackerMetricsBuilder_ == null) { return trackerMetrics_.size(); } else { return trackerMetricsBuilder_.getCount(); } } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public com.clarifai.grpc.api.TrackerMetrics getTrackerMetrics(int index) { if (trackerMetricsBuilder_ == null) { return trackerMetrics_.get(index); } else { return trackerMetricsBuilder_.getMessage(index); } } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder setTrackerMetrics( int index, com.clarifai.grpc.api.TrackerMetrics value) { if (trackerMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTrackerMetricsIsMutable(); trackerMetrics_.set(index, value); onChanged(); } else { trackerMetricsBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder setTrackerMetrics( int index, com.clarifai.grpc.api.TrackerMetrics.Builder builderForValue) { if (trackerMetricsBuilder_ == null) { ensureTrackerMetricsIsMutable(); trackerMetrics_.set(index, builderForValue.build()); onChanged(); } else { trackerMetricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder addTrackerMetrics(com.clarifai.grpc.api.TrackerMetrics value) { if (trackerMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTrackerMetricsIsMutable(); trackerMetrics_.add(value); onChanged(); } else { trackerMetricsBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder addTrackerMetrics( int index, com.clarifai.grpc.api.TrackerMetrics value) { if (trackerMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTrackerMetricsIsMutable(); trackerMetrics_.add(index, value); onChanged(); } else { trackerMetricsBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder addTrackerMetrics( com.clarifai.grpc.api.TrackerMetrics.Builder builderForValue) { if (trackerMetricsBuilder_ == null) { ensureTrackerMetricsIsMutable(); trackerMetrics_.add(builderForValue.build()); onChanged(); } else { trackerMetricsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder addTrackerMetrics( int index, com.clarifai.grpc.api.TrackerMetrics.Builder builderForValue) { if (trackerMetricsBuilder_ == null) { ensureTrackerMetricsIsMutable(); trackerMetrics_.add(index, builderForValue.build()); onChanged(); } else { trackerMetricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder addAllTrackerMetrics( java.lang.Iterable values) { if (trackerMetricsBuilder_ == null) { ensureTrackerMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, trackerMetrics_); onChanged(); } else { trackerMetricsBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder clearTrackerMetrics() { if (trackerMetricsBuilder_ == null) { trackerMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { trackerMetricsBuilder_.clear(); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public Builder removeTrackerMetrics(int index) { if (trackerMetricsBuilder_ == null) { ensureTrackerMetricsIsMutable(); trackerMetrics_.remove(index); onChanged(); } else { trackerMetricsBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public com.clarifai.grpc.api.TrackerMetrics.Builder getTrackerMetricsBuilder( int index) { return getTrackerMetricsFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public com.clarifai.grpc.api.TrackerMetricsOrBuilder getTrackerMetricsOrBuilder( int index) { if (trackerMetricsBuilder_ == null) { return trackerMetrics_.get(index); } else { return trackerMetricsBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public java.util.List getTrackerMetricsOrBuilderList() { if (trackerMetricsBuilder_ != null) { return trackerMetricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(trackerMetrics_); } } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public com.clarifai.grpc.api.TrackerMetrics.Builder addTrackerMetricsBuilder() { return getTrackerMetricsFieldBuilder().addBuilder( com.clarifai.grpc.api.TrackerMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public com.clarifai.grpc.api.TrackerMetrics.Builder addTrackerMetricsBuilder( int index) { return getTrackerMetricsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.TrackerMetrics.getDefaultInstance()); } /** * repeated .clarifai.api.TrackerMetrics tracker_metrics = 11; */ public java.util.List getTrackerMetricsBuilderList() { return getTrackerMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.TrackerMetrics, com.clarifai.grpc.api.TrackerMetrics.Builder, com.clarifai.grpc.api.TrackerMetricsOrBuilder> getTrackerMetricsFieldBuilder() { if (trackerMetricsBuilder_ == null) { trackerMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.TrackerMetrics, com.clarifai.grpc.api.TrackerMetrics.Builder, com.clarifai.grpc.api.TrackerMetricsOrBuilder>( trackerMetrics_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); trackerMetrics_ = null; } return trackerMetricsBuilder_; } private com.clarifai.grpc.api.EvalInfo evalInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder> evalInfoBuilder_; /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; * @return Whether the evalInfo field is set. */ public boolean hasEvalInfo() { return evalInfoBuilder_ != null || evalInfo_ != null; } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; * @return The evalInfo. */ public com.clarifai.grpc.api.EvalInfo getEvalInfo() { if (evalInfoBuilder_ == null) { return evalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : evalInfo_; } else { return evalInfoBuilder_.getMessage(); } } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ public Builder setEvalInfo(com.clarifai.grpc.api.EvalInfo value) { if (evalInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evalInfo_ = value; onChanged(); } else { evalInfoBuilder_.setMessage(value); } return this; } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ public Builder setEvalInfo( com.clarifai.grpc.api.EvalInfo.Builder builderForValue) { if (evalInfoBuilder_ == null) { evalInfo_ = builderForValue.build(); onChanged(); } else { evalInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ public Builder mergeEvalInfo(com.clarifai.grpc.api.EvalInfo value) { if (evalInfoBuilder_ == null) { if (evalInfo_ != null) { evalInfo_ = com.clarifai.grpc.api.EvalInfo.newBuilder(evalInfo_).mergeFrom(value).buildPartial(); } else { evalInfo_ = value; } onChanged(); } else { evalInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ public Builder clearEvalInfo() { if (evalInfoBuilder_ == null) { evalInfo_ = null; onChanged(); } else { evalInfo_ = null; evalInfoBuilder_ = null; } return this; } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ public com.clarifai.grpc.api.EvalInfo.Builder getEvalInfoBuilder() { onChanged(); return getEvalInfoFieldBuilder().getBuilder(); } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ public com.clarifai.grpc.api.EvalInfoOrBuilder getEvalInfoOrBuilder() { if (evalInfoBuilder_ != null) { return evalInfoBuilder_.getMessageOrBuilder(); } else { return evalInfo_ == null ? com.clarifai.grpc.api.EvalInfo.getDefaultInstance() : evalInfo_; } } /** *
     * Evaluation parameters to pass. Expected to match what
     * is defined in the model type for the respective model.
     * 
* * .clarifai.api.EvalInfo eval_info = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder> getEvalInfoFieldBuilder() { if (evalInfoBuilder_ == null) { evalInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.EvalInfo, com.clarifai.grpc.api.EvalInfo.Builder, com.clarifai.grpc.api.EvalInfoOrBuilder>( getEvalInfo(), getParentForChildren(), isClean()); evalInfo_ = null; } return evalInfoBuilder_; } private com.clarifai.grpc.api.ExtendedMetrics extendedMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ExtendedMetrics, com.clarifai.grpc.api.ExtendedMetrics.Builder, com.clarifai.grpc.api.ExtendedMetricsOrBuilder> extendedMetricsBuilder_; /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; * @return Whether the extendedMetrics field is set. */ public boolean hasExtendedMetrics() { return extendedMetricsBuilder_ != null || extendedMetrics_ != null; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; * @return The extendedMetrics. */ public com.clarifai.grpc.api.ExtendedMetrics getExtendedMetrics() { if (extendedMetricsBuilder_ == null) { return extendedMetrics_ == null ? com.clarifai.grpc.api.ExtendedMetrics.getDefaultInstance() : extendedMetrics_; } else { return extendedMetricsBuilder_.getMessage(); } } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ public Builder setExtendedMetrics(com.clarifai.grpc.api.ExtendedMetrics value) { if (extendedMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extendedMetrics_ = value; onChanged(); } else { extendedMetricsBuilder_.setMessage(value); } return this; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ public Builder setExtendedMetrics( com.clarifai.grpc.api.ExtendedMetrics.Builder builderForValue) { if (extendedMetricsBuilder_ == null) { extendedMetrics_ = builderForValue.build(); onChanged(); } else { extendedMetricsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ public Builder mergeExtendedMetrics(com.clarifai.grpc.api.ExtendedMetrics value) { if (extendedMetricsBuilder_ == null) { if (extendedMetrics_ != null) { extendedMetrics_ = com.clarifai.grpc.api.ExtendedMetrics.newBuilder(extendedMetrics_).mergeFrom(value).buildPartial(); } else { extendedMetrics_ = value; } onChanged(); } else { extendedMetricsBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ public Builder clearExtendedMetrics() { if (extendedMetricsBuilder_ == null) { extendedMetrics_ = null; onChanged(); } else { extendedMetrics_ = null; extendedMetricsBuilder_ = null; } return this; } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ public com.clarifai.grpc.api.ExtendedMetrics.Builder getExtendedMetricsBuilder() { onChanged(); return getExtendedMetricsFieldBuilder().getBuilder(); } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ public com.clarifai.grpc.api.ExtendedMetricsOrBuilder getExtendedMetricsOrBuilder() { if (extendedMetricsBuilder_ != null) { return extendedMetricsBuilder_.getMessageOrBuilder(); } else { return extendedMetrics_ == null ? com.clarifai.grpc.api.ExtendedMetrics.getDefaultInstance() : extendedMetrics_; } } /** * .clarifai.api.ExtendedMetrics extended_metrics = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ExtendedMetrics, com.clarifai.grpc.api.ExtendedMetrics.Builder, com.clarifai.grpc.api.ExtendedMetricsOrBuilder> getExtendedMetricsFieldBuilder() { if (extendedMetricsBuilder_ == null) { extendedMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.ExtendedMetrics, com.clarifai.grpc.api.ExtendedMetrics.Builder, com.clarifai.grpc.api.ExtendedMetricsOrBuilder>( getExtendedMetrics(), getParentForChildren(), isClean()); extendedMetrics_ = null; } return extendedMetricsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.api.EvalMetrics) } // @@protoc_insertion_point(class_scope:clarifai.api.EvalMetrics) private static final com.clarifai.grpc.api.EvalMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.EvalMetrics(); } public static com.clarifai.grpc.api.EvalMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvalMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EvalMetrics(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.clarifai.grpc.api.EvalMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy