xstartplacement/placement.pb.go

515 lines
15 KiB
Go

// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT.
//
// user defined Mutex locks were auto added
//
// autogenpb version & build time: v0.5.0 2025-09-11_08:28:21_UTC
// 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: placement.proto
package main // autogenpb changed the package name
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
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 Placement struct {
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// used for grid layouts
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // `autogenpb:sort` `autogenpb:unique`
Geom *Placement_Geom `protobuf:"bytes,2,opt,name=geom,proto3" json:"geom,omitempty"`
Workspace int32 `protobuf:"varint,3,opt,name=workspace,proto3" json:"workspace,omitempty"` // what workspace to show the app on
Wd string `protobuf:"bytes,4,opt,name=wd,proto3" json:"wd,omitempty"` // working dir. Tries to set xterm path at start to this
Argv []string `protobuf:"bytes,5,rep,name=argv,proto3" json:"argv,omitempty"` // argv. argv[0] should be the executable name
Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"` // namespace of the executable (go.wit.com/apps/forge)
}
func (x *Placement) Reset() {
*x = Placement{}
if protoimpl.UnsafeEnabled {
mi := &file_placement_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Placement) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Placement) ProtoMessage() {}
func (x *Placement) ProtoReflect() protoreflect.Message {
mi := &file_placement_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 Placement.ProtoReflect.Descriptor instead.
func (*Placement) Descriptor() ([]byte, []int) {
return file_placement_proto_rawDescGZIP(), []int{0}
}
func (x *Placement) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Placement) GetGeom() *Placement_Geom {
if x != nil {
return x.Geom
}
return nil
}
func (x *Placement) GetWorkspace() int32 {
if x != nil {
return x.Workspace
}
return 0
}
func (x *Placement) GetWd() string {
if x != nil {
return x.Wd
}
return ""
}
func (x *Placement) GetArgv() []string {
if x != nil {
return x.Argv
}
return nil
}
func (x *Placement) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
type Placements 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:31769bcb-5865-4926-b7d6-501083312eea`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
Placement []*Placement `protobuf:"bytes,3,rep,name=Placement,proto3" json:"Placement,omitempty"`
Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` // used by the config save function
}
func (x *Placements) Reset() {
*x = Placements{}
if protoimpl.UnsafeEnabled {
mi := &file_placement_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Placements) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Placements) ProtoMessage() {}
func (x *Placements) ProtoReflect() protoreflect.Message {
mi := &file_placement_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 Placements.ProtoReflect.Descriptor instead.
func (*Placements) Descriptor() ([]byte, []int) {
return file_placement_proto_rawDescGZIP(), []int{1}
}
func (x *Placements) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Placements) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *Placements) GetPlacement() []*Placement {
if x != nil {
return x.Placement
}
return nil
}
func (x *Placements) GetFilename() string {
if x != nil {
return x.Filename
}
return ""
}
type Placement_Size struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
W int64 `protobuf:"varint,1,opt,name=w,proto3" json:"w,omitempty"`
H int64 `protobuf:"varint,2,opt,name=h,proto3" json:"h,omitempty"`
}
func (x *Placement_Size) Reset() {
*x = Placement_Size{}
if protoimpl.UnsafeEnabled {
mi := &file_placement_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Placement_Size) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Placement_Size) ProtoMessage() {}
func (x *Placement_Size) ProtoReflect() protoreflect.Message {
mi := &file_placement_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 Placement_Size.ProtoReflect.Descriptor instead.
func (*Placement_Size) Descriptor() ([]byte, []int) {
return file_placement_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Placement_Size) GetW() int64 {
if x != nil {
return x.W
}
return 0
}
func (x *Placement_Size) GetH() int64 {
if x != nil {
return x.H
}
return 0
}
type Placement_Offset struct {
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 *Placement_Offset) Reset() {
*x = Placement_Offset{}
if protoimpl.UnsafeEnabled {
mi := &file_placement_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Placement_Offset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Placement_Offset) ProtoMessage() {}
func (x *Placement_Offset) ProtoReflect() protoreflect.Message {
mi := &file_placement_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 Placement_Offset.ProtoReflect.Descriptor instead.
func (*Placement_Offset) Descriptor() ([]byte, []int) {
return file_placement_proto_rawDescGZIP(), []int{0, 1}
}
func (x *Placement_Offset) GetX() int64 {
if x != nil {
return x.X
}
return 0
}
func (x *Placement_Offset) GetY() int64 {
if x != nil {
return x.Y
}
return 0
}
type Placement_Geom struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Size *Placement_Size `protobuf:"bytes,1,opt,name=size,proto3" json:"size,omitempty"`
Offset *Placement_Offset `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"`
}
func (x *Placement_Geom) Reset() {
*x = Placement_Geom{}
if protoimpl.UnsafeEnabled {
mi := &file_placement_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Placement_Geom) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Placement_Geom) ProtoMessage() {}
func (x *Placement_Geom) ProtoReflect() protoreflect.Message {
mi := &file_placement_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 Placement_Geom.ProtoReflect.Descriptor instead.
func (*Placement_Geom) Descriptor() ([]byte, []int) {
return file_placement_proto_rawDescGZIP(), []int{0, 2}
}
func (x *Placement_Geom) GetSize() *Placement_Size {
if x != nil {
return x.Size
}
return nil
}
func (x *Placement_Geom) GetOffset() *Placement_Offset {
if x != nil {
return x.Offset
}
return nil
}
var File_placement_proto protoreflect.FileDescriptor
var file_placement_proto_rawDesc = []byte{
0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x04, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xd5, 0x02, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x63,
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x67, 0x65, 0x6f,
0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x50,
0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x6f, 0x6d, 0x52, 0x04, 0x67,
0x65, 0x6f, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x77, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x77,
0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x76, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52,
0x04, 0x61, 0x72, 0x67, 0x76, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
0x61, 0x63, 0x65, 0x1a, 0x22, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x77,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x77, 0x12, 0x0c, 0x0a, 0x01, 0x68, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x68, 0x1a, 0x24, 0x0a, 0x06, 0x4f, 0x66, 0x66, 0x73, 0x65,
0x74, 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, 0x1a, 0x60, 0x0a,
0x04, 0x47, 0x65, 0x6f, 0x6d, 0x12, 0x28, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65,
0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x69, 0x7a, 0x65, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12,
0x2e, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x16, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x2e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22,
0x85, 0x01, 0x0a, 0x0a, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 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, 0x2d, 0x0a, 0x09,
0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x0f, 0x2e, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x09, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66,
0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66,
0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_placement_proto_rawDescOnce sync.Once
file_placement_proto_rawDescData = file_placement_proto_rawDesc
)
func file_placement_proto_rawDescGZIP() []byte {
file_placement_proto_rawDescOnce.Do(func() {
file_placement_proto_rawDescData = protoimpl.X.CompressGZIP(file_placement_proto_rawDescData)
})
return file_placement_proto_rawDescData
}
var file_placement_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_placement_proto_goTypes = []interface{}{
(*Placement)(nil), // 0: main.Placement
(*Placements)(nil), // 1: main.Placements
(*Placement_Size)(nil), // 2: main.Placement.Size
(*Placement_Offset)(nil), // 3: main.Placement.Offset
(*Placement_Geom)(nil), // 4: main.Placement.Geom
}
var file_placement_proto_depIdxs = []int32{
4, // 0: main.Placement.geom:type_name -> main.Placement.Geom
0, // 1: main.Placements.Placement:type_name -> main.Placement
2, // 2: main.Placement.Geom.size:type_name -> main.Placement.Size
3, // 3: main.Placement.Geom.offset:type_name -> main.Placement.Offset
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_placement_proto_init() }
func file_placement_proto_init() {
if File_placement_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_placement_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Placement); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_placement_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Placements); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_placement_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Placement_Size); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_placement_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Placement_Offset); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_placement_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Placement_Geom); 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_placement_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_placement_proto_goTypes,
DependencyIndexes: file_placement_proto_depIdxs,
MessageInfos: file_placement_proto_msgTypes,
}.Build()
File_placement_proto = out.File
file_placement_proto_rawDesc = nil
file_placement_proto_goTypes = nil
file_placement_proto_depIdxs = nil
}