123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.27.1
- // protoc v3.3.0
- // source: pb/ErrCode.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type ErrCode int32
- const (
- ErrCode_ok ErrCode = 0
- ErrCode_OpNotAllowed ErrCode = 1
- )
- // Enum value maps for ErrCode.
- var (
- ErrCode_name = map[int32]string{
- 0: "ok",
- 1: "OpNotAllowed",
- }
- ErrCode_value = map[string]int32{
- "ok": 0,
- "OpNotAllowed": 1,
- }
- )
- func (x ErrCode) Enum() *ErrCode {
- p := new(ErrCode)
- *p = x
- return p
- }
- func (x ErrCode) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (ErrCode) Descriptor() protoreflect.EnumDescriptor {
- return file_pb_ErrCode_proto_enumTypes[0].Descriptor()
- }
- func (ErrCode) Type() protoreflect.EnumType {
- return &file_pb_ErrCode_proto_enumTypes[0]
- }
- func (x ErrCode) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use ErrCode.Descriptor instead.
- func (ErrCode) EnumDescriptor() ([]byte, []int) {
- return file_pb_ErrCode_proto_rawDescGZIP(), []int{0}
- }
- var File_pb_ErrCode_proto protoreflect.FileDescriptor
- var file_pb_ErrCode_proto_rawDesc = []byte{
- 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x2a, 0x23, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a,
- 0x02, 0x6f, 0x6b, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x70, 0x4e, 0x6f, 0x74, 0x41, 0x6c,
- 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x10, 0x01, 0x42, 0x05, 0x5a, 0x03, 0x2f, 0x70, 0x62, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_pb_ErrCode_proto_rawDescOnce sync.Once
- file_pb_ErrCode_proto_rawDescData = file_pb_ErrCode_proto_rawDesc
- )
- func file_pb_ErrCode_proto_rawDescGZIP() []byte {
- file_pb_ErrCode_proto_rawDescOnce.Do(func() {
- file_pb_ErrCode_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_ErrCode_proto_rawDescData)
- })
- return file_pb_ErrCode_proto_rawDescData
- }
- var file_pb_ErrCode_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_pb_ErrCode_proto_goTypes = []interface{}{
- (ErrCode)(0), // 0: ErrCode
- }
- var file_pb_ErrCode_proto_depIdxs = []int32{
- 0, // [0:0] is the sub-list for method output_type
- 0, // [0:0] is the sub-list for method input_type
- 0, // [0:0] is the sub-list for extension type_name
- 0, // [0:0] is the sub-list for extension extendee
- 0, // [0:0] is the sub-list for field type_name
- }
- func init() { file_pb_ErrCode_proto_init() }
- func file_pb_ErrCode_proto_init() {
- if File_pb_ErrCode_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_pb_ErrCode_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 0,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_pb_ErrCode_proto_goTypes,
- DependencyIndexes: file_pb_ErrCode_proto_depIdxs,
- EnumInfos: file_pb_ErrCode_proto_enumTypes,
- }.Build()
- File_pb_ErrCode_proto = out.File
- file_pb_ErrCode_proto_rawDesc = nil
- file_pb_ErrCode_proto_goTypes = nil
- file_pb_ErrCode_proto_depIdxs = nil
- }
|