From 8b4f065cfff7a74097efb35d94d8c7a88eb92af3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 14 Feb 2025 00:46:58 -0600 Subject: [PATCH] Notes added by 'git notes append' --- 7134618aa87966357e3267374de028de7ee19c49 | 519 +++++++++++++++++++++++ 1 file changed, 519 insertions(+) diff --git a/7134618aa87966357e3267374de028de7ee19c49 b/7134618aa87966357e3267374de028de7ee19c49 index 803aeeb..e8d3b79 100644 --- a/7134618aa87966357e3267374de028de7ee19c49 +++ b/7134618aa87966357e3267374de028de7ee19c49 @@ -1156,3 +1156,522 @@ func (x *Tables) Delete(y *Table) bool { package guipb // `autogen:widget.pb.go` + +// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT. +// +// user defined Mutex locks were auto added +// +// autogenpb version & build time: v0.0.52-1-g4fdcc99 2025.02.12_1512 +// autogenpb auto generates Sort(), Unique() and Marshal() functions +// go install go.wit.com/apps/autogenpb@latest + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.33.0 +// protoc v3.21.12 +// source: widget.proto + +// playing around with ideas here + +package guipb // autogenpb changed the package name + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" +) + +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 Size struct { + sync.RWMutex // auto-added by go.wit.com/apps/autogenpb + + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` + Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` +} + +func (x *Size) Reset() { + *x = Size{} + if protoimpl.UnsafeEnabled { + mi := &file_widget_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Size) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Size) ProtoMessage() {} + +func (x *Size) ProtoReflect() protoreflect.Message { + mi := &file_widget_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 Size.ProtoReflect.Descriptor instead. +func (*Size) Descriptor() ([]byte, []int) { + return file_widget_proto_rawDescGZIP(), []int{0} +} + +func (x *Size) GetWidth() int64 { + if x != nil { + return x.Width + } + return 0 +} + +func (x *Size) GetHeight() int64 { + if x != nil { + return x.Height + } + return 0 +} + +type Location struct { + sync.RWMutex // auto-added by go.wit.com/apps/autogenpb + + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` + Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` +} + +func (x *Location) Reset() { + *x = Location{} + if protoimpl.UnsafeEnabled { + mi := &file_widget_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Location) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Location) ProtoMessage() {} + +func (x *Location) ProtoReflect() protoreflect.Message { + mi := &file_widget_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 Location.ProtoReflect.Descriptor instead. +func (*Location) Descriptor() ([]byte, []int) { + return file_widget_proto_rawDescGZIP(), []int{1} +} + +func (x *Location) GetX() int64 { + if x != nil { + return x.X + } + return 0 +} + +func (x *Location) GetY() int64 { + if x != nil { + return x.Y + } + return 0 +} + +type Tree struct { + sync.RWMutex // auto-added by go.wit.com/apps/autogenpb + + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Parent *Widget `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + Children []*Widget `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` +} + +func (x *Tree) Reset() { + *x = Tree{} + if protoimpl.UnsafeEnabled { + mi := &file_widget_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Tree) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tree) ProtoMessage() {} + +func (x *Tree) ProtoReflect() protoreflect.Message { + mi := &file_widget_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 Tree.ProtoReflect.Descriptor instead. +func (*Tree) Descriptor() ([]byte, []int) { + return file_widget_proto_rawDescGZIP(), []int{2} +} + +func (x *Tree) GetParent() *Widget { + if x != nil { + return x.Parent + } + return nil +} + +func (x *Tree) GetChildren() []*Widget { + if x != nil { + return x.Children + } + return nil +} + +type Widget struct { + sync.RWMutex // auto-added by go.wit.com/apps/autogenpb + + 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"` + Size *Size `protobuf:"bytes,3,opt,name=size,proto3" json:"size,omitempty"` + Location *Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` + Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` + TK *anypb.Any `protobuf:"bytes,6,opt,name=TK,proto3" json:"TK,omitempty"` +} + +func (x *Widget) Reset() { + *x = Widget{} + if protoimpl.UnsafeEnabled { + mi := &file_widget_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Widget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Widget) ProtoMessage() {} + +func (x *Widget) ProtoReflect() protoreflect.Message { + mi := &file_widget_proto_msgTypes[3] + 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 Widget.ProtoReflect.Descriptor instead. +func (*Widget) Descriptor() ([]byte, []int) { + return file_widget_proto_rawDescGZIP(), []int{3} +} + +func (x *Widget) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Widget) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Widget) GetSize() *Size { + if x != nil { + return x.Size + } + return nil +} + +func (x *Widget) GetLocation() *Location { + if x != nil { + return x.Location + } + return nil +} + +func (x *Widget) GetColor() string { + if x != nil { + return x.Color + } + return "" +} + +func (x *Widget) GetTK() *anypb.Any { + if x != nil { + return x.TK + } + return nil +} + +type Widgets struct { + sync.RWMutex // auto-added by go.wit.com/apps/autogenpb + + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:0331fcd7-3c8c-43e4-be1b-77db6a6bc58c` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v1` + Widgets []*Widget `protobuf:"bytes,3,rep,name=Widgets,proto3" json:"Widgets,omitempty"` +} + +func (x *Widgets) Reset() { + *x = Widgets{} + if protoimpl.UnsafeEnabled { + mi := &file_widget_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Widgets) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Widgets) ProtoMessage() {} + +func (x *Widgets) ProtoReflect() protoreflect.Message { + mi := &file_widget_proto_msgTypes[4] + 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 Widgets.ProtoReflect.Descriptor instead. +func (*Widgets) Descriptor() ([]byte, []int) { + return file_widget_proto_rawDescGZIP(), []int{4} +} + +func (x *Widgets) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *Widgets) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Widgets) GetWidgets() []*Widget { + if x != nil { + return x.Widgets + } + return nil +} + +var File_widget_proto protoreflect.FileDescriptor + +var file_widget_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, + 0x67, 0x69, 0x74, 0x70, 0x62, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x34, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, + 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x26, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x78, + 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x79, 0x22, 0x58, + 0x0a, 0x04, 0x54, 0x72, 0x65, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x62, 0x2e, 0x57, + 0x69, 0x64, 0x67, 0x65, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, + 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x62, 0x2e, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x52, 0x08, + 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x57, 0x69, 0x64, + 0x67, 0x65, 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, 0x12, 0x1f, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x62, 0x2e, 0x53, 0x69, + 0x7a, 0x65, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x69, 0x74, + 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x02, 0x54, + 0x4b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x02, 0x54, + 0x4b, 0x22, 0x60, 0x0a, 0x07, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x07, 0x57, 0x69, + 0x64, 0x67, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x62, 0x2e, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x52, 0x07, 0x57, 0x69, 0x64, 0x67, + 0x65, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_widget_proto_rawDescOnce sync.Once + file_widget_proto_rawDescData = file_widget_proto_rawDesc +) + +func file_widget_proto_rawDescGZIP() []byte { + file_widget_proto_rawDescOnce.Do(func() { + file_widget_proto_rawDescData = protoimpl.X.CompressGZIP(file_widget_proto_rawDescData) + }) + return file_widget_proto_rawDescData +} + +var file_widget_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_widget_proto_goTypes = []interface{}{ + (*Size)(nil), // 0: gitpb.Size + (*Location)(nil), // 1: gitpb.Location + (*Tree)(nil), // 2: gitpb.Tree + (*Widget)(nil), // 3: gitpb.Widget + (*Widgets)(nil), // 4: gitpb.Widgets + (*anypb.Any)(nil), // 5: google.protobuf.Any +} +var file_widget_proto_depIdxs = []int32{ + 3, // 0: gitpb.Tree.parent:type_name -> gitpb.Widget + 3, // 1: gitpb.Tree.children:type_name -> gitpb.Widget + 0, // 2: gitpb.Widget.size:type_name -> gitpb.Size + 1, // 3: gitpb.Widget.location:type_name -> gitpb.Location + 5, // 4: gitpb.Widget.TK:type_name -> google.protobuf.Any + 3, // 5: gitpb.Widgets.Widgets:type_name -> gitpb.Widget + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_widget_proto_init() } +func file_widget_proto_init() { + if File_widget_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_widget_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Size); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_widget_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Location); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_widget_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tree); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_widget_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Widget); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_widget_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Widgets); 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_widget_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_widget_proto_goTypes, + DependencyIndexes: file_widget_proto_depIdxs, + MessageInfos: file_widget_proto_msgTypes, + }.Build() + File_widget_proto = out.File + file_widget_proto_rawDesc = nil + file_widget_proto_goTypes = nil + file_widget_proto_depIdxs = nil +}