GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( 87b3f2...b810b3 )
by Amir
06:46
created

proto.*DeleteResponse.ProtoMessage   A

Complexity

Conditions 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nop 0
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
// 	protoc-gen-go v1.25.0
4
// 	protoc        v3.4.0
5
// source: proto/gerdu.proto
6
7
package proto
8
9
import (
10
	proto "github.com/golang/protobuf/proto"
11
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13
	reflect "reflect"
14
	sync "sync"
15
)
16
17
const (
18
	// Verify that this generated code is sufficiently up-to-date.
19
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20
	// Verify that runtime/protoimpl is sufficiently up-to-date.
21
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22
)
23
24
// This is a compile-time assertion that a sufficiently up-to-date version
25
// of the legacy proto package is being used.
26
const _ = proto.ProtoPackageIsVersion4
27
28
type PutResponse struct {
29
	state         protoimpl.MessageState
30
	sizeCache     protoimpl.SizeCache
31
	unknownFields protoimpl.UnknownFields
32
33
	Created bool `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
34
}
35
36
func (x *PutResponse) Reset() {
37
	*x = PutResponse{}
38
	if protoimpl.UnsafeEnabled {
39
		mi := &file_proto_gerdu_proto_msgTypes[0]
40
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
41
		ms.StoreMessageInfo(mi)
42
	}
43
}
44
45
func (x *PutResponse) String() string {
46
	return protoimpl.X.MessageStringOf(x)
47
}
48
49
func (*PutResponse) ProtoMessage() {}
50
51
func (x *PutResponse) ProtoReflect() protoreflect.Message {
52
	mi := &file_proto_gerdu_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
// Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
64
func (*PutResponse) Descriptor() ([]byte, []int) {
65
	return file_proto_gerdu_proto_rawDescGZIP(), []int{0}
66
}
67
68
func (x *PutResponse) GetCreated() bool {
69
	if x != nil {
70
		return x.Created
71
	}
72
	return false
73
}
74
75
type PutRequest struct {
76
	state         protoimpl.MessageState
77
	sizeCache     protoimpl.SizeCache
78
	unknownFields protoimpl.UnknownFields
79
80
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
81
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
82
}
83
84
func (x *PutRequest) Reset() {
85
	*x = PutRequest{}
86
	if protoimpl.UnsafeEnabled {
87
		mi := &file_proto_gerdu_proto_msgTypes[1]
88
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
89
		ms.StoreMessageInfo(mi)
90
	}
91
}
92
93
func (x *PutRequest) String() string {
94
	return protoimpl.X.MessageStringOf(x)
95
}
96
97
func (*PutRequest) ProtoMessage() {}
98
99
func (x *PutRequest) ProtoReflect() protoreflect.Message {
100
	mi := &file_proto_gerdu_proto_msgTypes[1]
101
	if protoimpl.UnsafeEnabled && x != nil {
102
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
103
		if ms.LoadMessageInfo() == nil {
104
			ms.StoreMessageInfo(mi)
105
		}
106
		return ms
107
	}
108
	return mi.MessageOf(x)
109
}
110
111
// Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
112
func (*PutRequest) Descriptor() ([]byte, []int) {
113
	return file_proto_gerdu_proto_rawDescGZIP(), []int{1}
114
}
115
116
func (x *PutRequest) GetKey() string {
117
	if x != nil {
118
		return x.Key
119
	}
120
	return ""
121
}
122
123
func (x *PutRequest) GetValue() []byte {
124
	if x != nil {
125
		return x.Value
126
	}
127
	return nil
128
}
129
130
type GetRequest struct {
131
	state         protoimpl.MessageState
132
	sizeCache     protoimpl.SizeCache
133
	unknownFields protoimpl.UnknownFields
134
135
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
136
}
137
138
func (x *GetRequest) Reset() {
139
	*x = GetRequest{}
140
	if protoimpl.UnsafeEnabled {
141
		mi := &file_proto_gerdu_proto_msgTypes[2]
142
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143
		ms.StoreMessageInfo(mi)
144
	}
145
}
146
147
func (x *GetRequest) String() string {
148
	return protoimpl.X.MessageStringOf(x)
149
}
150
151
func (*GetRequest) ProtoMessage() {}
152
153
func (x *GetRequest) ProtoReflect() protoreflect.Message {
154
	mi := &file_proto_gerdu_proto_msgTypes[2]
155
	if protoimpl.UnsafeEnabled && x != nil {
156
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
157
		if ms.LoadMessageInfo() == nil {
158
			ms.StoreMessageInfo(mi)
159
		}
160
		return ms
161
	}
162
	return mi.MessageOf(x)
163
}
164
165
// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
166
func (*GetRequest) Descriptor() ([]byte, []int) {
167
	return file_proto_gerdu_proto_rawDescGZIP(), []int{2}
168
}
169
170
func (x *GetRequest) GetKey() string {
171
	if x != nil {
172
		return x.Key
173
	}
174
	return ""
175
}
176
177
type GetResponse struct {
178
	state         protoimpl.MessageState
179
	sizeCache     protoimpl.SizeCache
180
	unknownFields protoimpl.UnknownFields
181
182
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
183
}
184
185
func (x *GetResponse) Reset() {
186
	*x = GetResponse{}
187
	if protoimpl.UnsafeEnabled {
188
		mi := &file_proto_gerdu_proto_msgTypes[3]
189
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190
		ms.StoreMessageInfo(mi)
191
	}
192
}
193
194
func (x *GetResponse) String() string {
195
	return protoimpl.X.MessageStringOf(x)
196
}
197
198
func (*GetResponse) ProtoMessage() {}
199
200
func (x *GetResponse) ProtoReflect() protoreflect.Message {
201
	mi := &file_proto_gerdu_proto_msgTypes[3]
202
	if protoimpl.UnsafeEnabled && x != nil {
203
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204
		if ms.LoadMessageInfo() == nil {
205
			ms.StoreMessageInfo(mi)
206
		}
207
		return ms
208
	}
209
	return mi.MessageOf(x)
210
}
211
212
// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
213
func (*GetResponse) Descriptor() ([]byte, []int) {
214
	return file_proto_gerdu_proto_rawDescGZIP(), []int{3}
215
}
216
217
func (x *GetResponse) GetValue() []byte {
218
	if x != nil {
219
		return x.Value
220
	}
221
	return nil
222
}
223
224
type DeleteRequest struct {
225
	state         protoimpl.MessageState
226
	sizeCache     protoimpl.SizeCache
227
	unknownFields protoimpl.UnknownFields
228
229
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
230
}
231
232
func (x *DeleteRequest) Reset() {
233
	*x = DeleteRequest{}
234
	if protoimpl.UnsafeEnabled {
235
		mi := &file_proto_gerdu_proto_msgTypes[4]
236
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
237
		ms.StoreMessageInfo(mi)
238
	}
239
}
240
241
func (x *DeleteRequest) String() string {
242
	return protoimpl.X.MessageStringOf(x)
243
}
244
245
func (*DeleteRequest) ProtoMessage() {}
246
247
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
248
	mi := &file_proto_gerdu_proto_msgTypes[4]
249
	if protoimpl.UnsafeEnabled && x != nil {
250
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251
		if ms.LoadMessageInfo() == nil {
252
			ms.StoreMessageInfo(mi)
253
		}
254
		return ms
255
	}
256
	return mi.MessageOf(x)
257
}
258
259
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
260
func (*DeleteRequest) Descriptor() ([]byte, []int) {
261
	return file_proto_gerdu_proto_rawDescGZIP(), []int{4}
262
}
263
264
func (x *DeleteRequest) GetKey() string {
265
	if x != nil {
266
		return x.Key
267
	}
268
	return ""
269
}
270
271
type DeleteResponse struct {
272
	state         protoimpl.MessageState
273
	sizeCache     protoimpl.SizeCache
274
	unknownFields protoimpl.UnknownFields
275
276
	Deleted bool `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"`
277
}
278
279
func (x *DeleteResponse) Reset() {
280
	*x = DeleteResponse{}
281
	if protoimpl.UnsafeEnabled {
282
		mi := &file_proto_gerdu_proto_msgTypes[5]
283
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
284
		ms.StoreMessageInfo(mi)
285
	}
286
}
287
288
func (x *DeleteResponse) String() string {
289
	return protoimpl.X.MessageStringOf(x)
290
}
291
292
func (*DeleteResponse) ProtoMessage() {}
293
294
func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
295
	mi := &file_proto_gerdu_proto_msgTypes[5]
