proto_pcounter

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

proto_pcounter

Protocol Buffer for People Counter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PCounter

type PCounter struct {
	DeviceId             string               `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	Hostname             string               `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Location             string               `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Timezone             string               `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"`
	Mac                  string               `protobuf:"bytes,5,opt,name=mac,proto3" json:"mac,omitempty"`
	Hardware             string               `protobuf:"bytes,6,opt,name=hardware,proto3" json:"hardware,omitempty"`
	Protocol             string               `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Ts                   *timestamp.Timestamp `protobuf:"bytes,8,opt,name=ts,proto3" json:"ts,omitempty"`
	Data                 []*PEvent            `protobuf:"bytes,9,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

People Counter Service message

func (*PCounter) Descriptor

func (*PCounter) Descriptor() ([]byte, []int)

func (*PCounter) GetData

func (m *PCounter) GetData() []*PEvent

func (*PCounter) GetDeviceId

func (m *PCounter) GetDeviceId() string

func (*PCounter) GetHardware

func (m *PCounter) GetHardware() string

func (*PCounter) GetHostname

func (m *PCounter) GetHostname() string

func (*PCounter) GetLocation

func (m *PCounter) GetLocation() string

func (*PCounter) GetMac

func (m *PCounter) GetMac() string

func (*PCounter) GetProtocol

func (m *PCounter) GetProtocol() string

func (*PCounter) GetTimezone

func (m *PCounter) GetTimezone() string

func (*PCounter) GetTs

func (m *PCounter) GetTs() *timestamp.Timestamp

func (*PCounter) ProtoMessage

func (*PCounter) ProtoMessage()

func (*PCounter) Reset

func (m *PCounter) Reset()

func (*PCounter) String

func (m *PCounter) String() string

func (*PCounter) XXX_DiscardUnknown

func (m *PCounter) XXX_DiscardUnknown()

func (*PCounter) XXX_Marshal

func (m *PCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PCounter) XXX_Merge

func (dst *PCounter) XXX_Merge(src proto.Message)

func (*PCounter) XXX_Size

func (m *PCounter) XXX_Size() int

func (*PCounter) XXX_Unmarshal

func (m *PCounter) XXX_Unmarshal(b []byte) error

type PEvent

type PEvent struct {
	Typ                  string               `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"`
	Id                   string               `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Seq                  uint32               `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
	Height               uint32               `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Dir                  string               `protobuf:"bytes,5,opt,name=dir,proto3" json:"dir,omitempty"`
	Ts                   *timestamp.Timestamp `protobuf:"bytes,6,opt,name=ts,proto3" json:"ts,omitempty"`
	TsExit               *timestamp.Timestamp `protobuf:"bytes,7,opt,name=ts_exit,json=tsExit,proto3" json:"ts_exit,omitempty"`
	FillLevel            uint32               `protobuf:"varint,8,opt,name=fillLevel,proto3" json:"fillLevel,omitempty"`
	DwellTime            float32              `protobuf:"fixed32,9,opt,name=dwellTime,proto3" json:"dwellTime,omitempty"`
	ExpDwellTime         float32              `protobuf:"fixed32,10,opt,name=expDwellTime,proto3" json:"expDwellTime,omitempty"`
	ObjectId             uint32               `protobuf:"varint,11,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PEvent) Descriptor

func (*PEvent) Descriptor() ([]byte, []int)

func (*PEvent) GetDir

func (m *PEvent) GetDir() string

func (*PEvent) GetDwellTime

func (m *PEvent) GetDwellTime() float32

func (*PEvent) GetExpDwellTime

func (m *PEvent) GetExpDwellTime() float32

func (*PEvent) GetFillLevel

func (m *PEvent) GetFillLevel() uint32

func (*PEvent) GetHeight

func (m *PEvent) GetHeight() uint32

func (*PEvent) GetId

func (m *PEvent) GetId() string

func (*PEvent) GetObjectId

func (m *PEvent) GetObjectId() uint32

func (*PEvent) GetSeq

func (m *PEvent) GetSeq() uint32

func (*PEvent) GetTs

func (m *PEvent) GetTs() *timestamp.Timestamp

func (*PEvent) GetTsExit

func (m *PEvent) GetTsExit() *timestamp.Timestamp

func (*PEvent) GetTyp

func (m *PEvent) GetTyp() string

func (*PEvent) ProtoMessage

func (*PEvent) ProtoMessage()

func (*PEvent) Reset

func (m *PEvent) Reset()

func (*PEvent) String

func (m *PEvent) String() string

func (*PEvent) XXX_DiscardUnknown

func (m *PEvent) XXX_DiscardUnknown()

func (*PEvent) XXX_Marshal

func (m *PEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PEvent) XXX_Merge

func (dst *PEvent) XXX_Merge(src proto.Message)

func (*PEvent) XXX_Size

func (m *PEvent) XXX_Size() int

func (*PEvent) XXX_Unmarshal

func (m *PEvent) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL