github.com/prysmaticlabs/prysm@v1.4.4/proto/cluster/services.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.15.8 5 // source: proto/cluster/services.proto 6 7 package prysm_internal_cluster 8 9 import ( 10 context "context" 11 reflect "reflect" 12 sync "sync" 13 14 proto "github.com/golang/protobuf/proto" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 19 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 // This is a compile-time assertion that a sufficiently up-to-date version 30 // of the legacy proto package is being used. 31 const _ = proto.ProtoPackageIsVersion4 32 33 type PrivateKeyRequest struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 PodName string `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` 39 NumberOfKeys uint64 `protobuf:"varint,2,opt,name=number_of_keys,json=numberOfKeys,proto3" json:"number_of_keys,omitempty"` 40 } 41 42 func (x *PrivateKeyRequest) Reset() { 43 *x = PrivateKeyRequest{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_proto_cluster_services_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *PrivateKeyRequest) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*PrivateKeyRequest) ProtoMessage() {} 56 57 func (x *PrivateKeyRequest) ProtoReflect() protoreflect.Message { 58 mi := &file_proto_cluster_services_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use PrivateKeyRequest.ProtoReflect.Descriptor instead. 70 func (*PrivateKeyRequest) Descriptor() ([]byte, []int) { 71 return file_proto_cluster_services_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *PrivateKeyRequest) GetPodName() string { 75 if x != nil { 76 return x.PodName 77 } 78 return "" 79 } 80 81 func (x *PrivateKeyRequest) GetNumberOfKeys() uint64 { 82 if x != nil { 83 return x.NumberOfKeys 84 } 85 return 0 86 } 87 88 type PrivateKeyResponse struct { 89 state protoimpl.MessageState 90 sizeCache protoimpl.SizeCache 91 unknownFields protoimpl.UnknownFields 92 93 // Deprecated: Do not use. 94 PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` 95 PrivateKeys *PrivateKeys `protobuf:"bytes,2,opt,name=private_keys,json=privateKeys,proto3" json:"private_keys,omitempty"` 96 } 97 98 func (x *PrivateKeyResponse) Reset() { 99 *x = PrivateKeyResponse{} 100 if protoimpl.UnsafeEnabled { 101 mi := &file_proto_cluster_services_proto_msgTypes[1] 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 ms.StoreMessageInfo(mi) 104 } 105 } 106 107 func (x *PrivateKeyResponse) String() string { 108 return protoimpl.X.MessageStringOf(x) 109 } 110 111 func (*PrivateKeyResponse) ProtoMessage() {} 112 113 func (x *PrivateKeyResponse) ProtoReflect() protoreflect.Message { 114 mi := &file_proto_cluster_services_proto_msgTypes[1] 115 if protoimpl.UnsafeEnabled && x != nil { 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 if ms.LoadMessageInfo() == nil { 118 ms.StoreMessageInfo(mi) 119 } 120 return ms 121 } 122 return mi.MessageOf(x) 123 } 124 125 // Deprecated: Use PrivateKeyResponse.ProtoReflect.Descriptor instead. 126 func (*PrivateKeyResponse) Descriptor() ([]byte, []int) { 127 return file_proto_cluster_services_proto_rawDescGZIP(), []int{1} 128 } 129 130 // Deprecated: Do not use. 131 func (x *PrivateKeyResponse) GetPrivateKey() []byte { 132 if x != nil { 133 return x.PrivateKey 134 } 135 return nil 136 } 137 138 func (x *PrivateKeyResponse) GetPrivateKeys() *PrivateKeys { 139 if x != nil { 140 return x.PrivateKeys 141 } 142 return nil 143 } 144 145 type PrivateKeys struct { 146 state protoimpl.MessageState 147 sizeCache protoimpl.SizeCache 148 unknownFields protoimpl.UnknownFields 149 150 PrivateKeys [][]byte `protobuf:"bytes,1,rep,name=private_keys,json=privateKeys,proto3" json:"private_keys,omitempty"` 151 } 152 153 func (x *PrivateKeys) Reset() { 154 *x = PrivateKeys{} 155 if protoimpl.UnsafeEnabled { 156 mi := &file_proto_cluster_services_proto_msgTypes[2] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (x *PrivateKeys) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*PrivateKeys) ProtoMessage() {} 167 168 func (x *PrivateKeys) ProtoReflect() protoreflect.Message { 169 mi := &file_proto_cluster_services_proto_msgTypes[2] 170 if protoimpl.UnsafeEnabled && x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use PrivateKeys.ProtoReflect.Descriptor instead. 181 func (*PrivateKeys) Descriptor() ([]byte, []int) { 182 return file_proto_cluster_services_proto_rawDescGZIP(), []int{2} 183 } 184 185 func (x *PrivateKeys) GetPrivateKeys() [][]byte { 186 if x != nil { 187 return x.PrivateKeys 188 } 189 return nil 190 } 191 192 var File_proto_cluster_services_proto protoreflect.FileDescriptor 193 194 var file_proto_cluster_services_proto_rawDesc = []byte{ 195 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2f, 196 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 197 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x63, 198 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x54, 0x0a, 0x11, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 199 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 200 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 201 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 202 0x5f, 0x6f, 0x66, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 203 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x81, 0x01, 0x0a, 204 0x12, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 205 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 206 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x70, 0x72, 207 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x46, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x76, 208 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 209 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 210 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 211 0x65, 0x79, 0x73, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 212 0x22, 0x30, 0x0a, 0x0b, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 213 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 214 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 215 0x79, 0x73, 0x32, 0x75, 0x0a, 0x11, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 216 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x60, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 217 0x73, 0x74, 0x12, 0x29, 0x2e, 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 218 0x6e, 0x61, 0x6c, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x69, 0x76, 219 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 220 0x70, 0x72, 0x79, 0x73, 0x6d, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x63, 221 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 222 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 223 0x33, 224 } 225 226 var ( 227 file_proto_cluster_services_proto_rawDescOnce sync.Once 228 file_proto_cluster_services_proto_rawDescData = file_proto_cluster_services_proto_rawDesc 229 ) 230 231 func file_proto_cluster_services_proto_rawDescGZIP() []byte { 232 file_proto_cluster_services_proto_rawDescOnce.Do(func() { 233 file_proto_cluster_services_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_cluster_services_proto_rawDescData) 234 }) 235 return file_proto_cluster_services_proto_rawDescData 236 } 237 238 var file_proto_cluster_services_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 239 var file_proto_cluster_services_proto_goTypes = []interface{}{ 240 (*PrivateKeyRequest)(nil), // 0: prysm.internal.cluster.PrivateKeyRequest 241 (*PrivateKeyResponse)(nil), // 1: prysm.internal.cluster.PrivateKeyResponse 242 (*PrivateKeys)(nil), // 2: prysm.internal.cluster.PrivateKeys 243 } 244 var file_proto_cluster_services_proto_depIdxs = []int32{ 245 2, // 0: prysm.internal.cluster.PrivateKeyResponse.private_keys:type_name -> prysm.internal.cluster.PrivateKeys 246 0, // 1: prysm.internal.cluster.PrivateKeyService.Request:input_type -> prysm.internal.cluster.PrivateKeyRequest 247 1, // 2: prysm.internal.cluster.PrivateKeyService.Request:output_type -> prysm.internal.cluster.PrivateKeyResponse 248 2, // [2:3] is the sub-list for method output_type 249 1, // [1:2] is the sub-list for method input_type 250 1, // [1:1] is the sub-list for extension type_name 251 1, // [1:1] is the sub-list for extension extendee 252 0, // [0:1] is the sub-list for field type_name 253 } 254 255 func init() { file_proto_cluster_services_proto_init() } 256 func file_proto_cluster_services_proto_init() { 257 if File_proto_cluster_services_proto != nil { 258 return 259 } 260 if !protoimpl.UnsafeEnabled { 261 file_proto_cluster_services_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 262 switch v := v.(*PrivateKeyRequest); i { 263 case 0: 264 return &v.state 265 case 1: 266 return &v.sizeCache 267 case 2: 268 return &v.unknownFields 269 default: 270 return nil 271 } 272 } 273 file_proto_cluster_services_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 274 switch v := v.(*PrivateKeyResponse); i { 275 case 0: 276 return &v.state 277 case 1: 278 return &v.sizeCache 279 case 2: 280 return &v.unknownFields 281 default: 282 return nil 283 } 284 } 285 file_proto_cluster_services_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 286 switch v := v.(*PrivateKeys); i { 287 case 0: 288 return &v.state 289 case 1: 290 return &v.sizeCache 291 case 2: 292 return &v.unknownFields 293 default: 294 return nil 295 } 296 } 297 } 298 type x struct{} 299 out := protoimpl.TypeBuilder{ 300 File: protoimpl.DescBuilder{ 301 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 302 RawDescriptor: file_proto_cluster_services_proto_rawDesc, 303 NumEnums: 0, 304 NumMessages: 3, 305 NumExtensions: 0, 306 NumServices: 1, 307 }, 308 GoTypes: file_proto_cluster_services_proto_goTypes, 309 DependencyIndexes: file_proto_cluster_services_proto_depIdxs, 310 MessageInfos: file_proto_cluster_services_proto_msgTypes, 311 }.Build() 312 File_proto_cluster_services_proto = out.File 313 file_proto_cluster_services_proto_rawDesc = nil 314 file_proto_cluster_services_proto_goTypes = nil 315 file_proto_cluster_services_proto_depIdxs = nil 316 } 317 318 // Reference imports to suppress errors if they are not otherwise used. 319 var _ context.Context 320 var _ grpc.ClientConnInterface 321 322 // This is a compile-time assertion to ensure that this generated file 323 // is compatible with the grpc package it is being compiled against. 324 const _ = grpc.SupportPackageIsVersion6 325 326 // PrivateKeyServiceClient is the client API for PrivateKeyService service. 327 // 328 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 329 type PrivateKeyServiceClient interface { 330 Request(ctx context.Context, in *PrivateKeyRequest, opts ...grpc.CallOption) (*PrivateKeyResponse, error) 331 } 332 333 type privateKeyServiceClient struct { 334 cc grpc.ClientConnInterface 335 } 336 337 func NewPrivateKeyServiceClient(cc grpc.ClientConnInterface) PrivateKeyServiceClient { 338 return &privateKeyServiceClient{cc} 339 } 340 341 func (c *privateKeyServiceClient) Request(ctx context.Context, in *PrivateKeyRequest, opts ...grpc.CallOption) (*PrivateKeyResponse, error) { 342 out := new(PrivateKeyResponse) 343 err := c.cc.Invoke(ctx, "/prysm.internal.cluster.PrivateKeyService/Request", in, out, opts...) 344 if err != nil { 345 return nil, err 346 } 347 return out, nil 348 } 349 350 // PrivateKeyServiceServer is the server API for PrivateKeyService service. 351 type PrivateKeyServiceServer interface { 352 Request(context.Context, *PrivateKeyRequest) (*PrivateKeyResponse, error) 353 } 354 355 // UnimplementedPrivateKeyServiceServer can be embedded to have forward compatible implementations. 356 type UnimplementedPrivateKeyServiceServer struct { 357 } 358 359 func (*UnimplementedPrivateKeyServiceServer) Request(context.Context, *PrivateKeyRequest) (*PrivateKeyResponse, error) { 360 return nil, status.Errorf(codes.Unimplemented, "method Request not implemented") 361 } 362 363 func RegisterPrivateKeyServiceServer(s *grpc.Server, srv PrivateKeyServiceServer) { 364 s.RegisterService(&_PrivateKeyService_serviceDesc, srv) 365 } 366 367 func _PrivateKeyService_Request_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 368 in := new(PrivateKeyRequest) 369 if err := dec(in); err != nil { 370 return nil, err 371 } 372 if interceptor == nil { 373 return srv.(PrivateKeyServiceServer).Request(ctx, in) 374 } 375 info := &grpc.UnaryServerInfo{ 376 Server: srv, 377 FullMethod: "/prysm.internal.cluster.PrivateKeyService/Request", 378 } 379 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 380 return srv.(PrivateKeyServiceServer).Request(ctx, req.(*PrivateKeyRequest)) 381 } 382 return interceptor(ctx, in, info, handler) 383 } 384 385 var _PrivateKeyService_serviceDesc = grpc.ServiceDesc{ 386 ServiceName: "prysm.internal.cluster.PrivateKeyService", 387 HandlerType: (*PrivateKeyServiceServer)(nil), 388 Methods: []grpc.MethodDesc{ 389 { 390 MethodName: "Request", 391 Handler: _PrivateKeyService_Request_Handler, 392 }, 393 }, 394 Streams: []grpc.StreamDesc{}, 395 Metadata: "proto/cluster/services.proto", 396 }