296
	if protoimpl.UnsafeEnabled && x != nil {
297
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
298
		if ms.LoadMessageInfo() == nil {
299
			ms.StoreMessageInfo(mi)
300
		}
301
		return ms
302
	}
303
	return mi.MessageOf(x)
304
}
305
306
// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
307
func (*DeleteResponse) Descriptor() ([]byte, []int) {
308
	return file_proto_gerdu_proto_rawDescGZIP(), []int{5}
309
}
310
311
func (x *DeleteResponse) GetDeleted() bool {
312
	if x != nil {
313
		return x.Deleted
314
	}
315
	return false
316
}
317
318
var File_proto_gerdu_proto protoreflect.FileDescriptor
319
320
var file_proto_gerdu_proto_rawDesc = []byte{
321
	0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x72, 0x64, 0x75, 0x2e, 0x70, 0x72,
322
	0x6f, 0x74, 0x6f, 0x12, 0x05, 0x67, 0x65, 0x72, 0x64, 0x75, 0x22, 0x27, 0x0a, 0x0b, 0x50, 0x75,
323
	0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65,
324
	0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
325
	0x74, 0x65, 0x64, 0x22, 0x34, 0x0a, 0x0a, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
326
	0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
327
	0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
328
	0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74,
329
	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
330
	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x23, 0x0a, 0x0b, 0x47, 0x65, 0x74,
331
	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
332
	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21,
333
	0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
334
	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
335
	0x79, 0x22, 0x2a, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
336
	0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x01,
337
	0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x32, 0x9a, 0x01,
338
	0x0a, 0x05, 0x47, 0x65, 0x72, 0x64, 0x75, 0x12, 0x2c, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x11,
339
	0x2e, 0x67, 0x65, 0x72, 0x64, 0x75, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
340
	0x74, 0x1a, 0x12, 0x2e, 0x67, 0x65, 0x72, 0x64, 0x75, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73,
341
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x11, 0x2e, 0x67,
342
	0x65, 0x72, 0x64, 0x75, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
343
	0x12, 0x2e, 0x67, 0x65, 0x72, 0x64, 0x75, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
344
	0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x14, 0x2e,
345
	0x67, 0x65, 0x72, 0x64, 0x75, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
346
	0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x65, 0x72, 0x64, 0x75, 0x2e, 0x44, 0x65, 0x6c, 0x65,
347
	0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x70, 0x72,
348
	0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
349
	0x33,
350
}
351
352
var (
353
	file_proto_gerdu_proto_rawDescOnce sync.Once
354
	file_proto_gerdu_proto_rawDescData = file_proto_gerdu_proto_rawDesc
355
)
356
357
func file_proto_gerdu_proto_rawDescGZIP() []byte {
358
	file_proto_gerdu_proto_rawDescOnce.Do(func() {
359
		file_proto_gerdu_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_gerdu_proto_rawDescData)
360
	})
