mirror of
https://github.com/hexolan/stocklet.git
synced 2026-12-01 03:09:10 +00:00
chore!: regen proto definitions
Signed-off-by: Declan Teevan <dt@hexolan.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc (unknown)
|
||||
// source: stocklet/payment/v1/service.proto
|
||||
|
||||
@@ -33,8 +33,8 @@ import (
|
||||
|
||||
// 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.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
PaymentService_ServiceInfo_FullMethodName = "/stocklet.payment.v1.PaymentService/ServiceInfo"
|
||||
@@ -84,8 +84,9 @@ func NewPaymentServiceClient(cc grpc.ClientConnInterface) PaymentServiceClient {
|
||||
}
|
||||
|
||||
func (c *paymentServiceClient) ServiceInfo(ctx context.Context, in *v1.ServiceInfoRequest, opts ...grpc.CallOption) (*v1.ServiceInfoResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(v1.ServiceInfoResponse)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ServiceInfo_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ServiceInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -93,8 +94,9 @@ func (c *paymentServiceClient) ServiceInfo(ctx context.Context, in *v1.ServiceIn
|
||||
}
|
||||
|
||||
func (c *paymentServiceClient) ViewTransaction(ctx context.Context, in *ViewTransactionRequest, opts ...grpc.CallOption) (*ViewTransactionResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ViewTransactionResponse)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ViewTransaction_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ViewTransaction_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -102,8 +104,9 @@ func (c *paymentServiceClient) ViewTransaction(ctx context.Context, in *ViewTran
|
||||
}
|
||||
|
||||
func (c *paymentServiceClient) ViewBalance(ctx context.Context, in *ViewBalanceRequest, opts ...grpc.CallOption) (*ViewBalanceResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ViewBalanceResponse)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ViewBalance_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ViewBalance_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -111,8 +114,9 @@ func (c *paymentServiceClient) ViewBalance(ctx context.Context, in *ViewBalanceR
|
||||
}
|
||||
|
||||
func (c *paymentServiceClient) ProcessUserCreatedEvent(ctx context.Context, in *v11.UserCreatedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ProcessUserCreatedEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ProcessUserCreatedEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -120,8 +124,9 @@ func (c *paymentServiceClient) ProcessUserCreatedEvent(ctx context.Context, in *
|
||||
}
|
||||
|
||||
func (c *paymentServiceClient) ProcessUserDeletedEvent(ctx context.Context, in *v11.UserDeletedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ProcessUserDeletedEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ProcessUserDeletedEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -129,8 +134,9 @@ func (c *paymentServiceClient) ProcessUserDeletedEvent(ctx context.Context, in *
|
||||
}
|
||||
|
||||
func (c *paymentServiceClient) ProcessShipmentAllocationEvent(ctx context.Context, in *v11.ShipmentAllocationEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ProcessShipmentAllocationEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, PaymentService_ProcessShipmentAllocationEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -139,7 +145,7 @@ func (c *paymentServiceClient) ProcessShipmentAllocationEvent(ctx context.Contex
|
||||
|
||||
// PaymentServiceServer is the server API for PaymentService service.
|
||||
// All implementations must embed UnimplementedPaymentServiceServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type PaymentServiceServer interface {
|
||||
// View information about the service.
|
||||
//
|
||||
@@ -168,29 +174,33 @@ type PaymentServiceServer interface {
|
||||
mustEmbedUnimplementedPaymentServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedPaymentServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedPaymentServiceServer struct {
|
||||
}
|
||||
// UnimplementedPaymentServiceServer 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 UnimplementedPaymentServiceServer struct{}
|
||||
|
||||
func (UnimplementedPaymentServiceServer) ServiceInfo(context.Context, *v1.ServiceInfoRequest) (*v1.ServiceInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ServiceInfo not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ServiceInfo not implemented")
|
||||
}
|
||||
func (UnimplementedPaymentServiceServer) ViewTransaction(context.Context, *ViewTransactionRequest) (*ViewTransactionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ViewTransaction not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ViewTransaction not implemented")
|
||||
}
|
||||
func (UnimplementedPaymentServiceServer) ViewBalance(context.Context, *ViewBalanceRequest) (*ViewBalanceResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ViewBalance not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ViewBalance not implemented")
|
||||
}
|
||||
func (UnimplementedPaymentServiceServer) ProcessUserCreatedEvent(context.Context, *v11.UserCreatedEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessUserCreatedEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessUserCreatedEvent not implemented")
|
||||
}
|
||||
func (UnimplementedPaymentServiceServer) ProcessUserDeletedEvent(context.Context, *v11.UserDeletedEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessUserDeletedEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessUserDeletedEvent not implemented")
|
||||
}
|
||||
func (UnimplementedPaymentServiceServer) ProcessShipmentAllocationEvent(context.Context, *v11.ShipmentAllocationEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessShipmentAllocationEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessShipmentAllocationEvent not implemented")
|
||||
}
|
||||
func (UnimplementedPaymentServiceServer) mustEmbedUnimplementedPaymentServiceServer() {}
|
||||
func (UnimplementedPaymentServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafePaymentServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to PaymentServiceServer will
|
||||
@@ -200,6 +210,13 @@ type UnsafePaymentServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterPaymentServiceServer(s grpc.ServiceRegistrar, srv PaymentServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedPaymentServiceServer 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(&PaymentService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user