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

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

/**
 * 
 * Annotation of an asset with metadata
 * 
* * Protobuf type {@code clarifai.api.Annotation} */ public final class Annotation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Annotation) AnnotationOrBuilder { private static final long serialVersionUID = 0L; // Use Annotation.newBuilder() to construct. private Annotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Annotation() { id_ = ""; inputId_ = ""; userId_ = ""; modelVersionId_ = ""; embedModelVersionId_ = ""; taskId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Annotation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Annotation( 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: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); inputId_ = s; break; } case 26: { 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 58: { com.clarifai.grpc.api.status.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.clarifai.grpc.api.status.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (modifiedAt_ != null) { subBuilder = modifiedAt_.toBuilder(); } modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modifiedAt_); modifiedAt_ = subBuilder.buildPartial(); } break; } case 80: { trusted_ = input.readBool(); break; } case 106: { com.google.protobuf.Struct.Builder subBuilder = null; if (annotationInfo_ != null) { subBuilder = annotationInfo_.toBuilder(); } annotationInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(annotationInfo_); annotationInfo_ = subBuilder.buildPartial(); } break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); embedModelVersionId_ = s; break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); modelVersionId_ = s; break; } case 136: { inputLevel_ = input.readBool(); break; } case 146: { com.google.protobuf.Struct.Builder subBuilder = null; if (consensusInfo_ != null) { subBuilder = consensusInfo_.toBuilder(); } consensusInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(consensusInfo_); consensusInfo_ = subBuilder.buildPartial(); } break; } case 154: { java.lang.String s = input.readStringRequireUtf8(); taskId_ = s; break; } case 170: { com.clarifai.grpc.api.Worker.Builder subBuilder = null; if (worker_ != null) { subBuilder = worker_.toBuilder(); } worker_ = input.readMessage(com.clarifai.grpc.api.Worker.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(worker_); worker_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Annotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Annotation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Annotation.class, com.clarifai.grpc.api.Annotation.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * The ID for the annotation
   * 
* * string id = 1; * @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; } } /** *
   * The ID for the annotation
   * 
* * string id = 1; * @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 INPUT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object inputId_; /** *
   * ID of the input this annotation is tied to
   * 
* * string input_id = 2; * @return The inputId. */ @java.lang.Override public java.lang.String getInputId() { java.lang.Object ref = inputId_; 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(); inputId_ = s; return s; } } /** *
   * ID of the input this annotation is tied to
   * 
* * string input_id = 2; * @return The bytes for inputId. */ @java.lang.Override public com.google.protobuf.ByteString getInputIdBytes() { java.lang.Object ref = inputId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); inputId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 3; private com.clarifai.grpc.api.Data data_; /** *
   * The data passed along in this annotation.
   * 
* * .clarifai.api.Data data = 3; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return data_ != null; } /** *
   * The data passed along in this annotation.
   * 
* * .clarifai.api.Data data = 3; * @return The data. */ @java.lang.Override public com.clarifai.grpc.api.Data getData() { return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_; } /** *
   * The data passed along in this annotation.
   * 
* * .clarifai.api.Data data = 3; */ @java.lang.Override public com.clarifai.grpc.api.DataOrBuilder getDataOrBuilder() { return getData(); } public static final int ANNOTATION_INFO_FIELD_NUMBER = 13; private com.google.protobuf.Struct annotationInfo_; /** *
   * task_id is deprecated in annotation_info. Use task_id
   * 
* * .google.protobuf.Struct annotation_info = 13; * @return Whether the annotationInfo field is set. */ @java.lang.Override public boolean hasAnnotationInfo() { return annotationInfo_ != null; } /** *
   * task_id is deprecated in annotation_info. Use task_id
   * 
* * .google.protobuf.Struct annotation_info = 13; * @return The annotationInfo. */ @java.lang.Override public com.google.protobuf.Struct getAnnotationInfo() { return annotationInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotationInfo_; } /** *
   * task_id is deprecated in annotation_info. Use task_id
   * 
* * .google.protobuf.Struct annotation_info = 13; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getAnnotationInfoOrBuilder() { return getAnnotationInfo(); } public static final int USER_ID_FIELD_NUMBER = 15; private volatile java.lang.Object userId_; /** *
   * DEPRECATED: Use worker.user.id instead.
   * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @return The userId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getUserId() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** *
   * DEPRECATED: Use worker.user.id instead.
   * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @return The bytes for userId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 16; private volatile java.lang.Object modelVersionId_; /** *
   * DEPRECATED: Use worker.model.model_version.id instead
   * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @return The modelVersionId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getModelVersionId() { java.lang.Object ref = modelVersionId_; 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(); modelVersionId_ = s; return s; } } /** *
   * DEPRECATED: Use worker.model.model_version.id instead
   * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @return The bytes for modelVersionId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getModelVersionIdBytes() { java.lang.Object ref = modelVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMBED_MODEL_VERSION_ID_FIELD_NUMBER = 14; private volatile java.lang.Object embedModelVersionId_; /** *
   * DEPRECATED.
   * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @return The embedModelVersionId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getEmbedModelVersionId() { java.lang.Object ref = embedModelVersionId_; 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(); embedModelVersionId_ = s; return s; } } /** *
   * DEPRECATED.
   * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @return The bytes for embedModelVersionId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getEmbedModelVersionIdBytes() { java.lang.Object ref = embedModelVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); embedModelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 7; private com.clarifai.grpc.api.status.Status status_; /** *
   * Annotation Status
   * 
* * .clarifai.api.status.Status status = 7; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
   * Annotation Status
   * 
* * .clarifai.api.status.Status status = 7; * @return The status. */ @java.lang.Override public com.clarifai.grpc.api.status.Status getStatus() { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } /** *
   * Annotation Status
   * 
* * .clarifai.api.status.Status status = 7; */ @java.lang.Override public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int CREATED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the annotation was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the annotation was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 8; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * When the annotation was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int MODIFIED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp modifiedAt_; /** *
   * When the annotation was modified.
   * 
* * .google.protobuf.Timestamp modified_at = 9; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
   * When the annotation was modified.
   * 
* * .google.protobuf.Timestamp modified_at = 9; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
   * When the annotation was modified.
   * 
* * .google.protobuf.Timestamp modified_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int TRUSTED_FIELD_NUMBER = 10; private boolean trusted_; /** *
   * Whether or not this annotation is trusted
   * Will be deprecated
   * 
* * bool trusted = 10 [deprecated = true]; * @deprecated clarifai.api.Annotation.trusted is deprecated. * See proto/clarifai/api/resources.proto;l=60 * @return The trusted. */ @java.lang.Override @java.lang.Deprecated public boolean getTrusted() { return trusted_; } public static final int INPUT_LEVEL_FIELD_NUMBER = 17; private boolean inputLevel_; /** *
   * Is this the input level annotation.
   * 
* * bool input_level = 17; * @return The inputLevel. */ @java.lang.Override public boolean getInputLevel() { return inputLevel_; } public static final int CONSENSUS_INFO_FIELD_NUMBER = 18; private com.google.protobuf.Struct consensusInfo_; /** *
   * Consensus review related information, e.g.
   * * annotation group
   * * id of annotation parent, in case the annotation was split from another annotation
   * 
* * .google.protobuf.Struct consensus_info = 18; * @return Whether the consensusInfo field is set. */ @java.lang.Override public boolean hasConsensusInfo() { return consensusInfo_ != null; } /** *
   * Consensus review related information, e.g.
   * * annotation group
   * * id of annotation parent, in case the annotation was split from another annotation
   * 
* * .google.protobuf.Struct consensus_info = 18; * @return The consensusInfo. */ @java.lang.Override public com.google.protobuf.Struct getConsensusInfo() { return consensusInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : consensusInfo_; } /** *
   * Consensus review related information, e.g.
   * * annotation group
   * * id of annotation parent, in case the annotation was split from another annotation
   * 
* * .google.protobuf.Struct consensus_info = 18; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getConsensusInfoOrBuilder() { return getConsensusInfo(); } public static final int TASK_ID_FIELD_NUMBER = 19; private volatile java.lang.Object taskId_; /** *
   * The id of the task annotation belongs to
   * 
* * string task_id = 19; * @return The taskId. */ @java.lang.Override public java.lang.String getTaskId() { java.lang.Object ref = taskId_; 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(); taskId_ = s; return s; } } /** *
   * The id of the task annotation belongs to
   * 
* * string task_id = 19; * @return The bytes for taskId. */ @java.lang.Override public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); taskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WORKER_FIELD_NUMBER = 21; private com.clarifai.grpc.api.Worker worker_; /** *
   * Worker is the worker that created the annotation.
   * 
* * .clarifai.api.Worker worker = 21; * @return Whether the worker field is set. */ @java.lang.Override public boolean hasWorker() { return worker_ != null; } /** *
   * Worker is the worker that created the annotation.
   * 
* * .clarifai.api.Worker worker = 21; * @return The worker. */ @java.lang.Override public com.clarifai.grpc.api.Worker getWorker() { return worker_ == null ? com.clarifai.grpc.api.Worker.getDefaultInstance() : worker_; } /** *
   * Worker is the worker that created the annotation.
   * 
* * .clarifai.api.Worker worker = 21; */ @java.lang.Override public com.clarifai.grpc.api.WorkerOrBuilder getWorkerOrBuilder() { return getWorker(); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputId_); } if (data_ != null) { output.writeMessage(3, getData()); } if (status_ != null) { output.writeMessage(7, getStatus()); } if (createdAt_ != null) { output.writeMessage(8, getCreatedAt()); } if (modifiedAt_ != null) { output.writeMessage(9, getModifiedAt()); } if (trusted_ != false) { output.writeBool(10, trusted_); } if (annotationInfo_ != null) { output.writeMessage(13, getAnnotationInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(embedModelVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, embedModelVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, modelVersionId_); } if (inputLevel_ != false) { output.writeBool(17, inputLevel_); } if (consensusInfo_ != null) { output.writeMessage(18, getConsensusInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, taskId_); } if (worker_ != null) { output.writeMessage(21, getWorker()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputId_); } if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getData()); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStatus()); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCreatedAt()); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getModifiedAt()); } if (trusted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, trusted_); } if (annotationInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getAnnotationInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(embedModelVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, embedModelVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, modelVersionId_); } if (inputLevel_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, inputLevel_); } if (consensusInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getConsensusInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, taskId_); } if (worker_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getWorker()); } 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.Annotation)) { return super.equals(obj); } com.clarifai.grpc.api.Annotation other = (com.clarifai.grpc.api.Annotation) obj; if (!getId() .equals(other.getId())) return false; if (!getInputId() .equals(other.getInputId())) return false; if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) return false; } if (hasAnnotationInfo() != other.hasAnnotationInfo()) return false; if (hasAnnotationInfo()) { if (!getAnnotationInfo() .equals(other.getAnnotationInfo())) return false; } if (!getUserId() .equals(other.getUserId())) return false; if (!getModelVersionId() .equals(other.getModelVersionId())) return false; if (!getEmbedModelVersionId() .equals(other.getEmbedModelVersionId())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) return false; } if (getTrusted() != other.getTrusted()) return false; if (getInputLevel() != other.getInputLevel()) return false; if (hasConsensusInfo() != other.hasConsensusInfo()) return false; if (hasConsensusInfo()) { if (!getConsensusInfo() .equals(other.getConsensusInfo())) return false; } if (!getTaskId() .equals(other.getTaskId())) return false; if (hasWorker() != other.hasWorker()) return false; if (hasWorker()) { if (!getWorker() .equals(other.getWorker())) 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + INPUT_ID_FIELD_NUMBER; hash = (53 * hash) + getInputId().hashCode(); if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasAnnotationInfo()) { hash = (37 * hash) + ANNOTATION_INFO_FIELD_NUMBER; hash = (53 * hash) + getAnnotationInfo().hashCode(); } hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getModelVersionId().hashCode(); hash = (37 * hash) + EMBED_MODEL_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getEmbedModelVersionId().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().hashCode(); } hash = (37 * hash) + TRUSTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrusted()); hash = (37 * hash) + INPUT_LEVEL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInputLevel()); if (hasConsensusInfo()) { hash = (37 * hash) + CONSENSUS_INFO_FIELD_NUMBER; hash = (53 * hash) + getConsensusInfo().hashCode(); } hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); if (hasWorker()) { hash = (37 * hash) + WORKER_FIELD_NUMBER; hash = (53 * hash) + getWorker().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Annotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Annotation 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.Annotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Annotation 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.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Annotation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Annotation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Annotation 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.Annotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Annotation 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.Annotation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Annotation 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.Annotation 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; } /** *
   * Annotation of an asset with metadata
   * 
* * Protobuf type {@code clarifai.api.Annotation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Annotation) com.clarifai.grpc.api.AnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Annotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Annotation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Annotation.class, com.clarifai.grpc.api.Annotation.Builder.class); } // Construct using com.clarifai.grpc.api.Annotation.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(); id_ = ""; inputId_ = ""; if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } if (annotationInfoBuilder_ == null) { annotationInfo_ = null; } else { annotationInfo_ = null; annotationInfoBuilder_ = null; } userId_ = ""; modelVersionId_ = ""; embedModelVersionId_ = ""; if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } trusted_ = false; inputLevel_ = false; if (consensusInfoBuilder_ == null) { consensusInfo_ = null; } else { consensusInfo_ = null; consensusInfoBuilder_ = null; } taskId_ = ""; if (workerBuilder_ == null) { worker_ = null; } else { worker_ = null; workerBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Annotation_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Annotation getDefaultInstanceForType() { return com.clarifai.grpc.api.Annotation.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Annotation build() { com.clarifai.grpc.api.Annotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Annotation buildPartial() { com.clarifai.grpc.api.Annotation result = new com.clarifai.grpc.api.Annotation(this); result.id_ = id_; result.inputId_ = inputId_; if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } if (annotationInfoBuilder_ == null) { result.annotationInfo_ = annotationInfo_; } else { result.annotationInfo_ = annotationInfoBuilder_.build(); } result.userId_ = userId_; result.modelVersionId_ = modelVersionId_; result.embedModelVersionId_ = embedModelVersionId_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } result.trusted_ = trusted_; result.inputLevel_ = inputLevel_; if (consensusInfoBuilder_ == null) { result.consensusInfo_ = consensusInfo_; } else { result.consensusInfo_ = consensusInfoBuilder_.build(); } result.taskId_ = taskId_; if (workerBuilder_ == null) { result.worker_ = worker_; } else { result.worker_ = workerBuilder_.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.Annotation) { return mergeFrom((com.clarifai.grpc.api.Annotation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Annotation other) { if (other == com.clarifai.grpc.api.Annotation.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getInputId().isEmpty()) { inputId_ = other.inputId_; onChanged(); } if (other.hasData()) { mergeData(other.getData()); } if (other.hasAnnotationInfo()) { mergeAnnotationInfo(other.getAnnotationInfo()); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; onChanged(); } if (!other.getEmbedModelVersionId().isEmpty()) { embedModelVersionId_ = other.embedModelVersionId_; onChanged(); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } if (other.getTrusted() != false) { setTrusted(other.getTrusted()); } if (other.getInputLevel() != false) { setInputLevel(other.getInputLevel()); } if (other.hasConsensusInfo()) { mergeConsensusInfo(other.getConsensusInfo()); } if (!other.getTaskId().isEmpty()) { taskId_ = other.taskId_; onChanged(); } if (other.hasWorker()) { mergeWorker(other.getWorker()); } 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.Annotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Annotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
     * The ID for the annotation
     * 
* * string id = 1; * @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; } } /** *
     * The ID for the annotation
     * 
* * string id = 1; * @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; } } /** *
     * The ID for the annotation
     * 
* * string id = 1; * @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; } /** *
     * The ID for the annotation
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * The ID for the annotation
     * 
* * string id = 1; * @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 java.lang.Object inputId_ = ""; /** *
     * ID of the input this annotation is tied to
     * 
* * string input_id = 2; * @return The inputId. */ public java.lang.String getInputId() { java.lang.Object ref = inputId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * ID of the input this annotation is tied to
     * 
* * string input_id = 2; * @return The bytes for inputId. */ public com.google.protobuf.ByteString getInputIdBytes() { java.lang.Object ref = inputId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); inputId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * ID of the input this annotation is tied to
     * 
* * string input_id = 2; * @param value The inputId to set. * @return This builder for chaining. */ public Builder setInputId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } inputId_ = value; onChanged(); return this; } /** *
     * ID of the input this annotation is tied to
     * 
* * string input_id = 2; * @return This builder for chaining. */ public Builder clearInputId() { inputId_ = getDefaultInstance().getInputId(); onChanged(); return this; } /** *
     * ID of the input this annotation is tied to
     * 
* * string input_id = 2; * @param value The bytes for inputId to set. * @return This builder for chaining. */ public Builder setInputIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); inputId_ = value; onChanged(); return this; } 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_; /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; * @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(); } } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ 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; } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ public Builder setData( com.clarifai.grpc.api.Data.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ 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; } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ public com.clarifai.grpc.api.Data.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ public com.clarifai.grpc.api.DataOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? com.clarifai.grpc.api.Data.getDefaultInstance() : data_; } } /** *
     * The data passed along in this annotation.
     * 
* * .clarifai.api.Data data = 3; */ 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 com.google.protobuf.Struct annotationInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> annotationInfoBuilder_; /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; * @return Whether the annotationInfo field is set. */ public boolean hasAnnotationInfo() { return annotationInfoBuilder_ != null || annotationInfo_ != null; } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; * @return The annotationInfo. */ public com.google.protobuf.Struct getAnnotationInfo() { if (annotationInfoBuilder_ == null) { return annotationInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotationInfo_; } else { return annotationInfoBuilder_.getMessage(); } } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ public Builder setAnnotationInfo(com.google.protobuf.Struct value) { if (annotationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotationInfo_ = value; onChanged(); } else { annotationInfoBuilder_.setMessage(value); } return this; } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ public Builder setAnnotationInfo( com.google.protobuf.Struct.Builder builderForValue) { if (annotationInfoBuilder_ == null) { annotationInfo_ = builderForValue.build(); onChanged(); } else { annotationInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ public Builder mergeAnnotationInfo(com.google.protobuf.Struct value) { if (annotationInfoBuilder_ == null) { if (annotationInfo_ != null) { annotationInfo_ = com.google.protobuf.Struct.newBuilder(annotationInfo_).mergeFrom(value).buildPartial(); } else { annotationInfo_ = value; } onChanged(); } else { annotationInfoBuilder_.mergeFrom(value); } return this; } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ public Builder clearAnnotationInfo() { if (annotationInfoBuilder_ == null) { annotationInfo_ = null; onChanged(); } else { annotationInfo_ = null; annotationInfoBuilder_ = null; } return this; } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ public com.google.protobuf.Struct.Builder getAnnotationInfoBuilder() { onChanged(); return getAnnotationInfoFieldBuilder().getBuilder(); } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ public com.google.protobuf.StructOrBuilder getAnnotationInfoOrBuilder() { if (annotationInfoBuilder_ != null) { return annotationInfoBuilder_.getMessageOrBuilder(); } else { return annotationInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotationInfo_; } } /** *
     * task_id is deprecated in annotation_info. Use task_id
     * 
* * .google.protobuf.Struct annotation_info = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getAnnotationInfoFieldBuilder() { if (annotationInfoBuilder_ == null) { annotationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getAnnotationInfo(), getParentForChildren(), isClean()); annotationInfo_ = null; } return annotationInfoBuilder_; } private java.lang.Object userId_ = ""; /** *
     * DEPRECATED: Use worker.user.id instead.
     * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @return The userId. */ @java.lang.Deprecated public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED: Use worker.user.id instead.
     * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @return The bytes for userId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED: Use worker.user.id instead.
     * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @param value The userId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** *
     * DEPRECATED: Use worker.user.id instead.
     * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** *
     * DEPRECATED: Use worker.user.id instead.
     * 
* * string user_id = 15 [deprecated = true]; * @deprecated clarifai.api.Annotation.user_id is deprecated. * See proto/clarifai/api/resources.proto;l=37 * @param value The bytes for userId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private java.lang.Object modelVersionId_ = ""; /** *
     * DEPRECATED: Use worker.model.model_version.id instead
     * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @return The modelVersionId. */ @java.lang.Deprecated public java.lang.String getModelVersionId() { java.lang.Object ref = modelVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED: Use worker.model.model_version.id instead
     * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @return The bytes for modelVersionId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getModelVersionIdBytes() { java.lang.Object ref = modelVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED: Use worker.model.model_version.id instead
     * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @param value The modelVersionId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setModelVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modelVersionId_ = value; onChanged(); return this; } /** *
     * DEPRECATED: Use worker.model.model_version.id instead
     * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearModelVersionId() { modelVersionId_ = getDefaultInstance().getModelVersionId(); onChanged(); return this; } /** *
     * DEPRECATED: Use worker.model.model_version.id instead
     * 
* * string model_version_id = 16 [deprecated = true]; * @deprecated clarifai.api.Annotation.model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=40 * @param value The bytes for modelVersionId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setModelVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modelVersionId_ = value; onChanged(); return this; } private java.lang.Object embedModelVersionId_ = ""; /** *
     * DEPRECATED.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @return The embedModelVersionId. */ @java.lang.Deprecated public java.lang.String getEmbedModelVersionId() { java.lang.Object ref = embedModelVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); embedModelVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * DEPRECATED.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @return The bytes for embedModelVersionId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getEmbedModelVersionIdBytes() { java.lang.Object ref = embedModelVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); embedModelVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * DEPRECATED.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @param value The embedModelVersionId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEmbedModelVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } embedModelVersionId_ = value; onChanged(); return this; } /** *
     * DEPRECATED.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearEmbedModelVersionId() { embedModelVersionId_ = getDefaultInstance().getEmbedModelVersionId(); onChanged(); return this; } /** *
     * DEPRECATED.
     * 
* * string embed_model_version_id = 14 [deprecated = true]; * @deprecated clarifai.api.Annotation.embed_model_version_id is deprecated. * See proto/clarifai/api/resources.proto;l=43 * @param value The bytes for embedModelVersionId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEmbedModelVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); embedModelVersionId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.status.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> statusBuilder_; /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; * @return The status. */ public com.clarifai.grpc.api.status.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ public Builder setStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ public Builder setStatus( com.clarifai.grpc.api.status.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ public Builder mergeStatus(com.clarifai.grpc.api.status.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.clarifai.grpc.api.status.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.clarifai.grpc.api.status.Status.getDefaultInstance() : status_; } } /** *
     * Annotation Status
     * 
* * .clarifai.api.status.Status status = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the annotation was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; * @return The modifiedAt. */ public com.google.protobuf.Timestamp getModifiedAt() { if (modifiedAtBuilder_ == null) { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } else { return modifiedAtBuilder_.getMessage(); } } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ public Builder setModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modifiedAt_ = value; onChanged(); } else { modifiedAtBuilder_.setMessage(value); } return this; } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ public Builder setModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedAtBuilder_ == null) { modifiedAt_ = builderForValue.build(); onChanged(); } else { modifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (modifiedAt_ != null) { modifiedAt_ = com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial(); } else { modifiedAt_ = value; } onChanged(); } else { modifiedAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
     * When the annotation was modified.
     * 
* * .google.protobuf.Timestamp modified_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } private boolean trusted_ ; /** *
     * Whether or not this annotation is trusted
     * Will be deprecated
     * 
* * bool trusted = 10 [deprecated = true]; * @deprecated clarifai.api.Annotation.trusted is deprecated. * See proto/clarifai/api/resources.proto;l=60 * @return The trusted. */ @java.lang.Override @java.lang.Deprecated public boolean getTrusted() { return trusted_; } /** *
     * Whether or not this annotation is trusted
     * Will be deprecated
     * 
* * bool trusted = 10 [deprecated = true]; * @deprecated clarifai.api.Annotation.trusted is deprecated. * See proto/clarifai/api/resources.proto;l=60 * @param value The trusted to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTrusted(boolean value) { trusted_ = value; onChanged(); return this; } /** *
     * Whether or not this annotation is trusted
     * Will be deprecated
     * 
* * bool trusted = 10 [deprecated = true]; * @deprecated clarifai.api.Annotation.trusted is deprecated. * See proto/clarifai/api/resources.proto;l=60 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTrusted() { trusted_ = false; onChanged(); return this; } private boolean inputLevel_ ; /** *
     * Is this the input level annotation.
     * 
* * bool input_level = 17; * @return The inputLevel. */ @java.lang.Override public boolean getInputLevel() { return inputLevel_; } /** *
     * Is this the input level annotation.
     * 
* * bool input_level = 17; * @param value The inputLevel to set. * @return This builder for chaining. */ public Builder setInputLevel(boolean value) { inputLevel_ = value; onChanged(); return this; } /** *
     * Is this the input level annotation.
     * 
* * bool input_level = 17; * @return This builder for chaining. */ public Builder clearInputLevel() { inputLevel_ = false; onChanged(); return this; } private com.google.protobuf.Struct consensusInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> consensusInfoBuilder_; /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; * @return Whether the consensusInfo field is set. */ public boolean hasConsensusInfo() { return consensusInfoBuilder_ != null || consensusInfo_ != null; } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; * @return The consensusInfo. */ public com.google.protobuf.Struct getConsensusInfo() { if (consensusInfoBuilder_ == null) { return consensusInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : consensusInfo_; } else { return consensusInfoBuilder_.getMessage(); } } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ public Builder setConsensusInfo(com.google.protobuf.Struct value) { if (consensusInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consensusInfo_ = value; onChanged(); } else { consensusInfoBuilder_.setMessage(value); } return this; } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ public Builder setConsensusInfo( com.google.protobuf.Struct.Builder builderForValue) { if (consensusInfoBuilder_ == null) { consensusInfo_ = builderForValue.build(); onChanged(); } else { consensusInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ public Builder mergeConsensusInfo(com.google.protobuf.Struct value) { if (consensusInfoBuilder_ == null) { if (consensusInfo_ != null) { consensusInfo_ = com.google.protobuf.Struct.newBuilder(consensusInfo_).mergeFrom(value).buildPartial(); } else { consensusInfo_ = value; } onChanged(); } else { consensusInfoBuilder_.mergeFrom(value); } return this; } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ public Builder clearConsensusInfo() { if (consensusInfoBuilder_ == null) { consensusInfo_ = null; onChanged(); } else { consensusInfo_ = null; consensusInfoBuilder_ = null; } return this; } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ public com.google.protobuf.Struct.Builder getConsensusInfoBuilder() { onChanged(); return getConsensusInfoFieldBuilder().getBuilder(); } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ public com.google.protobuf.StructOrBuilder getConsensusInfoOrBuilder() { if (consensusInfoBuilder_ != null) { return consensusInfoBuilder_.getMessageOrBuilder(); } else { return consensusInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : consensusInfo_; } } /** *
     * Consensus review related information, e.g.
     * * annotation group
     * * id of annotation parent, in case the annotation was split from another annotation
     * 
* * .google.protobuf.Struct consensus_info = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getConsensusInfoFieldBuilder() { if (consensusInfoBuilder_ == null) { consensusInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getConsensusInfo(), getParentForChildren(), isClean()); consensusInfo_ = null; } return consensusInfoBuilder_; } private java.lang.Object taskId_ = ""; /** *
     * The id of the task annotation belongs to
     * 
* * string task_id = 19; * @return The taskId. */ public java.lang.String getTaskId() { java.lang.Object ref = taskId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); taskId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The id of the task annotation belongs to
     * 
* * string task_id = 19; * @return The bytes for taskId. */ public com.google.protobuf.ByteString getTaskIdBytes() { java.lang.Object ref = taskId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); taskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The id of the task annotation belongs to
     * 
* * string task_id = 19; * @param value The taskId to set. * @return This builder for chaining. */ public Builder setTaskId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } taskId_ = value; onChanged(); return this; } /** *
     * The id of the task annotation belongs to
     * 
* * string task_id = 19; * @return This builder for chaining. */ public Builder clearTaskId() { taskId_ = getDefaultInstance().getTaskId(); onChanged(); return this; } /** *
     * The id of the task annotation belongs to
     * 
* * string task_id = 19; * @param value The bytes for taskId to set. * @return This builder for chaining. */ public Builder setTaskIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); taskId_ = value; onChanged(); return this; } private com.clarifai.grpc.api.Worker worker_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Worker, com.clarifai.grpc.api.Worker.Builder, com.clarifai.grpc.api.WorkerOrBuilder> workerBuilder_; /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; * @return Whether the worker field is set. */ public boolean hasWorker() { return workerBuilder_ != null || worker_ != null; } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; * @return The worker. */ public com.clarifai.grpc.api.Worker getWorker() { if (workerBuilder_ == null) { return worker_ == null ? com.clarifai.grpc.api.Worker.getDefaultInstance() : worker_; } else { return workerBuilder_.getMessage(); } } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ public Builder setWorker(com.clarifai.grpc.api.Worker value) { if (workerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } worker_ = value; onChanged(); } else { workerBuilder_.setMessage(value); } return this; } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ public Builder setWorker( com.clarifai.grpc.api.Worker.Builder builderForValue) { if (workerBuilder_ == null) { worker_ = builderForValue.build(); onChanged(); } else { workerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ public Builder mergeWorker(com.clarifai.grpc.api.Worker value) { if (workerBuilder_ == null) { if (worker_ != null) { worker_ = com.clarifai.grpc.api.Worker.newBuilder(worker_).mergeFrom(value).buildPartial(); } else { worker_ = value; } onChanged(); } else { workerBuilder_.mergeFrom(value); } return this; } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ public Builder clearWorker() { if (workerBuilder_ == null) { worker_ = null; onChanged(); } else { worker_ = null; workerBuilder_ = null; } return this; } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ public com.clarifai.grpc.api.Worker.Builder getWorkerBuilder() { onChanged(); return getWorkerFieldBuilder().getBuilder(); } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ public com.clarifai.grpc.api.WorkerOrBuilder getWorkerOrBuilder() { if (workerBuilder_ != null) { return workerBuilder_.getMessageOrBuilder(); } else { return worker_ == null ? com.clarifai.grpc.api.Worker.getDefaultInstance() : worker_; } } /** *
     * Worker is the worker that created the annotation.
     * 
* * .clarifai.api.Worker worker = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Worker, com.clarifai.grpc.api.Worker.Builder, com.clarifai.grpc.api.WorkerOrBuilder> getWorkerFieldBuilder() { if (workerBuilder_ == null) { workerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Worker, com.clarifai.grpc.api.Worker.Builder, com.clarifai.grpc.api.WorkerOrBuilder>( getWorker(), getParentForChildren(), isClean()); worker_ = null; } return workerBuilder_; } @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.Annotation) } // @@protoc_insertion_point(class_scope:clarifai.api.Annotation) private static final com.clarifai.grpc.api.Annotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Annotation(); } public static com.clarifai.grpc.api.Annotation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Annotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Annotation(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.Annotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy