ErrCode.pb.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.3.0
  5. // source: pb/ErrCode.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type ErrCode int32
  20. const (
  21. ErrCode_ok ErrCode = 0
  22. ErrCode_OpNotAllowed ErrCode = 1
  23. )
  24. // Enum value maps for ErrCode.
  25. var (
  26. ErrCode_name = map[int32]string{
  27. 0: "ok",
  28. 1: "OpNotAllowed",
  29. }
  30. ErrCode_value = map[string]int32{
  31. "ok": 0,
  32. "OpNotAllowed": 1,
  33. }
  34. )
  35. func (x ErrCode) Enum() *ErrCode {
  36. p := new(ErrCode)
  37. *p = x
  38. return p
  39. }
  40. func (x ErrCode) String() string {
  41. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  42. }
  43. func (ErrCode) Descriptor() protoreflect.EnumDescriptor {
  44. return file_pb_ErrCode_proto_enumTypes[0].Descriptor()
  45. }
  46. func (ErrCode) Type() protoreflect.EnumType {
  47. return &file_pb_ErrCode_proto_enumTypes[0]
  48. }
  49. func (x ErrCode) Number() protoreflect.EnumNumber {
  50. return protoreflect.EnumNumber(x)
  51. }
  52. // Deprecated: Use ErrCode.Descriptor instead.
  53. func (ErrCode) EnumDescriptor() ([]byte, []int) {
  54. return file_pb_ErrCode_proto_rawDescGZIP(), []int{0}
  55. }
  56. var File_pb_ErrCode_proto protoreflect.FileDescriptor
  57. var file_pb_ErrCode_proto_rawDesc = []byte{
  58. 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  59. 0x74, 0x6f, 0x2a, 0x23, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a,
  60. 0x02, 0x6f, 0x6b, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x70, 0x4e, 0x6f, 0x74, 0x41, 0x6c,
  61. 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x10, 0x01, 0x42, 0x05, 0x5a, 0x03, 0x2f, 0x70, 0x62, 0x62, 0x06,
  62. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  63. }
  64. var (
  65. file_pb_ErrCode_proto_rawDescOnce sync.Once
  66. file_pb_ErrCode_proto_rawDescData = file_pb_ErrCode_proto_rawDesc
  67. )
  68. func file_pb_ErrCode_proto_rawDescGZIP() []byte {
  69. file_pb_ErrCode_proto_rawDescOnce.Do(func() {
  70. file_pb_ErrCode_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_ErrCode_proto_rawDescData)
  71. })
  72. return file_pb_ErrCode_proto_rawDescData
  73. }
  74. var file_pb_ErrCode_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  75. var file_pb_ErrCode_proto_goTypes = []interface{}{
  76. (ErrCode)(0), // 0: ErrCode
  77. }
  78. var file_pb_ErrCode_proto_depIdxs = []int32{
  79. 0, // [0:0] is the sub-list for method output_type
  80. 0, // [0:0] is the sub-list for method input_type
  81. 0, // [0:0] is the sub-list for extension type_name
  82. 0, // [0:0] is the sub-list for extension extendee
  83. 0, // [0:0] is the sub-list for field type_name
  84. }
  85. func init() { file_pb_ErrCode_proto_init() }
  86. func file_pb_ErrCode_proto_init() {
  87. if File_pb_ErrCode_proto != nil {
  88. return
  89. }
  90. type x struct{}
  91. out := protoimpl.TypeBuilder{
  92. File: protoimpl.DescBuilder{
  93. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  94. RawDescriptor: file_pb_ErrCode_proto_rawDesc,
  95. NumEnums: 1,
  96. NumMessages: 0,
  97. NumExtensions: 0,
  98. NumServices: 0,
  99. },
  100. GoTypes: file_pb_ErrCode_proto_goTypes,
  101. DependencyIndexes: file_pb_ErrCode_proto_depIdxs,
  102. EnumInfos: file_pb_ErrCode_proto_enumTypes,
  103. }.Build()
  104. File_pb_ErrCode_proto = out.File
  105. file_pb_ErrCode_proto_rawDesc = nil
  106. file_pb_ErrCode_proto_goTypes = nil
  107. file_pb_ErrCode_proto_depIdxs = nil
  108. }