From ced42d5041400bd8c58e49a8f087219d619de1dc Mon Sep 17 00:00:00 2001 From: miampf Date: Thu, 9 Jan 2025 12:53:12 +0100 Subject: [PATCH] regenerated protobuf definitions --- keyservice/keyserviceproto/keyservice.pb.go | 158 ++------------------ 1 file changed, 15 insertions(+), 143 deletions(-) diff --git a/keyservice/keyserviceproto/keyservice.pb.go b/keyservice/keyserviceproto/keyservice.pb.go index 2d63a3c622..5dee502e49 100644 --- a/keyservice/keyserviceproto/keyservice.pb.go +++ b/keyservice/keyserviceproto/keyservice.pb.go @@ -122,87 +122,6 @@ func (x *GetDataKeyResponse) GetDataKey() []byte { return nil } -type GetCAKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetCAKeyRequest) Reset() { - *x = GetCAKeyRequest{} - mi := &file_keyservice_keyserviceproto_keyservice_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetCAKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCAKeyRequest) ProtoMessage() {} - -func (x *GetCAKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_keyservice_keyserviceproto_keyservice_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCAKeyRequest.ProtoReflect.Descriptor instead. -func (*GetCAKeyRequest) Descriptor() ([]byte, []int) { - return file_keyservice_keyserviceproto_keyservice_proto_rawDescGZIP(), []int{2} -} - -type GetCAKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CaKey []byte `protobuf:"bytes,1,opt,name=ca_key,json=caKey,proto3" json:"ca_key,omitempty"` -} - -func (x *GetCAKeyResponse) Reset() { - *x = GetCAKeyResponse{} - mi := &file_keyservice_keyserviceproto_keyservice_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetCAKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCAKeyResponse) ProtoMessage() {} - -func (x *GetCAKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_keyservice_keyserviceproto_keyservice_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCAKeyResponse.ProtoReflect.Descriptor instead. -func (*GetCAKeyResponse) Descriptor() ([]byte, []int) { - return file_keyservice_keyserviceproto_keyservice_proto_rawDescGZIP(), []int{3} -} - -func (x *GetCAKeyResponse) GetCaKey() []byte { - if x != nil { - return x.CaKey - } - return nil -} - var File_keyservice_keyserviceproto_keyservice_proto protoreflect.FileDescriptor var file_keyservice_keyserviceproto_keyservice_proto_rawDesc = []byte{ @@ -217,23 +136,16 @@ var file_keyservice_keyserviceproto_keyservice_proto_rawDesc = []byte{ 0x2f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, - 0x22, 0x11, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x41, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x29, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x41, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x61, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x61, 0x4b, 0x65, 0x79, 0x32, 0x7d, - 0x0a, 0x03, 0x41, 0x50, 0x49, 0x12, 0x3d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6b, 0x6d, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x43, 0x41, 0x4b, 0x65, 0x79, - 0x12, 0x14, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x41, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, - 0x43, 0x41, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x44, 0x5a, - 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x64, 0x67, 0x65, - 0x6c, 0x65, 0x73, 0x73, 0x73, 0x79, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0x44, 0x0a, 0x03, 0x41, 0x50, 0x49, 0x12, 0x3d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, + 0x6b, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x73, 0x79, 0x73, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, + 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x6b, 0x65, 0x79, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -248,20 +160,16 @@ func file_keyservice_keyserviceproto_keyservice_proto_rawDescGZIP() []byte { return file_keyservice_keyserviceproto_keyservice_proto_rawDescData } -var file_keyservice_keyserviceproto_keyservice_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_keyservice_keyserviceproto_keyservice_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_keyservice_keyserviceproto_keyservice_proto_goTypes = []any{ (*GetDataKeyRequest)(nil), // 0: kms.GetDataKeyRequest (*GetDataKeyResponse)(nil), // 1: kms.GetDataKeyResponse - (*GetCAKeyRequest)(nil), // 2: kms.GetCAKeyRequest - (*GetCAKeyResponse)(nil), // 3: kms.GetCAKeyResponse } var file_keyservice_keyserviceproto_keyservice_proto_depIdxs = []int32{ 0, // 0: kms.API.GetDataKey:input_type -> kms.GetDataKeyRequest - 2, // 1: kms.API.GetCAKey:input_type -> kms.GetCAKeyRequest - 1, // 2: kms.API.GetDataKey:output_type -> kms.GetDataKeyResponse - 3, // 3: kms.API.GetCAKey:output_type -> kms.GetCAKeyResponse - 2, // [2:4] is the sub-list for method output_type - 0, // [0:2] is the sub-list for method input_type + 1, // 1: kms.API.GetDataKey:output_type -> kms.GetDataKeyResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -278,7 +186,7 @@ func file_keyservice_keyserviceproto_keyservice_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_keyservice_keyserviceproto_keyservice_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 2, NumExtensions: 0, NumServices: 1, }, @@ -305,7 +213,6 @@ const _ = grpc.SupportPackageIsVersion6 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type APIClient interface { GetDataKey(ctx context.Context, in *GetDataKeyRequest, opts ...grpc.CallOption) (*GetDataKeyResponse, error) - GetCAKey(ctx context.Context, in *GetCAKeyRequest, opts ...grpc.CallOption) (*GetCAKeyResponse, error) } type aPIClient struct { @@ -325,19 +232,9 @@ func (c *aPIClient) GetDataKey(ctx context.Context, in *GetDataKeyRequest, opts return out, nil } -func (c *aPIClient) GetCAKey(ctx context.Context, in *GetCAKeyRequest, opts ...grpc.CallOption) (*GetCAKeyResponse, error) { - out := new(GetCAKeyResponse) - err := c.cc.Invoke(ctx, "/kms.API/GetCAKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // APIServer is the server API for API service. type APIServer interface { GetDataKey(context.Context, *GetDataKeyRequest) (*GetDataKeyResponse, error) - GetCAKey(context.Context, *GetCAKeyRequest) (*GetCAKeyResponse, error) } // UnimplementedAPIServer can be embedded to have forward compatible implementations. @@ -347,9 +244,6 @@ type UnimplementedAPIServer struct { func (*UnimplementedAPIServer) GetDataKey(context.Context, *GetDataKeyRequest) (*GetDataKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDataKey not implemented") } -func (*UnimplementedAPIServer) GetCAKey(context.Context, *GetCAKeyRequest) (*GetCAKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCAKey not implemented") -} func RegisterAPIServer(s *grpc.Server, srv APIServer) { s.RegisterService(&_API_serviceDesc, srv) @@ -373,24 +267,6 @@ func _API_GetDataKey_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } -func _API_GetCAKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCAKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(APIServer).GetCAKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/kms.API/GetCAKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(APIServer).GetCAKey(ctx, req.(*GetCAKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _API_serviceDesc = grpc.ServiceDesc{ ServiceName: "kms.API", HandlerType: (*APIServer)(nil), @@ -399,10 +275,6 @@ var _API_serviceDesc = grpc.ServiceDesc{ MethodName: "GetDataKey", Handler: _API_GetDataKey_Handler, }, - { - MethodName: "GetCAKey", - Handler: _API_GetCAKey_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "keyservice/keyserviceproto/keyservice.proto",