Add gRPC server implementation and database integration for marketplace and products
This commit is contained in:
		
							
								
								
									
										200
									
								
								api/generated/v1/marketplace/marketplace.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										200
									
								
								api/generated/v1/marketplace/marketplace.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,200 @@
 | 
			
		||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// 	protoc-gen-go v1.36.6
 | 
			
		||||
// 	protoc        v6.31.0
 | 
			
		||||
// source: marketplace/marketplace.proto
 | 
			
		||||
 | 
			
		||||
package marketplace
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	sync "sync"
 | 
			
		||||
	unsafe "unsafe"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// Verify that this generated code is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | 
			
		||||
	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type GetMarketplaceByIdRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	MarketplaceId uint64                 `protobuf:"varint,1,opt,name=marketplace_id,json=marketplaceId,proto3" json:"marketplace_id,omitempty"` // ID of the marketplace to retrieve
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetMarketplaceByIdRequest) Reset() {
 | 
			
		||||
	*x = GetMarketplaceByIdRequest{}
 | 
			
		||||
	mi := &file_marketplace_marketplace_proto_msgTypes[0]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetMarketplaceByIdRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetMarketplaceByIdRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetMarketplaceByIdRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_marketplace_marketplace_proto_msgTypes[0]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetMarketplaceByIdRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetMarketplaceByIdRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_marketplace_marketplace_proto_rawDescGZIP(), []int{0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetMarketplaceByIdRequest) GetMarketplaceId() uint64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.MarketplaceId
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Marketplace struct {
 | 
			
		||||
	state           protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id              uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	BaseMarketplace uint32                 `protobuf:"varint,2,opt,name=base_marketplace,json=baseMarketplace,proto3" json:"base_marketplace,omitempty"` // ID of the base marketplace
 | 
			
		||||
	AuthData        string                 `protobuf:"bytes,3,opt,name=auth_data,json=authData,proto3" json:"auth_data,omitempty"`                       // Authentication data for the marketplace
 | 
			
		||||
	WarehouseId     string                 `protobuf:"bytes,4,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`              // ID of the warehouse associated with the marketplace
 | 
			
		||||
	unknownFields   protoimpl.UnknownFields
 | 
			
		||||
	sizeCache       protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) Reset() {
 | 
			
		||||
	*x = Marketplace{}
 | 
			
		||||
	mi := &file_marketplace_marketplace_proto_msgTypes[1]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*Marketplace) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_marketplace_marketplace_proto_msgTypes[1]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use Marketplace.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*Marketplace) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_marketplace_marketplace_proto_rawDescGZIP(), []int{1}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) GetId() uint64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) GetBaseMarketplace() uint32 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.BaseMarketplace
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) GetAuthData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.AuthData
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Marketplace) GetWarehouseId() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.WarehouseId
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_marketplace_marketplace_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
const file_marketplace_marketplace_proto_rawDesc = "" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"\x1dmarketplace/marketplace.proto\x12\vmarketplace\"B\n" +
 | 
			
		||||
	"\x19GetMarketplaceByIdRequest\x12%\n" +
 | 
			
		||||
	"\x0emarketplace_id\x18\x01 \x01(\x04R\rmarketplaceId\"\x88\x01\n" +
 | 
			
		||||
	"\vMarketplace\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x04R\x02id\x12)\n" +
 | 
			
		||||
	"\x10base_marketplace\x18\x02 \x01(\rR\x0fbaseMarketplace\x12\x1b\n" +
 | 
			
		||||
	"\tauth_data\x18\x03 \x01(\tR\bauthData\x12!\n" +
 | 
			
		||||
	"\fwarehouse_id\x18\x04 \x01(\tR\vwarehouseId2l\n" +
 | 
			
		||||
	"\x12MarketplaceService\x12V\n" +
 | 
			
		||||
	"\x12GetMarketplaceById\x12&.marketplace.GetMarketplaceByIdRequest\x1a\x18.marketplace.MarketplaceB\x0fZ\r./marketplaceb\x06proto3"
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	file_marketplace_marketplace_proto_rawDescOnce sync.Once
 | 
			
		||||
	file_marketplace_marketplace_proto_rawDescData []byte
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func file_marketplace_marketplace_proto_rawDescGZIP() []byte {
 | 
			
		||||
	file_marketplace_marketplace_proto_rawDescOnce.Do(func() {
 | 
			
		||||
		file_marketplace_marketplace_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_marketplace_marketplace_proto_rawDesc), len(file_marketplace_marketplace_proto_rawDesc)))
 | 
			
		||||
	})
 | 
			
		||||
	return file_marketplace_marketplace_proto_rawDescData
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var file_marketplace_marketplace_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 | 
			
		||||
var file_marketplace_marketplace_proto_goTypes = []any{
 | 
			
		||||
	(*GetMarketplaceByIdRequest)(nil), // 0: marketplace.GetMarketplaceByIdRequest
 | 
			
		||||
	(*Marketplace)(nil),               // 1: marketplace.Marketplace
 | 
			
		||||
}
 | 
			
		||||
