|
@@ -1,144 +0,0 @@
|
|
-// This file is generated by rust-protobuf 2.25.2. Do not edit
|
|
|
|
-// @generated
|
|
|
|
-
|
|
|
|
-// https://github.com/rust-lang/rust-clippy/issues/702
|
|
|
|
-#![allow(unknown_lints)]
|
|
|
|
-#![allow(clippy::all)]
|
|
|
|
-
|
|
|
|
-#![allow(unused_attributes)]
|
|
|
|
-#![cfg_attr(rustfmt, rustfmt::skip)]
|
|
|
|
-
|
|
|
|
-#![allow(box_pointers)]
|
|
|
|
-#![allow(dead_code)]
|
|
|
|
-#![allow(missing_docs)]
|
|
|
|
-#![allow(non_camel_case_types)]
|
|
|
|
-#![allow(non_snake_case)]
|
|
|
|
-#![allow(non_upper_case_globals)]
|
|
|
|
-#![allow(trivial_casts)]
|
|
|
|
-#![allow(unused_imports)]
|
|
|
|
-#![allow(unused_results)]
|
|
|
|
-//! Generated file from `errors.proto`
|
|
|
|
-
|
|
|
|
-/// Generated files are compatible only with the same version
|
|
|
|
-/// of protobuf runtime.
|
|
|
|
-// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
|
|
|
|
-
|
|
|
|
-#[derive(Clone,PartialEq,Eq,Debug,Hash)]
|
|
|
|
-pub enum ErrorCode {
|
|
|
|
- WorkspaceNameInvalid = 0,
|
|
|
|
- WorkspaceIdInvalid = 1,
|
|
|
|
- AppColorStyleInvalid = 2,
|
|
|
|
- WorkspaceDescTooLong = 3,
|
|
|
|
- WorkspaceNameTooLong = 4,
|
|
|
|
- AppIdInvalid = 10,
|
|
|
|
- AppNameInvalid = 11,
|
|
|
|
- ViewNameInvalid = 20,
|
|
|
|
- ViewThumbnailInvalid = 21,
|
|
|
|
- ViewIdInvalid = 22,
|
|
|
|
- ViewDescTooLong = 23,
|
|
|
|
- ViewDataInvalid = 24,
|
|
|
|
- ViewNameTooLong = 25,
|
|
|
|
- UserUnauthorized = 100,
|
|
|
|
- WsConnectError = 200,
|
|
|
|
- InternalError = 1000,
|
|
|
|
- RecordNotFound = 1001,
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl ::protobuf::ProtobufEnum for ErrorCode {
|
|
|
|
- fn value(&self) -> i32 {
|
|
|
|
- *self as i32
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- fn from_i32(value: i32) -> ::std::option::Option<ErrorCode> {
|
|
|
|
- match value {
|
|
|
|
- 0 => ::std::option::Option::Some(ErrorCode::WorkspaceNameInvalid),
|
|
|
|
- 1 => ::std::option::Option::Some(ErrorCode::WorkspaceIdInvalid),
|
|
|
|
- 2 => ::std::option::Option::Some(ErrorCode::AppColorStyleInvalid),
|
|
|
|
- 3 => ::std::option::Option::Some(ErrorCode::WorkspaceDescTooLong),
|
|
|
|
- 4 => ::std::option::Option::Some(ErrorCode::WorkspaceNameTooLong),
|
|
|
|
- 10 => ::std::option::Option::Some(ErrorCode::AppIdInvalid),
|
|
|
|
- 11 => ::std::option::Option::Some(ErrorCode::AppNameInvalid),
|
|
|
|
- 20 => ::std::option::Option::Some(ErrorCode::ViewNameInvalid),
|
|
|
|
- 21 => ::std::option::Option::Some(ErrorCode::ViewThumbnailInvalid),
|
|
|
|
- 22 => ::std::option::Option::Some(ErrorCode::ViewIdInvalid),
|
|
|
|
- 23 => ::std::option::Option::Some(ErrorCode::ViewDescTooLong),
|
|
|
|
- 24 => ::std::option::Option::Some(ErrorCode::ViewDataInvalid),
|
|
|
|
- 25 => ::std::option::Option::Some(ErrorCode::ViewNameTooLong),
|
|
|
|
- 100 => ::std::option::Option::Some(ErrorCode::UserUnauthorized),
|
|
|
|
- 200 => ::std::option::Option::Some(ErrorCode::WsConnectError),
|
|
|
|
- 1000 => ::std::option::Option::Some(ErrorCode::InternalError),
|
|
|
|
- 1001 => ::std::option::Option::Some(ErrorCode::RecordNotFound),
|
|
|
|
- _ => ::std::option::Option::None
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- fn values() -> &'static [Self] {
|
|
|
|
- static values: &'static [ErrorCode] = &[
|
|
|
|
- ErrorCode::WorkspaceNameInvalid,
|
|
|
|
- ErrorCode::WorkspaceIdInvalid,
|
|
|
|
- ErrorCode::AppColorStyleInvalid,
|
|
|
|
- ErrorCode::WorkspaceDescTooLong,
|
|
|
|
- ErrorCode::WorkspaceNameTooLong,
|
|
|
|
- ErrorCode::AppIdInvalid,
|
|
|
|
- ErrorCode::AppNameInvalid,
|
|
|
|
- ErrorCode::ViewNameInvalid,
|
|
|
|
- ErrorCode::ViewThumbnailInvalid,
|
|
|
|
- ErrorCode::ViewIdInvalid,
|
|
|
|
- ErrorCode::ViewDescTooLong,
|
|
|
|
- ErrorCode::ViewDataInvalid,
|
|
|
|
- ErrorCode::ViewNameTooLong,
|
|
|
|
- ErrorCode::UserUnauthorized,
|
|
|
|
- ErrorCode::WsConnectError,
|
|
|
|
- ErrorCode::InternalError,
|
|
|
|
- ErrorCode::RecordNotFound,
|
|
|
|
- ];
|
|
|
|
- values
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
|
|
|
|
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
|
|
|
|
- descriptor.get(|| {
|
|
|
|
- ::protobuf::reflect::EnumDescriptor::new_pb_name::<ErrorCode>("ErrorCode", file_descriptor_proto())
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl ::std::marker::Copy for ErrorCode {
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl ::std::default::Default for ErrorCode {
|
|
|
|
- fn default() -> Self {
|
|
|
|
- ErrorCode::WorkspaceNameInvalid
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl ::protobuf::reflect::ProtobufValue for ErrorCode {
|
|
|
|
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
|
- ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
|
- \n\x0cerrors.proto*\x86\x03\n\tErrorCode\x12\x18\n\x14WorkspaceNameInval\
|
|
|
|
- id\x10\0\x12\x16\n\x12WorkspaceIdInvalid\x10\x01\x12\x18\n\x14AppColorSt\
|
|
|
|
- yleInvalid\x10\x02\x12\x18\n\x14WorkspaceDescTooLong\x10\x03\x12\x18\n\
|
|
|
|
- \x14WorkspaceNameTooLong\x10\x04\x12\x10\n\x0cAppIdInvalid\x10\n\x12\x12\
|
|
|
|
- \n\x0eAppNameInvalid\x10\x0b\x12\x13\n\x0fViewNameInvalid\x10\x14\x12\
|
|
|
|
- \x18\n\x14ViewThumbnailInvalid\x10\x15\x12\x11\n\rViewIdInvalid\x10\x16\
|
|
|
|
- \x12\x13\n\x0fViewDescTooLong\x10\x17\x12\x13\n\x0fViewDataInvalid\x10\
|
|
|
|
- \x18\x12\x13\n\x0fViewNameTooLong\x10\x19\x12\x14\n\x10UserUnauthorized\
|
|
|
|
- \x10d\x12\x13\n\x0eWsConnectError\x10\xc8\x01\x12\x12\n\rInternalError\
|
|
|
|
- \x10\xe8\x07\x12\x13\n\x0eRecordNotFound\x10\xe9\x07b\x06proto3\
|
|
|
|
-";
|
|
|
|
-
|
|
|
|
-static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|
|
|
|
-
|
|
|
|
-fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
|
|
|
|
- ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
|
|
- file_descriptor_proto_lazy.get(|| {
|
|
|
|
- parse_descriptor_proto()
|
|
|
|
- })
|
|
|
|
-}
|
|
|