You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1237 lines
31 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: rpc/grpc/types.proto
  3. package coregrpc
  4. import (
  5. bytes "bytes"
  6. context "context"
  7. fmt "fmt"
  8. _ "github.com/gogo/protobuf/gogoproto"
  9. proto "github.com/gogo/protobuf/proto"
  10. golang_proto "github.com/golang/protobuf/proto"
  11. types "github.com/tendermint/tendermint/abci/types"
  12. grpc "google.golang.org/grpc"
  13. codes "google.golang.org/grpc/codes"
  14. status "google.golang.org/grpc/status"
  15. io "io"
  16. math "math"
  17. math_bits "math/bits"
  18. )
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = golang_proto.Marshal
  22. var _ = fmt.Errorf
  23. var _ = math.Inf
  24. // This is a compile-time assertion to ensure that this generated file
  25. // is compatible with the proto package it is being compiled against.
  26. // A compilation error at this line likely means your copy of the
  27. // proto package needs to be updated.
  28. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  29. type RequestPing struct {
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *RequestPing) Reset() { *m = RequestPing{} }
  35. func (m *RequestPing) String() string { return proto.CompactTextString(m) }
  36. func (*RequestPing) ProtoMessage() {}
  37. func (*RequestPing) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_15f63baabf91876a, []int{0}
  39. }
  40. func (m *RequestPing) XXX_Unmarshal(b []byte) error {
  41. return m.Unmarshal(b)
  42. }
  43. func (m *RequestPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. if deterministic {
  45. return xxx_messageInfo_RequestPing.Marshal(b, m, deterministic)
  46. } else {
  47. b = b[:cap(b)]
  48. n, err := m.MarshalToSizedBuffer(b)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return b[:n], nil
  53. }
  54. }
  55. func (m *RequestPing) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_RequestPing.Merge(m, src)
  57. }
  58. func (m *RequestPing) XXX_Size() int {
  59. return m.Size()
  60. }
  61. func (m *RequestPing) XXX_DiscardUnknown() {
  62. xxx_messageInfo_RequestPing.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_RequestPing proto.InternalMessageInfo
  65. type RequestBroadcastTx struct {
  66. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  67. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  68. XXX_unrecognized []byte `json:"-"`
  69. XXX_sizecache int32 `json:"-"`
  70. }
  71. func (m *RequestBroadcastTx) Reset() { *m = RequestBroadcastTx{} }
  72. func (m *RequestBroadcastTx) String() string { return proto.CompactTextString(m) }
  73. func (*RequestBroadcastTx) ProtoMessage() {}
  74. func (*RequestBroadcastTx) Descriptor() ([]byte, []int) {
  75. return fileDescriptor_15f63baabf91876a, []int{1}
  76. }
  77. func (m *RequestBroadcastTx) XXX_Unmarshal(b []byte) error {
  78. return m.Unmarshal(b)
  79. }
  80. func (m *RequestBroadcastTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  81. if deterministic {
  82. return xxx_messageInfo_RequestBroadcastTx.Marshal(b, m, deterministic)
  83. } else {
  84. b = b[:cap(b)]
  85. n, err := m.MarshalToSizedBuffer(b)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return b[:n], nil
  90. }
  91. }
  92. func (m *RequestBroadcastTx) XXX_Merge(src proto.Message) {
  93. xxx_messageInfo_RequestBroadcastTx.Merge(m, src)
  94. }
  95. func (m *RequestBroadcastTx) XXX_Size() int {
  96. return m.Size()
  97. }
  98. func (m *RequestBroadcastTx) XXX_DiscardUnknown() {
  99. xxx_messageInfo_RequestBroadcastTx.DiscardUnknown(m)
  100. }
  101. var xxx_messageInfo_RequestBroadcastTx proto.InternalMessageInfo
  102. func (m *RequestBroadcastTx) GetTx() []byte {
  103. if m != nil {
  104. return m.Tx
  105. }
  106. return nil
  107. }
  108. type ResponsePing struct {
  109. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  110. XXX_unrecognized []byte `json:"-"`
  111. XXX_sizecache int32 `json:"-"`
  112. }
  113. func (m *ResponsePing) Reset() { *m = ResponsePing{} }
  114. func (m *ResponsePing) String() string { return proto.CompactTextString(m) }
  115. func (*ResponsePing) ProtoMessage() {}
  116. func (*ResponsePing) Descriptor() ([]byte, []int) {
  117. return fileDescriptor_15f63baabf91876a, []int{2}
  118. }
  119. func (m *ResponsePing) XXX_Unmarshal(b []byte) error {
  120. return m.Unmarshal(b)
  121. }
  122. func (m *ResponsePing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  123. if deterministic {
  124. return xxx_messageInfo_ResponsePing.Marshal(b, m, deterministic)
  125. } else {
  126. b = b[:cap(b)]
  127. n, err := m.MarshalToSizedBuffer(b)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return b[:n], nil
  132. }
  133. }
  134. func (m *ResponsePing) XXX_Merge(src proto.Message) {
  135. xxx_messageInfo_ResponsePing.Merge(m, src)
  136. }
  137. func (m *ResponsePing) XXX_Size() int {
  138. return m.Size()
  139. }
  140. func (m *ResponsePing) XXX_DiscardUnknown() {
  141. xxx_messageInfo_ResponsePing.DiscardUnknown(m)
  142. }
  143. var xxx_messageInfo_ResponsePing proto.InternalMessageInfo
  144. type ResponseBroadcastTx struct {
  145. CheckTx *types.ResponseCheckTx `protobuf:"bytes,1,opt,name=check_tx,json=checkTx,proto3" json:"check_tx,omitempty"`
  146. DeliverTx *types.ResponseDeliverTx `protobuf:"bytes,2,opt,name=deliver_tx,json=deliverTx,proto3" json:"deliver_tx,omitempty"`
  147. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  148. XXX_unrecognized []byte `json:"-"`
  149. XXX_sizecache int32 `json:"-"`
  150. }
  151. func (m *ResponseBroadcastTx) Reset() { *m = ResponseBroadcastTx{} }
  152. func (m *ResponseBroadcastTx) String() string { return proto.CompactTextString(m) }
  153. func (*ResponseBroadcastTx) ProtoMessage() {}
  154. func (*ResponseBroadcastTx) Descriptor() ([]byte, []int) {
  155. return fileDescriptor_15f63baabf91876a, []int{3}
  156. }
  157. func (m *ResponseBroadcastTx) XXX_Unmarshal(b []byte) error {
  158. return m.Unmarshal(b)
  159. }
  160. func (m *ResponseBroadcastTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  161. if deterministic {
  162. return xxx_messageInfo_ResponseBroadcastTx.Marshal(b, m, deterministic)
  163. } else {
  164. b = b[:cap(b)]
  165. n, err := m.MarshalToSizedBuffer(b)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return b[:n], nil
  170. }
  171. }
  172. func (m *ResponseBroadcastTx) XXX_Merge(src proto.Message) {
  173. xxx_messageInfo_ResponseBroadcastTx.Merge(m, src)
  174. }
  175. func (m *ResponseBroadcastTx) XXX_Size() int {
  176. return m.Size()
  177. }
  178. func (m *ResponseBroadcastTx) XXX_DiscardUnknown() {
  179. xxx_messageInfo_ResponseBroadcastTx.DiscardUnknown(m)
  180. }
  181. var xxx_messageInfo_ResponseBroadcastTx proto.InternalMessageInfo
  182. func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx {
  183. if m != nil {
  184. return m.CheckTx
  185. }
  186. return nil
  187. }
  188. func (m *ResponseBroadcastTx) GetDeliverTx() *types.ResponseDeliverTx {
  189. if m != nil {
  190. return m.DeliverTx
  191. }
  192. return nil
  193. }
  194. func init() {
  195. proto.RegisterType((*RequestPing)(nil), "core_grpc.RequestPing")
  196. golang_proto.RegisterType((*RequestPing)(nil), "core_grpc.RequestPing")
  197. proto.RegisterType((*RequestBroadcastTx)(nil), "core_grpc.RequestBroadcastTx")
  198. golang_proto.RegisterType((*RequestBroadcastTx)(nil), "core_grpc.RequestBroadcastTx")
  199. proto.RegisterType((*ResponsePing)(nil), "core_grpc.ResponsePing")
  200. golang_proto.RegisterType((*ResponsePing)(nil), "core_grpc.ResponsePing")
  201. proto.RegisterType((*ResponseBroadcastTx)(nil), "core_grpc.ResponseBroadcastTx")
  202. golang_proto.RegisterType((*ResponseBroadcastTx)(nil), "core_grpc.ResponseBroadcastTx")
  203. }
  204. func init() { proto.RegisterFile("rpc/grpc/types.proto", fileDescriptor_15f63baabf91876a) }
  205. func init() { golang_proto.RegisterFile("rpc/grpc/types.proto", fileDescriptor_15f63baabf91876a) }
  206. var fileDescriptor_15f63baabf91876a = []byte{
  207. // 321 bytes of a gzipped FileDescriptorProto
  208. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x29, 0x2a, 0x48, 0xd6,
  209. 0x4f, 0x07, 0x11, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c,
  210. 0xc9, 0xf9, 0x45, 0xa9, 0xf1, 0x20, 0x61, 0x29, 0xdd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd,
  211. 0xe4, 0xfc, 0x5c, 0xfd, 0xf4, 0xfc, 0xf4, 0x7c, 0x7d, 0xb0, 0x8a, 0xa4, 0xd2, 0x34, 0x30, 0x0f,
  212. 0xcc, 0x01, 0xb3, 0x20, 0x3a, 0xa5, 0xcc, 0x91, 0x94, 0x97, 0xa4, 0xe6, 0xa5, 0xa4, 0x16, 0xe5,
  213. 0x66, 0xe6, 0x95, 0x20, 0x33, 0x13, 0x93, 0x92, 0x33, 0x21, 0x96, 0x21, 0x5b, 0xa9, 0xc4, 0xcb,
  214. 0xc5, 0x1d, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x12, 0x90, 0x99, 0x97, 0xae, 0xa4, 0xc2, 0x25,
  215. 0x04, 0xe5, 0x3a, 0x15, 0xe5, 0x27, 0xa6, 0x24, 0x27, 0x16, 0x97, 0x84, 0x54, 0x08, 0xf1, 0x71,
  216. 0x31, 0x95, 0x54, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x31, 0x95, 0x54, 0x28, 0xf1, 0x71,
  217. 0xf1, 0x04, 0xa5, 0x16, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x82, 0x75, 0x35, 0x32, 0x72, 0x09, 0xc3,
  218. 0x04, 0x90, 0xf5, 0x19, 0x72, 0x71, 0x24, 0x67, 0xa4, 0x26, 0x67, 0xc7, 0x43, 0x75, 0x73, 0x1b,
  219. 0x89, 0xe9, 0x41, 0x2c, 0x87, 0xa9, 0x76, 0x06, 0x49, 0x87, 0x54, 0x04, 0xb1, 0x27, 0x43, 0x18,
  220. 0x42, 0xe6, 0x5c, 0x5c, 0x29, 0xa9, 0x39, 0x99, 0x65, 0xa9, 0x45, 0x20, 0x4d, 0x4c, 0x60, 0x4d,
  221. 0x12, 0x68, 0x9a, 0x5c, 0x20, 0x0a, 0x42, 0x2a, 0x82, 0x38, 0x53, 0x60, 0x4c, 0xa3, 0xa9, 0x8c,
  222. 0x5c, 0x3c, 0x70, 0xbb, 0x1d, 0x03, 0x3c, 0x85, 0xcc, 0xb9, 0x58, 0x40, 0x8e, 0x13, 0x12, 0xd3,
  223. 0x83, 0x87, 0xaa, 0x1e, 0x92, 0x57, 0xa5, 0xc4, 0x51, 0xc4, 0x11, 0xbe, 0x11, 0xf2, 0xe1, 0xe2,
  224. 0x46, 0xf6, 0x84, 0x2c, 0xa6, 0x7e, 0x24, 0x69, 0x29, 0x39, 0x2c, 0xc6, 0x20, 0xc9, 0x3b, 0xc9,
  225. 0xfc, 0x78, 0x28, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x8e, 0x47, 0x72, 0x8c, 0x27, 0x1e, 0xc9,
  226. 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x81, 0xc7, 0x72, 0x8c, 0x49, 0x6c,
  227. 0xe0, 0x58, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd5, 0xa8, 0xe4, 0xd9, 0x10, 0x02, 0x00,
  228. 0x00,
  229. }
  230. func (this *RequestPing) Equal(that interface{}) bool {
  231. if that == nil {
  232. return this == nil
  233. }
  234. that1, ok := that.(*RequestPing)
  235. if !ok {
  236. that2, ok := that.(RequestPing)
  237. if ok {
  238. that1 = &that2
  239. } else {
  240. return false
  241. }
  242. }
  243. if that1 == nil {
  244. return this == nil
  245. } else if this == nil {
  246. return false
  247. }
  248. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  249. return false
  250. }
  251. return true
  252. }
  253. func (this *RequestBroadcastTx) Equal(that interface{}) bool {
  254. if that == nil {
  255. return this == nil
  256. }
  257. that1, ok := that.(*RequestBroadcastTx)
  258. if !ok {
  259. that2, ok := that.(RequestBroadcastTx)
  260. if ok {
  261. that1 = &that2
  262. } else {
  263. return false
  264. }
  265. }
  266. if that1 == nil {
  267. return this == nil
  268. } else if this == nil {
  269. return false
  270. }
  271. if !bytes.Equal(this.Tx, that1.Tx) {
  272. return false
  273. }
  274. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  275. return false
  276. }
  277. return true
  278. }
  279. func (this *ResponsePing) Equal(that interface{}) bool {
  280. if that == nil {
  281. return this == nil
  282. }
  283. that1, ok := that.(*ResponsePing)
  284. if !ok {
  285. that2, ok := that.(ResponsePing)
  286. if ok {
  287. that1 = &that2
  288. } else {
  289. return false
  290. }
  291. }
  292. if that1 == nil {
  293. return this == nil
  294. } else if this == nil {
  295. return false
  296. }
  297. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  298. return false
  299. }
  300. return true
  301. }
  302. func (this *ResponseBroadcastTx) Equal(that interface{}) bool {
  303. if that == nil {
  304. return this == nil
  305. }
  306. that1, ok := that.(*ResponseBroadcastTx)
  307. if !ok {
  308. that2, ok := that.(ResponseBroadcastTx)
  309. if ok {
  310. that1 = &that2
  311. } else {
  312. return false
  313. }
  314. }
  315. if that1 == nil {
  316. return this == nil
  317. } else if this == nil {
  318. return false
  319. }
  320. if !this.CheckTx.Equal(that1.CheckTx) {
  321. return false
  322. }
  323. if !this.DeliverTx.Equal(that1.DeliverTx) {
  324. return false
  325. }
  326. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  327. return false
  328. }
  329. return true
  330. }
  331. // Reference imports to suppress errors if they are not otherwise used.
  332. var _ context.Context
  333. var _ grpc.ClientConn
  334. // This is a compile-time assertion to ensure that this generated file
  335. // is compatible with the grpc package it is being compiled against.
  336. const _ = grpc.SupportPackageIsVersion4
  337. // BroadcastAPIClient is the client API for BroadcastAPI service.
  338. //
  339. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  340. type BroadcastAPIClient interface {
  341. Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error)
  342. BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error)
  343. }
  344. type broadcastAPIClient struct {
  345. cc *grpc.ClientConn
  346. }
  347. func NewBroadcastAPIClient(cc *grpc.ClientConn) BroadcastAPIClient {
  348. return &broadcastAPIClient{cc}
  349. }
  350. func (c *broadcastAPIClient) Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error) {
  351. out := new(ResponsePing)
  352. err := c.cc.Invoke(ctx, "/core_grpc.BroadcastAPI/Ping", in, out, opts...)
  353. if err != nil {
  354. return nil, err
  355. }
  356. return out, nil
  357. }
  358. func (c *broadcastAPIClient) BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error) {
  359. out := new(ResponseBroadcastTx)
  360. err := c.cc.Invoke(ctx, "/core_grpc.BroadcastAPI/BroadcastTx", in, out, opts...)
  361. if err != nil {
  362. return nil, err
  363. }
  364. return out, nil
  365. }
  366. // BroadcastAPIServer is the server API for BroadcastAPI service.
  367. type BroadcastAPIServer interface {
  368. Ping(context.Context, *RequestPing) (*ResponsePing, error)
  369. BroadcastTx(context.Context, *RequestBroadcastTx) (*ResponseBroadcastTx, error)
  370. }
  371. // UnimplementedBroadcastAPIServer can be embedded to have forward compatible implementations.
  372. type UnimplementedBroadcastAPIServer struct {
  373. }
  374. func (*UnimplementedBroadcastAPIServer) Ping(ctx context.Context, req *RequestPing) (*ResponsePing, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  376. }
  377. func (*UnimplementedBroadcastAPIServer) BroadcastTx(ctx context.Context, req *RequestBroadcastTx) (*ResponseBroadcastTx, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method BroadcastTx not implemented")
  379. }
  380. func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer) {
  381. s.RegisterService(&_BroadcastAPI_serviceDesc, srv)
  382. }
  383. func _BroadcastAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  384. in := new(RequestPing)
  385. if err := dec(in); err != nil {
  386. return nil, err
  387. }
  388. if interceptor == nil {
  389. return srv.(BroadcastAPIServer).Ping(ctx, in)
  390. }
  391. info := &grpc.UnaryServerInfo{
  392. Server: srv,
  393. FullMethod: "/core_grpc.BroadcastAPI/Ping",
  394. }
  395. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  396. return srv.(BroadcastAPIServer).Ping(ctx, req.(*RequestPing))
  397. }
  398. return interceptor(ctx, in, info, handler)
  399. }
  400. func _BroadcastAPI_BroadcastTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  401. in := new(RequestBroadcastTx)
  402. if err := dec(in); err != nil {
  403. return nil, err
  404. }
  405. if interceptor == nil {
  406. return srv.(BroadcastAPIServer).BroadcastTx(ctx, in)
  407. }
  408. info := &grpc.UnaryServerInfo{
  409. Server: srv,
  410. FullMethod: "/core_grpc.BroadcastAPI/BroadcastTx",
  411. }
  412. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  413. return srv.(BroadcastAPIServer).BroadcastTx(ctx, req.(*RequestBroadcastTx))
  414. }
  415. return interceptor(ctx, in, info, handler)
  416. }
  417. var _BroadcastAPI_serviceDesc = grpc.ServiceDesc{
  418. ServiceName: "core_grpc.BroadcastAPI",
  419. HandlerType: (*BroadcastAPIServer)(nil),
  420. Methods: []grpc.MethodDesc{
  421. {
  422. MethodName: "Ping",
  423. Handler: _BroadcastAPI_Ping_Handler,
  424. },
  425. {
  426. MethodName: "BroadcastTx",
  427. Handler: _BroadcastAPI_BroadcastTx_Handler,
  428. },
  429. },
  430. Streams: []grpc.StreamDesc{},
  431. Metadata: "rpc/grpc/types.proto",
  432. }
  433. func (m *RequestPing) Marshal() (dAtA []byte, err error) {
  434. size := m.Size()
  435. dAtA = make([]byte, size)
  436. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  437. if err != nil {
  438. return nil, err
  439. }
  440. return dAtA[:n], nil
  441. }
  442. func (m *RequestPing) MarshalTo(dAtA []byte) (int, error) {
  443. size := m.Size()
  444. return m.MarshalToSizedBuffer(dAtA[:size])
  445. }
  446. func (m *RequestPing) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  447. i := len(dAtA)
  448. _ = i
  449. var l int
  450. _ = l
  451. if m.XXX_unrecognized != nil {
  452. i -= len(m.XXX_unrecognized)
  453. copy(dAtA[i:], m.XXX_unrecognized)
  454. }
  455. return len(dAtA) - i, nil
  456. }
  457. func (m *RequestBroadcastTx) Marshal() (dAtA []byte, err error) {
  458. size := m.Size()
  459. dAtA = make([]byte, size)
  460. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  461. if err != nil {
  462. return nil, err
  463. }
  464. return dAtA[:n], nil
  465. }
  466. func (m *RequestBroadcastTx) MarshalTo(dAtA []byte) (int, error) {
  467. size := m.Size()
  468. return m.MarshalToSizedBuffer(dAtA[:size])
  469. }
  470. func (m *RequestBroadcastTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  471. i := len(dAtA)
  472. _ = i
  473. var l int
  474. _ = l
  475. if m.XXX_unrecognized != nil {
  476. i -= len(m.XXX_unrecognized)
  477. copy(dAtA[i:], m.XXX_unrecognized)
  478. }
  479. if len(m.Tx) > 0 {
  480. i -= len(m.Tx)
  481. copy(dAtA[i:], m.Tx)
  482. i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
  483. i--
  484. dAtA[i] = 0xa
  485. }
  486. return len(dAtA) - i, nil
  487. }
  488. func (m *ResponsePing) Marshal() (dAtA []byte, err error) {
  489. size := m.Size()
  490. dAtA = make([]byte, size)
  491. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  492. if err != nil {
  493. return nil, err
  494. }
  495. return dAtA[:n], nil
  496. }
  497. func (m *ResponsePing) MarshalTo(dAtA []byte) (int, error) {
  498. size := m.Size()
  499. return m.MarshalToSizedBuffer(dAtA[:size])
  500. }
  501. func (m *ResponsePing) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  502. i := len(dAtA)
  503. _ = i
  504. var l int
  505. _ = l
  506. if m.XXX_unrecognized != nil {
  507. i -= len(m.XXX_unrecognized)
  508. copy(dAtA[i:], m.XXX_unrecognized)
  509. }
  510. return len(dAtA) - i, nil
  511. }
  512. func (m *ResponseBroadcastTx) Marshal() (dAtA []byte, err error) {
  513. size := m.Size()
  514. dAtA = make([]byte, size)
  515. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  516. if err != nil {
  517. return nil, err
  518. }
  519. return dAtA[:n], nil
  520. }
  521. func (m *ResponseBroadcastTx) MarshalTo(dAtA []byte) (int, error) {
  522. size := m.Size()
  523. return m.MarshalToSizedBuffer(dAtA[:size])
  524. }
  525. func (m *ResponseBroadcastTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  526. i := len(dAtA)
  527. _ = i
  528. var l int
  529. _ = l
  530. if m.XXX_unrecognized != nil {
  531. i -= len(m.XXX_unrecognized)
  532. copy(dAtA[i:], m.XXX_unrecognized)
  533. }
  534. if m.DeliverTx != nil {
  535. {
  536. size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i])
  537. if err != nil {
  538. return 0, err
  539. }
  540. i -= size
  541. i = encodeVarintTypes(dAtA, i, uint64(size))
  542. }
  543. i--
  544. dAtA[i] = 0x12
  545. }
  546. if m.CheckTx != nil {
  547. {
  548. size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i])
  549. if err != nil {
  550. return 0, err
  551. }
  552. i -= size
  553. i = encodeVarintTypes(dAtA, i, uint64(size))
  554. }
  555. i--
  556. dAtA[i] = 0xa
  557. }
  558. return len(dAtA) - i, nil
  559. }
  560. func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  561. offset -= sovTypes(v)
  562. base := offset
  563. for v >= 1<<7 {
  564. dAtA[offset] = uint8(v&0x7f | 0x80)
  565. v >>= 7
  566. offset++
  567. }
  568. dAtA[offset] = uint8(v)
  569. return base
  570. }
  571. func NewPopulatedRequestPing(r randyTypes, easy bool) *RequestPing {
  572. this := &RequestPing{}
  573. if !easy && r.Intn(10) != 0 {
  574. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  575. }
  576. return this
  577. }
  578. func NewPopulatedRequestBroadcastTx(r randyTypes, easy bool) *RequestBroadcastTx {
  579. this := &RequestBroadcastTx{}
  580. v1 := r.Intn(100)
  581. this.Tx = make([]byte, v1)
  582. for i := 0; i < v1; i++ {
  583. this.Tx[i] = byte(r.Intn(256))
  584. }
  585. if !easy && r.Intn(10) != 0 {
  586. this.XXX_unrecognized = randUnrecognizedTypes(r, 2)
  587. }
  588. return this
  589. }
  590. func NewPopulatedResponsePing(r randyTypes, easy bool) *ResponsePing {
  591. this := &ResponsePing{}
  592. if !easy && r.Intn(10) != 0 {
  593. this.XXX_unrecognized = randUnrecognizedTypes(r, 1)
  594. }
  595. return this
  596. }
  597. func NewPopulatedResponseBroadcastTx(r randyTypes, easy bool) *ResponseBroadcastTx {
  598. this := &ResponseBroadcastTx{}
  599. if r.Intn(5) != 0 {
  600. this.CheckTx = types.NewPopulatedResponseCheckTx(r, easy)
  601. }
  602. if r.Intn(5) != 0 {
  603. this.DeliverTx = types.NewPopulatedResponseDeliverTx(r, easy)
  604. }
  605. if !easy && r.Intn(10) != 0 {
  606. this.XXX_unrecognized = randUnrecognizedTypes(r, 3)
  607. }
  608. return this
  609. }
  610. type randyTypes interface {
  611. Float32() float32
  612. Float64() float64
  613. Int63() int64
  614. Int31() int32
  615. Uint32() uint32
  616. Intn(n int) int
  617. }
  618. func randUTF8RuneTypes(r randyTypes) rune {
  619. ru := r.Intn(62)
  620. if ru < 10 {
  621. return rune(ru + 48)
  622. } else if ru < 36 {
  623. return rune(ru + 55)
  624. }
  625. return rune(ru + 61)
  626. }
  627. func randStringTypes(r randyTypes) string {
  628. v2 := r.Intn(100)
  629. tmps := make([]rune, v2)
  630. for i := 0; i < v2; i++ {
  631. tmps[i] = randUTF8RuneTypes(r)
  632. }
  633. return string(tmps)
  634. }
  635. func randUnrecognizedTypes(r randyTypes, maxFieldNumber int) (dAtA []byte) {
  636. l := r.Intn(5)
  637. for i := 0; i < l; i++ {
  638. wire := r.Intn(4)
  639. if wire == 3 {
  640. wire = 5
  641. }
  642. fieldNumber := maxFieldNumber + r.Intn(100)
  643. dAtA = randFieldTypes(dAtA, r, fieldNumber, wire)
  644. }
  645. return dAtA
  646. }
  647. func randFieldTypes(dAtA []byte, r randyTypes, fieldNumber int, wire int) []byte {
  648. key := uint32(fieldNumber)<<3 | uint32(wire)
  649. switch wire {
  650. case 0:
  651. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  652. v3 := r.Int63()
  653. if r.Intn(2) == 0 {
  654. v3 *= -1
  655. }
  656. dAtA = encodeVarintPopulateTypes(dAtA, uint64(v3))
  657. case 1:
  658. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  659. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  660. case 2:
  661. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  662. ll := r.Intn(100)
  663. dAtA = encodeVarintPopulateTypes(dAtA, uint64(ll))
  664. for j := 0; j < ll; j++ {
  665. dAtA = append(dAtA, byte(r.Intn(256)))
  666. }
  667. default:
  668. dAtA = encodeVarintPopulateTypes(dAtA, uint64(key))
  669. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  670. }
  671. return dAtA
  672. }
  673. func encodeVarintPopulateTypes(dAtA []byte, v uint64) []byte {
  674. for v >= 1<<7 {
  675. dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  676. v >>= 7
  677. }
  678. dAtA = append(dAtA, uint8(v))
  679. return dAtA
  680. }
  681. func (m *RequestPing) Size() (n int) {
  682. if m == nil {
  683. return 0
  684. }
  685. var l int
  686. _ = l
  687. if m.XXX_unrecognized != nil {
  688. n += len(m.XXX_unrecognized)
  689. }
  690. return n
  691. }
  692. func (m *RequestBroadcastTx) Size() (n int) {
  693. if m == nil {
  694. return 0
  695. }
  696. var l int
  697. _ = l
  698. l = len(m.Tx)
  699. if l > 0 {
  700. n += 1 + l + sovTypes(uint64(l))
  701. }
  702. if m.XXX_unrecognized != nil {
  703. n += len(m.XXX_unrecognized)
  704. }
  705. return n
  706. }
  707. func (m *ResponsePing) Size() (n int) {
  708. if m == nil {
  709. return 0
  710. }
  711. var l int
  712. _ = l
  713. if m.XXX_unrecognized != nil {
  714. n += len(m.XXX_unrecognized)
  715. }
  716. return n
  717. }
  718. func (m *ResponseBroadcastTx) Size() (n int) {
  719. if m == nil {
  720. return 0
  721. }
  722. var l int
  723. _ = l
  724. if m.CheckTx != nil {
  725. l = m.CheckTx.Size()
  726. n += 1 + l + sovTypes(uint64(l))
  727. }
  728. if m.DeliverTx != nil {
  729. l = m.DeliverTx.Size()
  730. n += 1 + l + sovTypes(uint64(l))
  731. }
  732. if m.XXX_unrecognized != nil {
  733. n += len(m.XXX_unrecognized)
  734. }
  735. return n
  736. }
  737. func sovTypes(x uint64) (n int) {
  738. return (math_bits.Len64(x|1) + 6) / 7
  739. }
  740. func sozTypes(x uint64) (n int) {
  741. return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  742. }
  743. func (m *RequestPing) Unmarshal(dAtA []byte) error {
  744. l := len(dAtA)
  745. iNdEx := 0
  746. for iNdEx < l {
  747. preIndex := iNdEx
  748. var wire uint64
  749. for shift := uint(0); ; shift += 7 {
  750. if shift >= 64 {
  751. return ErrIntOverflowTypes
  752. }
  753. if iNdEx >= l {
  754. return io.ErrUnexpectedEOF
  755. }
  756. b := dAtA[iNdEx]
  757. iNdEx++
  758. wire |= uint64(b&0x7F) << shift
  759. if b < 0x80 {
  760. break
  761. }
  762. }
  763. fieldNum := int32(wire >> 3)
  764. wireType := int(wire & 0x7)
  765. if wireType == 4 {
  766. return fmt.Errorf("proto: RequestPing: wiretype end group for non-group")
  767. }
  768. if fieldNum <= 0 {
  769. return fmt.Errorf("proto: RequestPing: illegal tag %d (wire type %d)", fieldNum, wire)
  770. }
  771. switch fieldNum {
  772. default:
  773. iNdEx = preIndex
  774. skippy, err := skipTypes(dAtA[iNdEx:])
  775. if err != nil {
  776. return err
  777. }
  778. if skippy < 0 {
  779. return ErrInvalidLengthTypes
  780. }
  781. if (iNdEx + skippy) < 0 {
  782. return ErrInvalidLengthTypes
  783. }
  784. if (iNdEx + skippy) > l {
  785. return io.ErrUnexpectedEOF
  786. }
  787. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  788. iNdEx += skippy
  789. }
  790. }
  791. if iNdEx > l {
  792. return io.ErrUnexpectedEOF
  793. }
  794. return nil
  795. }
  796. func (m *RequestBroadcastTx) Unmarshal(dAtA []byte) error {
  797. l := len(dAtA)
  798. iNdEx := 0
  799. for iNdEx < l {
  800. preIndex := iNdEx
  801. var wire uint64
  802. for shift := uint(0); ; shift += 7 {
  803. if shift >= 64 {
  804. return ErrIntOverflowTypes
  805. }
  806. if iNdEx >= l {
  807. return io.ErrUnexpectedEOF
  808. }
  809. b := dAtA[iNdEx]
  810. iNdEx++
  811. wire |= uint64(b&0x7F) << shift
  812. if b < 0x80 {
  813. break
  814. }
  815. }
  816. fieldNum := int32(wire >> 3)
  817. wireType := int(wire & 0x7)
  818. if wireType == 4 {
  819. return fmt.Errorf("proto: RequestBroadcastTx: wiretype end group for non-group")
  820. }
  821. if fieldNum <= 0 {
  822. return fmt.Errorf("proto: RequestBroadcastTx: illegal tag %d (wire type %d)", fieldNum, wire)
  823. }
  824. switch fieldNum {
  825. case 1:
  826. if wireType != 2 {
  827. return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
  828. }
  829. var byteLen int
  830. for shift := uint(0); ; shift += 7 {
  831. if shift >= 64 {
  832. return ErrIntOverflowTypes
  833. }
  834. if iNdEx >= l {
  835. return io.ErrUnexpectedEOF
  836. }
  837. b := dAtA[iNdEx]
  838. iNdEx++
  839. byteLen |= int(b&0x7F) << shift
  840. if b < 0x80 {
  841. break
  842. }
  843. }
  844. if byteLen < 0 {
  845. return ErrInvalidLengthTypes
  846. }
  847. postIndex := iNdEx + byteLen
  848. if postIndex < 0 {
  849. return ErrInvalidLengthTypes
  850. }
  851. if postIndex > l {
  852. return io.ErrUnexpectedEOF
  853. }
  854. m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
  855. if m.Tx == nil {
  856. m.Tx = []byte{}
  857. }
  858. iNdEx = postIndex
  859. default:
  860. iNdEx = preIndex
  861. skippy, err := skipTypes(dAtA[iNdEx:])
  862. if err != nil {
  863. return err
  864. }
  865. if skippy < 0 {
  866. return ErrInvalidLengthTypes
  867. }
  868. if (iNdEx + skippy) < 0 {
  869. return ErrInvalidLengthTypes
  870. }
  871. if (iNdEx + skippy) > l {
  872. return io.ErrUnexpectedEOF
  873. }
  874. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  875. iNdEx += skippy
  876. }
  877. }
  878. if iNdEx > l {
  879. return io.ErrUnexpectedEOF
  880. }
  881. return nil
  882. }
  883. func (m *ResponsePing) Unmarshal(dAtA []byte) error {
  884. l := len(dAtA)
  885. iNdEx := 0
  886. for iNdEx < l {
  887. preIndex := iNdEx
  888. var wire uint64
  889. for shift := uint(0); ; shift += 7 {
  890. if shift >= 64 {
  891. return ErrIntOverflowTypes
  892. }
  893. if iNdEx >= l {
  894. return io.ErrUnexpectedEOF
  895. }
  896. b := dAtA[iNdEx]
  897. iNdEx++
  898. wire |= uint64(b&0x7F) << shift
  899. if b < 0x80 {
  900. break
  901. }
  902. }
  903. fieldNum := int32(wire >> 3)
  904. wireType := int(wire & 0x7)
  905. if wireType == 4 {
  906. return fmt.Errorf("proto: ResponsePing: wiretype end group for non-group")
  907. }
  908. if fieldNum <= 0 {
  909. return fmt.Errorf("proto: ResponsePing: illegal tag %d (wire type %d)", fieldNum, wire)
  910. }
  911. switch fieldNum {
  912. default:
  913. iNdEx = preIndex
  914. skippy, err := skipTypes(dAtA[iNdEx:])
  915. if err != nil {
  916. return err
  917. }
  918. if skippy < 0 {
  919. return ErrInvalidLengthTypes
  920. }
  921. if (iNdEx + skippy) < 0 {
  922. return ErrInvalidLengthTypes
  923. }
  924. if (iNdEx + skippy) > l {
  925. return io.ErrUnexpectedEOF
  926. }
  927. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  928. iNdEx += skippy
  929. }
  930. }
  931. if iNdEx > l {
  932. return io.ErrUnexpectedEOF
  933. }
  934. return nil
  935. }
  936. func (m *ResponseBroadcastTx) Unmarshal(dAtA []byte) error {
  937. l := len(dAtA)
  938. iNdEx := 0
  939. for iNdEx < l {
  940. preIndex := iNdEx
  941. var wire uint64
  942. for shift := uint(0); ; shift += 7 {
  943. if shift >= 64 {
  944. return ErrIntOverflowTypes
  945. }
  946. if iNdEx >= l {
  947. return io.ErrUnexpectedEOF
  948. }
  949. b := dAtA[iNdEx]
  950. iNdEx++
  951. wire |= uint64(b&0x7F) << shift
  952. if b < 0x80 {
  953. break
  954. }
  955. }
  956. fieldNum := int32(wire >> 3)
  957. wireType := int(wire & 0x7)
  958. if wireType == 4 {
  959. return fmt.Errorf("proto: ResponseBroadcastTx: wiretype end group for non-group")
  960. }
  961. if fieldNum <= 0 {
  962. return fmt.Errorf("proto: ResponseBroadcastTx: illegal tag %d (wire type %d)", fieldNum, wire)
  963. }
  964. switch fieldNum {
  965. case 1:
  966. if wireType != 2 {
  967. return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
  968. }
  969. var msglen int
  970. for shift := uint(0); ; shift += 7 {
  971. if shift >= 64 {
  972. return ErrIntOverflowTypes
  973. }
  974. if iNdEx >= l {
  975. return io.ErrUnexpectedEOF
  976. }
  977. b := dAtA[iNdEx]
  978. iNdEx++
  979. msglen |= int(b&0x7F) << shift
  980. if b < 0x80 {
  981. break
  982. }
  983. }
  984. if msglen < 0 {
  985. return ErrInvalidLengthTypes
  986. }
  987. postIndex := iNdEx + msglen
  988. if postIndex < 0 {
  989. return ErrInvalidLengthTypes
  990. }
  991. if postIndex > l {
  992. return io.ErrUnexpectedEOF
  993. }
  994. if m.CheckTx == nil {
  995. m.CheckTx = &types.ResponseCheckTx{}
  996. }
  997. if err := m.CheckTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  998. return err
  999. }
  1000. iNdEx = postIndex
  1001. case 2:
  1002. if wireType != 2 {
  1003. return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
  1004. }
  1005. var msglen int
  1006. for shift := uint(0); ; shift += 7 {
  1007. if shift >= 64 {
  1008. return ErrIntOverflowTypes
  1009. }
  1010. if iNdEx >= l {
  1011. return io.ErrUnexpectedEOF
  1012. }
  1013. b := dAtA[iNdEx]
  1014. iNdEx++
  1015. msglen |= int(b&0x7F) << shift
  1016. if b < 0x80 {
  1017. break
  1018. }
  1019. }
  1020. if msglen < 0 {
  1021. return ErrInvalidLengthTypes
  1022. }
  1023. postIndex := iNdEx + msglen
  1024. if postIndex < 0 {
  1025. return ErrInvalidLengthTypes
  1026. }
  1027. if postIndex > l {
  1028. return io.ErrUnexpectedEOF
  1029. }
  1030. if m.DeliverTx == nil {
  1031. m.DeliverTx = &types.ResponseDeliverTx{}
  1032. }
  1033. if err := m.DeliverTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1034. return err
  1035. }
  1036. iNdEx = postIndex
  1037. default:
  1038. iNdEx = preIndex
  1039. skippy, err := skipTypes(dAtA[iNdEx:])
  1040. if err != nil {
  1041. return err
  1042. }
  1043. if skippy < 0 {
  1044. return ErrInvalidLengthTypes
  1045. }
  1046. if (iNdEx + skippy) < 0 {
  1047. return ErrInvalidLengthTypes
  1048. }
  1049. if (iNdEx + skippy) > l {
  1050. return io.ErrUnexpectedEOF
  1051. }
  1052. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1053. iNdEx += skippy
  1054. }
  1055. }
  1056. if iNdEx > l {
  1057. return io.ErrUnexpectedEOF
  1058. }
  1059. return nil
  1060. }
  1061. func skipTypes(dAtA []byte) (n int, err error) {
  1062. l := len(dAtA)
  1063. iNdEx := 0
  1064. for iNdEx < l {
  1065. var wire uint64
  1066. for shift := uint(0); ; shift += 7 {
  1067. if shift >= 64 {
  1068. return 0, ErrIntOverflowTypes
  1069. }
  1070. if iNdEx >= l {
  1071. return 0, io.ErrUnexpectedEOF
  1072. }
  1073. b := dAtA[iNdEx]
  1074. iNdEx++
  1075. wire |= (uint64(b) & 0x7F) << shift
  1076. if b < 0x80 {
  1077. break
  1078. }
  1079. }
  1080. wireType := int(wire & 0x7)
  1081. switch wireType {
  1082. case 0:
  1083. for shift := uint(0); ; shift += 7 {
  1084. if shift >= 64 {
  1085. return 0, ErrIntOverflowTypes
  1086. }
  1087. if iNdEx >= l {
  1088. return 0, io.ErrUnexpectedEOF
  1089. }
  1090. iNdEx++
  1091. if dAtA[iNdEx-1] < 0x80 {
  1092. break
  1093. }
  1094. }
  1095. return iNdEx, nil
  1096. case 1:
  1097. iNdEx += 8
  1098. return iNdEx, nil
  1099. case 2:
  1100. var length int
  1101. for shift := uint(0); ; shift += 7 {
  1102. if shift >= 64 {
  1103. return 0, ErrIntOverflowTypes
  1104. }
  1105. if iNdEx >= l {
  1106. return 0, io.ErrUnexpectedEOF
  1107. }
  1108. b := dAtA[iNdEx]
  1109. iNdEx++
  1110. length |= (int(b) & 0x7F) << shift
  1111. if b < 0x80 {
  1112. break
  1113. }
  1114. }
  1115. if length < 0 {
  1116. return 0, ErrInvalidLengthTypes
  1117. }
  1118. iNdEx += length
  1119. if iNdEx < 0 {
  1120. return 0, ErrInvalidLengthTypes
  1121. }
  1122. return iNdEx, nil
  1123. case 3:
  1124. for {
  1125. var innerWire uint64
  1126. var start int = iNdEx
  1127. for shift := uint(0); ; shift += 7 {
  1128. if shift >= 64 {
  1129. return 0, ErrIntOverflowTypes
  1130. }
  1131. if iNdEx >= l {
  1132. return 0, io.ErrUnexpectedEOF
  1133. }
  1134. b := dAtA[iNdEx]
  1135. iNdEx++
  1136. innerWire |= (uint64(b) & 0x7F) << shift
  1137. if b < 0x80 {
  1138. break
  1139. }
  1140. }
  1141. innerWireType := int(innerWire & 0x7)
  1142. if innerWireType == 4 {
  1143. break
  1144. }
  1145. next, err := skipTypes(dAtA[start:])
  1146. if err != nil {
  1147. return 0, err
  1148. }
  1149. iNdEx = start + next
  1150. if iNdEx < 0 {
  1151. return 0, ErrInvalidLengthTypes
  1152. }
  1153. }
  1154. return iNdEx, nil
  1155. case 4:
  1156. return iNdEx, nil
  1157. case 5:
  1158. iNdEx += 4
  1159. return iNdEx, nil
  1160. default:
  1161. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1162. }
  1163. }
  1164. panic("unreachable")
  1165. }
  1166. var (
  1167. ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
  1168. ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
  1169. )