var file_marketplace_marketplace_proto_depIdxs = []int32{
 | 
			
		||||
	0, // 0: marketplace.MarketplaceService.GetMarketplaceById:input_type -> marketplace.GetMarketplaceByIdRequest
 | 
			
		||||
	1, // 1: marketplace.MarketplaceService.GetMarketplaceById:output_type -> marketplace.Marketplace
 | 
			
		||||
	1, // [1:2] is the sub-list for method output_type
 | 
			
		||||
	0, // [0:1] is the sub-list for method input_type
 | 
			
		||||
	0, // [0:0] is the sub-list for extension type_name
 | 
			
		||||
	0, // [0:0] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:0] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_marketplace_marketplace_proto_init() }
 | 
			
		||||
func file_marketplace_marketplace_proto_init() {
 | 
			
		||||
	if File_marketplace_marketplace_proto != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
		File: protoimpl.DescBuilder{
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_marketplace_marketplace_proto_rawDesc), len(file_marketplace_marketplace_proto_rawDesc)),
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   2,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
		GoTypes:           file_marketplace_marketplace_proto_goTypes,
 | 
			
		||||
		DependencyIndexes: file_marketplace_marketplace_proto_depIdxs,
 | 
			
		||||
		MessageInfos:      file_marketplace_marketplace_proto_msgTypes,
 | 
			
		||||
	}.Build()
 | 
			
		||||
	File_marketplace_marketplace_proto = out.File
 | 
			
		||||
	file_marketplace_marketplace_proto_goTypes = nil
 | 
			
		||||
	file_marketplace_marketplace_proto_depIdxs = nil
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										121
									
								
								api/generated/v1/marketplace/marketplace_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								api/generated/v1/marketplace/marketplace_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,121 @@
 | 
			
		||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// - protoc-gen-go-grpc v1.5.1
 | 
			
		||||
// - protoc             v6.31.0
 | 
			
		||||
// source: marketplace/marketplace.proto
 | 
			
		||||
 | 
			
		||||
