github.com/simpleiot/simpleiot@v0.18.3/internal/pb/message.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.21.12
     5  // source: message.proto
     6  
     7  package pb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Message struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    29  	UserId         string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
    30  	NotificationId string `protobuf:"bytes,3,opt,name=notificationId,proto3" json:"notificationId,omitempty"`
    31  	Email          string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
    32  	Phone          string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
    33  	Subject        string `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
    34  	Message        string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
    35  	ParentId       string `protobuf:"bytes,8,opt,name=parentId,proto3" json:"parentId,omitempty"`
    36  }
    37  
    38  func (x *Message) Reset() {
    39  	*x = Message{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_message_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Message) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Message) ProtoMessage() {}
    52  
    53  func (x *Message) ProtoReflect() protoreflect.Message {
    54  	mi := &file_message_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Message.ProtoReflect.Descriptor instead.
    66  func (*Message) Descriptor() ([]byte, []int) {
    67  	return file_message_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Message) GetId() string {
    71  	if x != nil {
    72  		return x.Id
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Message) GetUserId() string {
    78  	if x != nil {
    79  		return x.UserId
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Message) GetNotificationId() string {
    85  	if x != nil {
    86  		return x.NotificationId
    87  	}
    88  	return ""
    89  }
    90  
    91  func (x *Message) GetEmail() string {
    92  	if x != nil {
    93  		return x.Email
    94  	}
    95  	return ""
    96  }
    97  
    98  func (x *Message) GetPhone() string {
    99  	if x != nil {
   100  		return x.Phone
   101  	}
   102  	return ""
   103  }
   104  
   105  func (x *Message) GetSubject() string {
   106  	if x != nil {
   107  		return x.Subject
   108  	}
   109  	return ""
   110  }
   111  
   112  func (x *Message) GetMessage() string {
   113  	if x != nil {
   114  		return x.Message
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *Message) GetParentId() string {
   120  	if x != nil {
   121  		return x.ParentId
   122  	}
   123  	return ""
   124  }
   125  
   126  var File_message_proto protoreflect.FileDescriptor
   127  
   128  var file_message_proto_rawDesc = []byte{
   129  	0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   130  	0x02, 0x70, 0x62, 0x22, 0xd5, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
   131  	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
   132  	0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   133  	0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66,
   134  	0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
   135  	0x0e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
   136  	0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
   137  	0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x05,
   138  	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
   139  	0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,
   140  	0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
   141  	0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
   142  	0x1a, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
   143  	0x09, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x69,
   144  	0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   145  	0x6f, 0x33,
   146  }
   147  
   148  var (
   149  	file_message_proto_rawDescOnce sync.Once
   150  	file_message_proto_rawDescData = file_message_proto_rawDesc
   151  )
   152  
   153  func file_message_proto_rawDescGZIP() []byte {
   154  	file_message_proto_rawDescOnce.Do(func() {
   155  		file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
   156  	})
   157  	return file_message_proto_rawDescData
   158  }
   159  
   160  var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   161  var file_message_proto_goTypes = []interface{}{
   162  	(*Message)(nil), // 0: pb.Message
   163  }
   164  var file_message_proto_depIdxs = []int32{
   165  	0, // [0:0] is the sub-list for method output_type
   166  	0, // [0:0] is the sub-list for method input_type
   167  	0, // [0:0] is the sub-list for extension type_name
   168  	0, // [0:0] is the sub-list for extension extendee
   169  	0, // [0:0] is the sub-list for field type_name
   170  }
   171  
   172  func init() { file_message_proto_init() }
   173  func file_message_proto_init() {
   174  	if File_message_proto != nil {
   175  		return
   176  	}
   177  	if !protoimpl.UnsafeEnabled {
   178  		file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   179  			switch v := v.(*Message); i {
   180  			case 0:
   181  				return &v.state
   182  			case 1:
   183  				return &v.sizeCache
   184  			case 2:
   185  				return &v.unknownFields
   186  			default:
   187  				return nil
   188  			}
   189  		}
   190  	}
   191  	type x struct{}
   192  	out := protoimpl.TypeBuilder{
   193  		File: protoimpl.DescBuilder{
   194  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   195  			RawDescriptor: file_message_proto_rawDesc,
   196  			NumEnums:      0,
   197  			NumMessages:   1,
   198  			NumExtensions: 0,
   199  			NumServices:   0,
   200  		},
   201  		GoTypes:           file_message_proto_goTypes,
   202  		DependencyIndexes: file_message_proto_depIdxs,
   203  		MessageInfos:      file_message_proto_msgTypes,
   204  	}.Build()
   205  	File_message_proto = out.File
   206  	file_message_proto_rawDesc = nil
   207  	file_message_proto_goTypes = nil
   208  	file_message_proto_depIdxs = nil
   209  }