base.pb.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: base.proto
  3. package gapi
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. type ResultCode int32
  19. const (
  20. ResultCode_SUCCEED ResultCode = 0
  21. ResultCode_PARAMETER_ERROR ResultCode = 1
  22. ResultCode_OTHER_ERROR ResultCode = 2
  23. ResultCode_APP_ERROR ResultCode = 3
  24. ResultCode_APP_EXCEPTION ResultCode = 4
  25. )
  26. var ResultCode_name = map[int32]string{
  27. 0: "SUCCEED",
  28. 1: "PARAMETER_ERROR",
  29. 2: "OTHER_ERROR",
  30. 3: "APP_ERROR",
  31. 4: "APP_EXCEPTION",
  32. }
  33. var ResultCode_value = map[string]int32{
  34. "SUCCEED": 0,
  35. "PARAMETER_ERROR": 1,
  36. "OTHER_ERROR": 2,
  37. "APP_ERROR": 3,
  38. "APP_EXCEPTION": 4,
  39. }
  40. func (x ResultCode) String() string {
  41. return proto.EnumName(ResultCode_name, int32(x))
  42. }
  43. func (ResultCode) EnumDescriptor() ([]byte, []int) {
  44. return fileDescriptor_db1b6b0986796150, []int{0}
  45. }
  46. type Result struct {
  47. Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"`
  48. Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
  49. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  50. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  51. XXX_unrecognized []byte `json:"-"`
  52. XXX_sizecache int32 `json:"-"`
  53. }
  54. func (m *Result) Reset() { *m = Result{} }
  55. func (m *Result) String() string { return proto.CompactTextString(m) }
  56. func (*Result) ProtoMessage() {}
  57. func (*Result) Descriptor() ([]byte, []int) {
  58. return fileDescriptor_db1b6b0986796150, []int{0}
  59. }
  60. func (m *Result) XXX_Unmarshal(b []byte) error {
  61. return xxx_messageInfo_Result.Unmarshal(m, b)
  62. }
  63. func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  64. return xxx_messageInfo_Result.Marshal(b, m, deterministic)
  65. }
  66. func (m *Result) XXX_Merge(src proto.Message) {
  67. xxx_messageInfo_Result.Merge(m, src)
  68. }
  69. func (m *Result) XXX_Size() int {
  70. return xxx_messageInfo_Result.Size(m)
  71. }
  72. func (m *Result) XXX_DiscardUnknown() {
  73. xxx_messageInfo_Result.DiscardUnknown(m)
  74. }
  75. var xxx_messageInfo_Result proto.InternalMessageInfo
  76. func (m *Result) GetCode() ResultCode {
  77. if m != nil {
  78. return m.Code
  79. }
  80. return ResultCode_SUCCEED
  81. }
  82. func (m *Result) GetInfo() string {
  83. if m != nil {
  84. return m.Info
  85. }
  86. return ""
  87. }
  88. func (m *Result) GetValue() string {
  89. if m != nil {
  90. return m.Value
  91. }
  92. return ""
  93. }
  94. type ResultInt struct {
  95. Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"`
  96. Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
  97. Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
  98. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  99. XXX_unrecognized []byte `json:"-"`
  100. XXX_sizecache int32 `json:"-"`
  101. }
  102. func (m *ResultInt) Reset() { *m = ResultInt{} }
  103. func (m *ResultInt) String() string { return proto.CompactTextString(m) }
  104. func (*ResultInt) ProtoMessage() {}
  105. func (*ResultInt) Descriptor() ([]byte, []int) {
  106. return fileDescriptor_db1b6b0986796150, []int{1}
  107. }
  108. func (m *ResultInt) XXX_Unmarshal(b []byte) error {
  109. return xxx_messageInfo_ResultInt.Unmarshal(m, b)
  110. }
  111. func (m *ResultInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  112. return xxx_messageInfo_ResultInt.Marshal(b, m, deterministic)
  113. }
  114. func (m *ResultInt) XXX_Merge(src proto.Message) {
  115. xxx_messageInfo_ResultInt.Merge(m, src)
  116. }
  117. func (m *ResultInt) XXX_Size() int {
  118. return xxx_messageInfo_ResultInt.Size(m)
  119. }
  120. func (m *ResultInt) XXX_DiscardUnknown() {
  121. xxx_messageInfo_ResultInt.DiscardUnknown(m)
  122. }
  123. var xxx_messageInfo_ResultInt proto.InternalMessageInfo
  124. func (m *ResultInt) GetCode() ResultCode {
  125. if m != nil {
  126. return m.Code
  127. }
  128. return ResultCode_SUCCEED
  129. }
  130. func (m *ResultInt) GetInfo() string {
  131. if m != nil {
  132. return m.Info
  133. }
  134. return ""
  135. }
  136. func (m *ResultInt) GetValue() int32 {
  137. if m != nil {
  138. return m.Value
  139. }
  140. return 0
  141. }
  142. type ResultInt64 struct {
  143. Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"`
  144. Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
  145. Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
  146. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  147. XXX_unrecognized []byte `json:"-"`
  148. XXX_sizecache int32 `json:"-"`
  149. }
  150. func (m *ResultInt64) Reset() { *m = ResultInt64{} }
  151. func (m *ResultInt64) String() string { return proto.CompactTextString(m) }
  152. func (*ResultInt64) ProtoMessage() {}
  153. func (*ResultInt64) Descriptor() ([]byte, []int) {
  154. return fileDescriptor_db1b6b0986796150, []int{2}
  155. }
  156. func (m *ResultInt64) XXX_Unmarshal(b []byte) error {
  157. return xxx_messageInfo_ResultInt64.Unmarshal(m, b)
  158. }
  159. func (m *ResultInt64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  160. return xxx_messageInfo_ResultInt64.Marshal(b, m, deterministic)
  161. }
  162. func (m *ResultInt64) XXX_Merge(src proto.Message) {
  163. xxx_messageInfo_ResultInt64.Merge(m, src)
  164. }
  165. func (m *ResultInt64) XXX_Size() int {
  166. return xxx_messageInfo_ResultInt64.Size(m)
  167. }
  168. func (m *ResultInt64) XXX_DiscardUnknown() {
  169. xxx_messageInfo_ResultInt64.DiscardUnknown(m)
  170. }
  171. var xxx_messageInfo_ResultInt64 proto.InternalMessageInfo
  172. func (m *ResultInt64) GetCode() ResultCode {
  173. if m != nil {
  174. return m.Code
  175. }
  176. return ResultCode_SUCCEED
  177. }
  178. func (m *ResultInt64) GetInfo() string {
  179. if m != nil {
  180. return m.Info
  181. }
  182. return ""
  183. }
  184. func (m *ResultInt64) GetValue() int64 {
  185. if m != nil {
  186. return m.Value
  187. }
  188. return 0
  189. }
  190. type ResultDouble struct {
  191. Code ResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=com.ywt.gapi.ResultCode" json:"code,omitempty"`
  192. Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
  193. Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
  194. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  195. XXX_unrecognized []byte `json:"-"`
  196. XXX_sizecache int32 `json:"-"`
  197. }
  198. func (m *ResultDouble) Reset() { *m = ResultDouble{} }
  199. func (m *ResultDouble) String() string { return proto.CompactTextString(m) }
  200. func (*ResultDouble) ProtoMessage() {}
  201. func (*ResultDouble) Descriptor() ([]byte, []int) {
  202. return fileDescriptor_db1b6b0986796150, []int{3}
  203. }
  204. func (m *ResultDouble) XXX_Unmarshal(b []byte) error {
  205. return xxx_messageInfo_ResultDouble.Unmarshal(m, b)
  206. }
  207. func (m *ResultDouble) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  208. return xxx_messageInfo_ResultDouble.Marshal(b, m, deterministic)
  209. }
  210. func (m *ResultDouble) XXX_Merge(src proto.Message) {
  211. xxx_messageInfo_ResultDouble.Merge(m, src)
  212. }
  213. func (m *ResultDouble) XXX_Size() int {
  214. return xxx_messageInfo_ResultDouble.Size(m)
  215. }
  216. func (m *ResultDouble) XXX_DiscardUnknown() {
  217. xxx_messageInfo_ResultDouble.DiscardUnknown(m)
  218. }
  219. var xxx_messageInfo_ResultDouble proto.InternalMessageInfo
  220. func (m *ResultDouble) GetCode() ResultCode {
  221. if m != nil {
  222. return m.Code
  223. }
  224. return ResultCode_SUCCEED
  225. }
  226. func (m *ResultDouble) GetInfo() string {
  227. if m != nil {
  228. return m.Info
  229. }
  230. return ""
  231. }
  232. func (m *ResultDouble) GetValue() float64 {
  233. if m != nil {
  234. return m.Value
  235. }
  236. return 0
  237. }
  238. func init() {
  239. proto.RegisterEnum("com.ywt.gapi.ResultCode", ResultCode_name, ResultCode_value)
  240. proto.RegisterType((*Result)(nil), "com.ywt.gapi.Result")
  241. proto.RegisterType((*ResultInt)(nil), "com.ywt.gapi.ResultInt")
  242. proto.RegisterType((*ResultInt64)(nil), "com.ywt.gapi.ResultInt64")
  243. proto.RegisterType((*ResultDouble)(nil), "com.ywt.gapi.ResultDouble")
  244. }
  245. func init() { proto.RegisterFile("base.proto", fileDescriptor_db1b6b0986796150) }
  246. var fileDescriptor_db1b6b0986796150 = []byte{
  247. // 260 bytes of a gzipped FileDescriptorProto
  248. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x41, 0x4b, 0xc3, 0x40,
  249. 0x14, 0x84, 0xdd, 0x26, 0xa9, 0xe4, 0xa5, 0xb5, 0xf1, 0xe9, 0x21, 0x78, 0x2a, 0x3d, 0x15, 0x91,
  250. 0x15, 0x54, 0xbc, 0xc7, 0x74, 0xc1, 0x1e, 0x34, 0xcb, 0x33, 0x82, 0x78, 0xd1, 0x24, 0xdd, 0x4a,
  251. 0x21, 0x76, 0x8b, 0x4d, 0x14, 0xff, 0x81, 0x3f, 0x5b, 0xdc, 0xb4, 0x51, 0xef, 0xb9, 0xcd, 0x0c,
  252. 0x33, 0x7c, 0x97, 0x01, 0xc8, 0xd2, 0xb5, 0xe2, 0xab, 0x37, 0x5d, 0x6a, 0xec, 0xe5, 0xfa, 0x95,
  253. 0x7f, 0x7e, 0x94, 0xfc, 0x25, 0x5d, 0x2d, 0x46, 0xcf, 0xd0, 0x25, 0xb5, 0xae, 0x8a, 0x12, 0x4f,
  254. 0xc0, 0xce, 0xf5, 0x4c, 0x05, 0x6c, 0xc8, 0xc6, 0x7b, 0x67, 0x01, 0xff, 0x5b, 0xe3, 0x75, 0x27,
  255. 0xd2, 0x33, 0x45, 0xa6, 0x85, 0x08, 0xf6, 0x62, 0x39, 0xd7, 0x41, 0x67, 0xc8, 0xc6, 0x2e, 0x19,
  256. 0x8d, 0x87, 0xe0, 0xbc, 0xa7, 0x45, 0xa5, 0x02, 0xcb, 0x84, 0xb5, 0x19, 0xe5, 0xe0, 0xd6, 0xeb,
  257. 0xe9, 0xb2, 0x75, 0x88, 0xb3, 0x85, 0x28, 0xf0, 0x1a, 0xc8, 0xe5, 0x45, 0xdb, 0x18, 0x6b, 0x8b,
  258. 0x99, 0x43, 0xaf, 0x5e, 0x4f, 0x74, 0x95, 0x15, 0xaa, 0x6d, 0x0e, 0xdb, 0x70, 0x8e, 0x53, 0x80,
  259. 0xdf, 0x35, 0x7a, 0xb0, 0x7b, 0x77, 0x1f, 0x45, 0x42, 0x4c, 0xfc, 0x1d, 0x3c, 0x80, 0x81, 0x0c,
  260. 0x29, 0xbc, 0x11, 0x89, 0xa0, 0x27, 0x41, 0x14, 0x93, 0xcf, 0x70, 0x00, 0x5e, 0x9c, 0x5c, 0x37,
  261. 0x41, 0x07, 0xfb, 0xe0, 0x86, 0x52, 0x6e, 0xac, 0x85, 0xfb, 0xd0, 0x37, 0xf6, 0x21, 0x12, 0x32,
  262. 0x99, 0xc6, 0xb7, 0xbe, 0x7d, 0x75, 0x04, 0xff, 0x8e, 0x20, 0xd9, 0xa3, 0x73, 0xfa, 0x23, 0xbe,
  263. 0x18, 0xcb, 0xba, 0xe6, 0x29, 0xe7, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xfa, 0x59, 0xbc,
  264. 0x37, 0x02, 0x00, 0x00,
  265. }