package marketplace
 | 
			
		||||
 | 
			
		||||
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 (
 | 
			
		||||
	MarketplaceService_GetMarketplaceById_FullMethodName = "/marketplace.MarketplaceService/GetMarketplaceById"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// MarketplaceServiceClient is the client API for MarketplaceService 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 MarketplaceServiceClient interface {
 | 
			
		||||
	GetMarketplaceById(ctx context.Context, in *GetMarketplaceByIdRequest, opts ...grpc.CallOption) (*Marketplace, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type marketplaceServiceClient struct {
 | 
			
		||||
	cc grpc.ClientConnInterface
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewMarketplaceServiceClient(cc grpc.ClientConnInterface) MarketplaceServiceClient {
 | 
			
		||||
	return &marketplaceServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *marketplaceServiceClient) GetMarketplaceById(ctx context.Context, in *GetMarketplaceByIdRequest, opts ...grpc.CallOption) (*Marketplace, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(Marketplace)
 | 
			
		||||
	err := c.cc.Invoke(ctx, MarketplaceService_GetMarketplaceById_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// MarketplaceServiceServer is the server API for MarketplaceService service.
 | 
			
		||||
// All implementations must embed UnimplementedMarketplaceServiceServer
 | 
			
		||||
// for forward compatibility.
 | 
			
		||||
type MarketplaceServiceServer interface {
 | 
			
		||||
	GetMarketplaceById(context.Context, *GetMarketplaceByIdRequest) (*Marketplace, error)
 | 
			
		||||
	mustEmbedUnimplementedMarketplaceServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedMarketplaceServiceServer 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 UnimplementedMarketplaceServiceServer struct{}
 | 
			
		||||
 | 
			
		||||
func (UnimplementedMarketplaceServiceServer) GetMarketplaceById(context.Context, *GetMarketplaceByIdRequest) (*Marketplace, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method GetMarketplaceById not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedMarketplaceServiceServer) mustEmbedUnimplementedMarketplaceServiceServer() {}
 | 
			
		||||
func (UnimplementedMarketplaceServiceServer) testEmbeddedByValue()                            {}
 | 
			
		||||
 | 
			
		||||
// UnsafeMarketplaceServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to MarketplaceServiceServer will
 | 
			
		||||
// result in compilation errors.
 | 
			
		||||
type UnsafeMarketplaceServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedMarketplaceServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterMarketplaceServiceServer(s grpc.ServiceRegistrar, srv MarketplaceServiceServer) {
 | 
			
		||||
	// If the following call pancis, it indicates UnimplementedMarketplaceServiceServer 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(&MarketplaceService_ServiceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _MarketplaceService_GetMarketplaceById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(GetMarketplaceByIdRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(MarketplaceServiceServer).GetMarketplaceById(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: MarketplaceService_GetMarketplaceById_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(MarketplaceServiceServer).GetMarketplaceById(ctx, req.(*GetMarketplaceByIdRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// MarketplaceService_ServiceDesc is the grpc.ServiceDesc for MarketplaceService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
var MarketplaceService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "marketplace.MarketplaceService",
 | 
			
		||||
	HandlerType: (*MarketplaceServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "GetMarketplaceById",
 | 
			
		||||
			Handler:    _MarketplaceService_GetMarketplaceById_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "marketplace/marketplace.proto",
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										430
									
								
								api/generated/v1/ozon/products/products.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										430
									
								
								api/generated/v1/ozon/products/products.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,430 @@
 | 
			
		||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// 	protoc-gen-go v1.36.6
 | 
			
		||||
// 	protoc        v6.31.0
 | 
			
		||||
// source: ozon/products.proto
 | 
			
		||||
 | 
			
		||||
package products
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	_ "google.golang.org/protobuf/types/known/timestamppb"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	sync "sync"
 | 
			
		||||
	unsafe "unsafe"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// Verify that this generated code is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | 
			
		||||
	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type GetListOfProductsRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsRequest) Reset() {
 | 
			
		||||
	*x = GetListOfProductsRequest{}
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[0]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetListOfProductsRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[0]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetListOfProductsRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetListOfProductsRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_ozon_products_proto_rawDescGZIP(), []int{0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetListOfProductsResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Products      []*Product             `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsResponse) Reset() {
 | 
			
		||||
	*x = GetListOfProductsResponse{}
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[1]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetListOfProductsResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[1]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetListOfProductsResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetListOfProductsResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_ozon_products_proto_rawDescGZIP(), []int{1}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetListOfProductsResponse) GetProducts() []*Product {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Products
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Product struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	OfferId       string                 `protobuf:"bytes,2,opt,name=offer_id,json=offerId,proto3" json:"offer_id,omitempty"`
 | 
			
		||||
	Stocks        *Product_Stocks        `protobuf:"bytes,3,opt,name=stocks,proto3" json:"stocks,omitempty"`
 | 
			
		||||
	Barcodes      []string               `protobuf:"bytes,4,rep,name=barcodes,proto3" json:"barcodes,omitempty"`
 | 
			
		||||
	Statuses      *Product_Status        `protobuf:"bytes,5,opt,name=statuses,proto3" json:"statuses,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) Reset() {
 | 
			
		||||
	*x = Product{}
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[2]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*Product) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *Product) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[2]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use Product.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*Product) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_ozon_products_proto_rawDescGZIP(), []int{2}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) GetOfferId() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.OfferId
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) GetStocks() *Product_Stocks {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Stocks
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) GetBarcodes() []string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Barcodes
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product) GetStatuses() *Product_Status {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Statuses
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Product_Status struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	StatusName    string                 `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Status) Reset() {
 | 
			
		||||
	*x = Product_Status{}
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[3]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Status) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*Product_Status) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Status) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[3]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use Product_Status.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*Product_Status) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_ozon_products_proto_rawDescGZIP(), []int{2, 0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Status) GetStatusName() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.StatusName
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Product_Stocks struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Stocks        []*Product_Stock       `protobuf:"bytes,1,rep,name=stocks,proto3" json:"stocks,omitempty"`
 | 
			
		||||
	HasStock      bool                   `protobuf:"varint,2,opt,name=has_stock,json=hasStock,proto3" json:"has_stock,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stocks) Reset() {
 | 
			
		||||
	*x = Product_Stocks{}
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[4]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stocks) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*Product_Stocks) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stocks) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[4]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use Product_Stocks.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*Product_Stocks) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_ozon_products_proto_rawDescGZIP(), []int{2, 1}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stocks) GetStocks() []*Product_Stock {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Stocks
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stocks) GetHasStock() bool {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.HasStock
 | 
			
		||||
	}
 | 
			
		||||
	return false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Product_Stock struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Present       int64                  `protobuf:"varint,1,opt,name=present,proto3" json:"present,omitempty"`
 | 
			
		||||
	Reserved      int64                  `protobuf:"varint,2,opt,name=reserved,proto3" json:"reserved,omitempty"`
 | 
			
		||||
	SKU           int64                  `protobuf:"varint,3,opt,name=SKU,proto3" json:"SKU,omitempty"`
 | 
			
		||||
	Source        string                 `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) Reset() {
 | 
			
		||||
	*x = Product_Stock{}
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[5]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*Product_Stock) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_ozon_products_proto_msgTypes[5]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use Product_Stock.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*Product_Stock) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_ozon_products_proto_rawDescGZIP(), []int{2, 2}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) GetPresent() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Present
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) GetReserved() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Reserved
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) GetSKU() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.SKU
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Product_Stock) GetSource() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Source
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_ozon_products_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
const file_ozon_products_proto_rawDesc = "" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"\x13ozon/products.proto\x12\rozon.products\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1a\n" +
 | 
			
		||||
	"\x18GetListOfProductsRequest\"O\n" +
 | 
			
		||||
	"\x19GetListOfProductsResponse\x122\n" +
 | 
			
		||||
	"\bproducts\x18\x01 \x03(\v2\x16.ozon.products.ProductR\bproducts\"\xb3\x03\n" +
 | 
			
		||||
	"\aProduct\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x19\n" +
 | 
			
		||||
	"\boffer_id\x18\x02 \x01(\tR\aofferId\x125\n" +
 | 
			
		||||
	"\x06stocks\x18\x03 \x01(\v2\x1d.ozon.products.Product.StocksR\x06stocks\x12\x1a\n" +
 | 
			
		||||
	"\bbarcodes\x18\x04 \x03(\tR\bbarcodes\x129\n" +
 | 
			
		||||
	"\bstatuses\x18\x05 \x01(\v2\x1d.ozon.products.Product.StatusR\bstatuses\x1a)\n" +
 | 
			
		||||
	"\x06Status\x12\x1f\n" +
 | 
			
		||||
	"\vstatus_name\x18\x01 \x01(\tR\n" +
 | 
			
		||||
	"statusName\x1a[\n" +
 | 
			
		||||
	"\x06Stocks\x124\n" +
 | 
			
		||||
	"\x06stocks\x18\x01 \x03(\v2\x1c.ozon.products.Product.StockR\x06stocks\x12\x1b\n" +
 | 
			
		||||
	"\thas_stock\x18\x02 \x01(\bR\bhasStock\x1ag\n" +
 | 
			
		||||
	"\x05Stock\x12\x18\n" +
 | 
			
		||||
	"\apresent\x18\x01 \x01(\x03R\apresent\x12\x1a\n" +
 | 
			
		||||
	"\breserved\x18\x02 \x01(\x03R\breserved\x12\x10\n" +
 | 
			
		||||
	"\x03SKU\x18\x03 \x01(\x03R\x03SKU\x12\x16\n" +
 | 
			
		||||
	"\x06source\x18\x04 \x01(\tR\x06source2{\n" +
 | 
			
		||||
	"\x0fProductsService\x12h\n" +
 | 
			
		||||
	"\x11GetListOfProducts\x12'.ozon.products.GetListOfProductsRequest\x1a(.ozon.products.GetListOfProductsResponse0\x01B\x11Z\x0f./ozon/productsb\x06proto3"
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	file_ozon_products_proto_rawDescOnce sync.Once
 | 
			
		||||
	file_ozon_products_proto_rawDescData []byte
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func file_ozon_products_proto_rawDescGZIP() []byte {
 | 
			
		||||
	file_ozon_products_proto_rawDescOnce.Do(func() {
 | 
			
		||||
		file_ozon_products_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ozon_products_proto_rawDesc), len(file_ozon_products_proto_rawDesc)))
 | 
			
		||||
	})
 | 
			
		||||
	return file_ozon_products_proto_rawDescData
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var file_ozon_products_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
 | 
			
		||||
var file_ozon_products_proto_goTypes = []any{
 | 
			
		||||
	(*GetListOfProductsRequest)(nil),  // 0: ozon.products.GetListOfProductsRequest
 | 
			
		||||
	(*GetListOfProductsResponse)(nil), // 1: ozon.products.GetListOfProductsResponse
 | 
			
		||||
	(*Product)(nil),                   // 2: ozon.products.Product
 | 
			
		||||
	(*Product_Status)(nil),            // 3: ozon.products.Product.Status
 | 
			
		||||
	(*Product_Stocks)(nil),            // 4: ozon.products.Product.Stocks
 | 
			
		||||
	(*Product_Stock)(nil),             // 5: ozon.products.Product.Stock
 | 
			
		||||
}
 | 
			
		||||
var file_ozon_products_proto_depIdxs = []int32{
 | 
			
		||||
	2, // 0: ozon.products.GetListOfProductsResponse.products:type_name -> ozon.products.Product
 | 
			
		||||
	4, // 1: ozon.products.Product.stocks:type_name -> ozon.products.Product.Stocks
 | 
			
		||||
	3, // 2: ozon.products.Product.statuses:type_name -> ozon.products.Product.Status
 | 
			
		||||
	5, // 3: ozon.products.Product.Stocks.stocks:type_name -> ozon.products.Product.Stock
 | 
			
		||||
	0, // 4: ozon.products.ProductsService.GetListOfProducts:input_type -> ozon.products.GetListOfProductsRequest
 | 
			
		||||
	1, // 5: ozon.products.ProductsService.GetListOfProducts:output_type -> ozon.products.GetListOfProductsResponse
 | 
			
		||||
	5, // [5:6] is the sub-list for method output_type
 | 
			
		||||
	4, // [4:5] is the sub-list for method input_type
 | 
			
		||||
	4, // [4:4] is the sub-list for extension type_name
 | 
			
		||||
	4, // [4:4] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:4] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_ozon_products_proto_init() }
 | 
			
		||||
func file_ozon_products_proto_init() {
 | 
			
		||||
	if File_ozon_products_proto != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
		File: protoimpl.DescBuilder{
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ozon_products_proto_rawDesc), len(file_ozon_products_proto_rawDesc)),
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   6,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
		GoTypes:           file_ozon_products_proto_goTypes,
 | 
			
		||||
		DependencyIndexes: file_ozon_products_proto_depIdxs,
 | 
			
		||||
		MessageInfos:      file_ozon_products_proto_msgTypes,
 | 
			
		||||
	}.Build()
 | 
			
		||||
	File_ozon_products_proto = out.File
 | 
			
		||||
	file_ozon_products_proto_goTypes = nil
 | 
			
		||||
	file_ozon_products_proto_depIdxs = nil
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										126
									
								
								api/generated/v1/ozon/products/products_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										126
									
								
								api/generated/v1/ozon/products/products_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,126 @@
 | 
			
		||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// - protoc-gen-go-grpc v1.5.1
 | 
			
		||||
// - protoc             v6.31.0
 | 
			
		||||
// source: ozon/products.proto
 | 
			
		||||
 | 
			
		||||
package products
 | 
			
		||||
 | 
			
		||||
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 (
 | 
			
		||||
	ProductsService_GetListOfProducts_FullMethodName = "/ozon.products.ProductsService/GetListOfProducts"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// ProductsServiceClient is the client API for ProductsService 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 ProductsServiceClient interface {
 | 
			
		||||
	// Retrieves a list of products based on the provided request.
 | 
			
		||||
	GetListOfProducts(ctx context.Context, in *GetListOfProductsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetListOfProductsResponse], error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type productsServiceClient struct {
 | 
			
		||||
	cc grpc.ClientConnInterface
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewProductsServiceClient(cc grpc.ClientConnInterface) ProductsServiceClient {
 | 
			
		||||
	return &productsServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *productsServiceClient) GetListOfProducts(ctx context.Context, in *GetListOfProductsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetListOfProductsResponse], error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	stream, err := c.cc.NewStream(ctx, &ProductsService_ServiceDesc.Streams[0], ProductsService_GetListOfProducts_FullMethodName, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	x := &grpc.GenericClientStream[GetListOfProductsRequest, GetListOfProductsResponse]{ClientStream: stream}
 | 
			
		||||
	if err := x.ClientStream.SendMsg(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if err := x.ClientStream.CloseSend(); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return x, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
 | 
			
		||||
type ProductsService_GetListOfProductsClient = grpc.ServerStreamingClient[GetListOfProductsResponse]
 | 
			
		||||
 | 
			
		||||
// ProductsServiceServer is the server API for ProductsService service.
 | 
			
		||||
// All implementations must embed UnimplementedProductsServiceServer
 | 
			
		||||
// for forward compatibility.
 | 
			
		||||
type ProductsServiceServer interface {
 | 
			
		||||
	// Retrieves a list of products based on the provided request.
 | 
			
		||||
	GetListOfProducts(*GetListOfProductsRequest, grpc.ServerStreamingServer[GetListOfProductsResponse]) error
 | 
			
		||||
	mustEmbedUnimplementedProductsServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedProductsServiceServer 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 UnimplementedProductsServiceServer struct{}
 | 
			
		||||
 | 
			
		||||
func (UnimplementedProductsServiceServer) GetListOfProducts(*GetListOfProductsRequest, grpc.ServerStreamingServer[GetListOfProductsResponse]) error {
 | 
			
		||||
	return status.Errorf(codes.Unimplemented, "method GetListOfProducts not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedProductsServiceServer) mustEmbedUnimplementedProductsServiceServer() {}
 | 
			
		||||
func (UnimplementedProductsServiceServer) testEmbeddedByValue()                         {}
 | 
			
		||||
 | 
			
		||||
// UnsafeProductsServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to ProductsServiceServer will
 | 
			
		||||
// result in compilation errors.
 | 
			
		||||
type UnsafeProductsServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedProductsServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterProductsServiceServer(s grpc.ServiceRegistrar, srv ProductsServiceServer) {
 | 
			
		||||
	// If the following call pancis, it indicates UnimplementedProductsServiceServer 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(&ProductsService_ServiceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _ProductsService_GetListOfProducts_Handler(srv interface{}, stream grpc.ServerStream) error {
 | 
			
		||||
	m := new(GetListOfProductsRequest)
 | 
			
		||||
	if err := stream.RecvMsg(m); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	return srv.(ProductsServiceServer).GetListOfProducts(m, &grpc.GenericServerStream[GetListOfProductsRequest, GetListOfProductsResponse]{ServerStream: stream})
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
 | 
			
		||||
type ProductsService_GetListOfProductsServer = grpc.ServerStreamingServer[GetListOfProductsResponse]
 | 
			
		||||
 | 
			
		||||
// ProductsService_ServiceDesc is the grpc.ServiceDesc for ProductsService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
var ProductsService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "ozon.products.ProductsService",
 | 
			
		||||
	HandlerType: (*ProductsServiceServer)(nil),
 | 
			
		||||
	Methods:     []grpc.MethodDesc{},
 | 
			
		||||
	Streams: []grpc.StreamDesc{
 | 
			
		||||
		{
 | 
			
		||||
			StreamName:    "GetListOfProducts",
 | 
			
		||||
			Handler:       _ProductsService_GetListOfProducts_Handler,
 | 
			
		||||
			ServerStreams: true,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Metadata: "ozon/products.proto",
 | 
			
		||||
}
 | 
			
		||||
@@ -1,486 +0,0 @@
 | 
			
		||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// 	protoc-gen-go v1.36.6
 | 
			
		||||
// 	protoc        v6.30.0
 | 
			
		||||
// source: test.proto
 | 
			
		||||
 | 
			
		||||
package v1
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	sync "sync"
 | 
			
		||||
	unsafe "unsafe"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// Verify that this generated code is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | 
			
		||||
	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type CreateTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Data          string                 `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) Reset() {
 | 
			
		||||
	*x = CreateTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[0]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*CreateTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[0]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use CreateTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*CreateTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestRequest) GetData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Data
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type CreateTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) Reset() {
 | 
			
		||||
	*x = CreateTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[1]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*CreateTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[1]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use CreateTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*CreateTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{1}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *CreateTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) Reset() {
 | 
			
		||||
	*x = GetTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[2]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[2]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{2}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestRequest) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	Data          string                 `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) Reset() {
 | 
			
		||||
	*x = GetTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[3]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*GetTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[3]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use GetTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*GetTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{3}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *GetTestResponse) GetData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Data
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type UpdateTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	Data          string                 `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) Reset() {
 | 
			
		||||
	*x = UpdateTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[4]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*UpdateTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[4]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use UpdateTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*UpdateTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{4}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestRequest) GetData() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Data
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type UpdateTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) Reset() {
 | 
			
		||||
	*x = UpdateTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[5]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*UpdateTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[5]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use UpdateTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*UpdateTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{5}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *UpdateTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type DeleteTestRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) Reset() {
 | 
			
		||||
	*x = DeleteTestRequest{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[6]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*DeleteTestRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[6]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use DeleteTestRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*DeleteTestRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{6}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestRequest) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type DeleteTestResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState `protogen:"open.v1"`
 | 
			
		||||
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) Reset() {
 | 
			
		||||
	*x = DeleteTestResponse{}
 | 
			
		||||
	mi := &file_test_proto_msgTypes[7]
 | 
			
		||||
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
	ms.StoreMessageInfo(mi)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*DeleteTestResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_test_proto_msgTypes[7]
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use DeleteTestResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*DeleteTestResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_test_proto_rawDescGZIP(), []int{7}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *DeleteTestResponse) GetId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Id
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_test_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
const file_test_proto_rawDesc = "" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"test.proto\x12\x02v1\"'\n" +
 | 
			
		||||
	"\x11CreateTestRequest\x12\x12\n" +
 | 
			
		||||
	"\x04data\x18\x01 \x01(\tR\x04data\"$\n" +
 | 
			
		||||
	"\x12CreateTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\" \n" +
 | 
			
		||||
	"\x0eGetTestRequest\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\"5\n" +
 | 
			
		||||
	"\x0fGetTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
 | 
			
		||||
	"\x04data\x18\x02 \x01(\tR\x04data\"7\n" +
 | 
			
		||||
	"\x11UpdateTestRequest\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
 | 
			
		||||
	"\x04data\x18\x02 \x01(\tR\x04data\"$\n" +
 | 
			
		||||
	"\x12UpdateTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\"#\n" +
 | 
			
		||||
	"\x11DeleteTestRequest\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id\"$\n" +
 | 
			
		||||
	"\x12DeleteTestResponse\x12\x0e\n" +
 | 
			
		||||
	"\x02id\x18\x01 \x01(\x03R\x02id2\xf8\x01\n" +
 | 
			
		||||
	"\vTestService\x12;\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"CreateTest\x12\x15.v1.CreateTestRequest\x1a\x16.v1.CreateTestResponse\x122\n" +
 | 
			
		||||
	"\aGetTest\x12\x12.v1.GetTestRequest\x1a\x13.v1.GetTestResponse\x12;\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"UpdateTest\x12\x15.v1.UpdateTestRequest\x1a\x16.v1.UpdateTestResponse\x12;\n" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"DeleteTest\x12\x15.v1.DeleteTestRequest\x1a\x16.v1.DeleteTestResponseB\x14Z\x12./api/generated/v1b\x06proto3"
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	file_test_proto_rawDescOnce sync.Once
 | 
			
		||||
	file_test_proto_rawDescData []byte
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func file_test_proto_rawDescGZIP() []byte {
 | 
			
		||||
	file_test_proto_rawDescOnce.Do(func() {
 | 
			
		||||
		file_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_test_proto_rawDesc), len(file_test_proto_rawDesc)))
 | 
			
		||||
	})
 | 
			
		||||
	return file_test_proto_rawDescData
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
 | 
			
		||||
