284 lines
9.5 KiB
Go
284 lines
9.5 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: widget.proto
|
|
|
|
package widgetpb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Widget_WidgetType int32
|
|
|
|
const (
|
|
Widget_Window Widget_WidgetType = 0
|
|
Widget_Box Widget_WidgetType = 1
|
|
Widget_Grid Widget_WidgetType = 2
|
|
Widget_Group Widget_WidgetType = 3
|
|
Widget_Button Widget_WidgetType = 4
|
|
Widget_Checkbox Widget_WidgetType = 5
|
|
Widget_Dropdown Widget_WidgetType = 6
|
|
Widget_Combobox Widget_WidgetType = 7
|
|
Widget_Label Widget_WidgetType = 8
|
|
Widget_Slider Widget_WidgetType = 9
|
|
Widget_Spinner Widget_WidgetType = 10
|
|
Widget_Separator Widget_WidgetType = 11
|
|
)
|
|
|
|
var Widget_WidgetType_name = map[int32]string{
|
|
0: "Window",
|
|
1: "Box",
|
|
2: "Grid",
|
|
3: "Group",
|
|
4: "Button",
|
|
5: "Checkbox",
|
|
6: "Dropdown",
|
|
7: "Combobox",
|
|
8: "Label",
|
|
9: "Slider",
|
|
10: "Spinner",
|
|
11: "Separator",
|
|
}
|
|
|
|
var Widget_WidgetType_value = map[string]int32{
|
|
"Window": 0,
|
|
"Box": 1,
|
|
"Grid": 2,
|
|
"Group": 3,
|
|
"Button": 4,
|
|
"Checkbox": 5,
|
|
"Dropdown": 6,
|
|
"Combobox": 7,
|
|
"Label": 8,
|
|
"Slider": 9,
|
|
"Spinner": 10,
|
|
"Separator": 11,
|
|
}
|
|
|
|
func (x Widget_WidgetType) String() string {
|
|
return proto.EnumName(Widget_WidgetType_name, int32(x))
|
|
}
|
|
|
|
func (Widget_WidgetType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_95b5c33b51e24547, []int{0, 0}
|
|
}
|
|
|
|
type Widget struct {
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Parent int32 `protobuf:"varint,2,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
LastUpdated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
|
|
ProgName string `protobuf:"bytes,4,opt,name=ProgName,proto3" json:"ProgName,omitempty"`
|
|
Label string `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"`
|
|
Dropdown []string `protobuf:"bytes,6,rep,name=dropdown,proto3" json:"dropdown,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Widget) Reset() { *m = Widget{} }
|
|
func (m *Widget) String() string { return proto.CompactTextString(m) }
|
|
func (*Widget) ProtoMessage() {}
|
|
func (*Widget) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_95b5c33b51e24547, []int{0}
|
|
}
|
|
|
|
func (m *Widget) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Widget.Unmarshal(m, b)
|
|
}
|
|
func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Widget.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Widget) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Widget.Merge(m, src)
|
|
}
|
|
func (m *Widget) XXX_Size() int {
|
|
return xxx_messageInfo_Widget.Size(m)
|
|
}
|
|
func (m *Widget) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Widget.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Widget proto.InternalMessageInfo
|
|
|
|
func (m *Widget) GetId() int32 {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Widget) GetParent() int32 {
|
|
if m != nil {
|
|
return m.Parent
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Widget) GetLastUpdated() *timestamppb.Timestamp {
|
|
if m != nil {
|
|
return m.LastUpdated
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Widget) GetProgName() string {
|
|
if m != nil {
|
|
return m.ProgName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Widget) GetLabel() string {
|
|
if m != nil {
|
|
return m.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Widget) GetDropdown() []string {
|
|
if m != nil {
|
|
return m.Dropdown
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Widget_Range struct {
|
|
Low int32 `protobuf:"varint,1,opt,name=Low,proto3" json:"Low,omitempty"`
|
|
High int32 `protobuf:"varint,2,opt,name=High,proto3" json:"High,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Widget_Range) Reset() { *m = Widget_Range{} }
|
|
func (m *Widget_Range) String() string { return proto.CompactTextString(m) }
|
|
func (*Widget_Range) ProtoMessage() {}
|
|
func (*Widget_Range) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_95b5c33b51e24547, []int{0, 0}
|
|
}
|
|
|
|
func (m *Widget_Range) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Widget_Range.Unmarshal(m, b)
|
|
}
|
|
func (m *Widget_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Widget_Range.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Widget_Range) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Widget_Range.Merge(m, src)
|
|
}
|
|
func (m *Widget_Range) XXX_Size() int {
|
|
return xxx_messageInfo_Widget_Range.Size(m)
|
|
}
|
|
func (m *Widget_Range) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Widget_Range.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Widget_Range proto.InternalMessageInfo
|
|
|
|
func (m *Widget_Range) GetLow() int32 {
|
|
if m != nil {
|
|
return m.Low
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Widget_Range) GetHigh() int32 {
|
|
if m != nil {
|
|
return m.High
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Our address book file is just one of these.
|
|
type AddressBook struct {
|
|
People []*Widget `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AddressBook) Reset() { *m = AddressBook{} }
|
|
func (m *AddressBook) String() string { return proto.CompactTextString(m) }
|
|
func (*AddressBook) ProtoMessage() {}
|
|
func (*AddressBook) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_95b5c33b51e24547, []int{1}
|
|
}
|
|
|
|
func (m *AddressBook) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AddressBook.Unmarshal(m, b)
|
|
}
|
|
func (m *AddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AddressBook.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AddressBook) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AddressBook.Merge(m, src)
|
|
}
|
|
func (m *AddressBook) XXX_Size() int {
|
|
return xxx_messageInfo_AddressBook.Size(m)
|
|
}
|
|
func (m *AddressBook) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AddressBook.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AddressBook proto.InternalMessageInfo
|
|
|
|
func (m *AddressBook) GetPeople() []*Widget {
|
|
if m != nil {
|
|
return m.People
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("widget.Widget_WidgetType", Widget_WidgetType_name, Widget_WidgetType_value)
|
|
proto.RegisterType((*Widget)(nil), "widget.Widget")
|
|
proto.RegisterType((*Widget_Range)(nil), "widget.Widget.Range")
|
|
proto.RegisterType((*AddressBook)(nil), "widget.AddressBook")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("widget.proto", fileDescriptor_95b5c33b51e24547)
|
|
}
|
|
|
|
var fileDescriptor_95b5c33b51e24547 = []byte{
|
|
// 397 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x51, 0xc1, 0x8a, 0xd4, 0x40,
|
|
0x10, 0x35, 0x93, 0x49, 0x66, 0xa6, 0x32, 0x2e, 0x4d, 0x21, 0x12, 0xe6, 0x62, 0x98, 0x83, 0xcc,
|
|
0xc5, 0x0c, 0xac, 0x78, 0xf4, 0xe0, 0x28, 0xac, 0x87, 0x45, 0x24, 0xb3, 0x22, 0x78, 0x91, 0xce,
|
|
0x76, 0x99, 0x6d, 0x36, 0x49, 0x35, 0x3d, 0x1d, 0x32, 0xfe, 0x84, 0xbf, 0xe0, 0xaf, 0x4a, 0x27,
|
|
0x19, 0xf7, 0x56, 0xaf, 0xde, 0xab, 0xaa, 0xf7, 0x28, 0x58, 0xf7, 0x5a, 0x55, 0xe4, 0x72, 0x63,
|
|
0xd9, 0x31, 0xc6, 0x23, 0xda, 0xbc, 0xaa, 0x98, 0xab, 0x9a, 0xf6, 0x43, 0xb7, 0xec, 0x7e, 0xed,
|
|
0x9d, 0x6e, 0xe8,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