1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-26 13:48:53 +08:00
Mainflux.mainflux/message.pb.go
Sava 86f0d8e0d6 MF-363 - Add compiled .proto files (#364)
* Add compiled .proto files

Signed-off-by: Sava Radoš <sava.rados@mainflux.com>

* Remove proto as prerequisite for build services target

Signed-off-by: Sava Radoš <sava.rados@mainflux.com>
2018-08-24 15:33:40 +02:00

255 lines
8.2 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: message.proto
package mainflux
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// RawMessage represents a message emitted by the Mainflux adapters layer.
type RawMessage struct {
Channel uint64 `protobuf:"varint,1,opt,name=Channel,proto3" json:"Channel,omitempty"`
Publisher uint64 `protobuf:"varint,2,opt,name=Publisher,proto3" json:"Publisher,omitempty"`
Protocol string `protobuf:"bytes,3,opt,name=Protocol,proto3" json:"Protocol,omitempty"`
ContentType string `protobuf:"bytes,4,opt,name=ContentType,proto3" json:"ContentType,omitempty"`
Payload []byte `protobuf:"bytes,5,opt,name=Payload,proto3" json:"Payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RawMessage) Reset() { *m = RawMessage{} }
func (m *RawMessage) String() string { return proto.CompactTextString(m) }
func (*RawMessage) ProtoMessage() {}
func (*RawMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_message_240bf7dd85731738, []int{0}
}
func (m *RawMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RawMessage.Unmarshal(m, b)
}
func (m *RawMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RawMessage.Marshal(b, m, deterministic)
}
func (dst *RawMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_RawMessage.Merge(dst, src)
}
func (m *RawMessage) XXX_Size() int {
return xxx_messageInfo_RawMessage.Size(m)
}
func (m *RawMessage) XXX_DiscardUnknown() {
xxx_messageInfo_RawMessage.DiscardUnknown(m)
}
var xxx_messageInfo_RawMessage proto.InternalMessageInfo
func (m *RawMessage) GetChannel() uint64 {
if m != nil {
return m.Channel
}
return 0
}
func (m *RawMessage) GetPublisher() uint64 {
if m != nil {
return m.Publisher
}
return 0
}
func (m *RawMessage) GetProtocol() string {
if m != nil {
return m.Protocol
}
return ""
}
func (m *RawMessage) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func (m *RawMessage) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
// Message represents a resolved (normalized) raw message.
type Message struct {
Channel uint64 `protobuf:"varint,1,opt,name=Channel,proto3" json:"Channel,omitempty"`
Publisher uint64 `protobuf:"varint,2,opt,name=Publisher,proto3" json:"Publisher,omitempty"`
Protocol string `protobuf:"bytes,3,opt,name=Protocol,proto3" json:"Protocol,omitempty"`
Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"`
Unit string `protobuf:"bytes,5,opt,name=Unit,proto3" json:"Unit,omitempty"`
Value float64 `protobuf:"fixed64,6,opt,name=Value,proto3" json:"Value,omitempty"`
StringValue string `protobuf:"bytes,7,opt,name=StringValue,proto3" json:"StringValue,omitempty"`
BoolValue bool `protobuf:"varint,8,opt,name=BoolValue,proto3" json:"BoolValue,omitempty"`
DataValue string `protobuf:"bytes,9,opt,name=DataValue,proto3" json:"DataValue,omitempty"`
ValueSum float64 `protobuf:"fixed64,10,opt,name=ValueSum,proto3" json:"ValueSum,omitempty"`
Time float64 `protobuf:"fixed64,11,opt,name=Time,proto3" json:"Time,omitempty"`
UpdateTime float64 `protobuf:"fixed64,12,opt,name=UpdateTime,proto3" json:"UpdateTime,omitempty"`
Link string `protobuf:"bytes,13,opt,name=Link,proto3" json:"Link,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_message_240bf7dd85731738, []int{1}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (dst *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(dst, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetChannel() uint64 {
if m != nil {
return m.Channel
}
return 0
}
func (m *Message) GetPublisher() uint64 {
if m != nil {
return m.Publisher
}
return 0
}
func (m *Message) GetProtocol() string {
if m != nil {
return m.Protocol
}
return ""
}
func (m *Message) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Message) GetUnit() string {
if m != nil {
return m.Unit
}
return ""
}
func (m *Message) GetValue() float64 {
if m != nil {
return m.Value
}
return 0
}
func (m *Message) GetStringValue() string {
if m != nil {
return m.StringValue
}
return ""
}
func (m *Message) GetBoolValue() bool {
if m != nil {
return m.BoolValue
}
return false
}
func (m *Message) GetDataValue() string {
if m != nil {
return m.DataValue
}
return ""
}
func (m *Message) GetValueSum() float64 {
if m != nil {
return m.ValueSum
}
return 0
}
func (m *Message) GetTime() float64 {
if m != nil {
return m.Time
}
return 0
}
func (m *Message) GetUpdateTime() float64 {
if m != nil {
return m.UpdateTime
}
return 0
}
func (m *Message) GetLink() string {
if m != nil {
return m.Link
}
return ""
}
func init() {
proto.RegisterType((*RawMessage)(nil), "mainflux.RawMessage")
proto.RegisterType((*Message)(nil), "mainflux.Message")
}
func init() { proto.RegisterFile("message.proto", fileDescriptor_message_240bf7dd85731738) }
var fileDescriptor_message_240bf7dd85731738 = []byte{
// 287 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x41, 0x4e, 0xc3, 0x30,
0x10, 0x45, 0xe5, 0x92, 0x36, 0xc9, 0xb4, 0xdd, 0x58, 0x2c, 0x2c, 0x84, 0x90, 0xd5, 0x55, 0x56,
0x6c, 0xb8, 0x01, 0x65, 0x09, 0x28, 0x72, 0x5b, 0xf6, 0x2e, 0x35, 0xad, 0x85, 0x63, 0x47, 0x89,
0x23, 0xe8, 0x5d, 0xb8, 0x1a, 0x77, 0x41, 0x1e, 0x2b, 0x4d, 0x2e, 0xc0, 0xee, 0xff, 0xff, 0x34,
0x9e, 0x3f, 0x92, 0x61, 0x59, 0xa9, 0xb6, 0x95, 0x47, 0x75, 0x5f, 0x37, 0xce, 0x3b, 0x9a, 0x55,
0x52, 0xdb, 0x0f, 0xd3, 0x7d, 0xaf, 0x7e, 0x08, 0x80, 0x90, 0x5f, 0x2f, 0x11, 0x53, 0x06, 0xe9,
0xfa, 0x24, 0xad, 0x55, 0x86, 0x11, 0x4e, 0x8a, 0x44, 0xf4, 0x96, 0xde, 0x42, 0x5e, 0x76, 0x7b,
0xa3, 0xdb, 0x93, 0x6a, 0xd8, 0x04, 0xd9, 0x10, 0xd0, 0x1b, 0xc8, 0xca, 0xf0, 0xf2, 0xbb, 0x33,
0xec, 0x8a, 0x93, 0x22, 0x17, 0x17, 0x4f, 0x39, 0xcc, 0xd7, 0xce, 0x7a, 0x65, 0xfd, 0xf6, 0x5c,
0x2b, 0x96, 0x20, 0x1e, 0x47, 0x61, 0x6b, 0x29, 0xcf, 0xc6, 0xc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