// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.27.1
// 	protoc        v3.17.3
// source: resources/proto/products/products.proto

package products

import (
	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)
)

type ListProductOut_Status int32

const (
	ListProductOut_OK        ListProductOut_Status = 0
	ListProductOut_NOT_FOUND ListProductOut_Status = 2
)

// Enum value maps for ListProductOut_Status.
var (
	ListProductOut_Status_name = map[int32]string{
		0: "OK",
		2: "NOT_FOUND",
	}
	ListProductOut_Status_value = map[string]int32{
		"OK":        0,
		"NOT_FOUND": 2,
	}
)

func (x ListProductOut_Status) Enum() *ListProductOut_Status {
	p := new(ListProductOut_Status)
	*p = x
	return p
}

func (x ListProductOut_Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ListProductOut_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_resources_proto_products_products_proto_enumTypes[0].Descriptor()
}

func (ListProductOut_Status) Type() protoreflect.EnumType {
	return &file_resources_proto_products_products_proto_enumTypes[0]
}

func (x ListProductOut_Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ListProductOut_Status.Descriptor instead.
func (ListProductOut_Status) EnumDescriptor() ([]byte, []int) {
	return file_resources_proto_products_products_proto_rawDescGZIP(), []int{2, 0}
}

type Product struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func (x *Product) Reset() {
	*x = Product{}
	if protoimpl.UnsafeEnabled {
		mi := &file_resources_proto_products_products_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_resources_proto_products_products_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_resources_proto_products_products_proto_rawDescGZIP(), []int{0}
}

func (x *Product) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *Product) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

type ListProductIn struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (x *ListProductIn) Reset() {
	*x = ListProductIn{}
	if protoimpl.UnsafeEnabled {
		mi := &file_resources_proto_products_products_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ListProductIn) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListProductIn) ProtoMessage() {}

func (x *ListProductIn) ProtoReflect() protoreflect.Message {
	mi := &file_resources_proto_products_products_proto_msgTypes[1]
	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 ListProductIn.ProtoReflect.Descriptor instead.
func (*ListProductIn) Descriptor() ([]byte, []int) {
	return file_resources_proto_products_products_proto_rawDescGZIP(), []int{1}
}

func (x *ListProductIn) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

type ListProductOut struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Status   ListProductOut_Status `protobuf:"varint,1,opt,name=status,proto3,enum=products.ListProductOut_Status" json:"status,omitempty"`
	Products []*Product            `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"`
}

func (x *ListProductOut) Reset() {
	*x = ListProductOut{}
	if protoimpl.UnsafeEnabled {
		mi := &file_resources_proto_products_products_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ListProductOut) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListProductOut) ProtoMessage() {}

func (x *ListProductOut) ProtoReflect() protoreflect.Message {
	mi := &file_resources_proto_products_products_proto_msgTypes[2]
	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 ListProductOut.ProtoReflect.Descriptor instead.
func (*ListProductOut) Descriptor() ([]byte, []int) {
	return file_resources_proto_products_products_proto_rawDescGZIP(), []int{2}
}

func (x *ListProductOut) GetStatus() ListProductOut_Status {
	if x != nil {
		return x.Status
	}
	return ListProductOut_OK
}

func (x *ListProductOut) GetProducts() []*Product {
	if x != nil {
		return x.Products
	}
	return nil
}

var File_resources_proto_products_products_proto protoreflect.FileDescriptor

var file_resources_proto_products_products_proto_rawDesc = []byte{
	0x0a, 0x27, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74,
	0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75,
	0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75,
	0x63, 0x74, 0x73, 0x22, 0x2d, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x0e,
	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
	0x6d, 0x65, 0x22, 0x1f, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
	0x74, 0x49, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
	0x02, 0x69, 0x64, 0x22, 0x99, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64,
	0x75, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
	0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
	0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x4f, 0x75, 0x74,
	0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
	0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
	0x0b, 0x32, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x50, 0x72, 0x6f,
	0x64, 0x75, 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x22, 0x1f,
	0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00,
	0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x32,
	0x4e, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x12, 0x42, 0x0a, 0x0b, 0x4c,
	0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f,
	0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
	0x74, 0x49, 0x6e, 0x1a, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x4c,
	0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x22, 0x00, 0x42,
	0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72,
	0x69, 0x73, 0x74, 0x61, 0x74, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2d, 0x65, 0x78, 0x61,
	0x6d, 0x70, 0x6c, 0x65, 0x2d, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
	0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_resources_proto_products_products_proto_rawDescOnce sync.Once
	file_resources_proto_products_products_proto_rawDescData = file_resources_proto_products_products_proto_rawDesc
)

func file_resources_proto_products_products_proto_rawDescGZIP() []byte {
	file_resources_proto_products_products_proto_rawDescOnce.Do(func() {
		file_resources_proto_products_products_proto_rawDescData = protoimpl.X.CompressGZIP(file_resources_proto_products_products_proto_rawDescData)
	})
	return file_resources_proto_products_products_proto_rawDescData
}

var file_resources_proto_products_products_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_resources_proto_products_products_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_resources_proto_products_products_proto_goTypes = []interface{}{
	(ListProductOut_Status)(0), // 0: products.ListProductOut.Status
	(*Product)(nil),            // 1: products.Product
	(*ListProductIn)(nil),      // 2: products.ListProductIn
	(*ListProductOut)(nil),     // 3: products.ListProductOut
}
var file_resources_proto_products_products_proto_depIdxs = []int32{
	0, // 0: products.ListProductOut.status:type_name -> products.ListProductOut.Status
	1, // 1: products.ListProductOut.products:type_name -> products.Product
	2, // 2: products.Products.ListProduct:input_type -> products.ListProductIn
	3, // 3: products.Products.ListProduct:output_type -> products.ListProductOut
	3, // [3:4] is the sub-list for method output_type
	2, // [2:3] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_resources_proto_products_products_proto_init() }
func file_resources_proto_products_products_proto_init() {
	if File_resources_proto_products_products_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_resources_proto_products_products_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Product); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_resources_proto_products_products_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ListProductIn); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_resources_proto_products_products_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*ListProductOut); 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_resources_proto_products_products_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_resources_proto_products_products_proto_goTypes,
		DependencyIndexes: file_resources_proto_products_products_proto_depIdxs,
		EnumInfos:         file_resources_proto_products_products_proto_enumTypes,
		MessageInfos:      file_resources_proto_products_products_proto_msgTypes,
	}.Build()
	File_resources_proto_products_products_proto = out.File
	file_resources_proto_products_products_proto_rawDesc = nil
	file_resources_proto_products_products_proto_goTypes = nil
	file_resources_proto_products_products_proto_depIdxs = nil
}
