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/product/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 (
|
||||
ProductService_ServiceInfo_FullMethodName = "/stocklet.product.v1.ProductService/ServiceInfo"
|
||||
@@ -70,8 +70,9 @@ func NewProductServiceClient(cc grpc.ClientConnInterface) ProductServiceClient {
|
||||
}
|
||||
|
||||
func (c *productServiceClient) 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, ProductService_ServiceInfo_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, ProductService_ServiceInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -79,8 +80,9 @@ func (c *productServiceClient) ServiceInfo(ctx context.Context, in *v1.ServiceIn
|
||||
}
|
||||
|
||||
func (c *productServiceClient) ViewProduct(ctx context.Context, in *ViewProductRequest, opts ...grpc.CallOption) (*ViewProductResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ViewProductResponse)
|
||||
err := c.cc.Invoke(ctx, ProductService_ViewProduct_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, ProductService_ViewProduct_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -88,8 +90,9 @@ func (c *productServiceClient) ViewProduct(ctx context.Context, in *ViewProductR
|
||||
}
|
||||
|
||||
func (c *productServiceClient) ViewProducts(ctx context.Context, in *ViewProductsRequest, opts ...grpc.CallOption) (*ViewProductsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ViewProductsResponse)
|
||||
err := c.cc.Invoke(ctx, ProductService_ViewProducts_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, ProductService_ViewProducts_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -97,8 +100,9 @@ func (c *productServiceClient) ViewProducts(ctx context.Context, in *ViewProduct
|
||||
}
|
||||
|
||||
func (c *productServiceClient) ProcessOrderCreatedEvent(ctx context.Context, in *v11.OrderCreatedEvent, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, ProductService_ProcessOrderCreatedEvent_FullMethodName, in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, ProductService_ProcessOrderCreatedEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -107,7 +111,7 @@ func (c *productServiceClient) ProcessOrderCreatedEvent(ctx context.Context, in
|
||||
|
||||
// ProductServiceServer is the server API for ProductService service.
|
||||
// All implementations must embed UnimplementedProductServiceServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type ProductServiceServer interface {
|
||||
// View information about the service.
|
||||
//
|
||||
@@ -124,23 +128,27 @@ type ProductServiceServer interface {
|
||||
mustEmbedUnimplementedProductServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedProductServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedProductServiceServer struct {
|
||||
}
|
||||
// UnimplementedProductServiceServer 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 UnimplementedProductServiceServer struct{}
|
||||
|
||||
func (UnimplementedProductServiceServer) 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 (UnimplementedProductServiceServer) ViewProduct(context.Context, *ViewProductRequest) (*ViewProductResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ViewProduct not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ViewProduct not implemented")
|
||||
}
|
||||
func (UnimplementedProductServiceServer) ViewProducts(context.Context, *ViewProductsRequest) (*ViewProductsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ViewProducts not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ViewProducts not implemented")
|
||||
}
|
||||
func (UnimplementedProductServiceServer) ProcessOrderCreatedEvent(context.Context, *v11.OrderCreatedEvent) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ProcessOrderCreatedEvent not implemented")
|
||||
return nil, status.Error(codes.Unimplemented, "method ProcessOrderCreatedEvent not implemented")
|
||||
}
|
||||
func (UnimplementedProductServiceServer) mustEmbedUnimplementedProductServiceServer() {}
|
||||
func (UnimplementedProductServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeProductServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ProductServiceServer will
|
||||
@@ -150,6 +158,13 @@ type UnsafeProductServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterProductServiceServer(s grpc.ServiceRegistrar, srv ProductServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedProductServiceServer 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(&ProductService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user