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/warehouse/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 (
|
||||
WarehouseService_ServiceInfo_FullMethodName = "/stocklet.warehouse.v1.WarehouseService/ServiceInfo"
|
||||
@@ -91,8 +91,9 @@ func NewWarehouseServiceClient(cc grpc.ClientConnInterface) WarehouseServiceClie
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) 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, WarehouseService_ServiceInfo_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ServiceInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -100,8 +101,9 @@ func (c *warehouseServiceClient) ServiceInfo(ctx context.Context, in *v1.Service
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) ViewProductStock(ctx context.Context, in *ViewProductStockRequest, opts ...grpc.CallOption) (*ViewProductStockResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ViewProductStockResponse)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ViewProductStock_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ViewProductStock_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -109,8 +111,9 @@ func (c *warehouseServiceClient) ViewProductStock(ctx context.Context, in *ViewP
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) ViewReservation(ctx context.Context, in *ViewReservationRequest, opts ...grpc.CallOption) (*ViewReservationResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ViewReservationResponse)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ViewReservation_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ViewReservation_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -118,8 +121,9 @@ func (c *warehouseServiceClient) ViewReservation(ctx context.Context, in *ViewRe
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) ProcessProductCreatedEvent(ctx context.Context, in *v11.ProductCreatedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessProductCreatedEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessProductCreatedEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -127,8 +131,9 @@ func (c *warehouseServiceClient) ProcessProductCreatedEvent(ctx context.Context,
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) ProcessOrderPendingEvent(ctx context.Context, in *v11.OrderPendingEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessOrderPendingEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessOrderPendingEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -136,8 +141,9 @@ func (c *warehouseServiceClient) ProcessOrderPendingEvent(ctx context.Context, i
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) 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, WarehouseService_ProcessShipmentAllocationEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessShipmentAllocationEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -145,8 +151,9 @@ func (c *warehouseServiceClient) ProcessShipmentAllocationEvent(ctx context.Cont
|
||||
}
|
||||
|
||||
func (c *warehouseServiceClient) ProcessPaymentProcessedEvent(ctx context.Context, in *v11.PaymentProcessedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessPaymentProcessedEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, WarehouseService_ProcessPaymentProcessedEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -155,7 +162,7 @@ func (c *warehouseServiceClient) ProcessPaymentProcessedEvent(ctx context.Contex
|
||||
|
||||
// WarehouseServiceServer is the server API for WarehouseService service.
|
||||
// All implementations must embed UnimplementedWarehouseServiceServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type WarehouseServiceServer interface {
|
||||
// View information about the service.
|
||||
//
|
||||
@@ -190,32 +197,36 @@ type WarehouseServiceServer interface {
|
||||
mustEmbedUnimplementedWarehouseServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedWarehouseServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedWarehouseServiceServer struct {
|
||||
}
|
||||
// UnimplementedWarehouseServiceServer 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 UnimplementedWarehouseServiceServer struct{}
|
||||
|
||||
func (UnimplementedWarehouseServiceServer) 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 (UnimplementedWarehouseServiceServer) ViewProductStock(context.Context, *ViewProductStockRequest) (*ViewProductStockResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ViewProductStock not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ViewProductStock not implemented")
|
||||
}
|
||||
func (UnimplementedWarehouseServiceServer) ViewReservation(context.Context, *ViewReservationRequest) (*ViewReservationResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ViewReservation not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ViewReservation not implemented")
|
||||
}
|
||||
func (UnimplementedWarehouseServiceServer) ProcessProductCreatedEvent(context.Context, *v11.ProductCreatedEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessProductCreatedEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessProductCreatedEvent not implemented")
|
||||
}
|
||||
func (UnimplementedWarehouseServiceServer) ProcessOrderPendingEvent(context.Context, *v11.OrderPendingEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessOrderPendingEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessOrderPendingEvent not implemented")
|
||||
}
|
||||
func (UnimplementedWarehouseServiceServer) 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 (UnimplementedWarehouseServiceServer) ProcessPaymentProcessedEvent(context.Context, *v11.PaymentProcessedEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessPaymentProcessedEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessPaymentProcessedEvent not implemented")
|
||||
}
|
||||
func (UnimplementedWarehouseServiceServer) mustEmbedUnimplementedWarehouseServiceServer() {}
|
||||
func (UnimplementedWarehouseServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeWarehouseServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to WarehouseServiceServer will
|
||||
@@ -225,6 +236,13 @@ type UnsafeWarehouseServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterWarehouseServiceServer(s grpc.ServiceRegistrar, srv WarehouseServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedWarehouseServiceServer 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(&WarehouseService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user