// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.21.9 // source: hellreign.proto package proto 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 CollectorRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CollectorRequest) Reset() { *x = CollectorRequest{} mi := &file_hellreign_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CollectorRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CollectorRequest) ProtoMessage() {} func (x *CollectorRequest) ProtoReflect() protoreflect.Message { mi := &file_hellreign_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 CollectorRequest.ProtoReflect.Descriptor instead. func (*CollectorRequest) Descriptor() ([]byte, []int) { return file_hellreign_proto_rawDescGZIP(), []int{0} } func (x *CollectorRequest) GetMessage() string { if x != nil { return x.Message } return "" } type CollectorResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CollectorResponse) Reset() { *x = CollectorResponse{} mi := &file_hellreign_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CollectorResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CollectorResponse) ProtoMessage() {} func (x *CollectorResponse) ProtoReflect() protoreflect.Message { mi := &file_hellreign_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 CollectorResponse.ProtoReflect.Descriptor instead. func (*CollectorResponse) Descriptor() ([]byte, []int) { return file_hellreign_proto_rawDescGZIP(), []int{1} } type Command struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` Stdin *string `protobuf:"bytes,3,opt,name=stdin,proto3,oneof" json:"stdin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Command) Reset() { *x = Command{} mi := &file_hellreign_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Command) String() string { return protoimpl.X.MessageStringOf(x) } func (*Command) ProtoMessage() {} func (x *Command) ProtoReflect() protoreflect.Message { mi := &file_hellreign_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 Command.ProtoReflect.Descriptor instead. func (*Command) Descriptor() ([]byte, []int) { return file_hellreign_proto_rawDescGZIP(), []int{2} } func (x *Command) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *Command) GetCommand() []string { if x != nil { return x.Command } return nil } func (x *Command) GetStdin() string { if x != nil && x.Stdin != nil { return *x.Stdin } return "" } type FinishedCommand struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Stdout string `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"` Stderr string `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FinishedCommand) Reset() { *x = FinishedCommand{} mi := &file_hellreign_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FinishedCommand) String() string { return protoimpl.X.MessageStringOf(x) } func (*FinishedCommand) ProtoMessage() {} func (x *FinishedCommand) ProtoReflect() protoreflect.Message { mi := &file_hellreign_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 FinishedCommand.ProtoReflect.Descriptor instead. func (*FinishedCommand) Descriptor() ([]byte, []int) { return file_hellreign_proto_rawDescGZIP(), []int{3} } func (x *FinishedCommand) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *FinishedCommand) GetStatus() int32 { if x != nil { return x.Status } return 0 } func (x *FinishedCommand) GetStdout() string { if x != nil { return x.Stdout } return "" } func (x *FinishedCommand) GetStderr() string { if x != nil { return x.Stderr } return "" } var File_hellreign_proto protoreflect.FileDescriptor const file_hellreign_proto_rawDesc = "" + "\n" + "\x0fhellreign.proto\x12\x04chat\",\n" + "\x10CollectorRequest\x12\x18\n" + "\amessage\x18\x01 \x01(\tR\amessage\"\x13\n" + "\x11CollectorResponse\"X\n" + "\aCommand\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x18\n" + "\acommand\x18\x02 \x03(\tR\acommand\x12\x19\n" + "\x05stdin\x18\x03 \x01(\tH\x00R\x05stdin\x88\x01\x01B\b\n" + "\x06_stdin\"i\n" + "\x0fFinishedCommand\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" + "\x06status\x18\x02 \x01(\x05R\x06status\x12\x16\n" + "\x06stdout\x18\x03 \x01(\tR\x06stdout\x12\x16\n" + "\x06stderr\x18\x04 \x01(\tR\x06stderr2H\n" + "\tCollector\x12;\n" + "\x06Stream\x12\x16.chat.CollectorRequest\x1a\x17.chat.CollectorResponse(\x012?\n" + "\tCommander\x122\n" + "\x06Stream\x12\r.chat.Command\x1a\x15.chat.FinishedCommand(\x010\x01B*Z(gitea.d3m0k1d.ru/d3m0k1d/HellreigN/protob\x06proto3" var ( file_hellreign_proto_rawDescOnce sync.Once file_hellreign_proto_rawDescData []byte ) func file_hellreign_proto_rawDescGZIP() []byte { file_hellreign_proto_rawDescOnce.Do(func() { file_hellreign_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_hellreign_proto_rawDesc), len(file_hellreign_proto_rawDesc))) }) return file_hellreign_proto_rawDescData } var file_hellreign_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_hellreign_proto_goTypes = []any{ (*CollectorRequest)(nil), // 0: chat.CollectorRequest (*CollectorResponse)(nil), // 1: chat.CollectorResponse (*Command)(nil), // 2: chat.Command (*FinishedCommand)(nil), // 3: chat.FinishedCommand } var file_hellreign_proto_depIdxs = []int32{ 0, // 0: chat.Collector.Stream:input_type -> chat.CollectorRequest 2, // 1: chat.Commander.Stream:input_type -> chat.Command 1, // 2: chat.Collector.Stream:output_type -> chat.CollectorResponse 3, // 3: chat.Commander.Stream:output_type -> chat.FinishedCommand 2, // [2:4] is the sub-list for method output_type 0, // [0:2] 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_hellreign_proto_init() } func file_hellreign_proto_init() { if File_hellreign_proto != nil { return } file_hellreign_proto_msgTypes[2].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_hellreign_proto_rawDesc), len(file_hellreign_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 2, }, GoTypes: file_hellreign_proto_goTypes, DependencyIndexes: file_hellreign_proto_depIdxs, MessageInfos: file_hellreign_proto_msgTypes, }.Build() File_hellreign_proto = out.File file_hellreign_proto_goTypes = nil file_hellreign_proto_depIdxs = nil }