ali2210/WizDwarf

View on GitHub
errors_codes/codes.pb.go

Summary

Maintainability
A
0 mins
Test Coverage
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: errors_codes/codes.proto

/*
Package error_codes is a generated protocol buffer package.

It is generated from these files:
    errors_codes/codes.proto

It has these top-level messages:
*/
package error_codes

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package

type File_BAD_REQUEST_CODE int32

const (
    File_BAD_REQUEST_CODE_FILE_NOT_FOUND         File_BAD_REQUEST_CODE = 0
    File_BAD_REQUEST_CODE_DIRECTORY_NOT_FOUND    File_BAD_REQUEST_CODE = 1
    File_BAD_REQUEST_CODE_SAME_FILE_NAME         File_BAD_REQUEST_CODE = 2
    File_BAD_REQUEST_CODE_FILE_PERMISSION_FAILED File_BAD_REQUEST_CODE = 3
    File_BAD_REQUEST_CODE_FILE_CLOSED            File_BAD_REQUEST_CODE = 4
    File_BAD_REQUEST_CODE_WRITE_FAILED           File_BAD_REQUEST_CODE = 5
    File_BAD_REQUEST_CODE_READ_FAILED            File_BAD_REQUEST_CODE = 6
    File_BAD_REQUEST_CODE_SYNC_FAILED            File_BAD_REQUEST_CODE = 7
    File_BAD_REQUEST_CODE_FILE_NAMING_CONVERSION File_BAD_REQUEST_CODE = 8
    File_BAD_REQUEST_CODE_FILE_PATH_ERROR        File_BAD_REQUEST_CODE = 9
)

var File_BAD_REQUEST_CODE_name = map[int32]string{
    0: "FILE_NOT_FOUND",
    1: "DIRECTORY_NOT_FOUND",
    2: "SAME_FILE_NAME",
    3: "FILE_PERMISSION_FAILED",
    4: "FILE_CLOSED",
    5: "WRITE_FAILED",
    6: "READ_FAILED",
    7: "SYNC_FAILED",
    8: "FILE_NAMING_CONVERSION",
    9: "FILE_PATH_ERROR",
}
var File_BAD_REQUEST_CODE_value = map[string]int32{
    "FILE_NOT_FOUND":         0,
    "DIRECTORY_NOT_FOUND":    1,
    "SAME_FILE_NAME":         2,
    "FILE_PERMISSION_FAILED": 3,
    "FILE_CLOSED":            4,
    "WRITE_FAILED":           5,
    "READ_FAILED":            6,
    "SYNC_FAILED":            7,
    "FILE_NAMING_CONVERSION": 8,
    "FILE_PATH_ERROR":        9,
}

func (x File_BAD_REQUEST_CODE) String() string {
    return proto.EnumName(File_BAD_REQUEST_CODE_name, int32(x))
}
func (File_BAD_REQUEST_CODE) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

type FileDescriptor int32

const (
    FileDescriptor_READ_ONLY  FileDescriptor = 0
    FileDescriptor_WRITE_ONLY FileDescriptor = 1
    FileDescriptor_CHDIR      FileDescriptor = 2
    FileDescriptor_CHMOD      FileDescriptor = 3
)

var FileDescriptor_name = map[int32]string{
    0: "READ_ONLY",
    1: "WRITE_ONLY",
    2: "CHDIR",
    3: "CHMOD",
}
var FileDescriptor_value = map[string]int32{
    "READ_ONLY":  0,
    "WRITE_ONLY": 1,
    "CHDIR":      2,
    "CHMOD":      3,
}

func (x FileDescriptor) String() string {
    return proto.EnumName(FileDescriptor_name, int32(x))
}
func (FileDescriptor) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

type Router_ERROR_CODE int32

const (
    Router_ERROR_CODE_BLANK_URL         Router_ERROR_CODE = 0
    Router_ERROR_CODE_ERR_MALICIOUS_URL Router_ERROR_CODE = 1
    Router_ERROR_CODE_EMPTY_RESPONSE    Router_ERROR_CODE = 2
    Router_ERROR_CODE_EMPTY_REQUEST     Router_ERROR_CODE = 3
    Router_ERROR_CODE_HIJACK_URL        Router_ERROR_CODE = 4
)

