Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* 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;
* @return Whether the annotation field is set.
*/
@java.lang.Override
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
*
* 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;
*/
@java.lang.Override
public com.clarifai.grpc.api.AnnotationOrBuilder getAnnotationOrBuilder() {
return getAnnotation();
}
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());
}
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());
}
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 (!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();
}
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;
}
/**
*
* 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;
* @return Whether the annotation field is set.
*/
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
*
* 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;
*/
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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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;
*/
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_;
}
@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;
}
}