Documentation
¶
Index ¶
- Variables
- type Catalog
- func (*Catalog) Descriptor() ([]byte, []int)deprecated
- func (x *Catalog) GetItems() []*Item
- func (x *Catalog) GetName() string
- func (x *Catalog) GetStock() map[string]int32
- func (x *Catalog) GetTags() []string
- func (*Catalog) ProtoMessage()
- func (x *Catalog) ProtoReflect() protoreflect.Message
- func (x *Catalog) Reset()
- func (x *Catalog) String() string
- type Item
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Items []*Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
Stock map[string]int32 `` /* 138-byte string literal not displayed */
Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
func (*Catalog) Descriptor
deprecated
func (*Catalog) ProtoMessage ¶
func (*Catalog) ProtoMessage()
func (*Catalog) ProtoReflect ¶
func (x *Catalog) ProtoReflect() protoreflect.Message
type Item ¶
type Item struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Qty int32 `protobuf:"varint,2,opt,name=qty,proto3" json:"qty,omitempty"`
Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
// contains filtered or unexported fields
}
func (*Item) Descriptor
deprecated
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.