var Router_ERROR_CODE_name = map[int32]string{
    0: "BLANK_URL",
    1: "ERR_MALICIOUS_URL",
    2: "EMPTY_RESPONSE",
    3: "EMPTY_REQUEST",
    4: "HIJACK_URL",
}
var Router_ERROR_CODE_value = map[string]int32{
    "BLANK_URL":         0,
    "ERR_MALICIOUS_URL": 1,
    "EMPTY_RESPONSE":    2,
    "EMPTY_REQUEST":     3,
    "HIJACK_URL":        4,
}

func (x Router_ERROR_CODE) String() string {
    return proto.EnumName(Router_ERROR_CODE_name, int32(x))
}
func (Router_ERROR_CODE) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }

type Operation_ERROR_CODE int32

const (
    Operation_ERROR_CODE_EMPTY_INPUT      Operation_ERROR_CODE = 0
    Operation_ERROR_CODE_EMPTY_OUTPUT     Operation_ERROR_CODE = 1
    Operation_ERROR_CODE_GARBAGE_VALUE    Operation_ERROR_CODE = 2
    Operation_ERROR_CODE__DUMP            Operation_ERROR_CODE = 3
    Operation_ERROR_CODE_UNEXPECTED_STATE Operation_ERROR_CODE = 4
    Operation_ERROR_CODE_OVERFLOW_STATE   Operation_ERROR_CODE = 5
    Operation_ERROR_CODE_UNDERFLOW_STATE  Operation_ERROR_CODE = 6
    Operation_ERROR_CODE_MISMATCH_STATE   Operation_ERROR_CODE = 7
)

var Operation_ERROR_CODE_name = map[int32]string{
    0: "EMPTY_INPUT",
    1: "EMPTY_OUTPUT",
    2: "GARBAGE_VALUE",
    3: "_DUMP",
    4: "UNEXPECTED_STATE",
    5: "OVERFLOW_STATE",
    6: "UNDERFLOW_STATE",
    7: "MISMATCH_STATE",
}
var Operation_ERROR_CODE_value = map[string]int32{
    "EMPTY_INPUT":      0,
    "EMPTY_OUTPUT":     1,
    "GARBAGE_VALUE":    2,
    "_DUMP":            3,
    "UNEXPECTED_STATE": 4,
    "OVERFLOW_STATE":   5,
    "UNDERFLOW_STATE":  6,
    "MISMATCH_STATE":   7,
}

func (x Operation_ERROR_CODE) String() string {
    return proto.EnumName(Operation_ERROR_CODE_name, int32(x))
}
func (Operation_ERROR_CODE) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }

type OPTION_CODE int32

const (
    OPTION_CODE_NONE  OPTION_CODE = 0
    OPTION_CODE_OK    OPTION_CODE = 1
    OPTION_CODE_ERROR OPTION_CODE = 2
)

var OPTION_CODE_name = map[int32]string{
    0: "NONE",
    1: "OK",
    2: "ERROR",
}
var OPTION_CODE_value = map[string]int32{
    "NONE":  0,
    "OK":    1,
    "ERROR": 2,
}

func (x OPTION_CODE) String() string {
    return proto.EnumName(OPTION_CODE_name, int32(x))
}
func (OPTION_CODE) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }

type JSON_CODE int32

const (
    JSON_CODE_MARSHAL_ERROR   JSON_CODE = 0
    JSON_CODE_UNMARSHAL_ERROR JSON_CODE = 1
)

var JSON_CODE_name = map[int32]string{
    0: "MARSHAL_ERROR",
    1: "UNMARSHAL_ERROR",
}
var JSON_CODE_value = map[string]int32{
    "MARSHAL_ERROR":   0,
    "UNMARSHAL_ERROR": 1,
}

func (x JSON_CODE) String() string {
    return proto.EnumName(JSON_CODE_name, int32(x))
}
func (JSON_CODE) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }

type DATABASE_ERRORS int32

