Welcome to mirror list, hosted at ThFree Co, Russian Federation.

server.pb.go « gitalypb « go « proto - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f463b119e89da1de472c23f2eb430c5f05e8baa4 (plain)
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: server.proto

package gitalypb

import (
	context "context"
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	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.ProtoPackageIsVersion3 // please upgrade the proto package

type ServerInfoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ServerInfoRequest) Reset()         { *m = ServerInfoRequest{} }
func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) }
func (*ServerInfoRequest) ProtoMessage()    {}
func (*ServerInfoRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_ad098daeda4239f7, []int{0}
}

func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ServerInfoRequest.Unmarshal(m, b)
}
func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ServerInfoRequest.Marshal(b, m, deterministic)
}
func (m *ServerInfoRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ServerInfoRequest.Merge(m, src)
}
func (m *ServerInfoRequest) XXX_Size() int {
	return xxx_messageInfo_ServerInfoRequest.Size(m)
}
func (m *ServerInfoRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ServerInfoRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ServerInfoRequest proto.InternalMessageInfo

type ServerInfoResponse struct {
	ServerVersion        string                              `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
	GitVersion           string                              `protobuf:"bytes,2,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"`
	StorageStatuses      []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (m *ServerInfoResponse) Reset()         { *m = ServerInfoResponse{} }
func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) }
func (*ServerInfoResponse) ProtoMessage()    {}
func (*ServerInfoResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_ad098daeda4239f7, []int{1}
}

func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ServerInfoResponse.Unmarshal(m, b)
}
func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ServerInfoResponse.Marshal(b, m, deterministic)
}
func (m *ServerInfoResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ServerInfoResponse.Merge(m, src)
}
func (m *ServerInfoResponse) XXX_Size() int {
	return xxx_messageInfo_ServerInfoResponse.Size(m)
}
func (m *ServerInfoResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ServerInfoResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ServerInfoResponse proto.InternalMessageInfo

func (m *ServerInfoResponse) GetServerVersion() string {
	if m != nil {
		return m.ServerVersion
	}
	return ""
}

func (m *ServerInfoResponse) GetGitVersion() string {
	if m != nil {
		return m.GitVersion
	}
	return ""
}

func (m *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageStatus {
	if m != nil {
		return m.StorageStatuses
	}
	return nil
}

type ServerInfoResponse_StorageStatus struct {
	StorageName          string   `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
	Readable             bool     `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"`
	Writeable            bool     `protobuf:"varint,3,opt,name=writeable,proto3" json:"writeable,omitempty"`
	FsType               string   `protobuf:"bytes,4,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"`
	FilesystemId         string   `protobuf:"bytes,5,opt,name=filesystem_id,json=filesystemId,proto3" json:"filesystem_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ServerInfoResponse_StorageStatus) Reset()         { *m = ServerInfoResponse_StorageStatus{} }
func (m *ServerInfoResponse_StorageStatus) String() string { return proto.CompactTextString(m) }
func (*ServerInfoResponse_StorageStatus) ProtoMessage()    {}
func (*ServerInfoResponse_StorageStatus) Descriptor() ([]byte, []int) {
	return fileDescriptor_ad098daeda4239f7, []int{1, 0}
}

func (m *ServerInfoResponse_StorageStatus) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ServerInfoResponse_StorageStatus.Unmarshal(m, b)
}
func (m *ServerInfoResponse_StorageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ServerInfoResponse_StorageStatus.Marshal(b, m, deterministic)
}
func (m *ServerInfoResponse_StorageStatus) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ServerInfoResponse_StorageStatus.Merge(m, src)
}
func (m *ServerInfoResponse_StorageStatus) XXX_Size() int {
	return xxx_messageInfo_ServerInfoResponse_StorageStatus.Size(m)
}
func (m *ServerInfoResponse_StorageStatus) XXX_DiscardUnknown() {
	xxx_messageInfo_ServerInfoResponse_StorageStatus.DiscardUnknown(m)
}

var xxx_messageInfo_ServerInfoResponse_StorageStatus proto.InternalMessageInfo

func (m *ServerInfoResponse_StorageStatus) GetStorageName() string {
	if m != nil {
		return m.StorageName
	}
	return ""
}

func (m *ServerInfoResponse_StorageStatus) GetReadable() bool {
	if m != nil {
		return m.Readable
	}
	return false
}

func (m *ServerInfoResponse_StorageStatus) GetWriteable() bool {
	if m != nil {
		return m.Writeable
	}
	return false
}

func (m *ServerInfoResponse_StorageStatus) GetFsType() string {
	if m != nil {
		return m.FsType
	}
	return ""
}

func (m *ServerInfoResponse_StorageStatus) GetFilesystemId() string {
	if m != nil {
		return m.FilesystemId
	}
	return ""
}

type DiskStatisticsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DiskStatisticsRequest) Reset()         { *m = DiskStatisticsRequest{} }
func (m *DiskStatisticsRequest) String() string { return proto.CompactTextString(m) }
func (*DiskStatisticsRequest) ProtoMessage()    {}
func (*DiskStatisticsRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_ad098daeda4239f7, []int{2}
}

func (m *DiskStatisticsRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DiskStatisticsRequest.Unmarshal(m, b)
}
func (m *DiskStatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DiskStatisticsRequest.Marshal(b, m, deterministic)
}
func (m *DiskStatisticsRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DiskStatisticsRequest.Merge(m, src)
}
func (m *DiskStatisticsRequest) XXX_Size() int {
	return xxx_messageInfo_DiskStatisticsRequest.Size(m)
}
func (m *DiskStatisticsRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_DiskStatisticsRequest.DiscardUnknown(m)
}

var xxx_messageInfo_DiskStatisticsRequest proto.InternalMessageInfo

type DiskStatisticsResponse struct {
	StorageStatuses      []*DiskStatisticsResponse_StorageStatus `protobuf:"bytes,1,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
	XXX_unrecognized     []byte                                  `json:"-"`
	XXX_sizecache        int32                                   `json:"-"`
}

func (m *DiskStatisticsResponse) Reset()         { *m = DiskStatisticsResponse{} }
func (m *DiskStatisticsResponse) String() string { return proto.CompactTextString(m) }
func (*DiskStatisticsResponse) ProtoMessage()    {}
func (*DiskStatisticsResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_ad098daeda4239f7, []int{3}
}

func (m *DiskStatisticsResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DiskStatisticsResponse.Unmarshal(m, b)
}
func (m *DiskStatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DiskStatisticsResponse.Marshal(b, m, deterministic)
}
func (m *DiskStatisticsResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DiskStatisticsResponse.Merge(m, src)
}
func (m *DiskStatisticsResponse) XXX_Size() int {
	return xxx_messageInfo_DiskStatisticsResponse.Size(m)
}
func (m *DiskStatisticsResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_DiskStatisticsResponse.DiscardUnknown(m)
}

var xxx_messageInfo_DiskStatisticsResponse proto.InternalMessageInfo

func (m *DiskStatisticsResponse) GetStorageStatuses() []*DiskStatisticsResponse_StorageStatus {
	if m != nil {
		return m.StorageStatuses
	}
	return nil
}

type DiskStatisticsResponse_StorageStatus struct {
	// When both available and used fields are equal 0 that means that
	// Gitaly was unable to determine storage stats.
	StorageName          string   `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
	Available            int64    `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"`
	Used                 int64    `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *DiskStatisticsResponse_StorageStatus) Reset()         { *m = DiskStatisticsResponse_StorageStatus{} }
func (m *DiskStatisticsResponse_StorageStatus) String() string { return proto.CompactTextString(m) }
func (*DiskStatisticsResponse_StorageStatus) ProtoMessage()    {}
func (*DiskStatisticsResponse_StorageStatus) Descriptor() ([]byte, []int) {
	return fileDescriptor_ad098daeda4239f7, []int{3, 0}
}

func (m *DiskStatisticsResponse_StorageStatus) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Unmarshal(m, b)
}
func (m *DiskStatisticsResponse_StorageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Marshal(b, m, deterministic)
}
func (m *DiskStatisticsResponse_StorageStatus) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Merge(m, src)
}
func (m *DiskStatisticsResponse_StorageStatus) XXX_Size() int {
	return xxx_messageInfo_DiskStatisticsResponse_StorageStatus.Size(m)
}
func (m *DiskStatisticsResponse_StorageStatus) XXX_DiscardUnknown() {
	xxx_messageInfo_DiskStatisticsResponse_StorageStatus.DiscardUnknown(m)
}

var xxx_messageInfo_DiskStatisticsResponse_StorageStatus proto.InternalMessageInfo

func (m *DiskStatisticsResponse_StorageStatus) GetStorageName() string {
	if m != nil {
		return m.StorageName
	}
	return ""
}

func (m *DiskStatisticsResponse_StorageStatus) GetAvailable() int64 {
	if m != nil {
		return m.Available
	}
	return 0
}

func (m *DiskStatisticsResponse_StorageStatus) GetUsed() int64 {
	if m != nil {
		return m.Used
	}
	return 0
}

func init() {
	proto.RegisterType((*ServerInfoRequest)(nil), "gitaly.ServerInfoRequest")
	proto.RegisterType((*ServerInfoResponse)(nil), "gitaly.ServerInfoResponse")
	proto.RegisterType((*ServerInfoResponse_StorageStatus)(nil), "gitaly.ServerInfoResponse.StorageStatus")
	proto.RegisterType((*DiskStatisticsRequest)(nil), "gitaly.DiskStatisticsRequest")
	proto.RegisterType((*DiskStatisticsResponse)(nil), "gitaly.DiskStatisticsResponse")
	proto.RegisterType((*DiskStatisticsResponse_StorageStatus)(nil), "gitaly.DiskStatisticsResponse.StorageStatus")
}

func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) }

var fileDescriptor_ad098daeda4239f7 = []byte{
	// 436 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0x6e, 0xd3, 0x40,
	0x10, 0x86, 0xe5, 0x38, 0x84, 0x64, 0x92, 0x94, 0xb2, 0x08, 0x1a, 0xac, 0x02, 0x25, 0x08, 0x29,
	0x07, 0x70, 0x50, 0x79, 0x03, 0xc4, 0xa5, 0x07, 0x38, 0x38, 0x08, 0x04, 0x17, 0x6b, 0x1d, 0x8f,
	0xcd, 0x0a, 0xdb, 0x6b, 0x76, 0x36, 0x41, 0x7e, 0x12, 0xde, 0x81, 0x37, 0xe0, 0x49, 0xb8, 0xf1,
	0x20, 0x9c, 0x90, 0x77, 0xed, 0xb8, 0x85, 0x14, 0xa4, 0x5e, 0xac, 0x9d, 0x7f, 0xfe, 0x99, 0x1d,
	0x7f, 0x63, 0xc3, 0x84, 0x50, 0x6d, 0x51, 0xf9, 0xa5, 0x92, 0x5a, 0xb2, 0x41, 0x2a, 0x34, 0xcf,
	0x2a, 0x6f, 0x42, 0x1f, 0xb9, 0xc2, 0xd8, 0xaa, 0xf3, 0x5b, 0x70, 0x73, 0x65, 0x5c, 0x67, 0x45,
	0x22, 0x03, 0xfc, 0xbc, 0x41, 0xd2, 0xf3, 0x9f, 0x3d, 0x60, 0xe7, 0x55, 0x2a, 0x65, 0x41, 0xc8,
	0x1e, 0xc3, 0x81, 0xed, 0x18, 0x6e, 0x51, 0x91, 0x90, 0xc5, 0xcc, 0x39, 0x71, 0x16, 0xa3, 0x60,
	0x6a, 0xd5, 0xb7, 0x56, 0x64, 0x0f, 0x60, 0x9c, 0x0a, 0xbd, 0xf3, 0xf4, 0x8c, 0x07, 0x52, 0xa1,
	0x5b, 0xc3, 0x0a, 0x0e, 0x49, 0x4b, 0xc5, 0x53, 0x0c, 0x49, 0x73, 0xbd, 0x21, 0xa4, 0x99, 0x7b,
	0xe2, 0x2e, 0xc6, 0xa7, 0x0b, 0xdf, 0x0e, 0xe9, 0xff, 0x7d, 0xbb, 0xbf, 0xb2, 0x25, 0x2b, 0x53,
	0x11, 0xdc, 0xa0, 0xf3, 0x21, 0x92, 0xf7, 0xcd, 0x81, 0xe9, 0x05, 0x0b, 0x7b, 0x08, 0x93, 0xf6,
	0x9a, 0x82, 0xe7, 0xd8, 0x0c, 0x3b, 0x6e, 0xb4, 0xd7, 0x3c, 0x47, 0xe6, 0xc1, 0x50, 0x21, 0x8f,
	0x79, 0x94, 0xa1, 0x99, 0x73, 0x18, 0xec, 0x62, 0x76, 0x0c, 0xa3, 0x2f, 0x4a, 0x68, 0x34, 0x49,
	0xd7, 0x24, 0x3b, 0x81, 0x1d, 0xc1, 0xf5, 0x84, 0x42, 0x5d, 0x95, 0x38, 0xeb, 0x9b, 0xbe, 0x83,
	0x84, 0xde, 0x54, 0x25, 0xb2, 0x47, 0x30, 0x4d, 0x44, 0x86, 0x54, 0x91, 0xc6, 0x3c, 0x14, 0xf1,
	0xec, 0x9a, 0x49, 0x4f, 0x3a, 0xf1, 0x2c, 0x9e, 0x1f, 0xc1, 0xed, 0x97, 0x82, 0x3e, 0xd5, 0x83,
	0x0a, 0xd2, 0x62, 0x4d, 0x2d, 0xf9, 0x1f, 0x0e, 0xdc, 0xf9, 0x33, 0xd3, 0xd0, 0x7f, 0xb7, 0x87,
	0x9a, 0x63, 0xa8, 0x3d, 0x69, 0xa9, 0xed, 0xaf, 0xfc, 0x1f, 0xb9, 0xf8, 0x0a, 0xe0, 0x8e, 0x61,
	0xc4, 0xb7, 0x5c, 0x64, 0x3b, 0x72, 0x6e, 0xd0, 0x09, 0x8c, 0x41, 0x7f, 0x43, 0x18, 0x1b, 0x6a,
	0x6e, 0x60, 0xce, 0xa7, 0xdf, 0xeb, 0xfd, 0x98, 0xad, 0xd6, 0x4f, 0xb1, 0x46, 0xf6, 0x0a, 0xa0,
	0x5b, 0x33, 0xbb, 0xbb, 0x6f, 0xf5, 0x06, 0x8a, 0xe7, 0x5d, 0xfe, 0x55, 0xcc, 0x87, 0xbf, 0xbe,
	0x2e, 0xfa, 0xc3, 0xde, 0xa1, 0xc3, 0xde, 0xc3, 0xc1, 0xc5, 0xf7, 0x67, 0xf7, 0x2e, 0xe3, 0x62,
	0xdb, 0xde, 0xff, 0x37, 0xb6, 0xae, 0xf5, 0x8b, 0x67, 0x1f, 0x6a, 0x6b, 0xc6, 0x23, 0x7f, 0x2d,
	0xf3, 0xa5, 0x3d, 0x3e, 0x95, 0x2a, 0x5d, 0xda, 0x06, 0x4b, 0xf3, 0x2b, 0x2d, 0x53, 0xd9, 0xc4,
	0x65, 0x14, 0x0d, 0x8c, 0xf4, 0xfc, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xba, 0x46, 0xb9,
	0x83, 0x03, 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

// ServerServiceClient is the client API for ServerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServerServiceClient interface {
	ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error)
	DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error)
}

type serverServiceClient struct {
	cc *grpc.ClientConn
}

func NewServerServiceClient(cc *grpc.ClientConn) ServerServiceClient {
	return &serverServiceClient{cc}
}

func (c *serverServiceClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) {
	out := new(ServerInfoResponse)
	err := c.cc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *serverServiceClient) DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error) {
	out := new(DiskStatisticsResponse)
	err := c.cc.Invoke(ctx, "/gitaly.ServerService/DiskStatistics", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ServerServiceServer is the server API for ServerService service.
type ServerServiceServer interface {
	ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error)
	DiskStatistics(context.Context, *DiskStatisticsRequest) (*DiskStatisticsResponse, error)
}

// UnimplementedServerServiceServer can be embedded to have forward compatible implementations.
type UnimplementedServerServiceServer struct {
}

func (*UnimplementedServerServiceServer) ServerInfo(ctx context.Context, req *ServerInfoRequest) (*ServerInfoResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented")
}
func (*UnimplementedServerServiceServer) DiskStatistics(ctx context.Context, req *DiskStatisticsRequest) (*DiskStatisticsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DiskStatistics not implemented")
}

func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer) {
	s.RegisterService(&_ServerService_serviceDesc, srv)
}

func _ServerService_ServerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ServerInfoRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ServerServiceServer).ServerInfo(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/gitaly.ServerService/ServerInfo",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ServerServiceServer).ServerInfo(ctx, req.(*ServerInfoRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ServerService_DiskStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DiskStatisticsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ServerServiceServer).DiskStatistics(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/gitaly.ServerService/DiskStatistics",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ServerServiceServer).DiskStatistics(ctx, req.(*DiskStatisticsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _ServerService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "gitaly.ServerService",
	HandlerType: (*ServerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ServerInfo",
			Handler:    _ServerService_ServerInfo_Handler,
		},
		{
			MethodName: "DiskStatistics",
			Handler:    _ServerService_DiskStatistics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server.proto",
}