2023-12-30 19:17:19 +00:00
|
|
|
// Copyright (C) 2023 The Licensing Authors
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
//
|
|
|
|
// This file attempts to follow common styles and design patterns described by
|
|
|
|
// Google Cloud based on their extensive use of protocol buffers.
|
|
|
|
//
|
|
|
|
// - See here for more: https://cloud.google.com/apis/design/design_patterns
|
|
|
|
//
|
|
|
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.32.0
|
|
|
|
// protoc (unknown)
|
|
|
|
// source: products/v1/service.proto
|
|
|
|
|
|
|
|
package productsv1
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
)
|
|
|
|
|
2023-12-31 19:44:12 +00:00
|
|
|
type Product struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Product) Reset() {
|
|
|
|
*x = Product{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_products_v1_service_proto_msgTypes[0]
|
|
|
|
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_products_v1_service_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && 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_products_v1_service_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Product) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Product) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Product) GetDescription() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Description
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-12-30 19:17:19 +00:00
|
|
|
type ListRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListRequest) Reset() {
|
|
|
|
*x = ListRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[1]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListRequest) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[1]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{1}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ListResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-12-31 19:44:12 +00:00
|
|
|
|
|
|
|
Products []*Product `protobuf:"bytes,5,rep,name=products,proto3" json:"products,omitempty"`
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListResponse) Reset() {
|
|
|
|
*x = ListResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[2]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListResponse) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[2]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListResponse) GetProducts() []*Product {
|
|
|
|
if x != nil {
|
|
|
|
return x.Products
|
|
|
|
}
|
|
|
|
return nil
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type CreateRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-12-31 19:44:12 +00:00
|
|
|
|
|
|
|
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateRequest) Reset() {
|
|
|
|
*x = CreateRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[3]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CreateRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateRequest) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[3]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateRequest) GetProduct() *Product {
|
|
|
|
if x != nil {
|
|
|
|
return x.Product
|
|
|
|
}
|
|
|
|
return nil
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type CreateResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateResponse) Reset() {
|
|
|
|
*x = CreateResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[4]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CreateResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*CreateResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CreateResponse) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[4]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CreateResponse) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{4}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ReadRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ReadRequest) Reset() {
|
|
|
|
*x = ReadRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[5]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ReadRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ReadRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ReadRequest) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[5]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{5}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ReadRequest) GetProductId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ProductId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReadResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-12-31 19:44:12 +00:00
|
|
|
|
|
|
|
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ReadResponse) Reset() {
|
|
|
|
*x = ReadResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[6]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ReadResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ReadResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ReadResponse) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[6]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ReadResponse) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ReadResponse) GetProduct() *Product {
|
|
|
|
if x != nil {
|
|
|
|
return x.Product
|
|
|
|
}
|
|
|
|
return nil
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-12-31 19:44:12 +00:00
|
|
|
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateRequest) Reset() {
|
|
|
|
*x = UpdateRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[7]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UpdateRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateRequest) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[7]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateRequest) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{7}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
2023-12-31 19:44:12 +00:00
|
|
|
func (x *UpdateRequest) GetProduct() *Product {
|
2023-12-30 19:17:19 +00:00
|
|
|
if x != nil {
|
2023-12-31 19:44:12 +00:00
|
|
|
return x.Product
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
2023-12-31 19:44:12 +00:00
|
|
|
return nil
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateResponse) Reset() {
|
|
|
|
*x = UpdateResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[8]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UpdateResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UpdateResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UpdateResponse) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[8]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{8}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteRequest) Reset() {
|
|
|
|
*x = DeleteRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[9]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[9]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{9}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteRequest) GetProductId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ProductId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteResponse) Reset() {
|
|
|
|
*x = DeleteResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[10]
|
2023-12-30 19:17:19 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *DeleteResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*DeleteResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
|
2023-12-31 19:44:12 +00:00
|
|
|
mi := &file_products_v1_service_proto_msgTypes[10]
|
2023-12-30 19:17:19 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
2023-12-31 19:44:12 +00:00
|
|
|
return file_products_v1_service_proto_rawDescGZIP(), []int{10}
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var File_products_v1_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_products_v1_service_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x19, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65,
|
|
|
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f,
|
|
|
|
0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
|
|
|
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
2023-12-31 19:44:12 +00:00
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
|
|
|
0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
|
|
|
|
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x40, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75,
|
|
|
|
0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x08,
|
|
|
|
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x22, 0x3f, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61,
|
|
|
|
0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, 0x6f,
|
|
|
|
0x64, 0x75, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
|
|
|
0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0x10, 0x0a, 0x0e, 0x43, 0x72, 0x65,
|
|
|
|
0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x0a, 0x0b, 0x52,
|
|
|
|
0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72,
|
|
|
|
0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
|
|
|
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x0c, 0x52, 0x65, 0x61,
|
|
|
|
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, 0x6f,
|
|
|
|
0x64, 0x75, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
|
|
|
0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0x3f, 0x0a, 0x0d, 0x55, 0x70, 0x64,
|
|
|
|
0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72,
|
|
|
|
0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72,
|
|
|
|
0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0x10, 0x0a, 0x0e, 0x55, 0x70,
|
|
|
|
0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x0a, 0x0d,
|
|
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a,
|
|
|
|
0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x22, 0x10, 0x0a, 0x0e,
|
|
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xee,
|
|
|
|
0x03, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
|
|
0x65, 0x12, 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x64,
|
|
|
|
0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76,
|
|
|
|
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14,
|
|
|
|
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64,
|
|
|
|
0x75, 0x63, 0x74, 0x73, 0x12, 0x5a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1a,
|
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65,
|
|
|
|
0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f,
|
2023-12-30 19:17:19 +00:00
|
|
|
0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,
|
2023-12-31 19:44:12 +00:00
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x3a,
|
|
|
|
0x01, 0x2a, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73,
|
|
|
|
0x12, 0x5e, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75,
|
|
|
|
0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31,
|
|
|
|
0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82,
|
|
|
|
0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75,
|
|
|
|
0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d,
|
|
|
|
0x12, 0x67, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52,
|
2023-12-30 19:17:19 +00:00
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
|
2023-12-31 19:44:12 +00:00
|
|
|
0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19,
|
|
|
|
0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72,
|
|
|
|
0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x69, 0x64, 0x7d, 0x12, 0x64, 0x0a, 0x06, 0x44, 0x65, 0x6c,
|
|
|
|
0x65, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76,
|
|
|
|
0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
|
0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
|
|
|
|
0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3,
|
|
|
|
0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x42,
|
|
|
|
0xa4, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73,
|
|
|
|
0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
|
|
|
|
0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x69, 0x74, 0x7a, 0x2e, 0x74,
|
|
|
|
0x65, 0x63, 0x68, 0x2f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70,
|
|
|
|
0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31,
|
|
|
|
0x3b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58,
|
|
|
|
0x58, 0xaa, 0x02, 0x0b, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca,
|
|
|
|
0x02, 0x0b, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x17,
|
|
|
|
0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d,
|
|
|
|
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
|
0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_products_v1_service_proto_rawDescOnce sync.Once
|
|
|
|
file_products_v1_service_proto_rawDescData = file_products_v1_service_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_products_v1_service_proto_rawDescGZIP() []byte {
|
|
|
|
file_products_v1_service_proto_rawDescOnce.Do(func() {
|
|
|
|
file_products_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_products_v1_service_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_products_v1_service_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2023-12-31 19:44:12 +00:00
|
|
|
var file_products_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
2023-12-30 19:17:19 +00:00
|
|
|
var file_products_v1_service_proto_goTypes = []interface{}{
|
2023-12-31 19:44:12 +00:00
|
|
|
(*Product)(nil), // 0: products.v1.Product
|
|
|
|
(*ListRequest)(nil), // 1: products.v1.ListRequest
|
|
|
|
(*ListResponse)(nil), // 2: products.v1.ListResponse
|
|
|
|
(*CreateRequest)(nil), // 3: products.v1.CreateRequest
|
|
|
|
(*CreateResponse)(nil), // 4: products.v1.CreateResponse
|
|
|
|
(*ReadRequest)(nil), // 5: products.v1.ReadRequest
|
|
|
|
(*ReadResponse)(nil), // 6: products.v1.ReadResponse
|
|
|
|
(*UpdateRequest)(nil), // 7: products.v1.UpdateRequest
|
|
|
|
(*UpdateResponse)(nil), // 8: products.v1.UpdateResponse
|
|
|
|
(*DeleteRequest)(nil), // 9: products.v1.DeleteRequest
|
|
|
|
(*DeleteResponse)(nil), // 10: products.v1.DeleteResponse
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
var file_products_v1_service_proto_depIdxs = []int32{
|
2023-12-31 19:44:12 +00:00
|
|
|
0, // 0: products.v1.ListResponse.products:type_name -> products.v1.Product
|
|
|
|
0, // 1: products.v1.CreateRequest.product:type_name -> products.v1.Product
|
|
|
|
0, // 2: products.v1.ReadResponse.product:type_name -> products.v1.Product
|
|
|
|
0, // 3: products.v1.UpdateRequest.product:type_name -> products.v1.Product
|
|
|
|
1, // 4: products.v1.ProductService.List:input_type -> products.v1.ListRequest
|
|
|
|
3, // 5: products.v1.ProductService.Create:input_type -> products.v1.CreateRequest
|
|
|
|
5, // 6: products.v1.ProductService.Read:input_type -> products.v1.ReadRequest
|
|
|
|
7, // 7: products.v1.ProductService.Update:input_type -> products.v1.UpdateRequest
|
|
|
|
9, // 8: products.v1.ProductService.Delete:input_type -> products.v1.DeleteRequest
|
|
|
|
2, // 9: products.v1.ProductService.List:output_type -> products.v1.ListResponse
|
|
|
|
4, // 10: products.v1.ProductService.Create:output_type -> products.v1.CreateResponse
|
|
|
|
6, // 11: products.v1.ProductService.Read:output_type -> products.v1.ReadResponse
|
|
|
|
8, // 12: products.v1.ProductService.Update:output_type -> products.v1.UpdateResponse
|
|
|
|
10, // 13: products.v1.ProductService.Delete:output_type -> products.v1.DeleteResponse
|
|
|
|
9, // [9:14] is the sub-list for method output_type
|
|
|
|
4, // [4:9] 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
|
2023-12-30 19:17:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_products_v1_service_proto_init() }
|
|
|
|
func file_products_v1_service_proto_init() {
|
|
|
|
if File_products_v1_service_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_products_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*Product); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*ListRequest); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*ListResponse); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*CreateRequest); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*CreateResponse); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*ReadRequest); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*ReadResponse); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*UpdateRequest); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*UpdateResponse); i {
|
2023-12-30 19:17:19 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-31 19:44:12 +00:00
|
|
|
switch v := v.(*DeleteRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_products_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2023-12-30 19:17:19 +00:00
|
|
|
switch v := v.(*DeleteResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_products_v1_service_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2023-12-31 19:44:12 +00:00
|
|
|
NumMessages: 11,
|
2023-12-30 19:17:19 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_products_v1_service_proto_goTypes,
|
|
|
|
DependencyIndexes: file_products_v1_service_proto_depIdxs,
|
|
|
|
MessageInfos: file_products_v1_service_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_products_v1_service_proto = out.File
|
|
|
|
file_products_v1_service_proto_rawDesc = nil
|
|
|
|
file_products_v1_service_proto_goTypes = nil
|
|
|
|
file_products_v1_service_proto_depIdxs = nil
|
|
|
|
}
|