872 lines
24 KiB
Go
872 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v5.27.2
|
|
// source: protoapi.proto
|
|
|
|
package protoapi
|
|
|
|
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 FileChunk struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileName string `protobuf:"bytes,1,opt,name=FileName,proto3" json:"FileName,omitempty"`
|
|
Content []byte `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileChunk) Reset() {
|
|
*x = FileChunk{}
|
|
mi := &file_protoapi_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileChunk) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileChunk) ProtoMessage() {}
|
|
|
|
func (x *FileChunk) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 FileChunk.ProtoReflect.Descriptor instead.
|
|
func (*FileChunk) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *FileChunk) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileChunk) GetContent() []byte {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UploadStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
|
|
BytesUploaded int64 `protobuf:"varint,3,opt,name=BytesUploaded,proto3" json:"BytesUploaded,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadStatus) Reset() {
|
|
*x = UploadStatus{}
|
|
mi := &file_protoapi_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadStatus) ProtoMessage() {}
|
|
|
|
func (x *UploadStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 UploadStatus.ProtoReflect.Descriptor instead.
|
|
func (*UploadStatus) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UploadStatus) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UploadStatus) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadStatus) GetBytesUploaded() int64 {
|
|
if x != nil {
|
|
return x.BytesUploaded
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SensingData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
DeviceId string `protobuf:"bytes,1,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
|
|
Temperature float64 `protobuf:"fixed64,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"`
|
|
Humidity float64 `protobuf:"fixed64,3,opt,name=Humidity,proto3" json:"Humidity,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SensingData) Reset() {
|
|
*x = SensingData{}
|
|
mi := &file_protoapi_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SensingData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SensingData) ProtoMessage() {}
|
|
|
|
func (x *SensingData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 SensingData.ProtoReflect.Descriptor instead.
|
|
func (*SensingData) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SensingData) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SensingData) GetTemperature() float64 {
|
|
if x != nil {
|
|
return x.Temperature
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SensingData) GetHumidity() float64 {
|
|
if x != nil {
|
|
return x.Humidity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SensingResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SensingResponse) Reset() {
|
|
*x = SensingResponse{}
|
|
mi := &file_protoapi_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SensingResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SensingResponse) ProtoMessage() {}
|
|
|
|
func (x *SensingResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 SensingResponse.ProtoReflect.Descriptor instead.
|
|
func (*SensingResponse) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *SensingResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SensingResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DateTime struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DateTime) Reset() {
|
|
*x = DateTime{}
|
|
mi := &file_protoapi_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DateTime) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DateTime) ProtoMessage() {}
|
|
|
|
func (x *DateTime) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 DateTime.ProtoReflect.Descriptor instead.
|
|
func (*DateTime) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *DateTime) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RequestDateTime struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestDateTime) Reset() {
|
|
*x = RequestDateTime{}
|
|
mi := &file_protoapi_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestDateTime) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestDateTime) ProtoMessage() {}
|
|
|
|
func (x *RequestDateTime) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 RequestDateTime.ProtoReflect.Descriptor instead.
|
|
func (*RequestDateTime) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *RequestDateTime) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RequestPass struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Seed int64 `protobuf:"varint,1,opt,name=Seed,proto3" json:"Seed,omitempty"`
|
|
Length int64 `protobuf:"varint,8,opt,name=Length,proto3" json:"Length,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestPass) Reset() {
|
|
*x = RequestPass{}
|
|
mi := &file_protoapi_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestPass) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestPass) ProtoMessage() {}
|
|
|
|
func (x *RequestPass) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 RequestPass.ProtoReflect.Descriptor instead.
|
|
func (*RequestPass) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *RequestPass) GetSeed() int64 {
|
|
if x != nil {
|
|
return x.Seed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RequestPass) GetLength() int64 {
|
|
if x != nil {
|
|
return x.Length
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RandomPass 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 *RandomPass) Reset() {
|
|
*x = RandomPass{}
|
|
mi := &file_protoapi_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RandomPass) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RandomPass) ProtoMessage() {}
|
|
|
|
func (x *RandomPass) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 RandomPass.ProtoReflect.Descriptor instead.
|
|
func (*RandomPass) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *RandomPass) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EmptyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EmptyRequest) Reset() {
|
|
*x = EmptyRequest{}
|
|
mi := &file_protoapi_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EmptyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EmptyRequest) ProtoMessage() {}
|
|
|
|
func (x *EmptyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 EmptyRequest.ProtoReflect.Descriptor instead.
|
|
func (*EmptyRequest) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type FileMetadata struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileName string `protobuf:"bytes,1,opt,name=FileName,proto3" json:"FileName,omitempty"`
|
|
FileSize int64 `protobuf:"varint,2,opt,name=FileSize,proto3" json:"FileSize,omitempty"`
|
|
UploadedAt int64 `protobuf:"varint,3,opt,name=UploadedAt,proto3" json:"UploadedAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileMetadata) Reset() {
|
|
*x = FileMetadata{}
|
|
mi := &file_protoapi_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileMetadata) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileMetadata) ProtoMessage() {}
|
|
|
|
func (x *FileMetadata) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 FileMetadata.ProtoReflect.Descriptor instead.
|
|
func (*FileMetadata) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *FileMetadata) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMetadata) GetFileSize() int64 {
|
|
if x != nil {
|
|
return x.FileSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FileMetadata) GetUploadedAt() int64 {
|
|
if x != nil {
|
|
return x.UploadedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FileList struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*FileMetadata `protobuf:"bytes,1,rep,name=Files,proto3" json:"Files,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileList) Reset() {
|
|
*x = FileList{}
|
|
mi := &file_protoapi_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileList) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileList) ProtoMessage() {}
|
|
|
|
func (x *FileList) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 FileList.ProtoReflect.Descriptor instead.
|
|
func (*FileList) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *FileList) GetFiles() []*FileMetadata {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DownloadRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileName string `protobuf:"bytes,1,opt,name=FileName,proto3" json:"FileName,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DownloadRequest) Reset() {
|
|
*x = DownloadRequest{}
|
|
mi := &file_protoapi_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DownloadRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DownloadRequest) ProtoMessage() {}
|
|
|
|
func (x *DownloadRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 DownloadRequest.ProtoReflect.Descriptor instead.
|
|
func (*DownloadRequest) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DownloadRequest) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AlertSubscription struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId string `protobuf:"bytes,1,opt,name=ClientId,proto3" json:"ClientId,omitempty"`
|
|
Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlertSubscription) Reset() {
|
|
*x = AlertSubscription{}
|
|
mi := &file_protoapi_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlertSubscription) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlertSubscription) ProtoMessage() {}
|
|
|
|
func (x *AlertSubscription) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_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 AlertSubscription.ProtoReflect.Descriptor instead.
|
|
func (*AlertSubscription) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *AlertSubscription) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertSubscription) GetTopic() string {
|
|
if x != nil {
|
|
return x.Topic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AlertMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AlertId string `protobuf:"bytes,1,opt,name=AlertId,proto3" json:"AlertId,omitempty"`
|
|
DeviceId string `protobuf:"bytes,2,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
|
|
Timestamp int64 `protobuf:"varint,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlertMessage) Reset() {
|
|
*x = AlertMessage{}
|
|
mi := &file_protoapi_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlertMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlertMessage) ProtoMessage() {}
|
|
|
|
func (x *AlertMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protoapi_proto_msgTypes[13]
|
|
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 AlertMessage.ProtoReflect.Descriptor instead.
|
|
func (*AlertMessage) Descriptor() ([]byte, []int) {
|
|
return file_protoapi_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *AlertMessage) GetAlertId() string {
|
|
if x != nil {
|
|
return x.AlertId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertMessage) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertMessage) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertMessage) GetTimestamp() int64 {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_protoapi_proto protoreflect.FileDescriptor
|
|
|
|
const file_protoapi_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eprotoapi.proto\"A\n" +
|
|
"\tFileChunk\x12\x1a\n" +
|
|
"\bFileName\x18\x01 \x01(\tR\bFileName\x12\x18\n" +
|
|
"\aContent\x18\x02 \x01(\fR\aContent\"h\n" +
|
|
"\fUploadStatus\x12\x18\n" +
|
|
"\aSuccess\x18\x01 \x01(\bR\aSuccess\x12\x18\n" +
|
|
"\aMessage\x18\x02 \x01(\tR\aMessage\x12$\n" +
|
|
"\rBytesUploaded\x18\x03 \x01(\x03R\rBytesUploaded\"g\n" +
|
|
"\vSensingData\x12\x1a\n" +
|
|
"\bDeviceId\x18\x01 \x01(\tR\bDeviceId\x12 \n" +
|
|
"\vTemperature\x18\x02 \x01(\x01R\vTemperature\x12\x1a\n" +
|
|
"\bHumidity\x18\x03 \x01(\x01R\bHumidity\"E\n" +
|
|
"\x0fSensingResponse\x12\x18\n" +
|
|
"\aSuccess\x18\x01 \x01(\bR\aSuccess\x12\x18\n" +
|
|
"\aMessage\x18\x02 \x01(\tR\aMessage\" \n" +
|
|
"\bDateTime\x12\x14\n" +
|
|
"\x05Value\x18\x01 \x01(\tR\x05Value\"'\n" +
|
|
"\x0fRequestDateTime\x12\x14\n" +
|
|
"\x05Value\x18\x02 \x01(\tR\x05Value\"9\n" +
|
|
"\vRequestPass\x12\x12\n" +
|
|
"\x04Seed\x18\x01 \x01(\x03R\x04Seed\x12\x16\n" +
|
|
"\x06Length\x18\b \x01(\x03R\x06Length\"(\n" +
|
|
"\n" +
|
|
"RandomPass\x12\x1a\n" +
|
|
"\bPassword\x18\x01 \x01(\tR\bPassword\"\x0e\n" +
|
|
"\fEmptyRequest\"f\n" +
|
|
"\fFileMetadata\x12\x1a\n" +
|
|
"\bFileName\x18\x01 \x01(\tR\bFileName\x12\x1a\n" +
|
|
"\bFileSize\x18\x02 \x01(\x03R\bFileSize\x12\x1e\n" +
|
|
"\n" +
|
|
"UploadedAt\x18\x03 \x01(\x03R\n" +
|
|
"UploadedAt\"/\n" +
|
|
"\bFileList\x12#\n" +
|
|
"\x05Files\x18\x01 \x03(\v2\r.FileMetadataR\x05Files\"-\n" +
|
|
"\x0fDownloadRequest\x12\x1a\n" +
|
|
"\bFileName\x18\x01 \x01(\tR\bFileName\"E\n" +
|
|
"\x11AlertSubscription\x12\x1a\n" +
|
|
"\bClientId\x18\x01 \x01(\tR\bClientId\x12\x14\n" +
|
|
"\x05Topic\x18\x02 \x01(\tR\x05Topic\"|\n" +
|
|
"\fAlertMessage\x12\x18\n" +
|
|
"\aAlertId\x18\x01 \x01(\tR\aAlertId\x12\x1a\n" +
|
|
"\bDeviceId\x18\x02 \x01(\tR\bDeviceId\x12\x18\n" +
|
|
"\aMessage\x18\x03 \x01(\tR\aMessage\x12\x1c\n" +
|
|
"\tTimestamp\x18\x04 \x01(\x03R\tTimestamp2\xcf\x02\n" +
|
|
"\n" +
|
|
"IoTService\x12&\n" +
|
|
"\aGetDate\x12\x10.RequestDateTime\x1a\t.DateTime\x123\n" +
|
|
"\x11UpdateSensingData\x12\f.SensingData\x1a\x10.SensingResponse\x12*\n" +
|
|
"\rGetRandomPass\x12\f.RequestPass\x1a\v.RandomPass\x12)\n" +
|
|
"\n" +
|
|
"UploadFile\x12\n" +
|
|
".FileChunk\x1a\r.UploadStatus(\x01\x12%\n" +
|
|
"\tListFiles\x12\r.EmptyRequest\x1a\t.FileList\x12.\n" +
|
|
"\fDownloadFile\x12\x10.DownloadRequest\x1a\n" +
|
|
".FileChunk0\x01\x126\n" +
|
|
"\x0fSubscribeAlerts\x12\x12.AlertSubscription\x1a\r.AlertMessage0\x01B\x16Z\x14./protoapi/;protoapib\x06proto3"
|
|
|
|
var (
|
|
file_protoapi_proto_rawDescOnce sync.Once
|
|
file_protoapi_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_protoapi_proto_rawDescGZIP() []byte {
|
|
file_protoapi_proto_rawDescOnce.Do(func() {
|
|
file_protoapi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_protoapi_proto_rawDesc), len(file_protoapi_proto_rawDesc)))
|
|
})
|
|
return file_protoapi_proto_rawDescData
|
|
}
|
|
|
|
var file_protoapi_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_protoapi_proto_goTypes = []any{
|
|
(*FileChunk)(nil), // 0: FileChunk
|
|
(*UploadStatus)(nil), // 1: UploadStatus
|
|
(*SensingData)(nil), // 2: SensingData
|
|
(*SensingResponse)(nil), // 3: SensingResponse
|
|
(*DateTime)(nil), // 4: DateTime
|
|
(*RequestDateTime)(nil), // 5: RequestDateTime
|
|
(*RequestPass)(nil), // 6: RequestPass
|
|
(*RandomPass)(nil), // 7: RandomPass
|
|
(*EmptyRequest)(nil), // 8: EmptyRequest
|
|
(*FileMetadata)(nil), // 9: FileMetadata
|
|
(*FileList)(nil), // 10: FileList
|
|
(*DownloadRequest)(nil), // 11: DownloadRequest
|
|
(*AlertSubscription)(nil), // 12: AlertSubscription
|
|
(*AlertMessage)(nil), // 13: AlertMessage
|
|
}
|
|
var file_protoapi_proto_depIdxs = []int32{
|
|
9, // 0: FileList.Files:type_name -> FileMetadata
|
|
5, // 1: IoTService.GetDate:input_type -> RequestDateTime
|
|
2, // 2: IoTService.UpdateSensingData:input_type -> SensingData
|
|
6, // 3: IoTService.GetRandomPass:input_type -> RequestPass
|
|
0, // 4: IoTService.UploadFile:input_type -> FileChunk
|
|
8, // 5: IoTService.ListFiles:input_type -> EmptyRequest
|
|
11, // 6: IoTService.DownloadFile:input_type -> DownloadRequest
|
|
12, // 7: IoTService.SubscribeAlerts:input_type -> AlertSubscription
|
|
4, // 8: IoTService.GetDate:output_type -> DateTime
|
|
3, // 9: IoTService.UpdateSensingData:output_type -> SensingResponse
|
|
7, // 10: IoTService.GetRandomPass:output_type -> RandomPass
|
|
1, // 11: IoTService.UploadFile:output_type -> UploadStatus
|
|
10, // 12: IoTService.ListFiles:output_type -> FileList
|
|
0, // 13: IoTService.DownloadFile:output_type -> FileChunk
|
|
13, // 14: IoTService.SubscribeAlerts:output_type -> AlertMessage
|
|
8, // [8:15] is the sub-list for method output_type
|
|
1, // [1:8] 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_protoapi_proto_init() }
|
|
func file_protoapi_proto_init() {
|
|
if File_protoapi_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_protoapi_proto_rawDesc), len(file_protoapi_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_protoapi_proto_goTypes,
|
|
DependencyIndexes: file_protoapi_proto_depIdxs,
|
|
MessageInfos: file_protoapi_proto_msgTypes,
|
|
}.Build()
|
|
File_protoapi_proto = out.File
|
|
file_protoapi_proto_goTypes = nil
|
|
file_protoapi_proto_depIdxs = nil
|
|
}
|