forked from wanzo-mini/mini-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.pb.go
181 lines (154 loc) · 5.83 KB
/
header.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: header.proto
/*
Package header is a generated protocol buffer package.
It is generated from these files:
header.proto
It has these top-level messages:
RequestHeader
ResponseHeader
*/
package header
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = 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.ProtoPackageIsVersion2 // please upgrade the proto package
type Compress int32
const (
Compress_Raw Compress = 0
Compress_Gzip Compress = 1
Compress_Snappy Compress = 2
Compress_Zlib Compress = 3
)
var Compress_name = map[int32]string{
0: "Raw",
1: "Gzip",
2: "Snappy",
3: "Zlib",
}
var Compress_value = map[string]int32{
"Raw": 0,
"Gzip": 1,
"Snappy": 2,
"Zlib": 3,
}
func (x Compress) String() string {
return proto.EnumName(Compress_name, int32(x))
}
func (Compress) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type RequestHeader struct {
CompressType Compress `protobuf:"varint,1,opt,name=compress_type,json=compressType,enum=header.Compress" json:"compress_type,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
Id uint64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
RequestLen uint32 `protobuf:"varint,4,opt,name=request_len,json=requestLen" json:"request_len,omitempty"`
Checksum uint32 `protobuf:"varint,5,opt,name=checksum" json:"checksum,omitempty"`
}
func (m *RequestHeader) Reset() { *m = RequestHeader{} }
func (m *RequestHeader) String() string { return proto.CompactTextString(m) }
func (*RequestHeader) ProtoMessage() {}
func (*RequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *RequestHeader) GetCompressType() Compress {
if m != nil {
return m.CompressType
}
return Compress_Raw
}
func (m *RequestHeader) GetMethod() string {
if m != nil {
return m.Method
}
return ""
}
func (m *RequestHeader) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *RequestHeader) GetRequestLen() uint32 {
if m != nil {
return m.RequestLen
}
return 0
}
func (m *RequestHeader) GetChecksum() uint32 {
if m != nil {
return m.Checksum
}
return 0
}
type ResponseHeader struct {
CompressType Compress `protobuf:"varint,1,opt,name=compress_type,json=compressType,enum=header.Compress" json:"compress_type,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
ResponseLen uint32 `protobuf:"varint,4,opt,name=response_len,json=responseLen" json:"response_len,omitempty"`
Checksum uint32 `protobuf:"varint,5,opt,name=checksum" json:"checksum,omitempty"`
}
func (m *ResponseHeader) Reset() { *m = ResponseHeader{} }
func (m *ResponseHeader) String() string { return proto.CompactTextString(m) }
func (*ResponseHeader) ProtoMessage() {}
func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ResponseHeader) GetCompressType() Compress {
if m != nil {
return m.CompressType
}
return Compress_Raw
}
func (m *ResponseHeader) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *ResponseHeader) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *ResponseHeader) GetResponseLen() uint32 {
if m != nil {
return m.ResponseLen
}
return 0
}
func (m *ResponseHeader) GetChecksum() uint32 {
if m != nil {
return m.Checksum
}
return 0
}
func init() {
proto.RegisterType((*RequestHeader)(nil), "header.RequestHeader")
proto.RegisterType((*ResponseHeader)(nil), "header.ResponseHeader")
proto.RegisterEnum("header.Compress", Compress_name, Compress_value)
}
func init() { proto.RegisterFile("header.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 263 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xb1, 0x4e, 0xc3, 0x30,
0x14, 0x45, 0x71, 0x9a, 0x86, 0xf4, 0x35, 0x89, 0xac, 0x27, 0x84, 0x2c, 0x16, 0x42, 0xa7, 0x88,
0xa1, 0x03, 0x15, 0x5f, 0xc0, 0x00, 0x03, 0x93, 0x61, 0x62, 0xa9, 0xd2, 0xe4, 0x49, 0x89, 0x68,
0x62, 0x63, 0xa7, 0x42, 0xe1, 0x97, 0xe0, 0x23, 0x11, 0x89, 0x53, 0xb1, 0x31, 0x30, 0xde, 0x73,
0x6d, 0xdd, 0x23, 0x3d, 0x88, 0x2a, 0xca, 0x4b, 0x32, 0x6b, 0x6d, 0x54, 0xa7, 0x30, 0x18, 0xd3,
0xea, 0x93, 0x41, 0x2c, 0xe9, 0xed, 0x40, 0xb6, 0x7b, 0x18, 0x08, 0xde, 0x42, 0x5c, 0xa8, 0x46,
0x1b, 0xb2, 0x76, 0xdb, 0xf5, 0x9a, 0x04, 0x4b, 0x59, 0x96, 0xdc, 0xf0, 0xb5, 0xfb, 0x7f, 0xe7,
0x4a, 0x19, 0x4d, 0xcf, 0x9e, 0x7b, 0x4d, 0x78, 0x0e, 0x41, 0x43, 0x5d, 0xa5, 0x4a, 0xe1, 0xa5,
0x2c, 0x5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