From 1c7128a98765d721ba341447d9c48535ad2963f0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Feb 2025 12:42:52 -0600 Subject: [PATCH] Notes added by 'git notes append' --- f2a296064e6befbce4b584f24d474a8ade2c5215 | 435 +++++++++++++++++++++++ 1 file changed, 435 insertions(+) diff --git a/f2a296064e6befbce4b584f24d474a8ade2c5215 b/f2a296064e6befbce4b584f24d474a8ade2c5215 index 9ef5ea0..2909baa 100644 --- a/f2a296064e6befbce4b584f24d474a8ade2c5215 +++ b/f2a296064e6befbce4b584f24d474a8ade2c5215 @@ -40,3 +40,438 @@ google.golang.org/protobuf v1.36.4/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojt package tree // `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.49-2-g9a0e4a6 2025.02.01_0732 +// 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.35.2-devel +// protoc v3.21.12 +// source: widget.proto + +// playing around with ideas here + +package tree // autogenpb changed the package name + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/known/timestamppb" +) + +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{} + 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 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{} + 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 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{} + 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 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"` +} + +func (x *Widget) Reset() { + *x = Widget{} + 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 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 "" +} + +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{} + 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 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, 0x04, + 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x56, 0x0a, 0x04, 0x54, 0x72, 0x65, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, + 0x69, 0x6e, 0x2e, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0x28, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x57, 0x69, 0x64, 0x67, 0x65, + 0x74, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, 0x8e, 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, 0x1e, 0x0a, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, + 0x53, 0x69, 0x7a, 0x65, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6d, + 0x61, 0x69, 0x6e, 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, 0x22, 0x5f, 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, 0x26, 0x0a, 0x07, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 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 = []any{ + (*Size)(nil), // 0: main.Size + (*Location)(nil), // 1: main.Location + (*Tree)(nil), // 2: main.Tree + (*Widget)(nil), // 3: main.Widget + (*Widgets)(nil), // 4: main.Widgets +} +var file_widget_proto_depIdxs = []int32{ + 3, // 0: main.Tree.parent:type_name -> main.Widget + 3, // 1: main.Tree.children:type_name -> main.Widget + 0, // 2: main.Widget.size:type_name -> main.Size + 1, // 3: main.Widget.location:type_name -> main.Location + 3, // 4: main.Widgets.Widgets:type_name -> main.Widget + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] 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 + } + 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 +}