// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v5.29.1 // source: debugd/service/debugd.proto package service import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" 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 SetInfoStatus int32 const ( SetInfoStatus_SET_INFO_SUCCESS SetInfoStatus = 0 SetInfoStatus_SET_INFO_ALREADY_SET SetInfoStatus = 1 ) // Enum value maps for SetInfoStatus. var ( SetInfoStatus_name = map[int32]string{ 0: "SET_INFO_SUCCESS", 1: "SET_INFO_ALREADY_SET", } SetInfoStatus_value = map[string]int32{ "SET_INFO_SUCCESS": 0, "SET_INFO_ALREADY_SET": 1, } ) func (x SetInfoStatus) Enum() *SetInfoStatus { p := new(SetInfoStatus) *p = x return p } func (x SetInfoStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (SetInfoStatus) Descriptor() protoreflect.EnumDescriptor { return file_debugd_service_debugd_proto_enumTypes[0].Descriptor() } func (SetInfoStatus) Type() protoreflect.EnumType { return &file_debugd_service_debugd_proto_enumTypes[0] } func (x SetInfoStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use SetInfoStatus.Descriptor instead. func (SetInfoStatus) EnumDescriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{0} } type UploadFilesStatus int32 const ( UploadFilesStatus_UPLOAD_FILES_SUCCESS UploadFilesStatus = 0 UploadFilesStatus_UPLOAD_FILES_UPLOAD_FAILED UploadFilesStatus = 1 UploadFilesStatus_UPLOAD_FILES_ALREADY_STARTED UploadFilesStatus = 2 UploadFilesStatus_UPLOAD_FILES_ALREADY_FINISHED UploadFilesStatus = 3 UploadFilesStatus_UPLOAD_FILES_START_FAILED UploadFilesStatus = 4 ) // Enum value maps for UploadFilesStatus. var ( UploadFilesStatus_name = map[int32]string{ 0: "UPLOAD_FILES_SUCCESS", 1: "UPLOAD_FILES_UPLOAD_FAILED", 2: "UPLOAD_FILES_ALREADY_STARTED", 3: "UPLOAD_FILES_ALREADY_FINISHED", 4: "UPLOAD_FILES_START_FAILED", } UploadFilesStatus_value = map[string]int32{ "UPLOAD_FILES_SUCCESS": 0, "UPLOAD_FILES_UPLOAD_FAILED": 1, "UPLOAD_FILES_ALREADY_STARTED": 2, "UPLOAD_FILES_ALREADY_FINISHED": 3, "UPLOAD_FILES_START_FAILED": 4, } ) func (x UploadFilesStatus) Enum() *UploadFilesStatus { p := new(UploadFilesStatus) *p = x return p } func (x UploadFilesStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (UploadFilesStatus) Descriptor() protoreflect.EnumDescriptor { return file_debugd_service_debugd_proto_enumTypes[1].Descriptor() } func (UploadFilesStatus) Type() protoreflect.EnumType { return &file_debugd_service_debugd_proto_enumTypes[1] } func (x UploadFilesStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use UploadFilesStatus.Descriptor instead. func (UploadFilesStatus) EnumDescriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{1} } type UploadSystemdServiceUnitsStatus int32 const ( UploadSystemdServiceUnitsStatus_UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS UploadSystemdServiceUnitsStatus = 0 UploadSystemdServiceUnitsStatus_UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE UploadSystemdServiceUnitsStatus = 1 ) // Enum value maps for UploadSystemdServiceUnitsStatus. var ( UploadSystemdServiceUnitsStatus_name = map[int32]string{ 0: "UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS", 1: "UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE", } UploadSystemdServiceUnitsStatus_value = map[string]int32{ "UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS": 0, "UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE": 1, } ) func (x UploadSystemdServiceUnitsStatus) Enum() *UploadSystemdServiceUnitsStatus { p := new(UploadSystemdServiceUnitsStatus) *p = x return p } func (x UploadSystemdServiceUnitsStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (UploadSystemdServiceUnitsStatus) Descriptor() protoreflect.EnumDescriptor { return file_debugd_service_debugd_proto_enumTypes[2].Descriptor() } func (UploadSystemdServiceUnitsStatus) Type() protoreflect.EnumType { return &file_debugd_service_debugd_proto_enumTypes[2] } func (x UploadSystemdServiceUnitsStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use UploadSystemdServiceUnitsStatus.Descriptor instead. func (UploadSystemdServiceUnitsStatus) EnumDescriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{2} } type SetInfoRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Info []*Info `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetInfoRequest) Reset() { *x = SetInfoRequest{} mi := &file_debugd_service_debugd_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetInfoRequest) ProtoMessage() {} func (x *SetInfoRequest) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 SetInfoRequest.ProtoReflect.Descriptor instead. func (*SetInfoRequest) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{0} } func (x *SetInfoRequest) GetInfo() []*Info { if x != nil { return x.Info } return nil } type SetInfoResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Status SetInfoStatus `protobuf:"varint,1,opt,name=status,proto3,enum=debugd.SetInfoStatus" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetInfoResponse) Reset() { *x = SetInfoResponse{} mi := &file_debugd_service_debugd_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetInfoResponse) ProtoMessage() {} func (x *SetInfoResponse) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 SetInfoResponse.ProtoReflect.Descriptor instead. func (*SetInfoResponse) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{1} } func (x *SetInfoResponse) GetStatus() SetInfoStatus { if x != nil { return x.Status } return SetInfoStatus_SET_INFO_SUCCESS } type GetInfoRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetInfoRequest) Reset() { *x = GetInfoRequest{} mi := &file_debugd_service_debugd_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetInfoRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetInfoRequest) ProtoMessage() {} func (x *GetInfoRequest) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 GetInfoRequest.ProtoReflect.Descriptor instead. func (*GetInfoRequest) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{2} } type GetInfoResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Info []*Info `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetInfoResponse) Reset() { *x = GetInfoResponse{} mi := &file_debugd_service_debugd_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetInfoResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetInfoResponse) ProtoMessage() {} func (x *GetInfoResponse) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 GetInfoResponse.ProtoReflect.Descriptor instead. func (*GetInfoResponse) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{3} } func (x *GetInfoResponse) GetInfo() []*Info { if x != nil { return x.Info } return nil } type Info struct { state protoimpl.MessageState `protogen:"open.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Info) Reset() { *x = Info{} mi := &file_debugd_service_debugd_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Info) String() string { return protoimpl.X.MessageStringOf(x) } func (*Info) ProtoMessage() {} func (x *Info) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 Info.ProtoReflect.Descriptor instead. func (*Info) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{4} } func (x *Info) GetKey() string { if x != nil { return x.Key } return "" } func (x *Info) GetValue() string { if x != nil { return x.Value } return "" } type DownloadFilesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DownloadFilesRequest) Reset() { *x = DownloadFilesRequest{} mi := &file_debugd_service_debugd_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DownloadFilesRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DownloadFilesRequest) ProtoMessage() {} func (x *DownloadFilesRequest) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 DownloadFilesRequest.ProtoReflect.Descriptor instead. func (*DownloadFilesRequest) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{5} } type FileTransferMessage struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Kind: // // *FileTransferMessage_Header // *FileTransferMessage_Chunk Kind isFileTransferMessage_Kind `protobuf_oneof:"kind"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FileTransferMessage) Reset() { *x = FileTransferMessage{} mi := &file_debugd_service_debugd_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FileTransferMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*FileTransferMessage) ProtoMessage() {} func (x *FileTransferMessage) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 FileTransferMessage.ProtoReflect.Descriptor instead. func (*FileTransferMessage) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{6} } func (x *FileTransferMessage) GetKind() isFileTransferMessage_Kind { if x != nil { return x.Kind } return nil } func (x *FileTransferMessage) GetHeader() *FileTransferHeader { if x != nil { if x, ok := x.Kind.(*FileTransferMessage_Header); ok { return x.Header } } return nil } func (x *FileTransferMessage) GetChunk() *Chunk { if x != nil { if x, ok := x.Kind.(*FileTransferMessage_Chunk); ok { return x.Chunk } } return nil } type isFileTransferMessage_Kind interface { isFileTransferMessage_Kind() } type FileTransferMessage_Header struct { Header *FileTransferHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` } type FileTransferMessage_Chunk struct { Chunk *Chunk `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"` } func (*FileTransferMessage_Header) isFileTransferMessage_Kind() {} func (*FileTransferMessage_Chunk) isFileTransferMessage_Kind() {} type FileTransferHeader struct { state protoimpl.MessageState `protogen:"open.v1"` TargetPath string `protobuf:"bytes,1,opt,name=targetPath,proto3" json:"targetPath,omitempty"` Mode uint32 `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"` OverrideServiceUnit *string `protobuf:"bytes,4,opt,name=overrideServiceUnit,proto3,oneof" json:"overrideServiceUnit,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FileTransferHeader) Reset() { *x = FileTransferHeader{} mi := &file_debugd_service_debugd_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FileTransferHeader) String() string { return protoimpl.X.MessageStringOf(x) } func (*FileTransferHeader) ProtoMessage() {} func (x *FileTransferHeader) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_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 FileTransferHeader.ProtoReflect.Descriptor instead. func (*FileTransferHeader) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{7} } func (x *FileTransferHeader) GetTargetPath() string { if x != nil { return x.TargetPath } return "" } func (x *FileTransferHeader) GetMode() uint32 { if x != nil { return x.Mode } return 0 } func (x *FileTransferHeader) GetOverrideServiceUnit() string { if x != nil && x.OverrideServiceUnit != nil { return *x.OverrideServiceUnit } return "" } type Chunk struct { state protoimpl.MessageState `protogen:"open.v1"` Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Last bool `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Chunk) Reset() { *x = Chunk{} mi := &file_debugd_service_debugd_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Chunk) String() string { return protoimpl.X.MessageStringOf(x) } func (*Chunk) ProtoMessage() {} func (x *Chunk) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_proto_msgTypes[8] 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 Chunk.ProtoReflect.Descriptor instead. func (*Chunk) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{8} } func (x *Chunk) GetContent() []byte { if x != nil { return x.Content } return nil } func (x *Chunk) GetLast() bool { if x != nil { return x.Last } return false } type UploadFilesResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Status UploadFilesStatus `protobuf:"varint,1,opt,name=status,proto3,enum=debugd.UploadFilesStatus" json:"status,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UploadFilesResponse) Reset() { *x = UploadFilesResponse{} mi := &file_debugd_service_debugd_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UploadFilesResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*UploadFilesResponse) ProtoMessage() {} func (x *UploadFilesResponse) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_proto_msgTypes[9] 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 UploadFilesResponse.ProtoReflect.Descriptor instead. func (*UploadFilesResponse) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{9} } func (x *UploadFilesResponse) GetStatus() UploadFilesStatus { if x != nil { return x.Status } return UploadFilesStatus_UPLOAD_FILES_SUCCESS } func (x *UploadFilesResponse) GetError() string { if x != nil { return x.Error } return "" } type ServiceUnit struct { state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Contents string `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ServiceUnit) Reset() { *x = ServiceUnit{} mi := &file_debugd_service_debugd_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ServiceUnit) String() string { return protoimpl.X.MessageStringOf(x) } func (*ServiceUnit) ProtoMessage() {} func (x *ServiceUnit) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_proto_msgTypes[10] 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 ServiceUnit.ProtoReflect.Descriptor instead. func (*ServiceUnit) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{10} } func (x *ServiceUnit) GetName() string { if x != nil { return x.Name } return "" } func (x *ServiceUnit) GetContents() string { if x != nil { return x.Contents } return "" } type UploadSystemdServiceUnitsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Units []*ServiceUnit `protobuf:"bytes,1,rep,name=units,proto3" json:"units,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UploadSystemdServiceUnitsRequest) Reset() { *x = UploadSystemdServiceUnitsRequest{} mi := &file_debugd_service_debugd_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UploadSystemdServiceUnitsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UploadSystemdServiceUnitsRequest) ProtoMessage() {} func (x *UploadSystemdServiceUnitsRequest) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_proto_msgTypes[11] 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 UploadSystemdServiceUnitsRequest.ProtoReflect.Descriptor instead. func (*UploadSystemdServiceUnitsRequest) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{11} } func (x *UploadSystemdServiceUnitsRequest) GetUnits() []*ServiceUnit { if x != nil { return x.Units } return nil } type UploadSystemdServiceUnitsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Status UploadSystemdServiceUnitsStatus `protobuf:"varint,1,opt,name=status,proto3,enum=debugd.UploadSystemdServiceUnitsStatus" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UploadSystemdServiceUnitsResponse) Reset() { *x = UploadSystemdServiceUnitsResponse{} mi := &file_debugd_service_debugd_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UploadSystemdServiceUnitsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*UploadSystemdServiceUnitsResponse) ProtoMessage() {} func (x *UploadSystemdServiceUnitsResponse) ProtoReflect() protoreflect.Message { mi := &file_debugd_service_debugd_proto_msgTypes[12] 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 UploadSystemdServiceUnitsResponse.ProtoReflect.Descriptor instead. func (*UploadSystemdServiceUnitsResponse) Descriptor() ([]byte, []int) { return file_debugd_service_debugd_proto_rawDescGZIP(), []int{12} } func (x *UploadSystemdServiceUnitsResponse) GetStatus() UploadSystemdServiceUnitsStatus { if x != nil { return x.Status } return UploadSystemdServiceUnitsStatus_UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS } var File_debugd_service_debugd_proto protoreflect.FileDescriptor const file_debugd_service_debugd_proto_rawDesc = "" + "\n" + "\x1bdebugd/service/debugd.proto\x12\x06debugd\"2\n" + "\x0eSetInfoRequest\x12 \n" + "\x04info\x18\x01 \x03(\v2\f.debugd.InfoR\x04info\"@\n" + "\x0fSetInfoResponse\x12-\n" + "\x06status\x18\x01 \x01(\x0e2\x15.debugd.SetInfoStatusR\x06status\"\x10\n" + "\x0eGetInfoRequest\"3\n" + "\x0fGetInfoResponse\x12 \n" + "\x04info\x18\x01 \x03(\v2\f.debugd.InfoR\x04info\".\n" + "\x04Info\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value\"\x16\n" + "\x14DownloadFilesRequest\"z\n" + "\x13FileTransferMessage\x124\n" + "\x06header\x18\x01 \x01(\v2\x1a.debugd.FileTransferHeaderH\x00R\x06header\x12%\n" + "\x05chunk\x18\x02 \x01(\v2\r.debugd.ChunkH\x00R\x05chunkB\x06\n" + "\x04kind\"\x97\x01\n" + "\x12FileTransferHeader\x12\x1e\n" + "\n" + "targetPath\x18\x01 \x01(\tR\n" + "targetPath\x12\x12\n" + "\x04mode\x18\x03 \x01(\rR\x04mode\x125\n" + "\x13overrideServiceUnit\x18\x04 \x01(\tH\x00R\x13overrideServiceUnit\x88\x01\x01B\x16\n" + "\x14_overrideServiceUnit\"5\n" + "\x05Chunk\x12\x18\n" + "\acontent\x18\x01 \x01(\fR\acontent\x12\x12\n" + "\x04last\x18\x02 \x01(\bR\x04last\"^\n" + "\x13UploadFilesResponse\x121\n" + "\x06status\x18\x01 \x01(\x0e2\x19.debugd.UploadFilesStatusR\x06status\x12\x14\n" + "\x05error\x18\x02 \x01(\tR\x05error\"=\n" + "\vServiceUnit\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" + "\bcontents\x18\x02 \x01(\tR\bcontents\"M\n" + " UploadSystemdServiceUnitsRequest\x12)\n" + "\x05units\x18\x01 \x03(\v2\x13.debugd.ServiceUnitR\x05units\"d\n" + "!UploadSystemdServiceUnitsResponse\x12?\n" + "\x06status\x18\x01 \x01(\x0e2'.debugd.UploadSystemdServiceUnitsStatusR\x06status*?\n" + "\rSetInfoStatus\x12\x14\n" + "\x10SET_INFO_SUCCESS\x10\x00\x12\x18\n" + "\x14SET_INFO_ALREADY_SET\x10\x01*\xb1\x01\n" + "\x11UploadFilesStatus\x12\x18\n" + "\x14UPLOAD_FILES_SUCCESS\x10\x00\x12\x1e\n" + "\x1aUPLOAD_FILES_UPLOAD_FAILED\x10\x01\x12 \n" + "\x1cUPLOAD_FILES_ALREADY_STARTED\x10\x02\x12!\n" + "\x1dUPLOAD_FILES_ALREADY_FINISHED\x10\x03\x12\x1d\n" + "\x19UPLOAD_FILES_START_FAILED\x10\x04*u\n" + "\x1fUploadSystemdServiceUnitsStatus\x12(\n" + "$UPLOAD_SYSTEMD_SERVICE_UNITS_SUCCESS\x10\x00\x12(\n" + "$UPLOAD_SYSTEMD_SERVICE_UNITS_FAILURE\x10\x012\x94\x03\n" + "\x06Debugd\x12<\n" + "\aSetInfo\x12\x16.debugd.SetInfoRequest\x1a\x17.debugd.SetInfoResponse\"\x00\x12<\n" + "\aGetInfo\x12\x16.debugd.GetInfoRequest\x1a\x17.debugd.GetInfoResponse\"\x00\x12K\n" + "\vUploadFiles\x12\x1b.debugd.FileTransferMessage\x1a\x1b.debugd.UploadFilesResponse\"\x00(\x01\x12N\n" + "\rDownloadFiles\x12\x1c.debugd.DownloadFilesRequest\x1a\x1b.debugd.FileTransferMessage\"\x000\x01\x12q\n" + "\x18UploadSystemServiceUnits\x12(.debugd.UploadSystemdServiceUnitsRequest\x1a).debugd.UploadSystemdServiceUnitsResponse\"\x00B8Z6github.com/edgelesssys/constellation/v2/debugd/serviceb\x06proto3" var ( file_debugd_service_debugd_proto_rawDescOnce sync.Once file_debugd_service_debugd_proto_rawDescData []byte ) func file_debugd_service_debugd_proto_rawDescGZIP() []byte { file_debugd_service_debugd_proto_rawDescOnce.Do(func() { file_debugd_service_debugd_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_debugd_service_debugd_proto_rawDesc), len(file_debugd_service_debugd_proto_rawDesc))) }) return file_debugd_service_debugd_proto_rawDescData } var file_debugd_service_debugd_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_debugd_service_debugd_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_debugd_service_debugd_proto_goTypes = []any{ (SetInfoStatus)(0), // 0: debugd.SetInfoStatus (UploadFilesStatus)(0), // 1: debugd.UploadFilesStatus (UploadSystemdServiceUnitsStatus)(0), // 2: debugd.UploadSystemdServiceUnitsStatus (*SetInfoRequest)(nil), // 3: debugd.SetInfoRequest (*SetInfoResponse)(nil), // 4: debugd.SetInfoResponse (*GetInfoRequest)(nil), // 5: debugd.GetInfoRequest (*GetInfoResponse)(nil), // 6: debugd.GetInfoResponse (*Info)(nil), // 7: debugd.Info (*DownloadFilesRequest)(nil), // 8: debugd.DownloadFilesRequest (*FileTransferMessage)(nil), // 9: debugd.FileTransferMessage (*FileTransferHeader)(nil), // 10: debugd.FileTransferHeader (*Chunk)(nil), // 11: debugd.Chunk (*UploadFilesResponse)(nil), // 12: debugd.UploadFilesResponse (*ServiceUnit)(nil), // 13: debugd.ServiceUnit (*UploadSystemdServiceUnitsRequest)(nil), // 14: debugd.UploadSystemdServiceUnitsRequest (*UploadSystemdServiceUnitsResponse)(nil), // 15: debugd.UploadSystemdServiceUnitsResponse } var file_debugd_service_debugd_proto_depIdxs = []int32{ 7, // 0: debugd.SetInfoRequest.info:type_name -> debugd.Info 0, // 1: debugd.SetInfoResponse.status:type_name -> debugd.SetInfoStatus 7, // 2: debugd.GetInfoResponse.info:type_name -> debugd.Info 10, // 3: debugd.FileTransferMessage.header:type_name -> debugd.FileTransferHeader 11, // 4: debugd.FileTransferMessage.chunk:type_name -> debugd.Chunk 1, // 5: debugd.UploadFilesResponse.status:type_name -> debugd.UploadFilesStatus 13, // 6: debugd.UploadSystemdServiceUnitsRequest.units:type_name -> debugd.ServiceUnit 2, // 7: debugd.UploadSystemdServiceUnitsResponse.status:type_name -> debugd.UploadSystemdServiceUnitsStatus 3, // 8: debugd.Debugd.SetInfo:input_type -> debugd.SetInfoRequest 5, // 9: debugd.Debugd.GetInfo:input_type -> debugd.GetInfoRequest 9, // 10: debugd.Debugd.UploadFiles:input_type -> debugd.FileTransferMessage 8, // 11: debugd.Debugd.DownloadFiles:input_type -> debugd.DownloadFilesRequest 14, // 12: debugd.Debugd.UploadSystemServiceUnits:input_type -> debugd.UploadSystemdServiceUnitsRequest 4, // 13: debugd.Debugd.SetInfo:output_type -> debugd.SetInfoResponse 6, // 14: debugd.Debugd.GetInfo:output_type -> debugd.GetInfoResponse 12, // 15: debugd.Debugd.UploadFiles:output_type -> debugd.UploadFilesResponse 9, // 16: debugd.Debugd.DownloadFiles:output_type -> debugd.FileTransferMessage 15, // 17: debugd.Debugd.UploadSystemServiceUnits:output_type -> debugd.UploadSystemdServiceUnitsResponse 13, // [13:18] is the sub-list for method output_type 8, // [8:13] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name } func init() { file_debugd_service_debugd_proto_init() } func file_debugd_service_debugd_proto_init() { if File_debugd_service_debugd_proto != nil { return } file_debugd_service_debugd_proto_msgTypes[6].OneofWrappers = []any{ (*FileTransferMessage_Header)(nil), (*FileTransferMessage_Chunk)(nil), } file_debugd_service_debugd_proto_msgTypes[7].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_debugd_service_debugd_proto_rawDesc), len(file_debugd_service_debugd_proto_rawDesc)), NumEnums: 3, NumMessages: 13, NumExtensions: 0, NumServices: 1, }, GoTypes: file_debugd_service_debugd_proto_goTypes, DependencyIndexes: file_debugd_service_debugd_proto_depIdxs, EnumInfos: file_debugd_service_debugd_proto_enumTypes, MessageInfos: file_debugd_service_debugd_proto_msgTypes, }.Build() File_debugd_service_debugd_proto = out.File file_debugd_service_debugd_proto_goTypes = nil file_debugd_service_debugd_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // DebugdClient is the client API for Debugd service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DebugdClient interface { SetInfo(ctx context.Context, in *SetInfoRequest, opts ...grpc.CallOption) (*SetInfoResponse, error) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) UploadFiles(ctx context.Context, opts ...grpc.CallOption) (Debugd_UploadFilesClient, error) DownloadFiles(ctx context.Context, in *DownloadFilesRequest, opts ...grpc.CallOption) (Debugd_DownloadFilesClient, error) UploadSystemServiceUnits(ctx context.Context, in *UploadSystemdServiceUnitsRequest, opts ...grpc.CallOption) (*UploadSystemdServiceUnitsResponse, error) } type debugdClient struct { cc grpc.ClientConnInterface } func NewDebugdClient(cc grpc.ClientConnInterface) DebugdClient { return &debugdClient{cc} } func (c *debugdClient) SetInfo(ctx context.Context, in *SetInfoRequest, opts ...grpc.CallOption) (*SetInfoResponse, error) { out := new(SetInfoResponse) err := c.cc.Invoke(ctx, "/debugd.Debugd/SetInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *debugdClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) { out := new(GetInfoResponse) err := c.cc.Invoke(ctx, "/debugd.Debugd/GetInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *debugdClient) UploadFiles(ctx context.Context, opts ...grpc.CallOption) (Debugd_UploadFilesClient, error) { stream, err := c.cc.NewStream(ctx, &_Debugd_serviceDesc.Streams[0], "/debugd.Debugd/UploadFiles", opts...) if err != nil { return nil, err } x := &debugdUploadFilesClient{stream} return x, nil } type Debugd_UploadFilesClient interface { Send(*FileTransferMessage) error CloseAndRecv() (*UploadFilesResponse, error) grpc.ClientStream } type debugdUploadFilesClient struct { grpc.ClientStream } func (x *debugdUploadFilesClient) Send(m *FileTransferMessage) error { return x.ClientStream.SendMsg(m) } func (x *debugdUploadFilesClient) CloseAndRecv() (*UploadFilesResponse, error) { if err := x.ClientStream.CloseSend(); err != nil { return nil, err } m := new(UploadFilesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *debugdClient) DownloadFiles(ctx context.Context, in *DownloadFilesRequest, opts ...grpc.CallOption) (Debugd_DownloadFilesClient, error) { stream, err := c.cc.NewStream(ctx, &_Debugd_serviceDesc.Streams[1], "/debugd.Debugd/DownloadFiles", opts...) if err != nil { return nil, err } x := &debugdDownloadFilesClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type Debugd_DownloadFilesClient interface { Recv() (*FileTransferMessage, error) grpc.ClientStream } type debugdDownloadFilesClient struct { grpc.ClientStream } func (x *debugdDownloadFilesClient) Recv() (*FileTransferMessage, error) { m := new(FileTransferMessage) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *debugdClient) UploadSystemServiceUnits(ctx context.Context, in *UploadSystemdServiceUnitsRequest, opts ...grpc.CallOption) (*UploadSystemdServiceUnitsResponse, error) { out := new(UploadSystemdServiceUnitsResponse) err := c.cc.Invoke(ctx, "/debugd.Debugd/UploadSystemServiceUnits", in, out, opts...) if err != nil { return nil, err } return out, nil } // DebugdServer is the server API for Debugd service. type DebugdServer interface { SetInfo(context.Context, *SetInfoRequest) (*SetInfoResponse, error) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) UploadFiles(Debugd_UploadFilesServer) error DownloadFiles(*DownloadFilesRequest, Debugd_DownloadFilesServer) error UploadSystemServiceUnits(context.Context, *UploadSystemdServiceUnitsRequest) (*UploadSystemdServiceUnitsResponse, error) } // UnimplementedDebugdServer can be embedded to have forward compatible implementations. type UnimplementedDebugdServer struct { } func (*UnimplementedDebugdServer) SetInfo(context.Context, *SetInfoRequest) (*SetInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetInfo not implemented") } func (*UnimplementedDebugdServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } func (*UnimplementedDebugdServer) UploadFiles(Debugd_UploadFilesServer) error { return status.Errorf(codes.Unimplemented, "method UploadFiles not implemented") } func (*UnimplementedDebugdServer) DownloadFiles(*DownloadFilesRequest, Debugd_DownloadFilesServer) error { return status.Errorf(codes.Unimplemented, "method DownloadFiles not implemented") } func (*UnimplementedDebugdServer) UploadSystemServiceUnits(context.Context, *UploadSystemdServiceUnitsRequest) (*UploadSystemdServiceUnitsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UploadSystemServiceUnits not implemented") } func RegisterDebugdServer(s *grpc.Server, srv DebugdServer) { s.RegisterService(&_Debugd_serviceDesc, srv) } func _Debugd_SetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DebugdServer).SetInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/debugd.Debugd/SetInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DebugdServer).SetInfo(ctx, req.(*SetInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Debugd_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DebugdServer).GetInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/debugd.Debugd/GetInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DebugdServer).GetInfo(ctx, req.(*GetInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Debugd_UploadFiles_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(DebugdServer).UploadFiles(&debugdUploadFilesServer{stream}) } type Debugd_UploadFilesServer interface { SendAndClose(*UploadFilesResponse) error Recv() (*FileTransferMessage, error) grpc.ServerStream } type debugdUploadFilesServer struct { grpc.ServerStream } func (x *debugdUploadFilesServer) SendAndClose(m *UploadFilesResponse) error { return x.ServerStream.SendMsg(m) } func (x *debugdUploadFilesServer) Recv() (*FileTransferMessage, error) { m := new(FileTransferMessage) if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func _Debugd_DownloadFiles_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(DownloadFilesRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(DebugdServer).DownloadFiles(m, &debugdDownloadFilesServer{stream}) } type Debugd_DownloadFilesServer interface { Send(*FileTransferMessage) error grpc.ServerStream } type debugdDownloadFilesServer struct { grpc.ServerStream } func (x *debugdDownloadFilesServer) Send(m *FileTransferMessage) error { return x.ServerStream.SendMsg(m) } func _Debugd_UploadSystemServiceUnits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UploadSystemdServiceUnitsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DebugdServer).UploadSystemServiceUnits(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/debugd.Debugd/UploadSystemServiceUnits", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DebugdServer).UploadSystemServiceUnits(ctx, req.(*UploadSystemdServiceUnitsRequest)) } return interceptor(ctx, in, info, handler) } var _Debugd_serviceDesc = grpc.ServiceDesc{ ServiceName: "debugd.Debugd", HandlerType: (*DebugdServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetInfo", Handler: _Debugd_SetInfo_Handler, }, { MethodName: "GetInfo", Handler: _Debugd_GetInfo_Handler, }, { MethodName: "UploadSystemServiceUnits", Handler: _Debugd_UploadSystemServiceUnits_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UploadFiles", Handler: _Debugd_UploadFiles_Handler, ClientStreams: true, }, { StreamName: "DownloadFiles", Handler: _Debugd_DownloadFiles_Handler, ServerStreams: true, }, }, Metadata: "debugd/service/debugd.proto", }