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

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

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

package com.clarifai.grpc.api;

/**
 * Protobuf enum {@code clarifai.api.PutTaskAssignmentsRequestAction}
 */
public enum PutTaskAssignmentsRequestAction
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET = 0;
   */
  PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET(0),
  /**
   * 
   * Create a list of task assignments for labeler => 10 inputs are assigned to the labeler.
   * This is a fully sync action.
   * If task assignments already exist, then return existing task assignments.
   * 
* * LABEL_START = 1; */ LABEL_START(1), /** *
   * Submit task assignments => mark task assignment work as completed.
   * This is a partially sync action.
   * Sync: task assignments are updated as follows:
   * * when review_strategy is NONE, then task assignment status is updated to SUCCESS.
   * * when review strategy is CONSENSUS, then task assignment status is updated to AWAITING_CONSENSUS_REVIEW.
   * * when review strategy is MANUAL, then task assignment status is updated to AWAITING_REVIEW.
   * If task assignments are already submitted, then no update is performed on them.
   * Async: annotations added for the same input as the task assignment are updated as follows:
   * * when review_strategy is NONE, then annotation status is updated to SUCCESS.
   * * when review strategy is CONSENSUS, then annotation status is updated to SUCCESS (if it reaches consensus) or AWAITING_REVIEW (if it does not reach consensus).
   * * when review strategy is MANUAL, then annotation status is updated to AWAITING_REVIEW.
   * 
* * LABEL_SUBMIT = 2; */ LABEL_SUBMIT(2), /** *
   * Return a list of task assignments for reviewer to review => 10 inputs are assigned to the reviewer.
   * This is a fully sync action.
   * NOT idempotent:
   *  In the current implementation, we don't actually store the reviewer in the task assignment,
   *  as the task assignment still stays assigned to the labeler.
   *  Therefore, multiple calls to this endpoint may result in different set of task assignments to review.
   *  For now, this action is practically not idempotent.
   *  In the future, we could however store the reviewer in the task assignment and
   *  return existing task assignments already assigned to the reviewer => this will make this action idempotent.
   * 
* * REVIEW_START = 10; */ REVIEW_START(10), /** *
   * Approve task assignments.
   * There are two types of configurations:
   * * Batch approve: approve a list of task assignment IDs;
   * * Bulk approve: approve all task assignments from a list of workers.
   * This is a partially sync action.
   * Sync: task assignments are updated to SUCCESS
   * Async: annotations added for the same input as the task assignment are updated to SUCCESS
   * 
* * REVIEW_APPROVE = 11; */ REVIEW_APPROVE(11), /** *
   * Request changes for task assignments.
   * There are two types of configurations:
   * * Batch request changes: request changes for a list of task assignment IDs;
   * * Bulk request changes: request changes for all task assignments from a list of workers.
   * This is a partially sync action.
   * Sync: task assignments are updated to PENDING
   * Async: annotations added for the same input as the task assignment are updated to PENDING
   * 
* * REVIEW_REQUEST_CHANGES = 12; */ REVIEW_REQUEST_CHANGES(12), /** *
   * Reject task assignments.
   * There are two types of configurations:
   * * Batch reject: reject a list of task assignment IDs;
   * * Bulk reject: reject all task assignments from a list of workers.
   * This is a partially sync action.
   * Sync: task assignments are updated to REVIEW_DENIED
   * Async: annotations added for the same input as the task assignment are updated to REVIEW_DENIED
   * 
* * REVIEW_REJECT = 13; */ REVIEW_REJECT(13), UNRECOGNIZED(-1), ; /** * PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET = 0; */ public static final int PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET_VALUE = 0; /** *
   * Create a list of task assignments for labeler => 10 inputs are assigned to the labeler.
   * This is a fully sync action.
   * If task assignments already exist, then return existing task assignments.
   * 
* * LABEL_START = 1; */ public static final int LABEL_START_VALUE = 1; /** *
   * Submit task assignments => mark task assignment work as completed.
   * This is a partially sync action.
   * Sync: task assignments are updated as follows:
   * * when review_strategy is NONE, then task assignment status is updated to SUCCESS.
   * * when review strategy is CONSENSUS, then task assignment status is updated to AWAITING_CONSENSUS_REVIEW.
   * * when review strategy is MANUAL, then task assignment status is updated to AWAITING_REVIEW.
   * If task assignments are already submitted, then no update is performed on them.
   * Async: annotations added for the same input as the task assignment are updated as follows:
   * * when review_strategy is NONE, then annotation status is updated to SUCCESS.
   * * when review strategy is CONSENSUS, then annotation status is updated to SUCCESS (if it reaches consensus) or AWAITING_REVIEW (if it does not reach consensus).
   * * when review strategy is MANUAL, then annotation status is updated to AWAITING_REVIEW.
   * 
* * LABEL_SUBMIT = 2; */ public static final int LABEL_SUBMIT_VALUE = 2; /** *
   * Return a list of task assignments for reviewer to review => 10 inputs are assigned to the reviewer.
   * This is a fully sync action.
   * NOT idempotent:
   *  In the current implementation, we don't actually store the reviewer in the task assignment,
   *  as the task assignment still stays assigned to the labeler.
   *  Therefore, multiple calls to this endpoint may result in different set of task assignments to review.
   *  For now, this action is practically not idempotent.
   *  In the future, we could however store the reviewer in the task assignment and
   *  return existing task assignments already assigned to the reviewer => this will make this action idempotent.
   * 
* * REVIEW_START = 10; */ public static final int REVIEW_START_VALUE = 10; /** *
   * Approve task assignments.
   * There are two types of configurations:
   * * Batch approve: approve a list of task assignment IDs;
   * * Bulk approve: approve all task assignments from a list of workers.
   * This is a partially sync action.
   * Sync: task assignments are updated to SUCCESS
   * Async: annotations added for the same input as the task assignment are updated to SUCCESS
   * 
* * REVIEW_APPROVE = 11; */ public static final int REVIEW_APPROVE_VALUE = 11; /** *
   * Request changes for task assignments.
   * There are two types of configurations:
   * * Batch request changes: request changes for a list of task assignment IDs;
   * * Bulk request changes: request changes for all task assignments from a list of workers.
   * This is a partially sync action.
   * Sync: task assignments are updated to PENDING
   * Async: annotations added for the same input as the task assignment are updated to PENDING
   * 
* * REVIEW_REQUEST_CHANGES = 12; */ public static final int REVIEW_REQUEST_CHANGES_VALUE = 12; /** *
   * Reject task assignments.
   * There are two types of configurations:
   * * Batch reject: reject a list of task assignment IDs;
   * * Bulk reject: reject all task assignments from a list of workers.
   * This is a partially sync action.
   * Sync: task assignments are updated to REVIEW_DENIED
   * Async: annotations added for the same input as the task assignment are updated to REVIEW_DENIED
   * 
* * REVIEW_REJECT = 13; */ public static final int REVIEW_REJECT_VALUE = 13; 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 PutTaskAssignmentsRequestAction 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 PutTaskAssignmentsRequestAction forNumber(int value) { switch (value) { case 0: return PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET; case 1: return LABEL_START; case 2: return LABEL_SUBMIT; case 10: return REVIEW_START; case 11: return REVIEW_APPROVE; case 12: return REVIEW_REQUEST_CHANGES; case 13: return REVIEW_REJECT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PutTaskAssignmentsRequestAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PutTaskAssignmentsRequestAction findValueByNumber(int number) { return PutTaskAssignmentsRequestAction.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.Service.getDescriptor().getEnumTypes().get(1); } private static final PutTaskAssignmentsRequestAction[] VALUES = values(); public static PutTaskAssignmentsRequestAction 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 PutTaskAssignmentsRequestAction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:clarifai.api.PutTaskAssignmentsRequestAction) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy