enum.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.9
  5. // source: backend/common/enum.proto
  6. package commonPb
  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 IsShow_Kind int32
  20. const (
  21. IsShow_INVALID IsShow_Kind = 0 // 无效
  22. IsShow_OK IsShow_Kind = 1 // 是
  23. IsShow_NO IsShow_Kind = 2 // 否
  24. )
  25. // Enum value maps for IsShow_Kind.
  26. var (
  27. IsShow_Kind_name = map[int32]string{
  28. 0: "INVALID",
  29. 1: "OK",
  30. 2: "NO",
  31. }
  32. IsShow_Kind_value = map[string]int32{
  33. "INVALID": 0,
  34. "OK": 1,
  35. "NO": 2,
  36. }
  37. )
  38. func (x IsShow_Kind) Enum() *IsShow_Kind {
  39. p := new(IsShow_Kind)
  40. *p = x
  41. return p
  42. }
  43. func (x IsShow_Kind) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (IsShow_Kind) Descriptor() protoreflect.EnumDescriptor {
  47. return file_backend_common_enum_proto_enumTypes[0].Descriptor()
  48. }
  49. func (IsShow_Kind) Type() protoreflect.EnumType {
  50. return &file_backend_common_enum_proto_enumTypes[0]
  51. }
  52. func (x IsShow_Kind) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use IsShow_Kind.Descriptor instead.
  56. func (IsShow_Kind) EnumDescriptor() ([]byte, []int) {
  57. return file_backend_common_enum_proto_rawDescGZIP(), []int{0, 0}
  58. }
  59. // 是否标识
  60. type IsShow struct {
  61. state protoimpl.MessageState
  62. sizeCache protoimpl.SizeCache
  63. unknownFields protoimpl.UnknownFields
  64. }
  65. func (x *IsShow) Reset() {
  66. *x = IsShow{}
  67. if protoimpl.UnsafeEnabled {
  68. mi := &file_backend_common_enum_proto_msgTypes[0]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. }
  73. func (x *IsShow) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*IsShow) ProtoMessage() {}
  77. func (x *IsShow) ProtoReflect() protoreflect.Message {
  78. mi := &file_backend_common_enum_proto_msgTypes[0]
  79. if protoimpl.UnsafeEnabled && x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use IsShow.ProtoReflect.Descriptor instead.
  89. func (*IsShow) Descriptor() ([]byte, []int) {
  90. return file_backend_common_enum_proto_rawDescGZIP(), []int{0}
  91. }
  92. var File_backend_common_enum_proto protoreflect.FileDescriptor
  93. var file_backend_common_enum_proto_rawDesc = []byte{
  94. 0x0a, 0x19, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  95. 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x61, 0x63,
  96. 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x6f, 0x70, 0x73, 0x22, 0x2d, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x68,
  97. 0x6f, 0x77, 0x22, 0x23, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e,
  98. 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12,
  99. 0x06, 0x0a, 0x02, 0x4e, 0x4f, 0x10, 0x02, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x3b, 0x63, 0x6f, 0x6d,
  100. 0x6d, 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  101. }
  102. var (
  103. file_backend_common_enum_proto_rawDescOnce sync.Once
  104. file_backend_common_enum_proto_rawDescData = file_backend_common_enum_proto_rawDesc
  105. )
  106. func file_backend_common_enum_proto_rawDescGZIP() []byte {
  107. file_backend_common_enum_proto_rawDescOnce.Do(func() {
  108. file_backend_common_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_common_enum_proto_rawDescData)
  109. })
  110. return file_backend_common_enum_proto_rawDescData
  111. }
  112. var file_backend_common_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  113. var file_backend_common_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  114. var file_backend_common_enum_proto_goTypes = []interface{}{
  115. (IsShow_Kind)(0), // 0: backend.ops.IsShow.Kind
  116. (*IsShow)(nil), // 1: backend.ops.IsShow
  117. }
  118. var file_backend_common_enum_proto_depIdxs = []int32{
  119. 0, // [0:0] is the sub-list for method output_type
  120. 0, // [0:0] is the sub-list for method input_type
  121. 0, // [0:0] is the sub-list for extension type_name
  122. 0, // [0:0] is the sub-list for extension extendee
  123. 0, // [0:0] is the sub-list for field type_name
  124. }
  125. func init() { file_backend_common_enum_proto_init() }
  126. func file_backend_common_enum_proto_init() {
  127. if File_backend_common_enum_proto != nil {
  128. return
  129. }
  130. if !protoimpl.UnsafeEnabled {
  131. file_backend_common_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  132. switch v := v.(*IsShow); i {
  133. case 0:
  134. return &v.state
  135. case 1:
  136. return &v.sizeCache
  137. case 2:
  138. return &v.unknownFields
  139. default:
  140. return nil
  141. }
  142. }
  143. }
  144. type x struct{}
  145. out := protoimpl.TypeBuilder{
  146. File: protoimpl.DescBuilder{
  147. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  148. RawDescriptor: file_backend_common_enum_proto_rawDesc,
  149. NumEnums: 1,
  150. NumMessages: 1,
  151. NumExtensions: 0,
  152. NumServices: 0,
  153. },
  154. GoTypes: file_backend_common_enum_proto_goTypes,
  155. DependencyIndexes: file_backend_common_enum_proto_depIdxs,
  156. EnumInfos: file_backend_common_enum_proto_enumTypes,
  157. MessageInfos: file_backend_common_enum_proto_msgTypes,
  158. }.Build()
  159. File_backend_common_enum_proto = out.File
  160. file_backend_common_enum_proto_rawDesc = nil
  161. file_backend_common_enum_proto_goTypes = nil
  162. file_backend_common_enum_proto_depIdxs = nil
  163. }