361
	return file_proto_gerdu_proto_rawDescData
362
}
363
364
var file_proto_gerdu_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
365
var file_proto_gerdu_proto_goTypes = []interface{}{
366
	(*PutResponse)(nil),    // 0: gerdu.PutResponse
367
	(*PutRequest)(nil),     // 1: gerdu.PutRequest
368
	(*GetRequest)(nil),     // 2: gerdu.GetRequest
369
	(*GetResponse)(nil),    // 3: gerdu.GetResponse
370
	(*DeleteRequest)(nil),  // 4: gerdu.DeleteRequest
371
	(*DeleteResponse)(nil), // 5: gerdu.DeleteResponse
372
}
373
var file_proto_gerdu_proto_depIdxs = []int32{
374
	1, // 0: gerdu.Gerdu.Put:input_type -> gerdu.PutRequest
375
	2, // 1: gerdu.Gerdu.Get:input_type -> gerdu.GetRequest
376
	4, // 2: gerdu.Gerdu.Delete:input_type -> gerdu.DeleteRequest
377
	0, // 3: gerdu.Gerdu.Put:output_type -> gerdu.PutResponse
378
	3, // 4: gerdu.Gerdu.Get:output_type -> gerdu.GetResponse
379
	5, // 5: gerdu.Gerdu.Delete:output_type -> gerdu.DeleteResponse
380
	3, // [3:6] is the sub-list for method output_type
381
	0, // [0:3] is the sub-list for method input_type
382
	0, // [0:0] is the sub-list for extension type_name
383
	0, // [0:0] is the sub-list for extension extendee
384
	0, // [0:0] is the sub-list for field type_name
385
}
386
387
func init() { file_proto_gerdu_proto_init() }
388
func file_proto_gerdu_proto_init() {
389
	if File_proto_gerdu_proto != nil {
390
		return
391
	}
392
	if !protoimpl.UnsafeEnabled {
393
		file_proto_gerdu_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
394
			switch v := v.(*PutResponse); i {
395
			case 0:
396
				return &v.state
397
			case 1:
398
				return &v.sizeCache
399
			case 2:
400
				return &v.unknownFields
401
			default:
402
				return nil
403
			}
404
		}
405
		file_proto_gerdu_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
406
			switch v := v.(*PutRequest); i {
407
			case 0:
408
				return &v.state
409
			case 1:
410
				return &v.sizeCache
411
			case 2:
412
				return &v.unknownFields
413
			default:
414
				return nil
415
			}
416
		}
