Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Polygon detection tasks annotate free-form regions around concepts in an image, frame of video or section of text.
*
*
* POLYGON_DETECTION = 3;
*/
POLYGON_DETECTION(3),
UNRECOGNIZED(-1),
;
/**
* TYPE_NOT_SET = 0;
*/
public static final int TYPE_NOT_SET_VALUE = 0;
/**
*
* Concepts classification tasks annotate concepts for the overall image, frame of video or section of text.
*
*
* CONCEPTS_CLASSIFICATION = 1;
*/
public static final int CONCEPTS_CLASSIFICATION_VALUE = 1;
/**
*
* Bounding box detection tasks annotate rectangular bounding box regions around each concept in an image, frame of video or section of text.
*
*
* BOUNDING_BOX_DETECTION = 2;
*/
public static final int BOUNDING_BOX_DETECTION_VALUE = 2;
/**
*
* Polygon detection tasks annotate free-form regions around concepts in an image, frame of video or section of text.
*
*
* POLYGON_DETECTION = 3;
*/
public static final int POLYGON_DETECTION_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TaskType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TaskType forNumber(int value) {
switch (value) {
case 0: return TYPE_NOT_SET;
case 1: return CONCEPTS_CLASSIFICATION;
case 2: return BOUNDING_BOX_DETECTION;
case 3: return POLYGON_DETECTION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TaskType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TaskType findValueByNumber(int number) {
return TaskType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.clarifai.grpc.api.Task.getDescriptor().getEnumTypes().get(0);
}
private static final TaskType[] VALUES = values();
public static TaskType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TaskType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:clarifai.api.Task.TaskType)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Unique ID for the task.
*
*
* 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;
}
}
/**
*
* Unique ID for the task.
*
*
* 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 CREATED_AT_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* When the task was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* When the task was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
* Most recent time when the task was updated.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp modified_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() {
return getModifiedAt();
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_;
/**
*
* Task type.
*
*
* .clarifai.api.Task.TaskType type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Task type.
*
*
* .clarifai.api.Task.TaskType type = 4;
* @return The type.
*/
@java.lang.Override public com.clarifai.grpc.api.Task.TaskType getType() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.Task.TaskType result = com.clarifai.grpc.api.Task.TaskType.valueOf(type_);
return result == null ? com.clarifai.grpc.api.Task.TaskType.UNRECOGNIZED : result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
private volatile java.lang.Object description_;
/**
*
*
* .clarifai.api.TaskWorker worker = 6;
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskWorkerOrBuilder getWorkerOrBuilder() {
return getWorker();
}
public static final int CONCEPT_IDS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList conceptIds_;
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @return A list containing the conceptIds.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getConceptIdsList() {
return conceptIds_;
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @return The count of conceptIds.
*/
@java.lang.Deprecated public int getConceptIdsCount() {
return conceptIds_.size();
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param index The index of the element to return.
* @return The conceptIds at the given index.
*/
@java.lang.Deprecated public java.lang.String getConceptIds(int index) {
return conceptIds_.get(index);
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param index The index of the value to return.
* @return The bytes of the conceptIds at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getConceptIdsBytes(int index) {
return conceptIds_.getByteString(index);
}
public static final int INPUT_SOURCE_FIELD_NUMBER = 8;
private com.clarifai.grpc.api.TaskInputSource inputSource_;
/**
*
* List of inputs used in this task will be taken from this source.
*
*
* .clarifai.api.TaskInputSource input_source = 8;
* @return Whether the inputSource field is set.
*/
@java.lang.Override
public boolean hasInputSource() {
return inputSource_ != null;
}
/**
*
* List of inputs used in this task will be taken from this source.
*
*
* .clarifai.api.TaskReview review = 11;
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskReviewOrBuilder getReviewOrBuilder() {
return getReview();
}
public static final int STATUS_FIELD_NUMBER = 12;
private com.clarifai.grpc.api.status.Status status_;
/**
*
* Status of this task.
*
*
* .clarifai.api.status.Status status = 12;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
* Status of this task.
*
*
* .clarifai.api.status.Status status = 12;
* @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_;
}
/**
*
* Status of this task.
*
*
* .clarifai.api.status.Status status = 12;
*/
@java.lang.Override
public com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int NAME_FIELD_NUMBER = 13;
private volatile java.lang.Object name_;
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
*
* string name = 13;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
*
* string name = 13;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AI_ASSIST_PARAMS_FIELD_NUMBER = 14;
private com.clarifai.grpc.api.AiAssistParameters aiAssistParams_;
/**
* .clarifai.api.AiAssistParameters ai_assist_params = 14;
* @return Whether the aiAssistParams field is set.
*/
@java.lang.Override
public boolean hasAiAssistParams() {
return aiAssistParams_ != null;
}
/**
* .clarifai.api.AiAssistParameters ai_assist_params = 14;
* @return The aiAssistParams.
*/
@java.lang.Override
public com.clarifai.grpc.api.AiAssistParameters getAiAssistParams() {
return aiAssistParams_ == null ? com.clarifai.grpc.api.AiAssistParameters.getDefaultInstance() : aiAssistParams_;
}
/**
* .clarifai.api.AiAssistParameters ai_assist_params = 14;
*/
@java.lang.Override
public com.clarifai.grpc.api.AiAssistParametersOrBuilder getAiAssistParamsOrBuilder() {
return getAiAssistParams();
}
public static final int VISIBILITY_FIELD_NUMBER = 15;
private com.clarifai.grpc.api.Visibility visibility_;
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
* @return Whether the visibility field is set.
*/
@java.lang.Override
public boolean hasVisibility() {
return visibility_ != null;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
@java.lang.Override
public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() {
return getVisibility();
}
public static final int APP_ID_FIELD_NUMBER = 16;
private volatile java.lang.Object appId_;
/**
*
* Ignore Task.concept_ids field if Task.TaskConcept are supplied.
*
*
* repeated .clarifai.api.TaskConcept concepts = 19;
*/
@java.lang.Override
public com.clarifai.grpc.api.TaskConceptOrBuilder getConceptsOrBuilder(
int index) {
return concepts_.get(index);
}
public static final int DELETE_PREVIOUS_ANNOTATIONS_FIELD_NUMBER = 20;
private boolean deletePreviousAnnotations_;
/**
*
* Specify whether existing Annotations within the same app that are generated by other auto annotation tasks
* with the specified Concept from the selected Model or Workflow should deleted before executing the Task
*
*
* bool delete_previous_annotations = 20;
* @return The deletePreviousAnnotations.
*/
@java.lang.Override
public boolean getDeletePreviousAnnotations() {
return deletePreviousAnnotations_;
}
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 (createdAt_ != null) {
output.writeMessage(2, getCreatedAt());
}
if (modifiedAt_ != null) {
output.writeMessage(3, getModifiedAt());
}
if (type_ != com.clarifai.grpc.api.Task.TaskType.TYPE_NOT_SET.getNumber()) {
output.writeEnum(4, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
if (worker_ != null) {
output.writeMessage(6, getWorker());
}
for (int i = 0; i < conceptIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, conceptIds_.getRaw(i));
}
if (inputSource_ != null) {
output.writeMessage(8, getInputSource());
}
if (sampleMs_ != 0) {
output.writeUInt32(9, sampleMs_);
}
if (aiAssistant_ != null) {
output.writeMessage(10, getAiAssistant());
}
if (review_ != null) {
output.writeMessage(11, getReview());
}
if (status_ != null) {
output.writeMessage(12, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, name_);
}
if (aiAssistParams_ != null) {
output.writeMessage(14, getAiAssistParams());
}
if (visibility_ != null) {
output.writeMessage(15, getVisibility());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelOrderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, labelOrderId_);
}
for (int i = 0; i < concepts_.size(); i++) {
output.writeMessage(19, concepts_.get(i));
}
if (deletePreviousAnnotations_ != false) {
output.writeBool(20, deletePreviousAnnotations_);
}
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 (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCreatedAt());
}
if (modifiedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getModifiedAt());
}
if (type_ != com.clarifai.grpc.api.Task.TaskType.TYPE_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
if (worker_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getWorker());
}
{
int dataSize = 0;
for (int i = 0; i < conceptIds_.size(); i++) {
dataSize += computeStringSizeNoTag(conceptIds_.getRaw(i));
}
size += dataSize;
size += 1 * getConceptIdsList().size();
}
if (inputSource_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getInputSource());
}
if (sampleMs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, sampleMs_);
}
if (aiAssistant_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAiAssistant());
}
if (review_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getReview());
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, name_);
}
if (aiAssistParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getAiAssistParams());
}
if (visibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getVisibility());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, appId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelOrderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, labelOrderId_);
}
for (int i = 0; i < concepts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, concepts_.get(i));
}
if (deletePreviousAnnotations_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, deletePreviousAnnotations_);
}
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.Task)) {
return super.equals(obj);
}
com.clarifai.grpc.api.Task other = (com.clarifai.grpc.api.Task) obj;
if (!getId()
.equals(other.getId())) 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 (type_ != other.type_) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (hasWorker() != other.hasWorker()) return false;
if (hasWorker()) {
if (!getWorker()
.equals(other.getWorker())) return false;
}
if (!getConceptIdsList()
.equals(other.getConceptIdsList())) return false;
if (hasInputSource() != other.hasInputSource()) return false;
if (hasInputSource()) {
if (!getInputSource()
.equals(other.getInputSource())) return false;
}
if (getSampleMs()
!= other.getSampleMs()) return false;
if (hasAiAssistant() != other.hasAiAssistant()) return false;
if (hasAiAssistant()) {
if (!getAiAssistant()
.equals(other.getAiAssistant())) return false;
}
if (hasReview() != other.hasReview()) return false;
if (hasReview()) {
if (!getReview()
.equals(other.getReview())) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (hasAiAssistParams() != other.hasAiAssistParams()) return false;
if (hasAiAssistParams()) {
if (!getAiAssistParams()
.equals(other.getAiAssistParams())) return false;
}
if (hasVisibility() != other.hasVisibility()) return false;
if (hasVisibility()) {
if (!getVisibility()
.equals(other.getVisibility())) return false;
}
if (!getAppId()
.equals(other.getAppId())) return false;
if (!getUserId()
.equals(other.getUserId())) return false;
if (!getLabelOrderId()
.equals(other.getLabelOrderId())) return false;
if (!getConceptsList()
.equals(other.getConceptsList())) return false;
if (getDeletePreviousAnnotations()
!= other.getDeletePreviousAnnotations()) 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();
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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (hasWorker()) {
hash = (37 * hash) + WORKER_FIELD_NUMBER;
hash = (53 * hash) + getWorker().hashCode();
}
if (getConceptIdsCount() > 0) {
hash = (37 * hash) + CONCEPT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getConceptIdsList().hashCode();
}
if (hasInputSource()) {
hash = (37 * hash) + INPUT_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getInputSource().hashCode();
}
hash = (37 * hash) + SAMPLE_MS_FIELD_NUMBER;
hash = (53 * hash) + getSampleMs();
if (hasAiAssistant()) {
hash = (37 * hash) + AI_ASSISTANT_FIELD_NUMBER;
hash = (53 * hash) + getAiAssistant().hashCode();
}
if (hasReview()) {
hash = (37 * hash) + REVIEW_FIELD_NUMBER;
hash = (53 * hash) + getReview().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasAiAssistParams()) {
hash = (37 * hash) + AI_ASSIST_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getAiAssistParams().hashCode();
}
if (hasVisibility()) {
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getVisibility().hashCode();
}
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
hash = (37 * hash) + LABEL_ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLabelOrderId().hashCode();
if (getConceptsCount() > 0) {
hash = (37 * hash) + CONCEPTS_FIELD_NUMBER;
hash = (53 * hash) + getConceptsList().hashCode();
}
hash = (37 * hash) + DELETE_PREVIOUS_ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeletePreviousAnnotations());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.Task parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Task 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.Task parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Task 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.Task parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Task parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Task parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Task 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.Task parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Task 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.Task parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Task 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.Task 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;
}
/**
*
* Task is the work that needs to be done for labeling the inputs in an app.
*
*
* 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;
}
}
/**
*
* Unique ID for the task.
*
*
* 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;
}
}
/**
*
* Unique ID for the task.
*
*
* 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;
}
/**
*
* Unique ID for the task.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Unique ID for the task.
*
*
* 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 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 task was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .google.protobuf.Timestamp created_at = 2;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* When the task was created.
* The format is https://www.ietf.org/rfc/rfc3339.txt.
* Example: "2006-01-02T15:04:05.999999Z".
*
*
* .clarifai.api.Task.TaskType type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Task type.
*
*
* .clarifai.api.Task.TaskType type = 4;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Task type.
*
*
* .clarifai.api.Task.TaskType type = 4;
* @return The type.
*/
@java.lang.Override
public com.clarifai.grpc.api.Task.TaskType getType() {
@SuppressWarnings("deprecation")
com.clarifai.grpc.api.Task.TaskType result = com.clarifai.grpc.api.Task.TaskType.valueOf(type_);
return result == null ? com.clarifai.grpc.api.Task.TaskType.UNRECOGNIZED : result;
}
/**
*
* Task type.
*
*
* .clarifai.api.Task.TaskType type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.clarifai.grpc.api.Task.TaskType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Task type.
*
*
* .clarifai.api.Task.TaskType type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @return A list containing the conceptIds.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
getConceptIdsList() {
return conceptIds_.getUnmodifiableView();
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @return The count of conceptIds.
*/
@java.lang.Deprecated public int getConceptIdsCount() {
return conceptIds_.size();
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param index The index of the element to return.
* @return The conceptIds at the given index.
*/
@java.lang.Deprecated public java.lang.String getConceptIds(int index) {
return conceptIds_.get(index);
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param index The index of the value to return.
* @return The bytes of the conceptIds at the given index.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getConceptIdsBytes(int index) {
return conceptIds_.getByteString(index);
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param index The index to set the value at.
* @param value The conceptIds to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setConceptIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConceptIdsIsMutable();
conceptIds_.set(index, value);
onChanged();
return this;
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param value The conceptIds to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addConceptIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConceptIdsIsMutable();
conceptIds_.add(value);
onChanged();
return this;
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param values The conceptIds to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllConceptIds(
java.lang.Iterable values) {
ensureConceptIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conceptIds_);
onChanged();
return this;
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearConceptIds() {
conceptIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* List of concept ids used in the work of this task.
* DEPRECATED: Use task.concepts instead.
*
*
* repeated string concept_ids = 7 [deprecated = true];
* @deprecated clarifai.api.Task.concept_ids is deprecated.
* See proto/clarifai/api/resources.proto;l=2985
* @param value The bytes of the conceptIds to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addConceptIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureConceptIdsIsMutable();
conceptIds_.add(value);
onChanged();
return this;
}
private com.clarifai.grpc.api.TaskInputSource inputSource_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.TaskInputSource, com.clarifai.grpc.api.TaskInputSource.Builder, com.clarifai.grpc.api.TaskInputSourceOrBuilder> inputSourceBuilder_;
/**
*
* List of inputs used in this task will be taken from this source.
*
*
* .clarifai.api.TaskInputSource input_source = 8;
* @return Whether the inputSource field is set.
*/
public boolean hasInputSource() {
return inputSourceBuilder_ != null || inputSource_ != null;
}
/**
*
* List of inputs used in this task will be taken from this source.
*
*
* .clarifai.api.status.Status status = 12;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
*
* Status of this task.
*
*
* .clarifai.api.status.Status status = 12;
* @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();
}
}
/**
*
* Status of this task.
*
*
* .clarifai.api.status.Status status = 12;
*/
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;
}
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
*
* string name = 13;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
*
* string name = 13;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
*
* string name = 13;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
*
* string name = 13;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Add a title for this task to quickly recognise it in a list of tasks.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
* @return Whether the visibility field is set.
*/
public boolean hasVisibility() {
return visibilityBuilder_ != null || visibility_ != null;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
*
* .clarifai.api.Visibility visibility = 15;
*/
public Builder setVisibility(com.clarifai.grpc.api.Visibility value) {
if (visibilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
visibility_ = value;
onChanged();
} else {
visibilityBuilder_.setMessage(value);
}
return this;
}
/**
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* The visibility field represents whether this message is privately/publicly visible.
* To be visible to the public the App that contains it AND the User that contains the App must
* also be publicly visible.
*
* Specify whether existing Annotations within the same app that are generated by other auto annotation tasks
* with the specified Concept from the selected Model or Workflow should deleted before executing the Task
*
* Specify whether existing Annotations within the same app that are generated by other auto annotation tasks
* with the specified Concept from the selected Model or Workflow should deleted before executing the Task
*
*
* bool delete_previous_annotations = 20;
* @param value The deletePreviousAnnotations to set.
* @return This builder for chaining.
*/
public Builder setDeletePreviousAnnotations(boolean value) {
deletePreviousAnnotations_ = value;
onChanged();
return this;
}
/**
*
* Specify whether existing Annotations within the same app that are generated by other auto annotation tasks
* with the specified Concept from the selected Model or Workflow should deleted before executing the Task
*
*
* bool delete_previous_annotations = 20;
* @return This builder for chaining.
*/
public Builder clearDeletePreviousAnnotations() {
deletePreviousAnnotations_ = false;
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.Task)
}
// @@protoc_insertion_point(class_scope:clarifai.api.Task)
private static final com.clarifai.grpc.api.Task DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.Task();
}
public static com.clarifai.grpc.api.Task getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Task parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Task(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.Task getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}