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

com.clarifai.grpc.api.EvalTestSetEntry 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;

/**
 * 
 * EvalTestSetEntry
 * 
* * Protobuf type {@code clarifai.api.EvalTestSetEntry} */ public final class EvalTestSetEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.EvalTestSetEntry) EvalTestSetEntryOrBuilder { private static final long serialVersionUID = 0L; // Use EvalTestSetEntry.newBuilder() to construct. private EvalTestSetEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvalTestSetEntry() { predictedConcepts_ = java.util.Collections.emptyList(); groundTruthConcepts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EvalTestSetEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EvalTestSetEntry( 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 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { predictedConcepts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } predictedConcepts_.add( input.readMessage(com.clarifai.grpc.api.Concept.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { groundTruthConcepts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } groundTruthConcepts_.add( input.readMessage(com.clarifai.grpc.api.Concept.parser(), extensionRegistry)); break; } case 42: { com.clarifai.grpc.api.Annotation.Builder subBuilder = null; if (annotation_ != null) { subBuilder = annotation_.toBuilder(); } annotation_ = input.readMessage(com.clarifai.grpc.api.Annotation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(annotation_); annotation_ = subBuilder.buildPartial(); } break; } case 50: { com.clarifai.grpc.api.Input.Builder subBuilder = null; if (input_ != null) { subBuilder = input_.toBuilder(); } input_ = input.readMessage(com.clarifai.grpc.api.Input.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(input_); input_ = subBuilder.buildPartial(); } break; } case 58: { com.clarifai.grpc.api.Annotation.Builder subBuilder = null; if (predictedAnnotation_ != null) { subBuilder = predictedAnnotation_.toBuilder(); } predictedAnnotation_ = input.readMessage(com.clarifai.grpc.api.Annotation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(predictedAnnotation_); predictedAnnotation_ = subBuilder.buildPartial(); } break; } case 66: { com.clarifai.grpc.api.Annotation.Builder subBuilder = null; if (groundTruthAnnotation_ != null) { subBuilder = groundTruthAnnotation_.toBuilder(); } groundTruthAnnotation_ = input.readMessage(com.clarifai.grpc.api.Annotation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groundTruthAnnotation_); groundTruthAnnotation_ = 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)) { predictedConcepts_ = java.util.Collections.unmodifiableList(predictedConcepts_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { groundTruthConcepts_ = java.util.Collections.unmodifiableList(groundTruthConcepts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalTestSetEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalTestSetEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.EvalTestSetEntry.class, com.clarifai.grpc.api.EvalTestSetEntry.Builder.class); } public static final int INPUT_FIELD_NUMBER = 6; private com.clarifai.grpc.api.Input input_; /** *
   * the input information
   * 
* * .clarifai.api.Input input = 6; * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return input_ != null; } /** *
   * the input information
   * 
* * .clarifai.api.Input input = 6; * @return The input. */ @java.lang.Override public com.clarifai.grpc.api.Input getInput() { return input_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : input_; } /** *
   * the input information
   * 
* * .clarifai.api.Input input = 6; */ @java.lang.Override public com.clarifai.grpc.api.InputOrBuilder getInputOrBuilder() { return getInput(); } public static final int PREDICTED_CONCEPTS_FIELD_NUMBER = 3; private java.util.List predictedConcepts_; /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ @java.lang.Override public java.util.List getPredictedConceptsList() { return predictedConcepts_; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ @java.lang.Override public java.util.List getPredictedConceptsOrBuilderList() { return predictedConcepts_; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ @java.lang.Override public int getPredictedConceptsCount() { return predictedConcepts_.size(); } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ @java.lang.Override public com.clarifai.grpc.api.Concept getPredictedConcepts(int index) { return predictedConcepts_.get(index); } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ @java.lang.Override public com.clarifai.grpc.api.ConceptOrBuilder getPredictedConceptsOrBuilder( int index) { return predictedConcepts_.get(index); } public static final int GROUND_TRUTH_CONCEPTS_FIELD_NUMBER = 4; private java.util.List groundTruthConcepts_; /** *
   * All the ground truth concepts will be show on the top level
   * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ @java.lang.Override public java.util.List getGroundTruthConceptsList() { return groundTruthConcepts_; } /** *
   * All the ground truth concepts will be show on the top level
   * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ @java.lang.Override public java.util.List getGroundTruthConceptsOrBuilderList() { return groundTruthConcepts_; } /** *
   * All the ground truth concepts will be show on the top level
   * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ @java.lang.Override public int getGroundTruthConceptsCount() { return groundTruthConcepts_.size(); } /** *
   * All the ground truth concepts will be show on the top level
   * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ @java.lang.Override public com.clarifai.grpc.api.Concept getGroundTruthConcepts(int index) { return groundTruthConcepts_.get(index); } /** *
   * All the ground truth concepts will be show on the top level
   * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ @java.lang.Override public com.clarifai.grpc.api.ConceptOrBuilder getGroundTruthConceptsOrBuilder( int index) { return groundTruthConcepts_.get(index); } public static final int ANNOTATION_FIELD_NUMBER = 5; private com.clarifai.grpc.api.Annotation annotation_; /** *
   * Only region-based/frame-based app contains this annotation
   * Each annotation only contains one region
   * And the concepts is in ground_truth_concepts instead of this annotation
   * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; * @deprecated clarifai.api.EvalTestSetEntry.annotation is deprecated. * See proto/clarifai/api/resources.proto;l=2012 * @return Whether the annotation field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasAnnotation() { return annotation_ != null; } /** *
   * Only region-based/frame-based app contains this annotation
   * Each annotation only contains one region
   * And the concepts is in ground_truth_concepts instead of this annotation
   * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; * @deprecated clarifai.api.EvalTestSetEntry.annotation is deprecated. * See proto/clarifai/api/resources.proto;l=2012 * @return The annotation. */ @java.lang.Override @java.lang.Deprecated public com.clarifai.grpc.api.Annotation getAnnotation() { return annotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : annotation_; } /** *
   * Only region-based/frame-based app contains this annotation
   * Each annotation only contains one region
   * And the concepts is in ground_truth_concepts instead of this annotation
   * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.clarifai.grpc.api.AnnotationOrBuilder getAnnotationOrBuilder() { return getAnnotation(); } public static final int PREDICTED_ANNOTATION_FIELD_NUMBER = 7; private com.clarifai.grpc.api.Annotation predictedAnnotation_; /** *
   * For region based models, region and associated concepts are stored together.
   * 
* * .clarifai.api.Annotation predicted_annotation = 7; * @return Whether the predictedAnnotation field is set. */ @java.lang.Override public boolean hasPredictedAnnotation() { return predictedAnnotation_ != null; } /** *
   * For region based models, region and associated concepts are stored together.
   * 
* * .clarifai.api.Annotation predicted_annotation = 7; * @return The predictedAnnotation. */ @java.lang.Override public com.clarifai.grpc.api.Annotation getPredictedAnnotation() { return predictedAnnotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : predictedAnnotation_; } /** *
   * For region based models, region and associated concepts are stored together.
   * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ @java.lang.Override public com.clarifai.grpc.api.AnnotationOrBuilder getPredictedAnnotationOrBuilder() { return getPredictedAnnotation(); } public static final int GROUND_TRUTH_ANNOTATION_FIELD_NUMBER = 8; private com.clarifai.grpc.api.Annotation groundTruthAnnotation_; /** * .clarifai.api.Annotation ground_truth_annotation = 8; * @return Whether the groundTruthAnnotation field is set. */ @java.lang.Override public boolean hasGroundTruthAnnotation() { return groundTruthAnnotation_ != null; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; * @return The groundTruthAnnotation. */ @java.lang.Override public com.clarifai.grpc.api.Annotation getGroundTruthAnnotation() { return groundTruthAnnotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : groundTruthAnnotation_; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ @java.lang.Override public com.clarifai.grpc.api.AnnotationOrBuilder getGroundTruthAnnotationOrBuilder() { return getGroundTruthAnnotation(); } 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 { for (int i = 0; i < predictedConcepts_.size(); i++) { output.writeMessage(3, predictedConcepts_.get(i)); } for (int i = 0; i < groundTruthConcepts_.size(); i++) { output.writeMessage(4, groundTruthConcepts_.get(i)); } if (annotation_ != null) { output.writeMessage(5, getAnnotation()); } if (input_ != null) { output.writeMessage(6, getInput()); } if (predictedAnnotation_ != null) { output.writeMessage(7, getPredictedAnnotation()); } if (groundTruthAnnotation_ != null) { output.writeMessage(8, getGroundTruthAnnotation()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < predictedConcepts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, predictedConcepts_.get(i)); } for (int i = 0; i < groundTruthConcepts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, groundTruthConcepts_.get(i)); } if (annotation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAnnotation()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getInput()); } if (predictedAnnotation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPredictedAnnotation()); } if (groundTruthAnnotation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getGroundTruthAnnotation()); } 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.EvalTestSetEntry)) { return super.equals(obj); } com.clarifai.grpc.api.EvalTestSetEntry other = (com.clarifai.grpc.api.EvalTestSetEntry) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (!getPredictedConceptsList() .equals(other.getPredictedConceptsList())) return false; if (!getGroundTruthConceptsList() .equals(other.getGroundTruthConceptsList())) return false; if (hasAnnotation() != other.hasAnnotation()) return false; if (hasAnnotation()) { if (!getAnnotation() .equals(other.getAnnotation())) return false; } if (hasPredictedAnnotation() != other.hasPredictedAnnotation()) return false; if (hasPredictedAnnotation()) { if (!getPredictedAnnotation() .equals(other.getPredictedAnnotation())) return false; } if (hasGroundTruthAnnotation() != other.hasGroundTruthAnnotation()) return false; if (hasGroundTruthAnnotation()) { if (!getGroundTruthAnnotation() .equals(other.getGroundTruthAnnotation())) 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 (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } if (getPredictedConceptsCount() > 0) { hash = (37 * hash) + PREDICTED_CONCEPTS_FIELD_NUMBER; hash = (53 * hash) + getPredictedConceptsList().hashCode(); } if (getGroundTruthConceptsCount() > 0) { hash = (37 * hash) + GROUND_TRUTH_CONCEPTS_FIELD_NUMBER; hash = (53 * hash) + getGroundTruthConceptsList().hashCode(); } if (hasAnnotation()) { hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getAnnotation().hashCode(); } if (hasPredictedAnnotation()) { hash = (37 * hash) + PREDICTED_ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getPredictedAnnotation().hashCode(); } if (hasGroundTruthAnnotation()) { hash = (37 * hash) + GROUND_TRUTH_ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getGroundTruthAnnotation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.EvalTestSetEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.EvalTestSetEntry 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.EvalTestSetEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.EvalTestSetEntry 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.EvalTestSetEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.EvalTestSetEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.EvalTestSetEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.EvalTestSetEntry 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.EvalTestSetEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.EvalTestSetEntry 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.EvalTestSetEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.EvalTestSetEntry 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.EvalTestSetEntry 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; } /** *
   * EvalTestSetEntry
   * 
* * Protobuf type {@code clarifai.api.EvalTestSetEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.EvalTestSetEntry) com.clarifai.grpc.api.EvalTestSetEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalTestSetEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalTestSetEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.EvalTestSetEntry.class, com.clarifai.grpc.api.EvalTestSetEntry.Builder.class); } // Construct using com.clarifai.grpc.api.EvalTestSetEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPredictedConceptsFieldBuilder(); getGroundTruthConceptsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = null; } if (predictedConceptsBuilder_ == null) { predictedConcepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { predictedConceptsBuilder_.clear(); } if (groundTruthConceptsBuilder_ == null) { groundTruthConcepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { groundTruthConceptsBuilder_.clear(); } if (annotationBuilder_ == null) { annotation_ = null; } else { annotation_ = null; annotationBuilder_ = null; } if (predictedAnnotationBuilder_ == null) { predictedAnnotation_ = null; } else { predictedAnnotation_ = null; predictedAnnotationBuilder_ = null; } if (groundTruthAnnotationBuilder_ == null) { groundTruthAnnotation_ = null; } else { groundTruthAnnotation_ = null; groundTruthAnnotationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_EvalTestSetEntry_descriptor; } @java.lang.Override public com.clarifai.grpc.api.EvalTestSetEntry getDefaultInstanceForType() { return com.clarifai.grpc.api.EvalTestSetEntry.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.EvalTestSetEntry build() { com.clarifai.grpc.api.EvalTestSetEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.EvalTestSetEntry buildPartial() { com.clarifai.grpc.api.EvalTestSetEntry result = new com.clarifai.grpc.api.EvalTestSetEntry(this); int from_bitField0_ = bitField0_; if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (predictedConceptsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { predictedConcepts_ = java.util.Collections.unmodifiableList(predictedConcepts_); bitField0_ = (bitField0_ & ~0x00000001); } result.predictedConcepts_ = predictedConcepts_; } else { result.predictedConcepts_ = predictedConceptsBuilder_.build(); } if (groundTruthConceptsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { groundTruthConcepts_ = java.util.Collections.unmodifiableList(groundTruthConcepts_); bitField0_ = (bitField0_ & ~0x00000002); } result.groundTruthConcepts_ = groundTruthConcepts_; } else { result.groundTruthConcepts_ = groundTruthConceptsBuilder_.build(); } if (annotationBuilder_ == null) { result.annotation_ = annotation_; } else { result.annotation_ = annotationBuilder_.build(); } if (predictedAnnotationBuilder_ == null) { result.predictedAnnotation_ = predictedAnnotation_; } else { result.predictedAnnotation_ = predictedAnnotationBuilder_.build(); } if (groundTruthAnnotationBuilder_ == null) { result.groundTruthAnnotation_ = groundTruthAnnotation_; } else { result.groundTruthAnnotation_ = groundTruthAnnotationBuilder_.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.EvalTestSetEntry) { return mergeFrom((com.clarifai.grpc.api.EvalTestSetEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.EvalTestSetEntry other) { if (other == com.clarifai.grpc.api.EvalTestSetEntry.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } if (predictedConceptsBuilder_ == null) { if (!other.predictedConcepts_.isEmpty()) { if (predictedConcepts_.isEmpty()) { predictedConcepts_ = other.predictedConcepts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePredictedConceptsIsMutable(); predictedConcepts_.addAll(other.predictedConcepts_); } onChanged(); } } else { if (!other.predictedConcepts_.isEmpty()) { if (predictedConceptsBuilder_.isEmpty()) { predictedConceptsBuilder_.dispose(); predictedConceptsBuilder_ = null; predictedConcepts_ = other.predictedConcepts_; bitField0_ = (bitField0_ & ~0x00000001); predictedConceptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredictedConceptsFieldBuilder() : null; } else { predictedConceptsBuilder_.addAllMessages(other.predictedConcepts_); } } } if (groundTruthConceptsBuilder_ == null) { if (!other.groundTruthConcepts_.isEmpty()) { if (groundTruthConcepts_.isEmpty()) { groundTruthConcepts_ = other.groundTruthConcepts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.addAll(other.groundTruthConcepts_); } onChanged(); } } else { if (!other.groundTruthConcepts_.isEmpty()) { if (groundTruthConceptsBuilder_.isEmpty()) { groundTruthConceptsBuilder_.dispose(); groundTruthConceptsBuilder_ = null; groundTruthConcepts_ = other.groundTruthConcepts_; bitField0_ = (bitField0_ & ~0x00000002); groundTruthConceptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroundTruthConceptsFieldBuilder() : null; } else { groundTruthConceptsBuilder_.addAllMessages(other.groundTruthConcepts_); } } } if (other.hasAnnotation()) { mergeAnnotation(other.getAnnotation()); } if (other.hasPredictedAnnotation()) { mergePredictedAnnotation(other.getPredictedAnnotation()); } if (other.hasGroundTruthAnnotation()) { mergeGroundTruthAnnotation(other.getGroundTruthAnnotation()); } 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.EvalTestSetEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.EvalTestSetEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.Input input_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> inputBuilder_; /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; * @return The input. */ public com.clarifai.grpc.api.Input getInput() { if (inputBuilder_ == null) { return input_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ public Builder setInput(com.clarifai.grpc.api.Input value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ public Builder setInput( com.clarifai.grpc.api.Input.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ public Builder mergeInput(com.clarifai.grpc.api.Input value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = com.clarifai.grpc.api.Input.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ public com.clarifai.grpc.api.Input.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ public com.clarifai.grpc.api.InputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : input_; } } /** *
     * the input information
     * 
* * .clarifai.api.Input input = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private java.util.List predictedConcepts_ = java.util.Collections.emptyList(); private void ensurePredictedConceptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { predictedConcepts_ = new java.util.ArrayList(predictedConcepts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> predictedConceptsBuilder_; /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public java.util.List getPredictedConceptsList() { if (predictedConceptsBuilder_ == null) { return java.util.Collections.unmodifiableList(predictedConcepts_); } else { return predictedConceptsBuilder_.getMessageList(); } } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public int getPredictedConceptsCount() { if (predictedConceptsBuilder_ == null) { return predictedConcepts_.size(); } else { return predictedConceptsBuilder_.getCount(); } } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public com.clarifai.grpc.api.Concept getPredictedConcepts(int index) { if (predictedConceptsBuilder_ == null) { return predictedConcepts_.get(index); } else { return predictedConceptsBuilder_.getMessage(index); } } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder setPredictedConcepts( int index, com.clarifai.grpc.api.Concept value) { if (predictedConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePredictedConceptsIsMutable(); predictedConcepts_.set(index, value); onChanged(); } else { predictedConceptsBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder setPredictedConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (predictedConceptsBuilder_ == null) { ensurePredictedConceptsIsMutable(); predictedConcepts_.set(index, builderForValue.build()); onChanged(); } else { predictedConceptsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder addPredictedConcepts(com.clarifai.grpc.api.Concept value) { if (predictedConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePredictedConceptsIsMutable(); predictedConcepts_.add(value); onChanged(); } else { predictedConceptsBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder addPredictedConcepts( int index, com.clarifai.grpc.api.Concept value) { if (predictedConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePredictedConceptsIsMutable(); predictedConcepts_.add(index, value); onChanged(); } else { predictedConceptsBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder addPredictedConcepts( com.clarifai.grpc.api.Concept.Builder builderForValue) { if (predictedConceptsBuilder_ == null) { ensurePredictedConceptsIsMutable(); predictedConcepts_.add(builderForValue.build()); onChanged(); } else { predictedConceptsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder addPredictedConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (predictedConceptsBuilder_ == null) { ensurePredictedConceptsIsMutable(); predictedConcepts_.add(index, builderForValue.build()); onChanged(); } else { predictedConceptsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder addAllPredictedConcepts( java.lang.Iterable values) { if (predictedConceptsBuilder_ == null) { ensurePredictedConceptsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, predictedConcepts_); onChanged(); } else { predictedConceptsBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder clearPredictedConcepts() { if (predictedConceptsBuilder_ == null) { predictedConcepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { predictedConceptsBuilder_.clear(); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public Builder removePredictedConcepts(int index) { if (predictedConceptsBuilder_ == null) { ensurePredictedConceptsIsMutable(); predictedConcepts_.remove(index); onChanged(); } else { predictedConceptsBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public com.clarifai.grpc.api.Concept.Builder getPredictedConceptsBuilder( int index) { return getPredictedConceptsFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public com.clarifai.grpc.api.ConceptOrBuilder getPredictedConceptsOrBuilder( int index) { if (predictedConceptsBuilder_ == null) { return predictedConcepts_.get(index); } else { return predictedConceptsBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public java.util.List getPredictedConceptsOrBuilderList() { if (predictedConceptsBuilder_ != null) { return predictedConceptsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(predictedConcepts_); } } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public com.clarifai.grpc.api.Concept.Builder addPredictedConceptsBuilder() { return getPredictedConceptsFieldBuilder().addBuilder( com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public com.clarifai.grpc.api.Concept.Builder addPredictedConceptsBuilder( int index) { return getPredictedConceptsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** * repeated .clarifai.api.Concept predicted_concepts = 3; */ public java.util.List getPredictedConceptsBuilderList() { return getPredictedConceptsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> getPredictedConceptsFieldBuilder() { if (predictedConceptsBuilder_ == null) { predictedConceptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder>( predictedConcepts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); predictedConcepts_ = null; } return predictedConceptsBuilder_; } private java.util.List groundTruthConcepts_ = java.util.Collections.emptyList(); private void ensureGroundTruthConceptsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { groundTruthConcepts_ = new java.util.ArrayList(groundTruthConcepts_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> groundTruthConceptsBuilder_; /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public java.util.List getGroundTruthConceptsList() { if (groundTruthConceptsBuilder_ == null) { return java.util.Collections.unmodifiableList(groundTruthConcepts_); } else { return groundTruthConceptsBuilder_.getMessageList(); } } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public int getGroundTruthConceptsCount() { if (groundTruthConceptsBuilder_ == null) { return groundTruthConcepts_.size(); } else { return groundTruthConceptsBuilder_.getCount(); } } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public com.clarifai.grpc.api.Concept getGroundTruthConcepts(int index) { if (groundTruthConceptsBuilder_ == null) { return groundTruthConcepts_.get(index); } else { return groundTruthConceptsBuilder_.getMessage(index); } } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder setGroundTruthConcepts( int index, com.clarifai.grpc.api.Concept value) { if (groundTruthConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.set(index, value); onChanged(); } else { groundTruthConceptsBuilder_.setMessage(index, value); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder setGroundTruthConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (groundTruthConceptsBuilder_ == null) { ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.set(index, builderForValue.build()); onChanged(); } else { groundTruthConceptsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder addGroundTruthConcepts(com.clarifai.grpc.api.Concept value) { if (groundTruthConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.add(value); onChanged(); } else { groundTruthConceptsBuilder_.addMessage(value); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder addGroundTruthConcepts( int index, com.clarifai.grpc.api.Concept value) { if (groundTruthConceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.add(index, value); onChanged(); } else { groundTruthConceptsBuilder_.addMessage(index, value); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder addGroundTruthConcepts( com.clarifai.grpc.api.Concept.Builder builderForValue) { if (groundTruthConceptsBuilder_ == null) { ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.add(builderForValue.build()); onChanged(); } else { groundTruthConceptsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder addGroundTruthConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (groundTruthConceptsBuilder_ == null) { ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.add(index, builderForValue.build()); onChanged(); } else { groundTruthConceptsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder addAllGroundTruthConcepts( java.lang.Iterable values) { if (groundTruthConceptsBuilder_ == null) { ensureGroundTruthConceptsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groundTruthConcepts_); onChanged(); } else { groundTruthConceptsBuilder_.addAllMessages(values); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder clearGroundTruthConcepts() { if (groundTruthConceptsBuilder_ == null) { groundTruthConcepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { groundTruthConceptsBuilder_.clear(); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public Builder removeGroundTruthConcepts(int index) { if (groundTruthConceptsBuilder_ == null) { ensureGroundTruthConceptsIsMutable(); groundTruthConcepts_.remove(index); onChanged(); } else { groundTruthConceptsBuilder_.remove(index); } return this; } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public com.clarifai.grpc.api.Concept.Builder getGroundTruthConceptsBuilder( int index) { return getGroundTruthConceptsFieldBuilder().getBuilder(index); } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public com.clarifai.grpc.api.ConceptOrBuilder getGroundTruthConceptsOrBuilder( int index) { if (groundTruthConceptsBuilder_ == null) { return groundTruthConcepts_.get(index); } else { return groundTruthConceptsBuilder_.getMessageOrBuilder(index); } } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public java.util.List getGroundTruthConceptsOrBuilderList() { if (groundTruthConceptsBuilder_ != null) { return groundTruthConceptsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groundTruthConcepts_); } } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public com.clarifai.grpc.api.Concept.Builder addGroundTruthConceptsBuilder() { return getGroundTruthConceptsFieldBuilder().addBuilder( com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public com.clarifai.grpc.api.Concept.Builder addGroundTruthConceptsBuilder( int index) { return getGroundTruthConceptsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** *
     * All the ground truth concepts will be show on the top level
     * 
* * repeated .clarifai.api.Concept ground_truth_concepts = 4; */ public java.util.List getGroundTruthConceptsBuilderList() { return getGroundTruthConceptsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> getGroundTruthConceptsFieldBuilder() { if (groundTruthConceptsBuilder_ == null) { groundTruthConceptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder>( groundTruthConcepts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); groundTruthConcepts_ = null; } return groundTruthConceptsBuilder_; } private com.clarifai.grpc.api.Annotation annotation_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder> annotationBuilder_; /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; * @deprecated clarifai.api.EvalTestSetEntry.annotation is deprecated. * See proto/clarifai/api/resources.proto;l=2012 * @return Whether the annotation field is set. */ @java.lang.Deprecated public boolean hasAnnotation() { return annotationBuilder_ != null || annotation_ != null; } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; * @deprecated clarifai.api.EvalTestSetEntry.annotation is deprecated. * See proto/clarifai/api/resources.proto;l=2012 * @return The annotation. */ @java.lang.Deprecated public com.clarifai.grpc.api.Annotation getAnnotation() { if (annotationBuilder_ == null) { return annotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : annotation_; } else { return annotationBuilder_.getMessage(); } } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setAnnotation(com.clarifai.grpc.api.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotation_ = value; onChanged(); } else { annotationBuilder_.setMessage(value); } return this; } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setAnnotation( com.clarifai.grpc.api.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { annotation_ = builderForValue.build(); onChanged(); } else { annotationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeAnnotation(com.clarifai.grpc.api.Annotation value) { if (annotationBuilder_ == null) { if (annotation_ != null) { annotation_ = com.clarifai.grpc.api.Annotation.newBuilder(annotation_).mergeFrom(value).buildPartial(); } else { annotation_ = value; } onChanged(); } else { annotationBuilder_.mergeFrom(value); } return this; } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder clearAnnotation() { if (annotationBuilder_ == null) { annotation_ = null; onChanged(); } else { annotation_ = null; annotationBuilder_ = null; } return this; } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.Annotation.Builder getAnnotationBuilder() { onChanged(); return getAnnotationFieldBuilder().getBuilder(); } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.AnnotationOrBuilder getAnnotationOrBuilder() { if (annotationBuilder_ != null) { return annotationBuilder_.getMessageOrBuilder(); } else { return annotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : annotation_; } } /** *
     * Only region-based/frame-based app contains this annotation
     * Each annotation only contains one region
     * And the concepts is in ground_truth_concepts instead of this annotation
     * 
* * .clarifai.api.Annotation annotation = 5 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder> getAnnotationFieldBuilder() { if (annotationBuilder_ == null) { annotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder>( getAnnotation(), getParentForChildren(), isClean()); annotation_ = null; } return annotationBuilder_; } private com.clarifai.grpc.api.Annotation predictedAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder> predictedAnnotationBuilder_; /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; * @return Whether the predictedAnnotation field is set. */ public boolean hasPredictedAnnotation() { return predictedAnnotationBuilder_ != null || predictedAnnotation_ != null; } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; * @return The predictedAnnotation. */ public com.clarifai.grpc.api.Annotation getPredictedAnnotation() { if (predictedAnnotationBuilder_ == null) { return predictedAnnotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : predictedAnnotation_; } else { return predictedAnnotationBuilder_.getMessage(); } } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ public Builder setPredictedAnnotation(com.clarifai.grpc.api.Annotation value) { if (predictedAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } predictedAnnotation_ = value; onChanged(); } else { predictedAnnotationBuilder_.setMessage(value); } return this; } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ public Builder setPredictedAnnotation( com.clarifai.grpc.api.Annotation.Builder builderForValue) { if (predictedAnnotationBuilder_ == null) { predictedAnnotation_ = builderForValue.build(); onChanged(); } else { predictedAnnotationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ public Builder mergePredictedAnnotation(com.clarifai.grpc.api.Annotation value) { if (predictedAnnotationBuilder_ == null) { if (predictedAnnotation_ != null) { predictedAnnotation_ = com.clarifai.grpc.api.Annotation.newBuilder(predictedAnnotation_).mergeFrom(value).buildPartial(); } else { predictedAnnotation_ = value; } onChanged(); } else { predictedAnnotationBuilder_.mergeFrom(value); } return this; } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ public Builder clearPredictedAnnotation() { if (predictedAnnotationBuilder_ == null) { predictedAnnotation_ = null; onChanged(); } else { predictedAnnotation_ = null; predictedAnnotationBuilder_ = null; } return this; } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ public com.clarifai.grpc.api.Annotation.Builder getPredictedAnnotationBuilder() { onChanged(); return getPredictedAnnotationFieldBuilder().getBuilder(); } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ public com.clarifai.grpc.api.AnnotationOrBuilder getPredictedAnnotationOrBuilder() { if (predictedAnnotationBuilder_ != null) { return predictedAnnotationBuilder_.getMessageOrBuilder(); } else { return predictedAnnotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : predictedAnnotation_; } } /** *
     * For region based models, region and associated concepts are stored together.
     * 
* * .clarifai.api.Annotation predicted_annotation = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder> getPredictedAnnotationFieldBuilder() { if (predictedAnnotationBuilder_ == null) { predictedAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder>( getPredictedAnnotation(), getParentForChildren(), isClean()); predictedAnnotation_ = null; } return predictedAnnotationBuilder_; } private com.clarifai.grpc.api.Annotation groundTruthAnnotation_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder> groundTruthAnnotationBuilder_; /** * .clarifai.api.Annotation ground_truth_annotation = 8; * @return Whether the groundTruthAnnotation field is set. */ public boolean hasGroundTruthAnnotation() { return groundTruthAnnotationBuilder_ != null || groundTruthAnnotation_ != null; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; * @return The groundTruthAnnotation. */ public com.clarifai.grpc.api.Annotation getGroundTruthAnnotation() { if (groundTruthAnnotationBuilder_ == null) { return groundTruthAnnotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : groundTruthAnnotation_; } else { return groundTruthAnnotationBuilder_.getMessage(); } } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ public Builder setGroundTruthAnnotation(com.clarifai.grpc.api.Annotation value) { if (groundTruthAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groundTruthAnnotation_ = value; onChanged(); } else { groundTruthAnnotationBuilder_.setMessage(value); } return this; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ public Builder setGroundTruthAnnotation( com.clarifai.grpc.api.Annotation.Builder builderForValue) { if (groundTruthAnnotationBuilder_ == null) { groundTruthAnnotation_ = builderForValue.build(); onChanged(); } else { groundTruthAnnotationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ public Builder mergeGroundTruthAnnotation(com.clarifai.grpc.api.Annotation value) { if (groundTruthAnnotationBuilder_ == null) { if (groundTruthAnnotation_ != null) { groundTruthAnnotation_ = com.clarifai.grpc.api.Annotation.newBuilder(groundTruthAnnotation_).mergeFrom(value).buildPartial(); } else { groundTruthAnnotation_ = value; } onChanged(); } else { groundTruthAnnotationBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ public Builder clearGroundTruthAnnotation() { if (groundTruthAnnotationBuilder_ == null) { groundTruthAnnotation_ = null; onChanged(); } else { groundTruthAnnotation_ = null; groundTruthAnnotationBuilder_ = null; } return this; } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ public com.clarifai.grpc.api.Annotation.Builder getGroundTruthAnnotationBuilder() { onChanged(); return getGroundTruthAnnotationFieldBuilder().getBuilder(); } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ public com.clarifai.grpc.api.AnnotationOrBuilder getGroundTruthAnnotationOrBuilder() { if (groundTruthAnnotationBuilder_ != null) { return groundTruthAnnotationBuilder_.getMessageOrBuilder(); } else { return groundTruthAnnotation_ == null ? com.clarifai.grpc.api.Annotation.getDefaultInstance() : groundTruthAnnotation_; } } /** * .clarifai.api.Annotation ground_truth_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder> getGroundTruthAnnotationFieldBuilder() { if (groundTruthAnnotationBuilder_ == null) { groundTruthAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Annotation, com.clarifai.grpc.api.Annotation.Builder, com.clarifai.grpc.api.AnnotationOrBuilder>( getGroundTruthAnnotation(), getParentForChildren(), isClean()); groundTruthAnnotation_ = null; } return groundTruthAnnotationBuilder_; } @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.EvalTestSetEntry) } // @@protoc_insertion_point(class_scope:clarifai.api.EvalTestSetEntry) private static final com.clarifai.grpc.api.EvalTestSetEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.EvalTestSetEntry(); } public static com.clarifai.grpc.api.EvalTestSetEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvalTestSetEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EvalTestSetEntry(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.EvalTestSetEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy