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

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

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

package com.clarifai.grpc.api;

/**
 * 
 * PostAnnotationSearchMetricsRequest
 * 
* * Protobuf type {@code clarifai.api.PostAnnotationSearchMetricsRequest} */ public final class PostAnnotationSearchMetricsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.PostAnnotationSearchMetricsRequest) PostAnnotationSearchMetricsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PostAnnotationSearchMetricsRequest.newBuilder() to construct. private PostAnnotationSearchMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PostAnnotationSearchMetricsRequest() { id_ = ""; evaluationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PostAnnotationSearchMetricsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PostAnnotationSearchMetricsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.UserAppIDSet.Builder subBuilder = null; if (userAppId_ != null) { subBuilder = userAppId_.toBuilder(); } userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(userAppId_); userAppId_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 26: { com.clarifai.grpc.api.Search.Builder subBuilder = null; if (groundTruth_ != null) { subBuilder = groundTruth_.toBuilder(); } groundTruth_ = input.readMessage(com.clarifai.grpc.api.Search.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groundTruth_); groundTruth_ = subBuilder.buildPartial(); } break; } case 34: { com.clarifai.grpc.api.Search.Builder subBuilder = null; if (searchToEval_ != null) { subBuilder = searchToEval_.toBuilder(); } searchToEval_ = input.readMessage(com.clarifai.grpc.api.Search.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(searchToEval_); searchToEval_ = subBuilder.buildPartial(); } break; } case 42: { com.clarifai.grpc.api.Data.Builder subBuilder = null; if (data_ != null) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(com.clarifai.grpc.api.Data.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = subBuilder.buildPartial(); } break; } case 48: { int rawValue = input.readEnum(); evaluationType_ = rawValue; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostAnnotationSearchMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostAnnotationSearchMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.class, com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.Builder.class); } public static final int USER_APP_ID_FIELD_NUMBER = 1; private com.clarifai.grpc.api.UserAppIDSet userAppId_; /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return Whether the userAppId field is set. */ @java.lang.Override public boolean hasUserAppId() { return userAppId_ != null; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return The userAppId. */ @java.lang.Override public com.clarifai.grpc.api.UserAppIDSet getUserAppId() { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ @java.lang.Override public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() { return getUserAppId(); } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** *
   * A unique customer facing id to identify this eval request
   * 
* * string id = 2; * @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; } } /** *
   * A unique customer facing id to identify this eval request
   * 
* * string id = 2; * @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 GROUND_TRUTH_FIELD_NUMBER = 3; private com.clarifai.grpc.api.Search groundTruth_; /** *
   * The ground truth we are evaluating against
   * 
* * .clarifai.api.Search ground_truth = 3; * @return Whether the groundTruth field is set. */ @java.lang.Override public boolean hasGroundTruth() { return groundTruth_ != null; } /** *
   * The ground truth we are evaluating against
   * 
* * .clarifai.api.Search ground_truth = 3; * @return The groundTruth. */ @java.lang.Override public com.clarifai.grpc.api.Search getGroundTruth() { return groundTruth_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : groundTruth_; } /** *
   * The ground truth we are evaluating against
   * 
* * .clarifai.api.Search ground_truth = 3; */ @java.lang.Override public com.clarifai.grpc.api.SearchOrBuilder getGroundTruthOrBuilder() { return getGroundTruth(); } public static final int SEARCH_TO_EVAL_FIELD_NUMBER = 4; private com.clarifai.grpc.api.Search searchToEval_; /** *
   * The set we are evaluating
   * 
* * .clarifai.api.Search search_to_eval = 4; * @return Whether the searchToEval field is set. */ @java.lang.Override public boolean hasSearchToEval() { return searchToEval_ != null; } /** *
   * The set we are evaluating
   * 
* * .clarifai.api.Search search_to_eval = 4; * @return The searchToEval. */ @java.lang.Override public com.clarifai.grpc.api.Search getSearchToEval() { return searchToEval_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : searchToEval_; } /** *
   * The set we are evaluating
   * 
* * .clarifai.api.Search search_to_eval = 4; */ @java.lang.Override public com.clarifai.grpc.api.SearchOrBuilder getSearchToEvalOrBuilder() { return getSearchToEval(); } public static final int DATA_FIELD_NUMBER = 5; private com.clarifai.grpc.api.Data data_; /** *
   * List of concepts to evaluate are expected to be in data.concepts
   * If nil, then all app concepts are used
   * 
* * .clarifai.api.Data data = 5; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return data_ != null; } /** *
   * List of concepts to evaluate are expected to be in data.concepts
   * If nil, then all app concepts are used
   * 
* * .clarifai.api.Data data = 5; * @return The data. */ @java.lang.Override public com.clarifai.grpc.api.Data getData() { return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_; } /** *
   * List of concepts to evaluate are expected to be in data.concepts
   * If nil, then all app concepts are used
   * 
* * .clarifai.api.Data data = 5; */ @java.lang.Override public com.clarifai.grpc.api.DataOrBuilder getDataOrBuilder() { return getData(); } public static final int EVALUATION_TYPE_FIELD_NUMBER = 6; private int evaluationType_; /** *
   * The type of evaluation to use
   * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @return The enum numeric value on the wire for evaluationType. */ @java.lang.Override public int getEvaluationTypeValue() { return evaluationType_; } /** *
   * The type of evaluation to use
   * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @return The evaluationType. */ @java.lang.Override public com.clarifai.grpc.api.EvaluationType getEvaluationType() { @SuppressWarnings("deprecation") com.clarifai.grpc.api.EvaluationType result = com.clarifai.grpc.api.EvaluationType.valueOf(evaluationType_); return result == null ? com.clarifai.grpc.api.EvaluationType.UNRECOGNIZED : result; } 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 (userAppId_ != null) { output.writeMessage(1, getUserAppId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (groundTruth_ != null) { output.writeMessage(3, getGroundTruth()); } if (searchToEval_ != null) { output.writeMessage(4, getSearchToEval()); } if (data_ != null) { output.writeMessage(5, getData()); } if (evaluationType_ != com.clarifai.grpc.api.EvaluationType.Undefined.getNumber()) { output.writeEnum(6, evaluationType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (userAppId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getUserAppId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (groundTruth_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getGroundTruth()); } if (searchToEval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSearchToEval()); } if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getData()); } if (evaluationType_ != com.clarifai.grpc.api.EvaluationType.Undefined.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, evaluationType_); } 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.PostAnnotationSearchMetricsRequest)) { return super.equals(obj); } com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest other = (com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest) obj; if (hasUserAppId() != other.hasUserAppId()) return false; if (hasUserAppId()) { if (!getUserAppId() .equals(other.getUserAppId())) return false; } if (!getId() .equals(other.getId())) return false; if (hasGroundTruth() != other.hasGroundTruth()) return false; if (hasGroundTruth()) { if (!getGroundTruth() .equals(other.getGroundTruth())) return false; } if (hasSearchToEval() != other.hasSearchToEval()) return false; if (hasSearchToEval()) { if (!getSearchToEval() .equals(other.getSearchToEval())) return false; } if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) return false; } if (evaluationType_ != other.evaluationType_) 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 (hasUserAppId()) { hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER; hash = (53 * hash) + getUserAppId().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasGroundTruth()) { hash = (37 * hash) + GROUND_TRUTH_FIELD_NUMBER; hash = (53 * hash) + getGroundTruth().hashCode(); } if (hasSearchToEval()) { hash = (37 * hash) + SEARCH_TO_EVAL_FIELD_NUMBER; hash = (53 * hash) + getSearchToEval().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (37 * hash) + EVALUATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + evaluationType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest 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.PostAnnotationSearchMetricsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest 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.PostAnnotationSearchMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest 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.PostAnnotationSearchMetricsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest 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.PostAnnotationSearchMetricsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest 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.PostAnnotationSearchMetricsRequest 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; } /** *
   * PostAnnotationSearchMetricsRequest
   * 
* * Protobuf type {@code clarifai.api.PostAnnotationSearchMetricsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.PostAnnotationSearchMetricsRequest) com.clarifai.grpc.api.PostAnnotationSearchMetricsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostAnnotationSearchMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostAnnotationSearchMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.class, com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.Builder.class); } // Construct using com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (userAppIdBuilder_ == null) { userAppId_ = null; } else { userAppId_ = null; userAppIdBuilder_ = null; } id_ = ""; if (groundTruthBuilder_ == null) { groundTruth_ = null; } else { groundTruth_ = null; groundTruthBuilder_ = null; } if (searchToEvalBuilder_ == null) { searchToEval_ = null; } else { searchToEval_ = null; searchToEvalBuilder_ = null; } if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } evaluationType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostAnnotationSearchMetricsRequest_descriptor; } @java.lang.Override public com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest getDefaultInstanceForType() { return com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest build() { com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest buildPartial() { com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest result = new com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest(this); if (userAppIdBuilder_ == null) { result.userAppId_ = userAppId_; } else { result.userAppId_ = userAppIdBuilder_.build(); } result.id_ = id_; if (groundTruthBuilder_ == null) { result.groundTruth_ = groundTruth_; } else { result.groundTruth_ = groundTruthBuilder_.build(); } if (searchToEvalBuilder_ == null) { result.searchToEval_ = searchToEval_; } else { result.searchToEval_ = searchToEvalBuilder_.build(); } if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.evaluationType_ = evaluationType_; 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.PostAnnotationSearchMetricsRequest) { return mergeFrom((com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest other) { if (other == com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest.getDefaultInstance()) return this; if (other.hasUserAppId()) { mergeUserAppId(other.getUserAppId()); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasGroundTruth()) { mergeGroundTruth(other.getGroundTruth()); } if (other.hasSearchToEval()) { mergeSearchToEval(other.getSearchToEval()); } if (other.hasData()) { mergeData(other.getData()); } if (other.evaluationType_ != 0) { setEvaluationTypeValue(other.getEvaluationTypeValue()); } 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.PostAnnotationSearchMetricsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.clarifai.grpc.api.UserAppIDSet userAppId_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_; /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return Whether the userAppId field is set. */ public boolean hasUserAppId() { return userAppIdBuilder_ != null || userAppId_ != null; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; * @return The userAppId. */ public com.clarifai.grpc.api.UserAppIDSet getUserAppId() { if (userAppIdBuilder_ == null) { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } else { return userAppIdBuilder_.getMessage(); } } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder setUserAppId(com.clarifai.grpc.api.UserAppIDSet value) { if (userAppIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } userAppId_ = value; onChanged(); } else { userAppIdBuilder_.setMessage(value); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder setUserAppId( com.clarifai.grpc.api.UserAppIDSet.Builder builderForValue) { if (userAppIdBuilder_ == null) { userAppId_ = builderForValue.build(); onChanged(); } else { userAppIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder mergeUserAppId(com.clarifai.grpc.api.UserAppIDSet value) { if (userAppIdBuilder_ == null) { if (userAppId_ != null) { userAppId_ = com.clarifai.grpc.api.UserAppIDSet.newBuilder(userAppId_).mergeFrom(value).buildPartial(); } else { userAppId_ = value; } onChanged(); } else { userAppIdBuilder_.mergeFrom(value); } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public Builder clearUserAppId() { if (userAppIdBuilder_ == null) { userAppId_ = null; onChanged(); } else { userAppId_ = null; userAppIdBuilder_ = null; } return this; } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSet.Builder getUserAppIdBuilder() { onChanged(); return getUserAppIdFieldBuilder().getBuilder(); } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() { if (userAppIdBuilder_ != null) { return userAppIdBuilder_.getMessageOrBuilder(); } else { return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_; } } /** * .clarifai.api.UserAppIDSet user_app_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> getUserAppIdFieldBuilder() { if (userAppIdBuilder_ == null) { userAppIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder>( getUserAppId(), getParentForChildren(), isClean()); userAppId_ = null; } return userAppIdBuilder_; } private java.lang.Object id_ = ""; /** *
     * A unique customer facing id to identify this eval request
     * 
* * string id = 2; * @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; } } /** *
     * A unique customer facing id to identify this eval request
     * 
* * string id = 2; * @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; } } /** *
     * A unique customer facing id to identify this eval request
     * 
* * string id = 2; * @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; } /** *
     * A unique customer facing id to identify this eval request
     * 
* * string id = 2; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * A unique customer facing id to identify this eval request
     * 
* * string id = 2; * @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.Search groundTruth_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> groundTruthBuilder_; /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; * @return Whether the groundTruth field is set. */ public boolean hasGroundTruth() { return groundTruthBuilder_ != null || groundTruth_ != null; } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; * @return The groundTruth. */ public com.clarifai.grpc.api.Search getGroundTruth() { if (groundTruthBuilder_ == null) { return groundTruth_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : groundTruth_; } else { return groundTruthBuilder_.getMessage(); } } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ public Builder setGroundTruth(com.clarifai.grpc.api.Search value) { if (groundTruthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groundTruth_ = value; onChanged(); } else { groundTruthBuilder_.setMessage(value); } return this; } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ public Builder setGroundTruth( com.clarifai.grpc.api.Search.Builder builderForValue) { if (groundTruthBuilder_ == null) { groundTruth_ = builderForValue.build(); onChanged(); } else { groundTruthBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ public Builder mergeGroundTruth(com.clarifai.grpc.api.Search value) { if (groundTruthBuilder_ == null) { if (groundTruth_ != null) { groundTruth_ = com.clarifai.grpc.api.Search.newBuilder(groundTruth_).mergeFrom(value).buildPartial(); } else { groundTruth_ = value; } onChanged(); } else { groundTruthBuilder_.mergeFrom(value); } return this; } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ public Builder clearGroundTruth() { if (groundTruthBuilder_ == null) { groundTruth_ = null; onChanged(); } else { groundTruth_ = null; groundTruthBuilder_ = null; } return this; } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ public com.clarifai.grpc.api.Search.Builder getGroundTruthBuilder() { onChanged(); return getGroundTruthFieldBuilder().getBuilder(); } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ public com.clarifai.grpc.api.SearchOrBuilder getGroundTruthOrBuilder() { if (groundTruthBuilder_ != null) { return groundTruthBuilder_.getMessageOrBuilder(); } else { return groundTruth_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : groundTruth_; } } /** *
     * The ground truth we are evaluating against
     * 
* * .clarifai.api.Search ground_truth = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> getGroundTruthFieldBuilder() { if (groundTruthBuilder_ == null) { groundTruthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder>( getGroundTruth(), getParentForChildren(), isClean()); groundTruth_ = null; } return groundTruthBuilder_; } private com.clarifai.grpc.api.Search searchToEval_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> searchToEvalBuilder_; /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; * @return Whether the searchToEval field is set. */ public boolean hasSearchToEval() { return searchToEvalBuilder_ != null || searchToEval_ != null; } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; * @return The searchToEval. */ public com.clarifai.grpc.api.Search getSearchToEval() { if (searchToEvalBuilder_ == null) { return searchToEval_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : searchToEval_; } else { return searchToEvalBuilder_.getMessage(); } } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ public Builder setSearchToEval(com.clarifai.grpc.api.Search value) { if (searchToEvalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchToEval_ = value; onChanged(); } else { searchToEvalBuilder_.setMessage(value); } return this; } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ public Builder setSearchToEval( com.clarifai.grpc.api.Search.Builder builderForValue) { if (searchToEvalBuilder_ == null) { searchToEval_ = builderForValue.build(); onChanged(); } else { searchToEvalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ public Builder mergeSearchToEval(com.clarifai.grpc.api.Search value) { if (searchToEvalBuilder_ == null) { if (searchToEval_ != null) { searchToEval_ = com.clarifai.grpc.api.Search.newBuilder(searchToEval_).mergeFrom(value).buildPartial(); } else { searchToEval_ = value; } onChanged(); } else { searchToEvalBuilder_.mergeFrom(value); } return this; } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ public Builder clearSearchToEval() { if (searchToEvalBuilder_ == null) { searchToEval_ = null; onChanged(); } else { searchToEval_ = null; searchToEvalBuilder_ = null; } return this; } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ public com.clarifai.grpc.api.Search.Builder getSearchToEvalBuilder() { onChanged(); return getSearchToEvalFieldBuilder().getBuilder(); } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ public com.clarifai.grpc.api.SearchOrBuilder getSearchToEvalOrBuilder() { if (searchToEvalBuilder_ != null) { return searchToEvalBuilder_.getMessageOrBuilder(); } else { return searchToEval_ == null ? com.clarifai.grpc.api.Search.getDefaultInstance() : searchToEval_; } } /** *
     * The set we are evaluating
     * 
* * .clarifai.api.Search search_to_eval = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder> getSearchToEvalFieldBuilder() { if (searchToEvalBuilder_ == null) { searchToEvalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Search, com.clarifai.grpc.api.Search.Builder, com.clarifai.grpc.api.SearchOrBuilder>( getSearchToEval(), getParentForChildren(), isClean()); searchToEval_ = null; } return searchToEvalBuilder_; } private com.clarifai.grpc.api.Data data_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder> dataBuilder_; /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; * @return The data. */ public com.clarifai.grpc.api.Data getData() { if (dataBuilder_ == null) { return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ public Builder setData(com.clarifai.grpc.api.Data value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } return this; } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ public Builder setData( com.clarifai.grpc.api.Data.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ public Builder mergeData(com.clarifai.grpc.api.Data value) { if (dataBuilder_ == null) { if (data_ != null) { data_ = com.clarifai.grpc.api.Data.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } return this; } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ public com.clarifai.grpc.api.Data.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ public com.clarifai.grpc.api.DataOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_; } } /** *
     * List of concepts to evaluate are expected to be in data.concepts
     * If nil, then all app concepts are used
     * 
* * .clarifai.api.Data data = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private int evaluationType_ = 0; /** *
     * The type of evaluation to use
     * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @return The enum numeric value on the wire for evaluationType. */ @java.lang.Override public int getEvaluationTypeValue() { return evaluationType_; } /** *
     * The type of evaluation to use
     * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @param value The enum numeric value on the wire for evaluationType to set. * @return This builder for chaining. */ public Builder setEvaluationTypeValue(int value) { evaluationType_ = value; onChanged(); return this; } /** *
     * The type of evaluation to use
     * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @return The evaluationType. */ @java.lang.Override public com.clarifai.grpc.api.EvaluationType getEvaluationType() { @SuppressWarnings("deprecation") com.clarifai.grpc.api.EvaluationType result = com.clarifai.grpc.api.EvaluationType.valueOf(evaluationType_); return result == null ? com.clarifai.grpc.api.EvaluationType.UNRECOGNIZED : result; } /** *
     * The type of evaluation to use
     * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @param value The evaluationType to set. * @return This builder for chaining. */ public Builder setEvaluationType(com.clarifai.grpc.api.EvaluationType value) { if (value == null) { throw new NullPointerException(); } evaluationType_ = value.getNumber(); onChanged(); return this; } /** *
     * The type of evaluation to use
     * 
* * .clarifai.api.EvaluationType evaluation_type = 6; * @return This builder for chaining. */ public Builder clearEvaluationType() { evaluationType_ = 0; onChanged(); return this; } @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.PostAnnotationSearchMetricsRequest) } // @@protoc_insertion_point(class_scope:clarifai.api.PostAnnotationSearchMetricsRequest) private static final com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest(); } public static com.clarifai.grpc.api.PostAnnotationSearchMetricsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PostAnnotationSearchMetricsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PostAnnotationSearchMetricsRequest(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.PostAnnotationSearchMetricsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy