Debian Codegraph @

apis/v1beta1/api.pb.go

raw symbols SCIP
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Code generated by protoc-gen-gogo. DO NOT EDIT.
18 // api.proto is a deprecated file.
19
20 package v1beta1
21
22 import (
23 context "context"
24 fmt "fmt"
25 proto "github.com/gogo/protobuf/proto"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 math "math"
30 )
31
32 // Reference imports to suppress errors if they are not otherwise used.
33 var _ = proto.Marshal
34 var _ = fmt.Errorf
35 var _ = math.Inf
36
37 // This is a compile-time assertion to ensure that this generated file
38 // is compatible with the proto package it is being compiled against.
39 // A compilation error at this line likely means your copy of the
40 // proto package needs to be updated.
41 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
42
43 // Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
44 type VersionRequest struct {
45 // Version of the KMS plugin API.
46 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
47 XXX_NoUnkeyedLiteral struct{} `json:"-"`
48 XXX_unrecognized []byte `json:"-"`
49 XXX_sizecache int32 `json:"-"`
50 }
51
52 func (m *VersionRequest) Reset() { *m = VersionRequest{} }
53 func (m *VersionRequest) String() string { return proto.CompactTextString(m) }
54 func (*VersionRequest) ProtoMessage() {}
55 func (*VersionRequest) Descriptor() ([]byte, []int) {
56 return fileDescriptor_00212fb1f9d3bf1c, []int{0}
57 }
58 func (m *VersionRequest) XXX_Unmarshal(b []byte) error {
59 return xxx_messageInfo_VersionRequest.Unmarshal(m, b)
60 }
61 func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
62 return xxx_messageInfo_VersionRequest.Marshal(b, m, deterministic)
63 }
64 func (m *VersionRequest) XXX_Merge(src proto.Message) {
65 xxx_messageInfo_VersionRequest.Merge(m, src)
66 }
67 func (m *VersionRequest) XXX_Size() int {
68 return xxx_messageInfo_VersionRequest.Size(m)
69 }
70 func (m *VersionRequest) XXX_DiscardUnknown() {
71 xxx_messageInfo_VersionRequest.DiscardUnknown(m)
72 }
73
74 var xxx_messageInfo_VersionRequest proto.InternalMessageInfo
75
76 func (m *VersionRequest) GetVersion() string {
77 if m != nil {
78 return m.Version
79 }
80 return ""
81 }
82
83 // Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
84 type VersionResponse struct {
85 // Version of the KMS plugin API.
86 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
87 // Name of the KMS provider.
88 RuntimeName string `protobuf:"bytes,2,opt,name=runtime_name,json=runtimeName,proto3" json:"runtime_name,omitempty"`
89 // Version of the KMS provider. The string must be semver-compatible.
90 RuntimeVersion string `protobuf:"bytes,3,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
91 XXX_NoUnkeyedLiteral struct{} `json:"-"`
92 XXX_unrecognized []byte `json:"-"`
93 XXX_sizecache int32 `json:"-"`
94 }
95
96 func (m *VersionResponse) Reset() { *m = VersionResponse{} }
97 func (m *VersionResponse) String() string { return proto.CompactTextString(m) }
98 func (*VersionResponse) ProtoMessage() {}
99 func (*VersionResponse) Descriptor() ([]byte, []int) {
100 return fileDescriptor_00212fb1f9d3bf1c, []int{1}
101 }
102 func (m *VersionResponse) XXX_Unmarshal(b []byte) error {
103 return xxx_messageInfo_VersionResponse.Unmarshal(m, b)
104 }
105 func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
106 return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic)
107 }
108 func (m *VersionResponse) XXX_Merge(src proto.Message) {
109 xxx_messageInfo_VersionResponse.Merge(m, src)
110 }
111 func (m *VersionResponse) XXX_Size() int {
112 return xxx_messageInfo_VersionResponse.Size(m)
113 }
114 func (m *VersionResponse) XXX_DiscardUnknown() {
115 xxx_messageInfo_VersionResponse.DiscardUnknown(m)
116 }
117
118 var xxx_messageInfo_VersionResponse proto.InternalMessageInfo
119
120 func (m *VersionResponse) GetVersion() string {
121 if m != nil {
122 return m.Version
123 }
124 return ""
125 }
126
127 func (m *VersionResponse) GetRuntimeName() string {
128 if m != nil {
129 return m.RuntimeName
130 }
131 return ""
132 }
133
134 func (m *VersionResponse) GetRuntimeVersion() string {
135 if m != nil {
136 return m.RuntimeVersion
137 }
138 return ""
139 }
140
141 // Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
142 type DecryptRequest struct {
143 // Version of the KMS plugin API.
144 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
145 // The data to be decrypted.
146 Cipher []byte `protobuf:"bytes,2,opt,name=cipher,proto3" json:"cipher,omitempty"`
147 XXX_NoUnkeyedLiteral struct{} `json:"-"`
148 XXX_unrecognized []byte `json:"-"`
149 XXX_sizecache int32 `json:"-"`
150 }
151
152 func (m *DecryptRequest) Reset() { *m = DecryptRequest{} }
153 func (m *DecryptRequest) String() string { return proto.CompactTextString(m) }
154 func (*DecryptRequest) ProtoMessage() {}
155 func (*DecryptRequest) Descriptor() ([]byte, []int) {
156 return fileDescriptor_00212fb1f9d3bf1c, []int{2}
157 }
158 func (m *DecryptRequest) XXX_Unmarshal(b []byte) error {
159 return xxx_messageInfo_DecryptRequest.Unmarshal(m, b)
160 }
161 func (m *DecryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
162 return xxx_messageInfo_DecryptRequest.Marshal(b, m, deterministic)
163 }
164 func (m *DecryptRequest) XXX_Merge(src proto.Message) {
165 xxx_messageInfo_DecryptRequest.Merge(m, src)
166 }
167 func (m *DecryptRequest) XXX_Size() int {
168 return xxx_messageInfo_DecryptRequest.Size(m)
169 }
170 func (m *DecryptRequest) XXX_DiscardUnknown() {
171 xxx_messageInfo_DecryptRequest.DiscardUnknown(m)
172 }
173
174 var xxx_messageInfo_DecryptRequest proto.InternalMessageInfo
175
176 func (m *DecryptRequest) GetVersion() string {
177 if m != nil {
178 return m.Version
179 }
180 return ""
181 }
182
183 func (m *DecryptRequest) GetCipher() []byte {
184 if m != nil {
185 return m.Cipher
186 }
187 return nil
188 }
189
190 // Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
191 type DecryptResponse struct {
192 // The decrypted data.
193 Plain []byte `protobuf:"bytes,1,opt,name=plain,proto3" json:"plain,omitempty"`
194 XXX_NoUnkeyedLiteral struct{} `json:"-"`
195 XXX_unrecognized []byte `json:"-"`
196 XXX_sizecache int32 `json:"-"`
197 }
198
199 func (m *DecryptResponse) Reset() { *m = DecryptResponse{} }
200 func (m *DecryptResponse) String() string { return proto.CompactTextString(m) }
201 func (*DecryptResponse) ProtoMessage() {}
202 func (*DecryptResponse) Descriptor() ([]byte, []int) {
203 return fileDescriptor_00212fb1f9d3bf1c, []int{3}
204 }
205 func (m *DecryptResponse) XXX_Unmarshal(b []byte) error {
206 return xxx_messageInfo_DecryptResponse.Unmarshal(m, b)
207 }
208 func (m *DecryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
209 return xxx_messageInfo_DecryptResponse.Marshal(b, m, deterministic)
210 }
211 func (m *DecryptResponse) XXX_Merge(src proto.Message) {
212 xxx_messageInfo_DecryptResponse.Merge(m, src)
213 }
214 func (m *DecryptResponse) XXX_Size() int {
215 return xxx_messageInfo_DecryptResponse.Size(m)
216 }
217 func (m *DecryptResponse) XXX_DiscardUnknown() {
218 xxx_messageInfo_DecryptResponse.DiscardUnknown(m)
219 }
220
221 var xxx_messageInfo_DecryptResponse proto.InternalMessageInfo
222
223 func (m *DecryptResponse) GetPlain() []byte {
224 if m != nil {
225 return m.Plain
226 }
227 return nil
228 }
229
230 // Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
231 type EncryptRequest struct {
232 // Version of the KMS plugin API.
233 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
234 // The data to be encrypted.
235 Plain []byte `protobuf:"bytes,2,opt,name=plain,proto3" json:"plain,omitempty"`
236 XXX_NoUnkeyedLiteral struct{} `json:"-"`
237 XXX_unrecognized []byte `json:"-"`
238 XXX_sizecache int32 `json:"-"`
239 }
240
241 func (m *EncryptRequest) Reset() { *m = EncryptRequest{} }
242 func (m *EncryptRequest) String() string { return proto.CompactTextString(m) }
243 func (*EncryptRequest) ProtoMessage() {}
244 func (*EncryptRequest) Descriptor() ([]byte, []int) {
245 return fileDescriptor_00212fb1f9d3bf1c, []int{4}
246 }
247 func (m *EncryptRequest) XXX_Unmarshal(b []byte) error {
248 return xxx_messageInfo_EncryptRequest.Unmarshal(m, b)
249 }
250 func (m *EncryptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
251 return xxx_messageInfo_EncryptRequest.Marshal(b, m, deterministic)
252 }
253 func (m *EncryptRequest) XXX_Merge(src proto.Message) {
254 xxx_messageInfo_EncryptRequest.Merge(m, src)
255 }
256 func (m *EncryptRequest) XXX_Size() int {
257 return xxx_messageInfo_EncryptRequest.Size(m)
258 }
259 func (m *EncryptRequest) XXX_DiscardUnknown() {
260 xxx_messageInfo_EncryptRequest.DiscardUnknown(m)
261 }
262
263 var xxx_messageInfo_EncryptRequest proto.InternalMessageInfo
264
265 func (m *EncryptRequest) GetVersion() string {
266 if m != nil {
267 return m.Version
268 }
269 return ""
270 }
271
272 func (m *EncryptRequest) GetPlain() []byte {
273 if m != nil {
274 return m.Plain
275 }
276 return nil
277 }
278
279 // Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead.
280 type EncryptResponse struct {
281 // The encrypted data.
282 Cipher []byte `protobuf:"bytes,1,opt,name=cipher,proto3" json:"cipher,omitempty"`
283 XXX_NoUnkeyedLiteral struct{} `json:"-"`
284 XXX_unrecognized []byte `json:"-"`
285 XXX_sizecache int32 `json:"-"`
286 }
287
288 func (m *EncryptResponse) Reset() { *m = EncryptResponse{} }
289 func (m *EncryptResponse) String() string { return proto.CompactTextString(m) }
290 func (*EncryptResponse) ProtoMessage() {}
291 func (*EncryptResponse) Descriptor() ([]byte, []int) {
292 return fileDescriptor_00212fb1f9d3bf1c, []int{5}
293 }
294 func (m *EncryptResponse) XXX_Unmarshal(b []byte) error {
295 return xxx_messageInfo_EncryptResponse.Unmarshal(m, b)
296 }
297 func (m *EncryptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
298 return xxx_messageInfo_EncryptResponse.Marshal(b, m, deterministic)
299 }
300 func (m *EncryptResponse) XXX_Merge(src proto.Message) {
301 xxx_messageInfo_EncryptResponse.Merge(m, src)
302 }
303 func (m *EncryptResponse) XXX_Size() int {
304 return xxx_messageInfo_EncryptResponse.Size(m)
305 }
306 func (m *EncryptResponse) XXX_DiscardUnknown() {
307 xxx_messageInfo_EncryptResponse.DiscardUnknown(m)
308 }
309
310 var xxx_messageInfo_EncryptResponse proto.InternalMessageInfo
311
312 func (m *EncryptResponse) GetCipher() []byte {
313 if m != nil {
314 return m.Cipher
315 }
316 return nil
317 }
318
319 func init() {
320 proto.RegisterType((*VersionRequest)(nil), "v1beta1.VersionRequest")
321 proto.RegisterType((*VersionResponse)(nil), "v1beta1.VersionResponse")
322 proto.RegisterType((*DecryptRequest)(nil), "v1beta1.DecryptRequest")
323 proto.RegisterType((*DecryptResponse)(nil), "v1beta1.DecryptResponse")
324 proto.RegisterType((*EncryptRequest)(nil), "v1beta1.EncryptRequest")
325 proto.RegisterType((*EncryptResponse)(nil), "v1beta1.EncryptResponse")
326 }
327
328 func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
329
330 var fileDescriptor_00212fb1f9d3bf1c = []byte{
331 // 314 bytes of a gzipped FileDescriptorProto
332 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcf, 0x4a, 0xf3, 0x40,
333 0x10, 0xef, 0xf6, 0xe3, 0x6b, 0xe9, 0x58, 0x12, 0x58, 0x8a, 0x0d, 0xe2, 0x41, 0xf7, 0x52, 0xf5,
334 0x90, 0x52, 0xbd, 0x78, 0x12, 0x29, 0x7a, 0x12, 0x3d, 0x44, 0xf0, 0xe0, 0x45, 0xb6, 0x61, 0xd0,
335 0xa5, 0x66, 0xb3, 0xee, 0x6e, 0x23, 0x7d, 0x33, 0x9f, 0xc4, 0xe7, 0x11, 0x93, 0x4d, 0xdc, 0x54,
336 0x44, 0x8f, 0x33, 0xfb, 0xfb, 0x33, 0xbf, 0x99, 0x85, 0x01, 0x57, 0x22, 0x56, 0x3a, 0xb7, 0x39,
337 0xed, 0x17, 0xb3, 0x05, 0x5a, 0x3e, 0x63, 0x47, 0x10, 0xdc, 0xa1, 0x36, 0x22, 0x97, 0x09, 0xbe,
338 0xac, 0xd0, 0x58, 0x1a, 0x41, 0xbf, 0xa8, 0x3a, 0x11, 0xd9, 0x23, 0x07, 0x83, 0xa4, 0x2e, 0xd9,
339 0x2b, 0x84, 0x0d, 0xd6, 0xa8, 0x5c, 0x1a, 0xfc, 0x19, 0x4c, 0xf7, 0x61, 0xa8, 0x57, 0xd2, 0x8a,
340 0x0c, 0x1f, 0x24, 0xcf, 0x30, 0xea, 0x96, 0xcf, 0x5b, 0xae, 0x77, 0xc3, 0x33, 0xa4, 0x13, 0x08,
341 0x6b, 0x48, 0x2d, 0xf2, 0xaf, 0x44, 0x05, 0xae, 0xed, 0xdc, 0xd8, 0x1c, 0x82, 0x0b, 0x4c, 0xf5,
342 0x5a, 0xd9, 0x5f, 0x87, 0xa4, 0xdb, 0xd0, 0x4b, 0x85, 0x7a, 0x42, 0x5d, 0x3a, 0x0e, 0x13, 0x57,
343 0xb1, 0x09, 0x84, 0x8d, 0x86, 0x1b, 0x7e, 0x04, 0xff, 0xd5, 0x33, 0x17, 0x95, 0xc4, 0x30, 0xa9,
344 0x0a, 0x76, 0x0e, 0xc1, 0xa5, 0xfc, 0xa3, 0x59, 0xa3, 0xd0, 0xf5, 0x15, 0x0e, 0x21, 0x6c, 0x14,
345 0x9c, 0xd5, 0xd7, 0x54, 0xc4, 0x9f, 0xea, 0xf8, 0x9d, 0xc0, 0xe8, 0x0a, 0xd7, 0xd7, 0x5c, 0xf2,
346 0x47, 0xcc, 0x50, 0xda, 0x5b, 0xd4, 0x85, 0x48, 0x91, 0x9e, 0x41, 0xdf, 0xa5, 0xa7, 0xe3, 0xd8,
347 0x1d, 0x2b, 0x6e, 0x5f, 0x6a, 0x27, 0xfa, 0xfe, 0x50, 0xd9, 0xb1, 0xce, 0x27, 0xdf, 0xc5, 0xf5,
348 0xf8, 0xed, 0x25, 0x7a, 0xfc, 0x8d, 0xcd, 0x54, 0x7c, 0x97, 0xc1, 0xe3, 0xb7, 0xf7, 0xe2, 0xf1,
349 0x37, 0xe2, 0xb2, 0xce, 0x7c, 0xf7, 0x7e, 0xbc, 0x3c, 0x35, 0xb1, 0xc8, 0xa7, 0xcb, 0xcc, 0x4c,
350 0xb9, 0x12, 0x66, 0xea, 0xc0, 0x6f, 0x84, 0x2c, 0x7a, 0xe5, 0x2f, 0x3c, 0xf9, 0x08, 0x00, 0x00,
351 0xff, 0xff, 0x18, 0x47, 0x93, 0xb2, 0x92, 0x02, 0x00, 0x00,
352 }
353
354 // Reference imports to suppress errors if they are not otherwise used.
355 var _ context.Context
356 var _ grpc.ClientConn
357
358 // This is a compile-time assertion to ensure that this generated file
359 // is compatible with the grpc package it is being compiled against.
360 const _ = grpc.SupportPackageIsVersion4
361
362 // KeyManagementServiceClient is the client API for KeyManagementService service.
363 //
364 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
365 type KeyManagementServiceClient interface {
366 // Version returns the runtime name and runtime version of the KMS provider.
367 Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
368 // Execute decryption operation in KMS provider.
369 Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error)
370 // Execute encryption operation in KMS provider.
371 Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error)
372 }
373
374 type keyManagementServiceClient struct {
375 cc *grpc.ClientConn
376 }
377
378 func NewKeyManagementServiceClient(cc *grpc.ClientConn) KeyManagementServiceClient {
379 return &keyManagementServiceClient{cc}
380 }
381
382 func (c *keyManagementServiceClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) {
383 out := new(VersionResponse)
384 err := c.cc.Invoke(ctx, "/v1beta1.KeyManagementService/Version", in, out, opts...)
385 if err != nil {
386 return nil, err
387 }
388 return out, nil
389 }
390
391 func (c *keyManagementServiceClient) Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error) {
392 out := new(DecryptResponse)
393 err := c.cc.Invoke(ctx, "/v1beta1.KeyManagementService/Decrypt", in, out, opts...)
394 if err != nil {
395 return nil, err
396 }
397 return out, nil
398 }
399
400 func (c *keyManagementServiceClient) Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error) {
401 out := new(EncryptResponse)
402 err := c.cc.Invoke(ctx, "/v1beta1.KeyManagementService/Encrypt", in, out, opts...)
403 if err != nil {
404 return nil, err
405 }
406 return out, nil
407 }
408
409 // KeyManagementServiceServer is the server API for KeyManagementService service.
410 type KeyManagementServiceServer interface {
411 // Version returns the runtime name and runtime version of the KMS provider.
412 Version(context.Context, *VersionRequest) (*VersionResponse, error)
413 // Execute decryption operation in KMS provider.
414 Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
415 // Execute encryption operation in KMS provider.
416 Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
417 }
418
419 // UnimplementedKeyManagementServiceServer can be embedded to have forward compatible implementations.
420 type UnimplementedKeyManagementServiceServer struct {
421 }
422
423 func (*UnimplementedKeyManagementServiceServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error) {
424 return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
425 }
426 func (*UnimplementedKeyManagementServiceServer) Decrypt(ctx context.Context, req *DecryptRequest) (*DecryptResponse, error) {
427 return nil, status.Errorf(codes.Unimplemented, "method Decrypt not implemented")
428 }
429 func (*UnimplementedKeyManagementServiceServer) Encrypt(ctx context.Context, req *EncryptRequest) (*EncryptResponse, error) {
430 return nil, status.Errorf(codes.Unimplemented, "method Encrypt not implemented")
431 }
432
433 func RegisterKeyManagementServiceServer(s *grpc.Server, srv KeyManagementServiceServer) {
434 s.RegisterService(&_KeyManagementService_serviceDesc, srv)
435 }
436
437 func _KeyManagementService_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
438 in := new(VersionRequest)
439 if err := dec(in); err != nil {
440 return nil, err
441 }
442 if interceptor == nil {
443 return srv.(KeyManagementServiceServer).Version(ctx, in)
444 }
445 info := &grpc.UnaryServerInfo{
446 Server: srv,
447 FullMethod: "/v1beta1.KeyManagementService/Version",
448 }
449 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
450 return srv.(KeyManagementServiceServer).Version(ctx, req.(*VersionRequest))
451 }
452 return interceptor(ctx, in, info, handler)
453 }
454
455 func _KeyManagementService_Decrypt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
456 in := new(DecryptRequest)
457 if err := dec(in); err != nil {
458 return nil, err
459 }
460 if interceptor == nil {
461 return srv.(KeyManagementServiceServer).Decrypt(ctx, in)
462 }
463 info := &grpc.UnaryServerInfo{
464 Server: srv,
465 FullMethod: "/v1beta1.KeyManagementService/Decrypt",
466 }
467 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
468 return srv.(KeyManagementServiceServer).Decrypt(ctx, req.(*DecryptRequest))
469 }
470 return interceptor(ctx, in, info, handler)
471 }
472
473 func _KeyManagementService_Encrypt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
474 in := new(EncryptRequest)
475 if err := dec(in); err != nil {
476 return nil, err
477 }
478 if interceptor == nil {
479 return srv.(KeyManagementServiceServer).Encrypt(ctx, in)
480 }
481 info := &grpc.UnaryServerInfo{
482 Server: srv,
483 FullMethod: "/v1beta1.KeyManagementService/Encrypt",
484 }
485 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
486 return srv.(KeyManagementServiceServer).Encrypt(ctx, req.(*EncryptRequest))
487 }
488 return interceptor(ctx, in, info, handler)
489 }
490
491 var _KeyManagementService_serviceDesc = grpc.ServiceDesc{
492 ServiceName: "v1beta1.KeyManagementService",
493 HandlerType: (*KeyManagementServiceServer)(nil),
494 Methods: []grpc.MethodDesc{
495 {
496 MethodName: "Version",
497 Handler: _KeyManagementService_Version_Handler,
498 },
499 {
500 MethodName: "Decrypt",
501 Handler: _KeyManagementService_Decrypt_Handler,
502 },
503 {
504 MethodName: "Encrypt",
505 Handler: _KeyManagementService_Encrypt_Handler,
506 },
507 },
508 Streams: []grpc.StreamDesc{},
509 Metadata: "api.proto",
510 }