var file_test_proto_goTypes = []any{
 | 
			
		||||
	(*CreateTestRequest)(nil),  // 0: v1.CreateTestRequest
 | 
			
		||||
	(*CreateTestResponse)(nil), // 1: v1.CreateTestResponse
 | 
			
		||||
	(*GetTestRequest)(nil),     // 2: v1.GetTestRequest
 | 
			
		||||
	(*GetTestResponse)(nil),    // 3: v1.GetTestResponse
 | 
			
		||||
	(*UpdateTestRequest)(nil),  // 4: v1.UpdateTestRequest
 | 
			
		||||
	(*UpdateTestResponse)(nil), // 5: v1.UpdateTestResponse
 | 
			
		||||
	(*DeleteTestRequest)(nil),  // 6: v1.DeleteTestRequest
 | 
			
		||||
	(*DeleteTestResponse)(nil), // 7: v1.DeleteTestResponse
 | 
			
		||||
}
 | 
			
		||||
var file_test_proto_depIdxs = []int32{
 | 
			
		||||
	0, // 0: v1.TestService.CreateTest:input_type -> v1.CreateTestRequest
 | 
			
		||||
	2, // 1: v1.TestService.GetTest:input_type -> v1.GetTestRequest
 | 
			
		||||
	4, // 2: v1.TestService.UpdateTest:input_type -> v1.UpdateTestRequest
 | 
			
		||||
	6, // 3: v1.TestService.DeleteTest:input_type -> v1.DeleteTestRequest
 | 
			
		||||
	1, // 4: v1.TestService.CreateTest:output_type -> v1.CreateTestResponse
 | 
			
		||||
	3, // 5: v1.TestService.GetTest:output_type -> v1.GetTestResponse
 | 
			
		||||
	5, // 6: v1.TestService.UpdateTest:output_type -> v1.UpdateTestResponse
 | 
			
		||||
	7, // 7: v1.TestService.DeleteTest:output_type -> v1.DeleteTestResponse
 | 
			
		||||
	4, // [4:8] is the sub-list for method output_type
 | 
			
		||||
	0, // [0:4] is the sub-list for method input_type
 | 
			
		||||
	0, // [0:0] is the sub-list for extension type_name
 | 
			
		||||
	0, // [0:0] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:0] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_test_proto_init() }
 | 
			
		||||
func file_test_proto_init() {
 | 
			
		||||
	if File_test_proto != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
		File: protoimpl.DescBuilder{
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_test_proto_rawDesc), len(file_test_proto_rawDesc)),
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   8,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
		GoTypes:           file_test_proto_goTypes,
 | 
			
		||||
		DependencyIndexes: file_test_proto_depIdxs,
 | 
			
		||||
		MessageInfos:      file_test_proto_msgTypes,
 | 
			
		||||
	}.Build()
 | 
			
		||||
	File_test_proto = out.File
 | 
			
		||||
	file_test_proto_goTypes = nil
 | 
			
		||||
	file_test_proto_depIdxs = nil
 | 
			
		||||
}
 | 
			
		||||