417
		file_proto_gerdu_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
418
			switch v := v.(*GetRequest); i {
419
			case 0:
420
				return &v.state
421
			case 1:
422
				return &v.sizeCache
423
			case 2:
424
				return &v.unknownFields
425
			default:
426
				return nil
427
			}
428
		}
429
		file_proto_gerdu_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
430
			switch v := v.(*GetResponse); i {
431
			case 0:
432
				return &v.state
433
			case 1:
434
				return &v.sizeCache
435
			case 2:
436
				return &v.unknownFields
437
			default:
438
				return nil
439
			}
440
		}
441
		file_proto_gerdu_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
442
			switch v := v.(*DeleteRequest); i {
443
			case 0:
444
				return &v.state
445
			case 1:
446
				return &v.sizeCache
447
			case 2:
448
				return &v.unknownFields
449
			default:
450
				return nil
451
			}
452
		}
453
		file_proto_gerdu_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
454
			switch v := v.(*DeleteResponse); i {
455
			case 0:
456
				return &v.state
457
			case 1:
458
				return &v.sizeCache
459
			case 2:
460
				return &v.unknownFields
461
			default:
462
				return nil
463
			}
464
		}
465
	}
466
	type x struct{}
467
	out := protoimpl.TypeBuilder{
468
		File: protoimpl.DescBuilder{
469
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
470
			RawDescriptor: file_proto_gerdu_proto_rawDesc,
471
			NumEnums:      0,
472
			NumMessages:   6,
473
			NumExtensions: 0,
474
			NumServices:   1,
475
		},
476
		GoTypes:           file_proto_gerdu_proto_goTypes,
477
		DependencyIndexes: file_proto_gerdu_proto_depIdxs,
478
		MessageInfos:      file_proto_gerdu_proto_msgTypes,
479
	}.Build()
480
	File_proto_gerdu_proto = out.File
481
	file_proto_gerdu_proto_rawDesc = nil
482
	file_proto_gerdu_proto_goTypes = nil
483
	file_proto_gerdu_proto_depIdxs = nil
484
}
485