const (
    DATABASE_ERRORS_CLIENT_CONNECTION_ERROR  DATABASE_ERRORS = 0
    DATABASE_ERRORS_ALREADY_DOCUMENT_EXISTS  DATABASE_ERRORS = 1
    DATABASE_ERRORS_DOCUMENT_CREATE_ERROR    DATABASE_ERRORS = 2
    DATABASE_ERRORS_DOCUMENT_DELETE_ERROR    DATABASE_ERRORS = 3
    DATABASE_ERRORS_DOCUMENT_SEARCH_ERROR    DATABASE_ERRORS = 4
    DATABASE_ERRORS_DOCUMENT_UPDATE_ERROR    DATABASE_ERRORS = 5
    DATABASE_ERRORS_DOCUMENT_ITERATION_ERROR DATABASE_ERRORS = 6
    DATABASE_ERRORS_DOCUMENT_READ_ERROR      DATABASE_ERRORS = 7
    DATABASE_ERRORS_DOCUMENT_WRITE_ERROR     DATABASE_ERRORS = 8
)

var DATABASE_ERRORS_name = map[int32]string{
    0: "CLIENT_CONNECTION_ERROR",
    1: "ALREADY_DOCUMENT_EXISTS",
    2: "DOCUMENT_CREATE_ERROR",
    3: "DOCUMENT_DELETE_ERROR",
    4: "DOCUMENT_SEARCH_ERROR",
    5: "DOCUMENT_UPDATE_ERROR",
    6: "DOCUMENT_ITERATION_ERROR",
    7: "DOCUMENT_READ_ERROR",
    8: "DOCUMENT_WRITE_ERROR",
}
var DATABASE_ERRORS_value = map[string]int32{
    "CLIENT_CONNECTION_ERROR":  0,
    "ALREADY_DOCUMENT_EXISTS":  1,
    "DOCUMENT_CREATE_ERROR":    2,
    "DOCUMENT_DELETE_ERROR":    3,
    "DOCUMENT_SEARCH_ERROR":    4,
    "DOCUMENT_UPDATE_ERROR":    5,
    "DOCUMENT_ITERATION_ERROR": 6,
    "DOCUMENT_READ_ERROR":      7,
    "DOCUMENT_WRITE_ERROR":     8,
}

func (x DATABASE_ERRORS) String() string {
    return proto.EnumName(DATABASE_ERRORS_name, int32(x))
}
func (DATABASE_ERRORS) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }

type CHANNEL_ERROR int32

const (
    CHANNEL_ERROR_CHANNEL_CLOSED         CHANNEL_ERROR = 0
    CHANNEL_ERROR_CHANNEL_BUFFER_GARBAGE CHANNEL_ERROR = 1
    CHANNEL_ERROR_CHANNEL_QUEUE_ERROR    CHANNEL_ERROR = 2
)

var CHANNEL_ERROR_name = map[int32]string{
    0: "CHANNEL_CLOSED",
    1: "CHANNEL_BUFFER_GARBAGE",
    2: "CHANNEL_QUEUE_ERROR",
}
var CHANNEL_ERROR_value = map[string]int32{
    "CHANNEL_CLOSED":         0,
    "CHANNEL_BUFFER_GARBAGE": 1,
    "CHANNEL_QUEUE_ERROR":    2,
}

func (x CHANNEL_ERROR) String() string {
    return proto.EnumName(CHANNEL_ERROR_name, int32(x))
}
func (CHANNEL_ERROR) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }

func init() {
    proto.RegisterEnum("error_codes.File_BAD_REQUEST_CODE", File_BAD_REQUEST_CODE_name, File_BAD_REQUEST_CODE_value)
    proto.RegisterEnum("error_codes.FileDescriptor", FileDescriptor_name, FileDescriptor_value)
    proto.RegisterEnum("error_codes.Router_ERROR_CODE", Router_ERROR_CODE_name, Router_ERROR_CODE_value)
    proto.RegisterEnum("error_codes.Operation_ERROR_CODE", Operation_ERROR_CODE_name, Operation_ERROR_CODE_value)
    proto.RegisterEnum("error_codes.OPTION_CODE", OPTION_CODE_name, OPTION_CODE_value)
    proto.RegisterEnum("error_codes.JSON_CODE", JSON_CODE_name, JSON_CODE_value)
    proto.RegisterEnum("error_codes.DATABASE_ERRORS", DATABASE_ERRORS_name, DATABASE_ERRORS_value)
    proto.RegisterEnum("error_codes.CHANNEL_ERROR", CHANNEL_ERROR_name, CHANNEL_ERROR_value)
}

