# Generated by the protocol buffer compiler.  DO NOT EDIT!
# sources: acp_enumdef.proto
# plugin: python-betterproto
from dataclasses import dataclass

import betterproto


class Errors(betterproto.Enum):
    """Enumeration of error codes"""

    ACP_ERR_FAILED = 0
    ACP_ERR_OK = 1
    ACP_ERR_NORTIME = 2
    ACP_ERR_ALLOCLOCKEDMEM = 3
    ACP_ERR_WRONGRECEIVEHMSG = 4
    ACP_ERR_TARGETPORTNOTFOUND = 5
    ACP_ERR_TARGETMACHINENOTFOUND = 6
    ACP_ERR_UNKNOWNCMDID = 7
    ACP_ERR_BADTASKID = 8
    ACP_ERR_NOIO = 9
    ACP_ERR_PORTNOTCONNECTED = 10
    ACP_ERR_INVALIDAMSLENGTH = 11
    ACP_ERR_INVALIDAMSNETID = 12
    ACP_ERR_PORTALREADYCONNECTED = 13
    ACP_ERR_AMSSYNC_TIMEOUT = 14
    ACP_ERR_AMSSYNC_AMSERROR = 15
    ACP_ERR_NOMEMORY = 16
    ACP_ERR_TCPSEND = 17
    ACP_ERR_HOSTUNREACHABLE = 18
    ACP_ERR_INVALIDAMSFRAGMENT = 19
    ACP_ERR_TLSSEND = 20
    ACP_ERR_ACCESSDENIED = 21
    ACP_ERR_SERIALIZED = 22
    ACP_ERR_DESERIALIZED = 23
    ACP_ERR_ALREADYEXISTS = 24
    ACP_ERR_UNINITIALIZED = 25
    ACP_ERR_IDGROUPNOTFOUND = 26
    ACP_ERR_ALG_IMG_NOT_EXIST = 10001
    ACP_ERR_ALG_PARAM = 10002
    ACP_ERR_ALG_CREATE_IMG_FAIL = 10003


class Idgroups(betterproto.Enum):
    IGR_INVALID = 0
    ALG_CV_CREATE_GRAYIMG = 10001
    ALG_CV_MODIFY_GRAYIMG = 10002
    ALG_CV_READ_IMGSINFO = 10003
    ALG_CV_READ_IMG = 10004
    ALG_CV_GRAB_HKIMG = 10005
    ALG_CV_DET_GRAY = 10006
    ALG_CV_MASK_GRAY = 10007
    ALG_CV_RGB_GRAY = 10008
    # ALG_CV_GAUSSBLUR = 10009; ALG_CV_CANNY = 10010;
    ALG_CV_GET_IMAGE = 10011
    # basic
    ALG_CV_READIMAGE = 10101
    ALG_CV_WRITEIMAGE = 10102
    ALG_CV_ENCODEIMAGE = 10103
    ALG_CV_DECODEIMAGE = 10104
    ALG_CV_IMAGESHAPE = 10105
    ALG_CV_NORMALIZE = 10106
    ALG_CV_MINMAXLOC = 10107
    # draw
    ALG_CV_LINE = 100201
    ALG_CV_CONTOUR = 10202
    ALG_CV_CONTLIST = 10203
    ALG_CV_RECT = 10204
    ALG_CV_RECTROTATE = 10205
    ALG_CV_CIRCLE = 10206
    ALG_CV_ELLIPSE = 10207
    ALG_CV_POLYGON = 10208
    ALG_CV_ARROW = 10209
    ALG_CV_MAKER = 10210
    ALG_CV_TEXT = 10211
    ALG_CV_MASK = 10212
    ALG_CV_CONTOURS = 10213
    ALG_CV_FILLRECT = 10214
    ALG_CV_MERGEDEPTHRBG = 10215
    # image
    ALG_CV_MEDIANBLUR = 10301
    ALG_CV_MEANBLUR = 10302
    ALG_CV_GAUSSBLUR = 10303
    ALG_CV_BOXFILTER = 10304
    ALG_CV_BILATERALFILTER = 10305
    ALG_CV_SCHARR = 10306
    ALG_CV_SOBEL = 10307
    ALG_CV_LAPLACIAN = 10308
    ALG_CV_CANNY = 10309
    ALG_CV_ERODE = 10310
    ALG_CV_DILATE = 10311
    ALG_CV_OPENING = 10312
    ALG_CV_CLOSING = 10313
    ALG_CV_GETSTRUCTURINGELEMENT = 10314
    ALG_CV_MORPHOLOGYEX = 10315
    ALG_CV_THRESHOLD = 10316
    ALG_CV_ADAPTIVETHRESHOLD = 10317
    ALG_CV_RGBTOGRAY = 10318
    # new
    ALG_CV_FINDCONTOURS = 10401
    ALG_CV_HOUGHCIRCLES = 10402
    ALG_CV_MATCHTEMPLATE = 10403
    ALG_CV_MATCHGRAY = 10404
    PLC_READSYMBOL = 20001
    PLC_WRITESYMBOL = 20002
    PLC_SETAPPSTATUS = 20003
    PLC_GETAPPSTATUS = 20004
    PLC_GETSTATUS = 20005
    PLC_GETPLCSTATUS = 20006
    PLC_SETPLCSTATUS = 20007
    PLC_RESET = 20008
    PLC_APPBACKUP = 20009
    PLC_APPRESTORE = 20010
    PLC_APPRESET = 20011
    PLC_SERIALBNUMBER = 20012
    PLC_RTE_EVENTCALLBACK = 20013
    DB_CREATECONNECT = 30001
    DB_CREATETABLE = 30002
    DB_READSTRUCT = 30003
    DB_WRITESTRUCT = 30004


class States(betterproto.Enum):
    STATE_INVALID = 0
    STATE_IDLE = 1
    STATE_RESET = 2
    STATE_INIT = 3
    STATE_START = 4
    STATE_RUN = 5
    STATE_STOP = 6
    STATE_SAVECONFIG = 7
    STATE_LOADCONFIG = 8
    STATE_POWERFAILURE = 9
    STATE_POWERGOOD = 10
    STATE_ERROR = 11
    STATE_SHUTDOWN = 12
    STATE_SUSPEND = 13
    STATE_RESUME = 14
    STATE_CONFIG = 15
    STATE_RECONFIG = 16
    STATE_STOPPING = 17
    STATE_INCOMPATIBLE = 18
    STATE_EXCEPTION = 19


class DeviceState(betterproto.Enum):
    DEVICE_INVALID = 0
    DEVICE_RUNNING = 1
    DEVICE_STOP = 2
    DEVICE_WAITING = 3
