// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT. // // user defined Mutex locks were auto added // // autogenpb version & build time: v0.0.65 2025-03-12_15:38:32_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: portmap.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 Portmap struct { sync.RWMutex // auto-added by go.wit.com/apps/autogenpb state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Localport int64 `protobuf:"varint,1,opt,name=localport,proto3" json:"localport,omitempty"` // `autogenpb:unique` Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` AllowIPv4 bool `protobuf:"varint,4,opt,name=allowIPv4,proto3" json:"allowIPv4,omitempty"` UseME bool `protobuf:"varint,5,opt,name=useME,proto3" json:"useME,omitempty"` Hosts string `protobuf:"bytes,6,opt,name=hosts,proto3" json:"hosts,omitempty"` Iptables string `protobuf:"bytes,7,opt,name=iptables,proto3" json:"iptables,omitempty"` } func (x *Portmap) Reset() { *x = Portmap{} if protoimpl.UnsafeEnabled { mi := &file_portmap_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Portmap) String() string { return protoimpl.X.MessageStringOf(x) } func (*Portmap) ProtoMessage() {} func (x *Portmap) ProtoReflect() protoreflect.Message { mi := &file_portmap_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 Portmap.ProtoReflect.Descriptor instead. func (*Portmap) Descriptor() ([]byte, []int) { return file_portmap_proto_rawDescGZIP(), []int{0} } func (x *Portmap) GetLocalport() int64 { if x != nil { return x.Localport } return 0 } func (x *Portmap) GetDest() string { if x != nil { return x.Dest } return "" } func (x *Portmap) GetEnabled() bool { if x != nil { return x.Enabled } return false } func (x *Portmap) GetAllowIPv4() bool { if x != nil { return x.AllowIPv4 } return false } func (x *Portmap) GetUseME() bool { if x != nil { return x.UseME } return false } func (x *Portmap) GetHosts() string { if x != nil { return x.Hosts } return "" } func (x *Portmap) GetIptables() string { if x != nil { return x.Iptables } return "" } type Portmaps struct { // sync.RWMutex // skipped. protobuf file has `autogenpb:nomutex` state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:49a865ea-292d-48fd-8dc2-d0f82d5fd016` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1` Portmaps []*Portmap `protobuf:"bytes,3,rep,name=portmaps,proto3" json:"portmaps,omitempty"` } func (x *Portmaps) Reset() { *x = Portmaps{} if protoimpl.UnsafeEnabled { mi := &file_portmap_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Portmaps) String() string { return protoimpl.X.MessageStringOf(x) } func (*Portmaps) ProtoMessage() {} func (x *Portmaps) ProtoReflect() protoreflect.Message { mi := &file_portmap_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 Portmaps.ProtoReflect.Descriptor instead. func (*Portmaps) Descriptor() ([]byte, []int) { return file_portmap_proto_rawDescGZIP(), []int{1} } func (x *Portmaps) GetUuid() string { if x != nil { return x.Uuid } return "" } func (x *Portmaps) GetVersion() string { if x != nil { return x.Version } return "" } func (x *Portmaps) GetPortmaps() []*Portmap { if x != nil { return x.Portmaps } return nil } var File_portmap_proto protoreflect.FileDescriptor var file_portmap_proto_rawDesc = []byte{ 0x0a, 0x0d, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x67, 0x75, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x07, 0x50, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x50, 0x76, 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x50, 0x76, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x4d, 0x45, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x75, 0x73, 0x65, 0x4d, 0x45, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x70, 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, 0x28, 0x0a, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x75, 0x73, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x70, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_portmap_proto_rawDescOnce sync.Once file_portmap_proto_rawDescData = file_portmap_proto_rawDesc ) func file_portmap_proto_rawDescGZIP() []byte { file_portmap_proto_rawDescOnce.Do(func() { file_portmap_proto_rawDescData = protoimpl.X.CompressGZIP(file_portmap_proto_rawDescData) }) return file_portmap_proto_rawDescData } var file_portmap_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_portmap_proto_goTypes = []interface{}{ (*Portmap)(nil), // 0: gus.Portmap (*Portmaps)(nil), // 1: gus.Portmaps } var file_portmap_proto_depIdxs = []int32{ 0, // 0: gus.Portmaps.portmaps:type_name -> gus.Portmap 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_portmap_proto_init() } func file_portmap_proto_init() { if File_portmap_proto != nil { return } if !protoimpl.UnsafeEnabled { file_portmap_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Portmap); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_portmap_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Portmaps); 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_portmap_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_portmap_proto_goTypes, DependencyIndexes: file_portmap_proto_depIdxs, MessageInfos: file_portmap_proto_msgTypes, }.Build() File_portmap_proto = out.File file_portmap_proto_rawDesc = nil file_portmap_proto_goTypes = nil file_portmap_proto_depIdxs = nil }