447 lines
14 KiB
Go
447 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.4
|
|
// source: proto/metacrypt/v1/system.proto
|
|
|
|
package metacryptv1
|
|
|
|
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 StatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusRequest) Reset() {
|
|
*x = StatusRequest{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusRequest) ProtoMessage() {}
|
|
|
|
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 StatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type StatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusResponse) Reset() {
|
|
*x = StatusResponse{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusResponse) ProtoMessage() {}
|
|
|
|
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 StatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *StatusResponse) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type InitRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitRequest) Reset() {
|
|
*x = InitRequest{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitRequest) ProtoMessage() {}
|
|
|
|
func (x *InitRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 InitRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *InitRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type InitResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitResponse) Reset() {
|
|
*x = InitResponse{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitResponse) ProtoMessage() {}
|
|
|
|
func (x *InitResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 InitResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *InitResponse) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnsealRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnsealRequest) Reset() {
|
|
*x = UnsealRequest{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnsealRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnsealRequest) ProtoMessage() {}
|
|
|
|
func (x *UnsealRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 UnsealRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnsealRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UnsealRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnsealResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnsealResponse) Reset() {
|
|
*x = UnsealResponse{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnsealResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnsealResponse) ProtoMessage() {}
|
|
|
|
func (x *UnsealResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 UnsealResponse.ProtoReflect.Descriptor instead.
|
|
func (*UnsealResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UnsealResponse) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SealRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SealRequest) Reset() {
|
|
*x = SealRequest{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SealRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SealRequest) ProtoMessage() {}
|
|
|
|
func (x *SealRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_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 SealRequest.ProtoReflect.Descriptor instead.
|
|
func (*SealRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
type SealResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SealResponse) Reset() {
|
|
*x = SealResponse{}
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SealResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SealResponse) ProtoMessage() {}
|
|
|
|
func (x *SealResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[7]
|
|
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 SealResponse.ProtoReflect.Descriptor instead.
|
|
func (*SealResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *SealResponse) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proto_metacrypt_v1_system_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_metacrypt_v1_system_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fproto/metacrypt/v1/system.proto\x12\fmetacrypt.v1\"\x0f\n" +
|
|
"\rStatusRequest\"&\n" +
|
|
"\x0eStatusResponse\x12\x14\n" +
|
|
"\x05state\x18\x01 \x01(\tR\x05state\")\n" +
|
|
"\vInitRequest\x12\x1a\n" +
|
|
"\bpassword\x18\x01 \x01(\tR\bpassword\"$\n" +
|
|
"\fInitResponse\x12\x14\n" +
|
|
"\x05state\x18\x01 \x01(\tR\x05state\"+\n" +
|
|
"\rUnsealRequest\x12\x1a\n" +
|
|
"\bpassword\x18\x01 \x01(\tR\bpassword\"&\n" +
|
|
"\x0eUnsealResponse\x12\x14\n" +
|
|
"\x05state\x18\x01 \x01(\tR\x05state\"\r\n" +
|
|
"\vSealRequest\"$\n" +
|
|
"\fSealResponse\x12\x14\n" +
|
|
"\x05state\x18\x01 \x01(\tR\x05state2\x97\x02\n" +
|
|
"\rSystemService\x12C\n" +
|
|
"\x06Status\x12\x1b.metacrypt.v1.StatusRequest\x1a\x1c.metacrypt.v1.StatusResponse\x12=\n" +
|
|
"\x04Init\x12\x19.metacrypt.v1.InitRequest\x1a\x1a.metacrypt.v1.InitResponse\x12C\n" +
|
|
"\x06Unseal\x12\x1b.metacrypt.v1.UnsealRequest\x1a\x1c.metacrypt.v1.UnsealResponse\x12=\n" +
|
|
"\x04Seal\x12\x19.metacrypt.v1.SealRequest\x1a\x1a.metacrypt.v1.SealResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
|
|
|
var (
|
|
file_proto_metacrypt_v1_system_proto_rawDescOnce sync.Once
|
|
file_proto_metacrypt_v1_system_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_metacrypt_v1_system_proto_rawDescGZIP() []byte {
|
|
file_proto_metacrypt_v1_system_proto_rawDescOnce.Do(func() {
|
|
file_proto_metacrypt_v1_system_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_system_proto_rawDesc), len(file_proto_metacrypt_v1_system_proto_rawDesc)))
|
|
})
|
|
return file_proto_metacrypt_v1_system_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_metacrypt_v1_system_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
var file_proto_metacrypt_v1_system_proto_goTypes = []any{
|
|
(*StatusRequest)(nil), // 0: metacrypt.v1.StatusRequest
|
|
(*StatusResponse)(nil), // 1: metacrypt.v1.StatusResponse
|
|
(*InitRequest)(nil), // 2: metacrypt.v1.InitRequest
|
|
(*InitResponse)(nil), // 3: metacrypt.v1.InitResponse
|
|
(*UnsealRequest)(nil), // 4: metacrypt.v1.UnsealRequest
|
|
(*UnsealResponse)(nil), // 5: metacrypt.v1.UnsealResponse
|
|
(*SealRequest)(nil), // 6: metacrypt.v1.SealRequest
|
|
(*SealResponse)(nil), // 7: metacrypt.v1.SealResponse
|
|
}
|
|
var file_proto_metacrypt_v1_system_proto_depIdxs = []int32{
|
|
0, // 0: metacrypt.v1.SystemService.Status:input_type -> metacrypt.v1.StatusRequest
|
|
2, // 1: metacrypt.v1.SystemService.Init:input_type -> metacrypt.v1.InitRequest
|
|
4, // 2: metacrypt.v1.SystemService.Unseal:input_type -> metacrypt.v1.UnsealRequest
|
|
6, // 3: metacrypt.v1.SystemService.Seal:input_type -> metacrypt.v1.SealRequest
|
|
1, // 4: metacrypt.v1.SystemService.Status:output_type -> metacrypt.v1.StatusResponse
|
|
3, // 5: metacrypt.v1.SystemService.Init:output_type -> metacrypt.v1.InitResponse
|
|
5, // 6: metacrypt.v1.SystemService.Unseal:output_type -> metacrypt.v1.UnsealResponse
|
|
7, // 7: metacrypt.v1.SystemService.Seal:output_type -> metacrypt.v1.SealResponse
|
|
4, // [4:8] is the sub-list for method output_type
|
|
0, // [0:4] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_metacrypt_v1_system_proto_init() }
|
|
func file_proto_metacrypt_v1_system_proto_init() {
|
|
if File_proto_metacrypt_v1_system_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_v1_system_proto_rawDesc), len(file_proto_metacrypt_v1_system_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 8,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_metacrypt_v1_system_proto_goTypes,
|
|
DependencyIndexes: file_proto_metacrypt_v1_system_proto_depIdxs,
|
|
MessageInfos: file_proto_metacrypt_v1_system_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_metacrypt_v1_system_proto = out.File
|
|
file_proto_metacrypt_v1_system_proto_goTypes = nil
|
|
file_proto_metacrypt_v1_system_proto_depIdxs = nil
|
|
}
|