// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.0 // - protoc v7.35.1 // source: internal/proto/attestation/v1/attestation.proto package attestation import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.64.0 or later. const _ = grpc.SupportPackageIsVersion9 const ( AttestationService_FetchAttestation_FullMethodName = "/attestation.v1.AttestationService/FetchAttestation" AttestationService_FetchRawEvidence_FullMethodName = "/attestation.v1.AttestationService/FetchRawEvidence" AttestationService_FetchAzureToken_FullMethodName = "/attestation.v1.AttestationService/FetchAzureToken" AttestationService_FetchKbsToken_FullMethodName = "/attestation.v1.AttestationService/FetchKbsToken" ) // AttestationServiceClient is the client API for AttestationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type AttestationServiceClient interface { FetchAttestation(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*AttestationResponse, error) FetchRawEvidence(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*RawEvidenceResponse, error) FetchAzureToken(ctx context.Context, in *AzureTokenRequest, opts ...grpc.CallOption) (*AzureTokenResponse, error) FetchKbsToken(ctx context.Context, in *KbsTokenRequest, opts ...grpc.CallOption) (*KbsTokenResponse, error) } type attestationServiceClient struct { cc grpc.ClientConnInterface } func NewAttestationServiceClient(cc grpc.ClientConnInterface) AttestationServiceClient { return &attestationServiceClient{cc} } func (c *attestationServiceClient) FetchAttestation(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*AttestationResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AttestationResponse) err := c.cc.Invoke(ctx, AttestationService_FetchAttestation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *attestationServiceClient) FetchRawEvidence(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*RawEvidenceResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RawEvidenceResponse) err := c.cc.Invoke(ctx, AttestationService_FetchRawEvidence_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *attestationServiceClient) FetchAzureToken(ctx context.Context, in *AzureTokenRequest, opts ...grpc.CallOption) (*AzureTokenResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AzureTokenResponse) err := c.cc.Invoke(ctx, AttestationService_FetchAzureToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *attestationServiceClient) FetchKbsToken(ctx context.Context, in *KbsTokenRequest, opts ...grpc.CallOption) (*KbsTokenResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(KbsTokenResponse) err := c.cc.Invoke(ctx, AttestationService_FetchKbsToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // AttestationServiceServer is the server API for AttestationService service. // All implementations must embed UnimplementedAttestationServiceServer // for forward compatibility. type AttestationServiceServer interface { FetchAttestation(context.Context, *AttestationRequest) (*AttestationResponse, error) FetchRawEvidence(context.Context, *AttestationRequest) (*RawEvidenceResponse, error) FetchAzureToken(context.Context, *AzureTokenRequest) (*AzureTokenResponse, error) FetchKbsToken(context.Context, *KbsTokenRequest) (*KbsTokenResponse, error) mustEmbedUnimplementedAttestationServiceServer() } // UnimplementedAttestationServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedAttestationServiceServer struct{} func (UnimplementedAttestationServiceServer) FetchAttestation(context.Context, *AttestationRequest) (*AttestationResponse, error) { return nil, status.Error(codes.Unimplemented, "method FetchAttestation not implemented") } func (UnimplementedAttestationServiceServer) FetchRawEvidence(context.Context, *AttestationRequest) (*RawEvidenceResponse, error) { return nil, status.Error(codes.Unimplemented, "method FetchRawEvidence not implemented") } func (UnimplementedAttestationServiceServer) FetchAzureToken(context.Context, *AzureTokenRequest) (*AzureTokenResponse, error) { return nil, status.Error(codes.Unimplemented, "method FetchAzureToken not implemented") } func (UnimplementedAttestationServiceServer) FetchKbsToken(context.Context, *KbsTokenRequest) (*KbsTokenResponse, error) { return nil, status.Error(codes.Unimplemented, "method FetchKbsToken not implemented") } func (UnimplementedAttestationServiceServer) mustEmbedUnimplementedAttestationServiceServer() {} func (UnimplementedAttestationServiceServer) testEmbeddedByValue() {} // UnsafeAttestationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AttestationServiceServer will // result in compilation errors. type UnsafeAttestationServiceServer interface { mustEmbedUnimplementedAttestationServiceServer() } func RegisterAttestationServiceServer(s grpc.ServiceRegistrar, srv AttestationServiceServer) { // If the following call panics, it indicates UnimplementedAttestationServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&AttestationService_ServiceDesc, srv) } func _AttestationService_FetchAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AttestationRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AttestationServiceServer).FetchAttestation(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AttestationService_FetchAttestation_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttestationServiceServer).FetchAttestation(ctx, req.(*AttestationRequest)) } return interceptor(ctx, in, info, handler) } func _AttestationService_FetchRawEvidence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AttestationRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AttestationServiceServer).FetchRawEvidence(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AttestationService_FetchRawEvidence_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttestationServiceServer).FetchRawEvidence(ctx, req.(*AttestationRequest)) } return interceptor(ctx, in, info, handler) } func _AttestationService_FetchAzureToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AzureTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AttestationServiceServer).FetchAzureToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AttestationService_FetchAzureToken_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttestationServiceServer).FetchAzureToken(ctx, req.(*AzureTokenRequest)) } return interceptor(ctx, in, info, handler) } func _AttestationService_FetchKbsToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(KbsTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AttestationServiceServer).FetchKbsToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AttestationService_FetchKbsToken_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttestationServiceServer).FetchKbsToken(ctx, req.(*KbsTokenRequest)) } return interceptor(ctx, in, info, handler) } // AttestationService_ServiceDesc is the grpc.ServiceDesc for AttestationService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AttestationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "attestation.v1.AttestationService", HandlerType: (*AttestationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchAttestation", Handler: _AttestationService_FetchAttestation_Handler, }, { MethodName: "FetchRawEvidence", Handler: _AttestationService_FetchRawEvidence_Handler, }, { MethodName: "FetchAzureToken", Handler: _AttestationService_FetchAzureToken_Handler, }, { MethodName: "FetchKbsToken", Handler: _AttestationService_FetchKbsToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/proto/attestation/v1/attestation.proto", }