This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 346
/
rpcdump.pb.go
226 lines (194 loc) · 6.93 KB
/
rpcdump.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: rpcdump.proto
package rpcdump
import (
context "context"
fmt "fmt"
math "math"
math_bits "math/bits"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
dump "github.com/hyperledger/burrow/dump"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type GetDumpParam struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetDumpParam) Reset() { *m = GetDumpParam{} }
func (m *GetDumpParam) String() string { return proto.CompactTextString(m) }
func (*GetDumpParam) ProtoMessage() {}
func (*GetDumpParam) Descriptor() ([]byte, []int) {
return fileDescriptor_80c0fd6a8168e015, []int{0}
}
func (m *GetDumpParam) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetDumpParam.Unmarshal(m, b)
}
func (m *GetDumpParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetDumpParam.Marshal(b, m, deterministic)
}
func (m *GetDumpParam) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDumpParam.Merge(m, src)
}
func (m *GetDumpParam) XXX_Size() int {
return xxx_messageInfo_GetDumpParam.Size(m)
}
func (m *GetDumpParam) XXX_DiscardUnknown() {
xxx_messageInfo_GetDumpParam.DiscardUnknown(m)
}
var xxx_messageInfo_GetDumpParam proto.InternalMessageInfo
func (m *GetDumpParam) GetHeight() uint64 {
if m != nil {
return m.Height
}
return 0
}
func (*GetDumpParam) XXX_MessageName() string {
return "rpcdump.GetDumpParam"
}
func init() {
proto.RegisterType((*GetDumpParam)(nil), "rpcdump.GetDumpParam")
golang_proto.RegisterType((*GetDumpParam)(nil), "rpcdump.GetDumpParam")
}
func init() { proto.RegisterFile("rpcdump.proto", fileDescriptor_80c0fd6a8168e015) }
func init() { golang_proto.RegisterFile("rpcdump.proto", fileDescriptor_80c0fd6a8168e015) }
var fileDescriptor_80c0fd6a8168e015 = []byte{
// 194 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x2a, 0x48, 0x4e,
0x29, 0xcd, 0x2d, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x87, 0x72, 0xa5, 0x74, 0xd3,
0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 0xc1,
0xf2, 0x49, 0xa5, 0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0xf4, 0x49, 0x71, 0x21, 0xcc, 0x50,
0x52, 0xe3, 0xe2, 0x71, 0x4f, 0x2d, 0x71, 0x29, 0xcd, 0x2d, 0x08, 0x48, 0x2c, 0x4a, 0xcc, 0x15,
0x12, 0xe3, 0x62, 0xcb, 0x48, 0xcd, 0x4c, 0xcf, 0x28, 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x09,
0x82, 0xf2, 0x8c, 0xcc, 0xb8, 0x58, 0x40, 0x8a, 0x84, 0xf4, 0xb8, 0xd8, 0xa1, 0xea, 0x85, 0x44,
0xf5, 0x60, 0xce, 0x41, 0x36, 0x41, 0x8a, 0x4b, 0x0f, 0x2c, 0x06, 0x12, 0x30, 0x60, 0x74, 0xb2,
0xbe, 0xf1, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x03, 0x8f, 0xe5, 0x18, 0x4f, 0x3c, 0x96,
0x63, 0x8c, 0xd2, 0x44, 0x72, 0x6c, 0x46, 0x65, 0x41, 0x6a, 0x51, 0x4e, 0x6a, 0x4a, 0x7a, 0x6a,
0x91, 0x7e, 0x52, 0x69, 0x51, 0x51, 0x7e, 0xb9, 0x7e, 0x51, 0x41, 0xb2, 0x3e, 0xd4, 0xdc, 0x24,
0x36, 0xb0, 0x1b, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x75, 0xfd, 0xde, 0x63, 0xf8, 0x00,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// DumpClient is the client API for Dump service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DumpClient interface {
GetDump(ctx context.Context, in *GetDumpParam, opts ...grpc.CallOption) (Dump_GetDumpClient, error)
}
type dumpClient struct {
cc *grpc.ClientConn
}
func NewDumpClient(cc *grpc.ClientConn) DumpClient {
return &dumpClient{cc}
}
func (c *dumpClient) GetDump(ctx context.Context, in *GetDumpParam, opts ...grpc.CallOption) (Dump_GetDumpClient, error) {
stream, err := c.cc.NewStream(ctx, &_Dump_serviceDesc.Streams[0], "/rpcdump.Dump/GetDump", opts...)
if err != nil {
return nil, err
}
x := &dumpGetDumpClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Dump_GetDumpClient interface {
Recv() (*dump.Dump, error)
grpc.ClientStream
}
type dumpGetDumpClient struct {
grpc.ClientStream
}
func (x *dumpGetDumpClient) Recv() (*dump.Dump, error) {
m := new(dump.Dump)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// DumpServer is the server API for Dump service.
type DumpServer interface {
GetDump(*GetDumpParam, Dump_GetDumpServer) error
}
// UnimplementedDumpServer can be embedded to have forward compatible implementations.
type UnimplementedDumpServer struct {
}
func (*UnimplementedDumpServer) GetDump(req *GetDumpParam, srv Dump_GetDumpServer) error {
return status.Errorf(codes.Unimplemented, "method GetDump not implemented")
}
func RegisterDumpServer(s *grpc.Server, srv DumpServer) {
s.RegisterService(&_Dump_serviceDesc, srv)
}
func _Dump_GetDump_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetDumpParam)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(DumpServer).GetDump(m, &dumpGetDumpServer{stream})
}
type Dump_GetDumpServer interface {
Send(*dump.Dump) error
grpc.ServerStream
}
type dumpGetDumpServer struct {
grpc.ServerStream
}
func (x *dumpGetDumpServer) Send(m *dump.Dump) error {
return x.ServerStream.SendMsg(m)
}
var _Dump_serviceDesc = grpc.ServiceDesc{
ServiceName: "rpcdump.Dump",
HandlerType: (*DumpServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "GetDump",
Handler: _Dump_GetDump_Handler,
ServerStreams: true,
},
},
Metadata: "rpcdump.proto",
}
func (m *GetDumpParam) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Height != 0 {
n += 1 + sovRpcdump(uint64(m.Height))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovRpcdump(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozRpcdump(x uint64) (n int) {
return sovRpcdump(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}