1
2
3
4
5
6
7 package proto
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 emptypb "google.golang.org/protobuf/types/known/emptypb"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 const (
18
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24 type UploadCRLRequest struct {
25 state protoimpl.MessageState
26 sizeCache protoimpl.SizeCache
27 unknownFields protoimpl.UnknownFields
28
29
30
31
32
33 Payload isUploadCRLRequest_Payload `protobuf_oneof:"payload"`
34 }
35
36 func (x *UploadCRLRequest) Reset() {
37 *x = UploadCRLRequest{}
38 if protoimpl.UnsafeEnabled {
39 mi := &file_storer_proto_msgTypes[0]
40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
41 ms.StoreMessageInfo(mi)
42 }
43 }
44
45 func (x *UploadCRLRequest) String() string {
46 return protoimpl.X.MessageStringOf(x)
47 }
48
49 func (*UploadCRLRequest) ProtoMessage() {}
50
51 func (x *UploadCRLRequest) ProtoReflect() protoreflect.Message {
52 mi := &file_storer_proto_msgTypes[0]
53 if protoimpl.UnsafeEnabled && x != nil {
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 if ms.LoadMessageInfo() == nil {
56 ms.StoreMessageInfo(mi)
57 }
58 return ms
59 }
60 return mi.MessageOf(x)
61 }
62
63
64 func (*UploadCRLRequest) Descriptor() ([]byte, []int) {
65 return file_storer_proto_rawDescGZIP(), []int{0}
66 }
67
68 func (m *UploadCRLRequest) GetPayload() isUploadCRLRequest_Payload {
69 if m != nil {
70 return m.Payload
71 }
72 return nil
73 }
74
75 func (x *UploadCRLRequest) GetMetadata() *CRLMetadata {
76 if x, ok := x.GetPayload().(*UploadCRLRequest_Metadata); ok {
77 return x.Metadata
78 }
79 return nil
80 }
81
82 func (x *UploadCRLRequest) GetCrlChunk() []byte {
83 if x, ok := x.GetPayload().(*UploadCRLRequest_CrlChunk); ok {
84 return x.CrlChunk
85 }
86 return nil
87 }
88
89 type isUploadCRLRequest_Payload interface {
90 isUploadCRLRequest_Payload()
91 }
92
93 type UploadCRLRequest_Metadata struct {
94 Metadata *CRLMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
95 }
96
97 type UploadCRLRequest_CrlChunk struct {
98 CrlChunk []byte `protobuf:"bytes,2,opt,name=crlChunk,proto3,oneof"`
99 }
100
101 func (*UploadCRLRequest_Metadata) isUploadCRLRequest_Payload() {}
102
103 func (*UploadCRLRequest_CrlChunk) isUploadCRLRequest_Payload() {}
104
105 type CRLMetadata struct {
106 state protoimpl.MessageState
107 sizeCache protoimpl.SizeCache
108 unknownFields protoimpl.UnknownFields
109
110 IssuerNameID int64 `protobuf:"varint,1,opt,name=issuerNameID,proto3" json:"issuerNameID,omitempty"`
111 Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
112 ShardIdx int64 `protobuf:"varint,3,opt,name=shardIdx,proto3" json:"shardIdx,omitempty"`
113 }
114
115 func (x *CRLMetadata) Reset() {
116 *x = CRLMetadata{}
117 if protoimpl.UnsafeEnabled {
118 mi := &file_storer_proto_msgTypes[1]
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 ms.StoreMessageInfo(mi)
121 }
122 }
123
124 func (x *CRLMetadata) String() string {
125 return protoimpl.X.MessageStringOf(x)
126 }
127
128 func (*CRLMetadata) ProtoMessage() {}
129
130 func (x *CRLMetadata) ProtoReflect() protoreflect.Message {
131 mi := &file_storer_proto_msgTypes[1]
132 if protoimpl.UnsafeEnabled && x != nil {
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 if ms.LoadMessageInfo() == nil {
135 ms.StoreMessageInfo(mi)
136 }
137 return ms
138 }
139 return mi.MessageOf(x)
140 }
141
142
143 func (*CRLMetadata) Descriptor() ([]byte, []int) {
144 return file_storer_proto_rawDescGZIP(), []int{1}
145 }
146
147 func (x *CRLMetadata) GetIssuerNameID() int64 {
148 if x != nil {
149 return x.IssuerNameID
150 }
151 return 0
152 }
153
154 func (x *CRLMetadata) GetNumber() int64 {
155 if x != nil {
156 return x.Number
157 }
158 return 0
159 }
160
161 func (x *CRLMetadata) GetShardIdx() int64 {
162 if x != nil {
163 return x.ShardIdx
164 }
165 return 0
166 }
167
168 var File_storer_proto protoreflect.FileDescriptor
169
170 var file_storer_proto_rawDesc = []byte{
171 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
172 0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
173 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
174 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x10, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x52, 0x4c,
175 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
176 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x74, 0x6f, 0x72,
177 0x65, 0x72, 0x2e, 0x43, 0x52, 0x4c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00,
178 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x08, 0x63, 0x72,
179 0x6c, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08,
180 0x63, 0x72, 0x6c, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
181 0x6f, 0x61, 0x64, 0x22, 0x65, 0x0a, 0x0b, 0x43, 0x52, 0x4c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
182 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
183 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72,
184 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
185 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a,
186 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
187 0x52, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x78, 0x32, 0x4e, 0x0a, 0x09, 0x43, 0x52,
188 0x4c, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61,
189 0x64, 0x43, 0x52, 0x4c, 0x12, 0x18, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x55, 0x70,
190 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
191 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
192 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x28, 0x01, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69,
193 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x65, 0x74, 0x73, 0x65, 0x6e, 0x63,
194 0x72, 0x79, 0x70, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x63, 0x72, 0x6c,
195 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70,
196 0x72, 0x6f, 0x74, 0x6f, 0x33,
197 }
198
199 var (
200 file_storer_proto_rawDescOnce sync.Once
201 file_storer_proto_rawDescData = file_storer_proto_rawDesc
202 )
203
204 func file_storer_proto_rawDescGZIP() []byte {
205 file_storer_proto_rawDescOnce.Do(func() {
206 file_storer_proto_rawDescData = protoimpl.X.CompressGZIP(file_storer_proto_rawDescData)
207 })
208 return file_storer_proto_rawDescData
209 }
210
211 var file_storer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
212 var file_storer_proto_goTypes = []interface{}{
213 (*UploadCRLRequest)(nil),
214 (*CRLMetadata)(nil),
215 (*emptypb.Empty)(nil),
216 }
217 var file_storer_proto_depIdxs = []int32{
218 1,
219 0,
220 2,
221 2,
222 1,
223 1,
224 1,
225 0,
226 }
227
228 func init() { file_storer_proto_init() }
229 func file_storer_proto_init() {
230 if File_storer_proto != nil {
231 return
232 }
233 if !protoimpl.UnsafeEnabled {
234 file_storer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
235 switch v := v.(*UploadCRLRequest); i {
236 case 0:
237 return &v.state
238 case 1:
239 return &v.sizeCache
240 case 2:
241 return &v.unknownFields
242 default:
243 return nil
244 }
245 }
246 file_storer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
247 switch v := v.(*CRLMetadata); i {
248 case 0:
249 return &v.state
250 case 1:
251 return &v.sizeCache
252 case 2:
253 return &v.unknownFields
254 default:
255 return nil
256 }
257 }
258 }
259 file_storer_proto_msgTypes[0].OneofWrappers = []interface{}{
260 (*UploadCRLRequest_Metadata)(nil),
261 (*UploadCRLRequest_CrlChunk)(nil),
262 }
263 type x struct{}
264 out := protoimpl.TypeBuilder{
265 File: protoimpl.DescBuilder{
266 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
267 RawDescriptor: file_storer_proto_rawDesc,
268 NumEnums: 0,
269 NumMessages: 2,
270 NumExtensions: 0,
271 NumServices: 1,
272 },
273 GoTypes: file_storer_proto_goTypes,
274 DependencyIndexes: file_storer_proto_depIdxs,
275 MessageInfos: file_storer_proto_msgTypes,
276 }.Build()
277 File_storer_proto = out.File
278 file_storer_proto_rawDesc = nil
279 file_storer_proto_goTypes = nil
280 file_storer_proto_depIdxs = nil
281 }
282
View as plain text