Raw descriptor bytes in .pb.go files were corrupted by the sed-based module path rename (string length changed, breaking protobuf binary encoding). Regenerated with protoc to fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
433 lines
13 KiB
Go
433 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.32.1
|
|
// source: proto/metacrypt/v2/engine.proto
|
|
|
|
package metacryptv2
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 MountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
// config holds engine-specific configuration as key-value string pairs.
|
|
Config map[string]string `protobuf:"bytes,3,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MountRequest) Reset() {
|
|
*x = MountRequest{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MountRequest) ProtoMessage() {}
|
|
|
|
func (x *MountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_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 MountRequest.ProtoReflect.Descriptor instead.
|
|
func (*MountRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MountRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MountRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MountRequest) GetConfig() map[string]string {
|
|
if x != nil {
|
|
return x.Config
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MountResponse) Reset() {
|
|
*x = MountResponse{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MountResponse) ProtoMessage() {}
|
|
|
|
func (x *MountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_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 MountResponse.ProtoReflect.Descriptor instead.
|
|
func (*MountResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type UnmountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnmountRequest) Reset() {
|
|
*x = UnmountRequest{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnmountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnmountRequest) ProtoMessage() {}
|
|
|
|
func (x *UnmountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_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 UnmountRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnmountRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UnmountRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnmountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnmountResponse) Reset() {
|
|
*x = UnmountResponse{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnmountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnmountResponse) ProtoMessage() {}
|
|
|
|
func (x *UnmountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_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 UnmountResponse.ProtoReflect.Descriptor instead.
|
|
func (*UnmountResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type ListMountsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListMountsRequest) Reset() {
|
|
*x = ListMountsRequest{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListMountsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListMountsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListMountsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_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 ListMountsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListMountsRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type ListMountsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mounts []*MountInfo `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListMountsResponse) Reset() {
|
|
*x = ListMountsResponse{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListMountsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListMountsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListMountsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[5]
|
|
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 ListMountsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListMountsResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListMountsResponse) GetMounts() []*MountInfo {
|
|
if x != nil {
|
|
return x.Mounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MountInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
MountPath string `protobuf:"bytes,3,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MountInfo) Reset() {
|
|
*x = MountInfo{}
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MountInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MountInfo) ProtoMessage() {}
|
|
|
|
func (x *MountInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v2_engine_proto_msgTypes[6]
|
|
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 MountInfo.ProtoReflect.Descriptor instead.
|
|
func (*MountInfo) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *MountInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MountInfo) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MountInfo) GetMountPath() string {
|
|
if x != nil {
|
|
return x.MountPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proto_metacrypt_v2_engine_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_metacrypt_v2_engine_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fproto/metacrypt/v2/engine.proto\x12\fmetacrypt.v2\"\xb1\x01\n" +
|
|
"\fMountRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12>\n" +
|
|
"\x06config\x18\x03 \x03(\v2&.metacrypt.v2.MountRequest.ConfigEntryR\x06config\x1a9\n" +
|
|
"\vConfigEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x0f\n" +
|
|
"\rMountResponse\"$\n" +
|
|
"\x0eUnmountRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"\x11\n" +
|
|
"\x0fUnmountResponse\"\x13\n" +
|
|
"\x11ListMountsRequest\"E\n" +
|
|
"\x12ListMountsResponse\x12/\n" +
|
|
"\x06mounts\x18\x01 \x03(\v2\x17.metacrypt.v2.MountInfoR\x06mounts\"R\n" +
|
|
"\tMountInfo\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n" +
|
|
"\n" +
|
|
"mount_path\x18\x03 \x01(\tR\tmountPath2\xea\x01\n" +
|
|
"\rEngineService\x12@\n" +
|
|
"\x05Mount\x12\x1a.metacrypt.v2.MountRequest\x1a\x1b.metacrypt.v2.MountResponse\x12F\n" +
|
|
"\aUnmount\x12\x1c.metacrypt.v2.UnmountRequest\x1a\x1d.metacrypt.v2.UnmountResponse\x12O\n" +
|
|
"\n" +
|
|
"ListMounts\x12\x1f.metacrypt.v2.ListMountsRequest\x1a .metacrypt.v2.ListMountsResponseB<Z:git.wntrmute.dev/mc/metacrypt/gen/metacrypt/v2;metacryptv2b\x06proto3"
|
|
|
|
var (
|
|
file_proto_metacrypt_v2_engine_proto_rawDescOnce sync.Once
|
|
file_proto_metacrypt_v2_engine_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_metacrypt_v2_engine_proto_rawDescGZIP() []byte {
|
|
file_proto_metacrypt_v2_engine_proto_rawDescOnce.Do(func() {
|
|
file_proto_metacrypt_v2_engine_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v2_engine_proto_rawDesc), len(file_proto_metacrypt_v2_engine_proto_rawDesc)))
|
|
})
|
|
return file_proto_metacrypt_v2_engine_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_metacrypt_v2_engine_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
var file_proto_metacrypt_v2_engine_proto_goTypes = []any{
|
|
(*MountRequest)(nil), // 0: metacrypt.v2.MountRequest
|
|
(*MountResponse)(nil), // 1: metacrypt.v2.MountResponse
|
|
(*UnmountRequest)(nil), // 2: metacrypt.v2.UnmountRequest
|
|
(*UnmountResponse)(nil), // 3: metacrypt.v2.UnmountResponse
|
|
(*ListMountsRequest)(nil), // 4: metacrypt.v2.ListMountsRequest
|
|
(*ListMountsResponse)(nil), // 5: metacrypt.v2.ListMountsResponse
|
|
(*MountInfo)(nil), // 6: metacrypt.v2.MountInfo
|
|
nil, // 7: metacrypt.v2.MountRequest.ConfigEntry
|
|
}
|
|
var file_proto_metacrypt_v2_engine_proto_depIdxs = []int32{
|
|
7, // 0: metacrypt.v2.MountRequest.config:type_name -> metacrypt.v2.MountRequest.ConfigEntry
|
|
6, // 1: metacrypt.v2.ListMountsResponse.mounts:type_name -> metacrypt.v2.MountInfo
|
|
0, // 2: metacrypt.v2.EngineService.Mount:input_type -> metacrypt.v2.MountRequest
|
|
2, // 3: metacrypt.v2.EngineService.Unmount:input_type -> metacrypt.v2.UnmountRequest
|
|
4, // 4: metacrypt.v2.EngineService.ListMounts:input_type -> metacrypt.v2.ListMountsRequest
|
|
1, // 5: metacrypt.v2.EngineService.Mount:output_type -> metacrypt.v2.MountResponse
|
|
3, // 6: metacrypt.v2.EngineService.Unmount:output_type -> metacrypt.v2.UnmountResponse
|
|
5, // 7: metacrypt.v2.EngineService.ListMounts:output_type -> metacrypt.v2.ListMountsResponse
|
|
5, // [5:8] is the sub-list for method output_type
|
|
2, // [2:5] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_metacrypt_v2_engine_proto_init() }
|
|
func file_proto_metacrypt_v2_engine_proto_init() {
|
|
if File_proto_metacrypt_v2_engine_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v2_engine_proto_rawDesc), len(file_proto_metacrypt_v2_engine_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 8,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_metacrypt_v2_engine_proto_goTypes,
|
|
DependencyIndexes: file_proto_metacrypt_v2_engine_proto_depIdxs,
|
|
MessageInfos: file_proto_metacrypt_v2_engine_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_metacrypt_v2_engine_proto = out.File
|
|
file_proto_metacrypt_v2_engine_proto_goTypes = nil
|
|
file_proto_metacrypt_v2_engine_proto_depIdxs = nil
|
|
}
|