Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
154 lines (132 sloc) 5.01 KB
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: product.proto
package proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Product struct {
Id uint64 `protobuf:"varint,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"`
Price int32 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
Colors []string `protobuf:"bytes,5,rep,name=colors,proto3" json:"colors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Product) Reset() { *m = Product{} }
func (m *Product) String() string { return proto.CompactTextString(m) }
func (*Product) ProtoMessage() {}
func (*Product) Descriptor() ([]byte, []int) {
return fileDescriptor_f0fd8b59378f44a5, []int{0}
}
func (m *Product) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Product.Unmarshal(m, b)
}
func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Product.Marshal(b, m, deterministic)
}
func (m *Product) XXX_Merge(src proto.Message) {
xxx_messageInfo_Product.Merge(m, src)
}
func (m *Product) XXX_Size() int {
return xxx_messageInfo_Product.Size(m)
}
func (m *Product) XXX_DiscardUnknown() {
xxx_messageInfo_Product.DiscardUnknown(m)
}
var xxx_messageInfo_Product proto.InternalMessageInfo
func (m *Product) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Product) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Product) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Product) GetPrice() int32 {
if m != nil {
return m.Price
}
return 0
}
func (m *Product) GetColors() []string {
if m != nil {
return m.Colors
}
return nil
}
type ProductList struct {
Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProductList) Reset() { *m = ProductList{} }
func (m *ProductList) String() string { return proto.CompactTextString(m) }
func (*ProductList) ProtoMessage() {}
func (*ProductList) Descriptor() ([]byte, []int) {
return fileDescriptor_f0fd8b59378f44a5, []int{1}
}
func (m *ProductList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProductList.Unmarshal(m, b)
}
func (m *ProductList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProductList.Marshal(b, m, deterministic)
}
func (m *ProductList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProductList.Merge(m, src)
}
func (m *ProductList) XXX_Size() int {
return xxx_messageInfo_ProductList.Size(m)
}
func (m *ProductList) XXX_DiscardUnknown() {
xxx_messageInfo_ProductList.DiscardUnknown(m)
}
var xxx_messageInfo_ProductList proto.InternalMessageInfo
func (m *ProductList) GetProducts() []*Product {
if m != nil {
return m.Products
}
return nil
}
func init() {
proto.RegisterType((*Product)(nil), "proto.Product")
proto.RegisterType((*ProductList)(nil), "proto.ProductList")
}
func init() { proto.RegisterFile("product.proto", fileDescriptor_f0fd8b59378f44a5) }
var fileDescriptor_f0fd8b59378f44a5 = []byte{
// 174 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8e, 0xb1, 0x0a, 0xc2, 0x30,
0x10, 0x86, 0x49, 0xdb, 0x54, 0x7b, 0xc5, 0x0e, 0x87, 0x48, 0xc6, 0xd0, 0x29, 0x38, 0x74, 0xd0,
0xc9, 0x77, 0x70, 0x90, 0xbc, 0x81, 0x26, 0x1d, 0x02, 0xda, 0x0b, 0x49, 0x1c, 0x7d, 0x77, 0x21,
0x0d, 0xe2, 0x74, 0xf7, 0xff, 0xdf, 0xc1, 0x7d, 0xb0, 0xf3, 0x81, 0xec, 0xdb, 0xa4, 0xc9, 0x07,
0x4a, 0x84, 0x3c, 0x8f, 0xf1, 0x03, 0x9b, 0xdb, 0xda, 0xe3, 0x00, 0x95, 0xb3, 0x82, 0x49, 0xa6,
0x1a, 0x5d, 0x39, 0x8b, 0x08, 0xcd, 0x72, 0x7f, 0xcd, 0xa2, 0x92, 0x4c, 0x75, 0x3a, 0xef, 0x28,
0xa1, 0xb7, 0x73, 0x34, 0xc1, 0xf9, 0xe4, 0x68, 0x11, 0x75, 0x46, 0xff, 0x15, 0xee, 0x81, 0xfb,
0xe0, 0xcc, 0x2c, 0x1a, 0xc9, 0x14, 0xd7, 0x6b, 0xc0, 0x03, 0xb4, 0x86, 0x9e, 0x14, 0xa2, 0xe0,
0xb2, 0x56, 0x9d, 0x2e, 0x69, 0xbc, 0x40, 0x5f, 0xde, 0x5f, 0x5d, 0x4c, 0x78, 0x84, 0x6d, 0xb1,
0x8c, 0x82, 0xc9, 0x5a, 0xf5, 0xa7, 0x61, 0xd5, 0x9d, 0xca, 0x95, 0xfe, 0xf1, 0x47, 0x9b, 0xc1,
0xf9, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x83, 0x91, 0xb0, 0xd7, 0xd8, 0x00, 0x00, 0x00,
}
You can’t perform that action at this time.