1
0
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:
2026-11-19 06:45:42 +00:00
parent d25f58a6b6
commit d05489c01b
37 changed files with 2052 additions and 4257 deletions
@@ -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/shipping/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 (
ShippingService_ServiceInfo_FullMethodName = "/stocklet.shipping.v1.ShippingService/ServiceInfo"
@@ -77,8 +77,9 @@ func NewShippingServiceClient(cc grpc.ClientConnInterface) ShippingServiceClient
}
func (c *shippingServiceClient) 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, ShippingService_ServiceInfo_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, ShippingService_ServiceInfo_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -86,8 +87,9 @@ func (c *shippingServiceClient) ServiceInfo(ctx context.Context, in *v1.ServiceI
}
func (c *shippingServiceClient) ViewShipment(ctx context.Context, in *ViewShipmentRequest, opts ...grpc.CallOption) (*ViewShipmentResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ViewShipmentResponse)
err := c.cc.Invoke(ctx, ShippingService_ViewShipment_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, ShippingService_ViewShipment_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -95,8 +97,9 @@ func (c *shippingServiceClient) ViewShipment(ctx context.Context, in *ViewShipme
}
func (c *shippingServiceClient) ViewShipmentManifest(ctx context.Context, in *ViewShipmentManifestRequest, opts ...grpc.CallOption) (*ViewShipmentManifestResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ViewShipmentManifestResponse)
err := c.cc.Invoke(ctx, ShippingService_ViewShipmentManifest_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, ShippingService_ViewShipmentManifest_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -104,8 +107,9 @@ func (c *shippingServiceClient) ViewShipmentManifest(ctx context.Context, in *Vi
}
func (c *shippingServiceClient) ProcessStockReservationEvent(ctx context.Context, in *v11.StockReservationEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, ShippingService_ProcessStockReservationEvent_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, ShippingService_ProcessStockReservationEvent_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -113,8 +117,9 @@ func (c *shippingServiceClient) ProcessStockReservationEvent(ctx context.Context
}
func (c *shippingServiceClient) 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, ShippingService_ProcessPaymentProcessedEvent_FullMethodName, in, out, opts...)
err := c.cc.Invoke(ctx, ShippingService_ProcessPaymentProcessedEvent_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -123,7 +128,7 @@ func (c *shippingServiceClient) ProcessPaymentProcessedEvent(ctx context.Context
// ShippingServiceServer is the server API for ShippingService service.
// All implementations must embed UnimplementedShippingServiceServer
// for forward compatibility
// for forward compatibility.
type ShippingServiceServer interface {
// View information about the service.
//
@@ -146,26 +151,30 @@ type ShippingServiceServer interface {
mustEmbedUnimplementedShippingServiceServer()
}
// UnimplementedShippingServiceServer must be embedded to have forward compatible implementations.
type UnimplementedShippingServiceServer struct {
}
// UnimplementedShippingServiceServer 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 UnimplementedShippingServiceServer struct{}
func (UnimplementedShippingServiceServer) 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 (UnimplementedShippingServiceServer) ViewShipment(context.Context, *ViewShipmentRequest) (*ViewShipmentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ViewShipment not implemented")
return nil, status.Error(codes.Unimplemented, "method ViewShipment not implemented")
}
func (UnimplementedShippingServiceServer) ViewShipmentManifest(context.Context, *ViewShipmentManifestRequest) (*ViewShipmentManifestResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ViewShipmentManifest not implemented")
return nil, status.Error(codes.Unimplemented, "method ViewShipmentManifest not implemented")
}
func (UnimplementedShippingServiceServer) ProcessStockReservationEvent(context.Context, *v11.StockReservationEvent) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ProcessStockReservationEvent not implemented")
return nil, status.Error(codes.Unimplemented, "method ProcessStockReservationEvent not implemented")
}
func (UnimplementedShippingServiceServer) 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 (UnimplementedShippingServiceServer) mustEmbedUnimplementedShippingServiceServer() {}
func (UnimplementedShippingServiceServer) testEmbeddedByValue() {}
// UnsafeShippingServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ShippingServiceServer will
@@ -175,6 +184,13 @@ type UnsafeShippingServiceServer interface {
}
func RegisterShippingServiceServer(s grpc.ServiceRegistrar, srv ShippingServiceServer) {
// If the following call panics, it indicates UnimplementedShippingServiceServer 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(&ShippingService_ServiceDesc, srv)
}