@@ -1,235 +0,0 @@
 | 
			
		||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// - protoc-gen-go-grpc v1.5.1
 | 
			
		||||
// - protoc             v6.30.0
 | 
			
		||||
// source: test.proto
 | 
			
		||||
 | 
			
		||||
package v1
 | 
			
		||||
 | 
			
		||||
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 (
 | 
			
		||||
	TestService_CreateTest_FullMethodName = "/v1.TestService/CreateTest"
 | 
			
		||||
	TestService_GetTest_FullMethodName    = "/v1.TestService/GetTest"
 | 
			
		||||
	TestService_UpdateTest_FullMethodName = "/v1.TestService/UpdateTest"
 | 
			
		||||
	TestService_DeleteTest_FullMethodName = "/v1.TestService/DeleteTest"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// TestServiceClient is the client API for TestService 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 TestServiceClient interface {
 | 
			
		||||
	CreateTest(ctx context.Context, in *CreateTestRequest, opts ...grpc.CallOption) (*CreateTestResponse, error)
 | 
			
		||||
	GetTest(ctx context.Context, in *GetTestRequest, opts ...grpc.CallOption) (*GetTestResponse, error)
 | 
			
		||||
	UpdateTest(ctx context.Context, in *UpdateTestRequest, opts ...grpc.CallOption) (*UpdateTestResponse, error)
 | 
			
		||||
	DeleteTest(ctx context.Context, in *DeleteTestRequest, opts ...grpc.CallOption) (*DeleteTestResponse, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type testServiceClient struct {
 | 
			
		||||
	cc grpc.ClientConnInterface
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient {
 | 
			
		||||
	return &testServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) CreateTest(ctx context.Context, in *CreateTestRequest, opts ...grpc.CallOption) (*CreateTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(CreateTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_CreateTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) GetTest(ctx context.Context, in *GetTestRequest, opts ...grpc.CallOption) (*GetTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(GetTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_GetTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) UpdateTest(ctx context.Context, in *UpdateTestRequest, opts ...grpc.CallOption) (*UpdateTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(UpdateTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_UpdateTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *testServiceClient) DeleteTest(ctx context.Context, in *DeleteTestRequest, opts ...grpc.CallOption) (*DeleteTestResponse, error) {
 | 
			
		||||
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 | 
			
		||||
	out := new(DeleteTestResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, TestService_DeleteTest_FullMethodName, in, out, cOpts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TestServiceServer is the server API for TestService service.
 | 
			
		||||
// All implementations must embed UnimplementedTestServiceServer
 | 
			
		||||
// for forward compatibility.
 | 
			
		||||
type TestServiceServer interface {
 | 
			
		||||
	CreateTest(context.Context, *CreateTestRequest) (*CreateTestResponse, error)
 | 
			
		||||
	GetTest(context.Context, *GetTestRequest) (*GetTestResponse, error)
 | 
			
		||||
	UpdateTest(context.Context, *UpdateTestRequest) (*UpdateTestResponse, error)
 | 
			
		||||
	DeleteTest(context.Context, *DeleteTestRequest) (*DeleteTestResponse, error)
 | 
			
		||||
	mustEmbedUnimplementedTestServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedTestServiceServer 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 UnimplementedTestServiceServer struct{}
 | 
			
		||||
 | 
			
		||||
func (UnimplementedTestServiceServer) CreateTest(context.Context, *CreateTestRequest) (*CreateTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method CreateTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) GetTest(context.Context, *GetTestRequest) (*GetTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method GetTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) UpdateTest(context.Context, *UpdateTestRequest) (*UpdateTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method UpdateTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) DeleteTest(context.Context, *DeleteTestRequest) (*DeleteTestResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method DeleteTest not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedTestServiceServer) mustEmbedUnimplementedTestServiceServer() {}
 | 
			
		||||
func (UnimplementedTestServiceServer) testEmbeddedByValue()                     {}
 | 
			
		||||
 | 
			
		||||
// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to TestServiceServer will
 | 
			
		||||
// result in compilation errors.
 | 
			
		||||
type UnsafeTestServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedTestServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) {
 | 
			
		||||
	// If the following call pancis, it indicates UnimplementedTestServiceServer 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(&TestService_ServiceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_CreateTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(CreateTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).CreateTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_CreateTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).CreateTest(ctx, req.(*CreateTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_GetTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(GetTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).GetTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_GetTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).GetTest(ctx, req.(*GetTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_UpdateTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(UpdateTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).UpdateTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_UpdateTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).UpdateTest(ctx, req.(*UpdateTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _TestService_DeleteTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(DeleteTestRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(TestServiceServer).DeleteTest(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: TestService_DeleteTest_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(TestServiceServer).DeleteTest(ctx, req.(*DeleteTestRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TestService_ServiceDesc is the grpc.ServiceDesc for TestService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
var TestService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "v1.TestService",
 | 
			
		||||
	HandlerType: (*TestServiceServer)(nil),
 | 
			
		||||
	Methods: []grpc.MethodDesc{
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "CreateTest",
 | 
			
		||||
			Handler:    _TestService_CreateTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "GetTest",
 | 
			
		||||
			Handler:    _TestService_GetTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "UpdateTest",
 | 
			
		||||
			Handler:    _TestService_UpdateTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "DeleteTest",
 | 
			
		||||
			Handler:    _TestService_DeleteTest_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "test.proto",
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										60
									
								
								api/generated/v1/wb/products/products.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								api/generated/v1/wb/products/products.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
			
		||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// 	protoc-gen-go v1.36.6
 | 
			
		||||
// 	protoc        v6.31.0
 | 
			
		||||
// source: wb/products.proto
 | 
			
		||||
 | 
			
		||||
package products
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	unsafe "unsafe"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// Verify that this generated code is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | 
			
		||||
	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var File_wb_products_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
const file_wb_products_proto_rawDesc = "" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"\x11wb/products.proto\x12\vwb.products2\x11\n" +
 | 
			
		||||
	"\x0fProductsServiceB\x0fZ\r./wb/productsb\x06proto3"
 | 
			
		||||
 | 
			
		||||
var file_wb_products_proto_goTypes = []any{}
 | 
			
		||||
var file_wb_products_proto_depIdxs = []int32{
 | 
			
		||||
	0, // [0:0] is the sub-list for method output_type
 | 
			
		||||
	0, // [0:0] is the sub-list for method input_type
 | 
			
		||||
	0, // [0:0] is the sub-list for extension type_name
 | 
			
		||||
	0, // [0:0] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:0] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_wb_products_proto_init() }
 | 
			
		||||
func file_wb_products_proto_init() {
 | 
			
		||||
	if File_wb_products_proto != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
		File: protoimpl.DescBuilder{
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_wb_products_proto_rawDesc), len(file_wb_products_proto_rawDesc)),
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   0,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
		GoTypes:           file_wb_products_proto_goTypes,
 | 
			
		||||
		DependencyIndexes: file_wb_products_proto_depIdxs,
 | 
			
		||||
	}.Build()
 | 
			
		||||
	File_wb_products_proto = out.File
 | 
			
		||||
	file_wb_products_proto_goTypes = nil
 | 
			
		||||
	file_wb_products_proto_depIdxs = nil
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										76
									
								
								api/generated/v1/wb/products/products_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								api/generated/v1/wb/products/products_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,76 @@
 | 
			
		||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// - protoc-gen-go-grpc v1.5.1
 | 
			
		||||
// - protoc             v6.31.0
 | 
			
		||||
// source: wb/products.proto
 | 
			
		||||
 | 
			
		||||
package products
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// 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
 | 
			
		||||
 | 
			
		||||
// ProductsServiceClient is the client API for ProductsService 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 ProductsServiceClient interface {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type productsServiceClient struct {
 | 
			
		||||
	cc grpc.ClientConnInterface
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewProductsServiceClient(cc grpc.ClientConnInterface) ProductsServiceClient {
 | 
			
		||||
	return &productsServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ProductsServiceServer is the server API for ProductsService service.
 | 
			
		||||
// All implementations must embed UnimplementedProductsServiceServer
 | 
			
		||||
// for forward compatibility.
 | 
			
		||||
type ProductsServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedProductsServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedProductsServiceServer 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 UnimplementedProductsServiceServer struct{}
 | 
			
		||||
 | 
			
		||||
func (UnimplementedProductsServiceServer) mustEmbedUnimplementedProductsServiceServer() {}
 | 
			
		||||
func (UnimplementedProductsServiceServer) testEmbeddedByValue()                         {}
 | 
			
		||||
 | 
			
		||||
// UnsafeProductsServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to ProductsServiceServer will
 | 
			
		||||
// result in compilation errors.
 | 
			
		||||
type UnsafeProductsServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedProductsServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterProductsServiceServer(s grpc.ServiceRegistrar, srv ProductsServiceServer) {
 | 
			
		||||
	// If the following call pancis, it indicates UnimplementedProductsServiceServer 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(&ProductsService_ServiceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ProductsService_ServiceDesc is the grpc.ServiceDesc for ProductsService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
var ProductsService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "wb.products.ProductsService",
 | 
			
		||||
	HandlerType: (*ProductsServiceServer)(nil),
 | 
			
		||||
	Methods:     []grpc.MethodDesc{},
 | 
			
		||||
	Streams:     []grpc.StreamDesc{},
 | 
			
		||||
	Metadata:    "wb/products.proto",
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										60
									
								
								api/generated/v1/yandexmarket/products/products.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								api/generated/v1/yandexmarket/products/products.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
			
		||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// 	protoc-gen-go v1.36.6
 | 
			
		||||
// 	protoc        v6.31.0
 | 
			
		||||
// source: yandexmarket/products.proto
 | 
			
		||||
 | 
			
		||||
package products
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
			
		||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
			
		||||
	reflect "reflect"
 | 
			
		||||
	unsafe "unsafe"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// Verify that this generated code is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
 | 
			
		||||
	// Verify that runtime/protoimpl is sufficiently up-to-date.
 | 
			
		||||
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var File_yandexmarket_products_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
const file_yandexmarket_products_proto_rawDesc = "" +
 | 
			
		||||
	"\n" +
 | 
			
		||||
	"\x1byandexmarket/products.proto\x12\x15yandexmarket.products2\x11\n" +
 | 
			
		||||
	"\x0fProductsServiceB\x19Z\x17./yandexmarket/productsb\x06proto3"
 | 
			
		||||
 | 
			
		||||
var file_yandexmarket_products_proto_goTypes = []any{}
 | 
			
		||||
var file_yandexmarket_products_proto_depIdxs = []int32{
 | 
			
		||||
	0, // [0:0] is the sub-list for method output_type
 | 
			
		||||
	0, // [0:0] is the sub-list for method input_type
 | 
			
		||||
	0, // [0:0] is the sub-list for extension type_name
 | 
			
		||||
	0, // [0:0] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:0] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_yandexmarket_products_proto_init() }
 | 
			
		||||
func file_yandexmarket_products_proto_init() {
 | 
			
		||||
	if File_yandexmarket_products_proto != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
		File: protoimpl.DescBuilder{
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandexmarket_products_proto_rawDesc), len(file_yandexmarket_products_proto_rawDesc)),
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   0,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
		GoTypes:           file_yandexmarket_products_proto_goTypes,
 | 
			
		||||
		DependencyIndexes: file_yandexmarket_products_proto_depIdxs,
 | 
			
		||||
	}.Build()
 | 
			
		||||
	File_yandexmarket_products_proto = out.File
 | 
			
		||||
	file_yandexmarket_products_proto_goTypes = nil
 | 
			
		||||
	file_yandexmarket_products_proto_depIdxs = nil
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										76
									
								
								api/generated/v1/yandexmarket/products/products_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								api/generated/v1/yandexmarket/products/products_grpc.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,76 @@
 | 
			
		||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
			
		||||
// versions:
 | 
			
		||||
// - protoc-gen-go-grpc v1.5.1
 | 
			
		||||
// - protoc             v6.31.0
 | 
			
		||||
// source: yandexmarket/products.proto
 | 
			
		||||
 | 
			
		||||
package products
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	grpc "google.golang.org/grpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// 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
 | 
			
		||||
 | 
			
		||||
// ProductsServiceClient is the client API for ProductsService 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 ProductsServiceClient interface {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type productsServiceClient struct {
 | 
			
		||||
	cc grpc.ClientConnInterface
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewProductsServiceClient(cc grpc.ClientConnInterface) ProductsServiceClient {
 | 
			
		||||
	return &productsServiceClient{cc}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ProductsServiceServer is the server API for ProductsService service.
 | 
			
		||||
// All implementations must embed UnimplementedProductsServiceServer
 | 
			
		||||
// for forward compatibility.
 | 
			
		||||
type ProductsServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedProductsServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedProductsServiceServer 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 UnimplementedProductsServiceServer struct{}
 | 
			
		||||
 | 
			
		||||
func (UnimplementedProductsServiceServer) mustEmbedUnimplementedProductsServiceServer() {}
 | 
			
		||||
func (UnimplementedProductsServiceServer) testEmbeddedByValue()                         {}
 | 
			
		||||
 | 
			
		||||
// UnsafeProductsServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to ProductsServiceServer will
 | 
			
		||||
// result in compilation errors.
 | 
			
		||||
type UnsafeProductsServiceServer interface {
 | 
			
		||||
	mustEmbedUnimplementedProductsServiceServer()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterProductsServiceServer(s grpc.ServiceRegistrar, srv ProductsServiceServer) {
 | 
			
		||||
	// If the following call pancis, it indicates UnimplementedProductsServiceServer 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(&ProductsService_ServiceDesc, srv)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ProductsService_ServiceDesc is the grpc.ServiceDesc for ProductsService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
var ProductsService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "yandexmarket.products.ProductsService",
 | 
			
		||||
	HandlerType: (*ProductsServiceServer)(nil),
 | 
			
		||||
	Methods:     []grpc.MethodDesc{},
 | 
			
		||||
	Streams:     []grpc.StreamDesc{},
 | 
			
		||||
	Metadata:    "yandexmarket/products.proto",
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user