func init() { proto.RegisterFile("errors_codes/codes.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
    // 629 bytes of a gzipped FileDescriptorProto
    0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x94, 0x5d, 0x52, 0xe3, 0x38,
    0x10, 0xc7, 0xe3, 0x7c, 0x41, 0x3a, 0x1b, 0xa2, 0x08, 0x58, 0xd8, 0x65, 0x4f, 0xe0, 0x87, 0xdd,
    0x07, 0x4e, 0xa0, 0x48, 0x1d, 0x22, 0xb0, 0x25, 0xa3, 0x0f, 0x20, 0x4f, 0xaa, 0x1d, 0x26, 0x0f,
    0x54, 0x4d, 0x4d, 0x52, 0x26, 0x73, 0x87, 0x39, 0xcb, 0x1c, 0x6d, 0x4e, 0x31, 0x25, 0x2b, 0xce,
    0x90, 0x97, 0x54, 0xfc, 0xfb, 0xb7, 0xbb, 0x5b, 0xff, 0x6e, 0x19, 0xae, 0xd7, 0x75, 0xbd, 0xa9,
    0xdf, 0xc3, 0xeb, 0xe6, 0xf3, 0xfa, 0xfd, 0xbf, 0xe6, 0xf7, 0xdf, 0x6d, 0xbd, 0xd9, 0x6d, 0xe8,
    0xb8, 0x51, 0x92, 0x90, 0xff, 0xcc, 0xe0, 0x72, 0xf1, 0xf6, 0x65, 0x1d, 0xe6, 0x4c, 0x04, 0x83,
    0x8f, 0x1e, 0xad, 0x0b, 0x5c, 0x0b, 0xa4, 0x14, 0xce, 0x16, 0xb2, 0xc0, 0xa0, 0xb4, 0x0b, 0x0b,
    0xed, 0x95, 0x20, 0x1d, 0x7a, 0x05, 0xe7, 0x42, 0x1a, 0xe4, 0x4e, 0x9b, 0xd5, 0x07, 0x21, 0x8b,
    0xc1, 0x96, 0x95, 0x18, 0xd2, 0x1b, 0xac, 0x44, 0xd2, 0xa5, 0x7f, 0xc3, 0x9f, 0xcd, 0x63, 0x85,
    0xa6, 0x94, 0xd6, 0x4a, 0xad, 0xc2, 0x82, 0xc9, 0x02, 0x05, 0xe9, 0xd1, 0x29, 0x8c, 0x1b, 0x8d,
    0x17, 0xda, 0xa2, 0x20, 0x7d, 0x4a, 0xe0, 0x8f, 0x67, 0x23, 0x1d, 0xb6, 0x21, 0x83, 0x18, 0x62,
    0x90, 0x89, 0x16, 0x0c, 0x23, 0xb0, 0x2b, 0xc5, 0x5b, 0x70, 0x72, 0x28, 0xa0, 0x58, 0x29, 0xd5,
    0x5d, 0xe0, 0x5a, 0x3d, 0xa1, 0x89, 0x75, 0xc8, 0x29, 0x3d, 0x87, 0x69, 0x2a, 0xce, 0xdc, 0x32,
    0xa0, 0x31, 0xda, 0x90, 0x51, 0x8e, 0x70, 0x16, 0xcf, 0x2a, 0xd6, 0xef, 0xaf, 0xf5, 0xdb, 0x76,
    0xb7, 0xa9, 0xe9, 0x04, 0x46, 0x4d, 0x11, 0xad, 0x8a, 0x15, 0xe9, 0xd0, 0x33, 0x80, 0xd4, 0x45,
    0xf3, 0x9c, 0xd1, 0x11, 0x0c, 0xf8, 0x52, 0x48, 0x43, 0xba, 0xe9, 0x6f, 0xa9, 0x05, 0xe9, 0xe5,
    0x5b, 0x98, 0x99, 0xcd, 0xb7, 0xdd, 0xba, 0x4e, 0x89, 0x93, 0x5d, 0x13, 0x18, 0xcd, 0x0b, 0xa6,
    0x1e, 0x82, 0x37, 0x05, 0xe9, 0xd0, 0x4b, 0x98, 0xa1, 0x31, 0xa1, 0x64, 0x85, 0xe4, 0x52, 0x7b,
    0xdb, 0xe0, 0xc6, 0x27, 0x2c, 0x2b, 0xb7, 0x0a, 0x06, 0x6d, 0xa5, 0x95, 0x8d, 0x3e, 0xcd, 0x60,
    0xd2, 0xb2, 0xc6, 0x7e, 0xd2, 0x8b, 0x7d, 0x2c, 0xe5, 0x3d, 0xe3, 0x29, 0x5b, 0x3f, 0xff, 0x91,
    0xc1, 0x85, 0xde, 0xae, 0xeb, 0xff, 0x77, 0x6f, 0x9b, 0xaf, 0x1f, 0xab, 0x4e, 0x61, 0x9c, 0xde,
    0x95, 0xaa, 0xf2, 0x8e, 0x74, 0xa2, 0x8f, 0x09, 0x68, 0xef, 0x22, 0xc9, 0x62, 0xfa, 0x3b, 0x66,
    0xe6, 0xec, 0x0e, 0xc3, 0x13, 0x2b, 0x3c, 0xa6, 0xb3, 0x04, 0xe1, 0xcb, 0x8a, 0xf4, 0xe8, 0x05,
    0x10, 0xaf, 0xf0, 0xa5, 0x42, 0xee, 0x50, 0x04, 0xeb, 0x98, 0x43, 0xd2, 0x8f, 0x6d, 0xea, 0x27,
    0x34, 0x8b, 0x42, 0x3f, 0xef, 0xd9, 0x20, 0x3a, 0xea, 0x95, 0x38, 0x82, 0xc3, 0x18, 0x58, 0x4a,
    0x5b, 0x32, 0xc7, 0x97, 0x7b, 0x76, 0x92, 0xe7, 0x30, 0xd6, 0x95, 0x8b, 0xe3, 0x6e, 0x5a, 0x3c,
    0x85, 0xbe, 0xd2, 0x0a, 0x49, 0x87, 0x0e, 0xa1, 0xab, 0x1f, 0x92, 0xab, 0x69, 0x22, 0xdd, 0xfc,
    0x16, 0x46, 0xf7, 0xb6, 0x8d, 0x9c, 0xc1, 0xa4, 0x64, 0xc6, 0x2e, 0x59, 0xb1, 0x9f, 0x58, 0x27,
    0x15, 0x3d, 0x86, 0x59, 0xfe, 0xbd, 0x0b, 0x53, 0xc1, 0x1c, 0x9b, 0x33, 0x8b, 0x09, 0x5a, 0x7a,
    0x03, 0x57, 0xbc, 0x90, 0xa8, 0xe2, 0xf2, 0x2a, 0x85, 0xbc, 0xa9, 0xdf, 0x66, 0xb9, 0x81, 0x2b,
    0x56, 0xc4, 0x39, 0xaf, 0x82, 0xd0, 0xdc, 0x97, 0x31, 0x0c, 0x5f, 0xa4, 0x75, 0x96, 0x64, 0xf4,
    0x2f, 0xb8, 0x3c, 0x40, 0x6e, 0x90, 0xb9, 0x7d, 0x4e, 0xd2, 0x3d, 0x92, 0x04, 0x16, 0x78, 0x90,
    0x7a, 0x47, 0x92, 0x45, 0x66, 0x78, 0xbb, 0x65, 0xfd, 0x23, 0xc9, 0x57, 0xe2, 0x77, 0xc2, 0x01,
    0xfd, 0x07, 0xae, 0x0f, 0x92, 0x74, 0x68, 0xd8, 0x87, 0x36, 0x87, 0xcd, 0xed, 0x6a, 0xd5, 0x66,
    0x2b, 0x93, 0x70, 0x42, 0xaf, 0xe1, 0xe2, 0x20, 0xa4, 0xfd, 0x4c, 0xca, 0x69, 0xfe, 0x02, 0x13,
    0xbe, 0x64, 0x4a, 0xe1, 0xde, 0x9d, 0x38, 0x90, 0x16, 0xec, 0xef, 0x56, 0x27, 0xde, 0x93, 0x96,
    0xcd, 0xfd, 0x62, 0x81, 0x26, 0xec, 0x17, 0x82, 0x64, 0xb1, 0x66, 0xab, 0x3d, 0x7a, 0xf4, 0x87,
    0xb3, 0x7f, 0x1a, 0x36, 0x1f, 0x8b, 0xdb, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x58, 0x39,
    0x2b, 0x48, 0x04, 0x00, 0x00,
}