proto_pcounter

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

proto_pcounter

Protocol Buffer for People Counter

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pcounter_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ACounter added in v0.0.5

type ACounter struct {
	Ts       *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"`
	AreaName string                 `protobuf:"bytes,2,opt,name=areaName,proto3" json:"areaName,omitempty"`
	AreaId   uint32                 `protobuf:"varint,3,opt,name=areaId,proto3" json:"areaId,omitempty"`
	Count    int32                  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // current people number (reset required)
	// contains filtered or unexported fields
}

Area counter

func (*ACounter) Descriptor deprecated added in v0.0.5

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

Deprecated: Use ACounter.ProtoReflect.Descriptor instead.

func (*ACounter) GetAreaId added in v0.0.5

func (x *ACounter) GetAreaId() uint32

func (*ACounter) GetAreaName added in v0.0.5

func (x *ACounter) GetAreaName() string

func (*ACounter) GetCount added in v0.0.5

func (x *ACounter) GetCount() int32

func (*ACounter) GetTs added in v0.0.5

func (x *ACounter) GetTs() *timestamppb.Timestamp

func (*ACounter) ProtoMessage added in v0.0.5

func (*ACounter) ProtoMessage()

func (*ACounter) ProtoReflect added in v0.0.8

func (x *ACounter) ProtoReflect() protoreflect.Message

func (*ACounter) Reset added in v0.0.5

func (x *ACounter) Reset()

func (*ACounter) String added in v0.0.5

func (x *ACounter) String() string

type ACounters added in v0.0.5

type ACounters struct {
	Acs         []*ACounter `protobuf:"bytes,1,rep,name=acs,proto3" json:"acs,omitempty"`                  // multiple counter data for fast transfer
	IntervalSec uint32      `protobuf:"varint,2,opt,name=intervalSec,proto3" json:"intervalSec,omitempty"` //   0 = raw, other = seconds of interval
	// contains filtered or unexported fields
}

func (*ACounters) Descriptor deprecated added in v0.0.5

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

Deprecated: Use ACounters.ProtoReflect.Descriptor instead.

func (*ACounters) GetAcs added in v0.0.6

func (x *ACounters) GetAcs() []*ACounter

func (*ACounters) GetIntervalSec added in v0.0.5

func (x *ACounters) GetIntervalSec() uint32

func (*ACounters) ProtoMessage added in v0.0.5

func (*ACounters) ProtoMessage()

func (*ACounters) ProtoReflect added in v0.0.8

func (x *ACounters) ProtoReflect() protoreflect.Message

func (*ACounters) Reset added in v0.0.5

func (x *ACounters) Reset()

func (*ACounters) String added in v0.0.5

func (x *ACounters) String() string

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"`
	Ip       string                 `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"`
	IpVpn    string                 `protobuf:"bytes,9,opt,name=ip_vpn,json=ipVpn,proto3" json:"ip_vpn,omitempty"`
	Ts       *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=ts,proto3" json:"ts,omitempty"`
	Data     []*PEvent              `protobuf:"bytes,11,rep,name=data,proto3" json:"data,omitempty"` // message has several event data.
	// contains filtered or unexported fields
}

People Counter Service message

func (*PCounter) Descriptor deprecated

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

Deprecated: Use PCounter.ProtoReflect.Descriptor instead.

func (*PCounter) GetData

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

func (*PCounter) GetDeviceId

func (x *PCounter) GetDeviceId() string

func (*PCounter) GetHardware

func (x *PCounter) GetHardware() string

func (*PCounter) GetHostname

func (x *PCounter) GetHostname() string

func (*PCounter) GetIp added in v0.0.3

func (x *PCounter) GetIp() string

func (*PCounter) GetIpVpn added in v0.0.3

func (x *PCounter) GetIpVpn() string

func (*PCounter) GetLocation

func (x *PCounter) GetLocation() string

func (*PCounter) GetMac

func (x *PCounter) GetMac() string

func (*PCounter) GetProtocol

func (x *PCounter) GetProtocol() string

func (*PCounter) GetTimezone

func (x *PCounter) GetTimezone() string

func (*PCounter) GetTs

func (x *PCounter) GetTs() *timestamppb.Timestamp

func (*PCounter) ProtoMessage

func (*PCounter) ProtoMessage()

func (*PCounter) ProtoReflect added in v0.0.7

func (x *PCounter) ProtoReflect() protoreflect.Message

func (*PCounter) Reset

func (x *PCounter) Reset()

func (*PCounter) String

func (x *PCounter) String() string

type PCounters added in v0.0.4

type PCounters struct {
	Pcs []*PCounter `protobuf:"bytes,1,rep,name=pcs,proto3" json:"pcs,omitempty"` // multiple counter data for fast transfer
	// contains filtered or unexported fields
}

func (*PCounters) Descriptor deprecated added in v0.0.4

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

Deprecated: Use PCounters.ProtoReflect.Descriptor instead.

func (*PCounters) GetPcs added in v0.0.4

func (x *PCounters) GetPcs() []*PCounter

func (*PCounters) ProtoMessage added in v0.0.4

func (*PCounters) ProtoMessage()

func (*PCounters) ProtoReflect added in v0.0.7

func (x *PCounters) ProtoReflect() protoreflect.Message

func (*PCounters) Reset added in v0.0.4

func (x *PCounters) Reset()

func (*PCounters) String added in v0.0.4

func (x *PCounters) String() string

type PDetections added in v0.0.11

type PDetections struct {
	X      int32                  `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y      int32                  `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	Height uint32                 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Ts     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=ts,proto3" json:"ts,omitempty"`
	// contains filtered or unexported fields
}

func (*PDetections) Descriptor deprecated added in v0.0.11

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

Deprecated: Use PDetections.ProtoReflect.Descriptor instead.

func (*PDetections) GetHeight added in v0.0.11

func (x *PDetections) GetHeight() uint32

func (*PDetections) GetTs added in v0.0.11

func (x *PDetections) GetTs() *timestamppb.Timestamp

func (*PDetections) GetX added in v0.0.11

func (x *PDetections) GetX() int32

func (*PDetections) GetY added in v0.0.11

func (x *PDetections) GetY() int32

func (*PDetections) ProtoMessage added in v0.0.11

func (*PDetections) ProtoMessage()

func (*PDetections) ProtoReflect added in v0.0.11

func (x *PDetections) ProtoReflect() protoreflect.Message

func (*PDetections) Reset added in v0.0.11

func (x *PDetections) Reset()

func (*PDetections) String added in v0.0.11

func (x *PDetections) String() string

type PEvent

type PEvent struct {
	Typ          string                 `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"` // one of "counter, fillLevel, dwellTime, tracking"
	Id           string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Seq          uint32                 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` // sequence number (onr)
	Height       float32                `protobuf:"fixed32,4,opt,name=height,proto3" json:"height,omitempty"`
	Dir          string                 `protobuf:"bytes,5,opt,name=dir,proto3" json:"dir,omitempty"` // direction
	Ts           *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ts,proto3" json:"ts,omitempty"`
	TsExit       *timestamppb.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"`
	WalkSpeed    float32                `protobuf:"fixed32,12,opt,name=walk_speed,json=walkSpeed,proto3" json:"walk_speed,omitempty"`
	IsFinished   bool                   `protobuf:"varint,13,opt,name=isFinished,proto3" json:"isFinished,omitempty"`
	Detections   []*PDetections         `protobuf:"bytes,14,rep,name=detections,proto3" json:"detections,omitempty"`
	// contains filtered or unexported fields
}

func (*PEvent) Descriptor deprecated

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

Deprecated: Use PEvent.ProtoReflect.Descriptor instead.

func (*PEvent) GetDetections added in v0.0.11

func (x *PEvent) GetDetections() []*PDetections

func (*PEvent) GetDir

func (x *PEvent) GetDir() string

func (*PEvent) GetDwellTime

func (x *PEvent) GetDwellTime() float32

func (*PEvent) GetExpDwellTime

func (x *PEvent) GetExpDwellTime() float32

func (*PEvent) GetFillLevel

func (x *PEvent) GetFillLevel() uint32

func (*PEvent) GetHeight

func (x *PEvent) GetHeight() float32

func (*PEvent) GetId

func (x *PEvent) GetId() string

func (*PEvent) GetIsFinished added in v0.0.11

func (x *PEvent) GetIsFinished() bool

func (*PEvent) GetObjectId

func (x *PEvent) GetObjectId() uint32

func (*PEvent) GetSeq

func (x *PEvent) GetSeq() uint32

func (*PEvent) GetTs

func (x *PEvent) GetTs() *timestamppb.Timestamp

func (*PEvent) GetTsExit

func (x *PEvent) GetTsExit() *timestamppb.Timestamp

func (*PEvent) GetTyp

func (x *PEvent) GetTyp() string

func (*PEvent) GetWalkSpeed added in v0.0.7

func (x *PEvent) GetWalkSpeed() float32

func (*PEvent) ProtoMessage

func (*PEvent) ProtoMessage()

func (*PEvent) ProtoReflect added in v0.0.7

func (x *PEvent) ProtoReflect() protoreflect.Message

func (*PEvent) Reset

func (x *PEvent) Reset()

func (*PEvent) String

func (x *PEvent) String() string

type Retrieve added in v0.0.4

type Retrieve struct {
	From     *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Duration *durationpb.Duration   `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	Query    string                 `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	// Types that are assignable to Result:
	//	*Retrieve_PcRes
	//	*Retrieve_AcRes
	Result isRetrieve_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

retrieve message

func (*Retrieve) Descriptor deprecated added in v0.0.4

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

Deprecated: Use Retrieve.ProtoReflect.Descriptor instead.

func (*Retrieve) GetAcRes added in v0.0.5

func (x *Retrieve) GetAcRes() *ACounters

func (*Retrieve) GetDuration added in v0.0.4

func (x *Retrieve) GetDuration() *durationpb.Duration

func (*Retrieve) GetFrom added in v0.0.4

func (x *Retrieve) GetFrom() *timestamppb.Timestamp

func (*Retrieve) GetPcRes added in v0.0.5

func (x *Retrieve) GetPcRes() *PCounters

func (*Retrieve) GetQuery added in v0.0.5

func (x *Retrieve) GetQuery() string

func (*Retrieve) GetResult added in v0.0.4

func (m *Retrieve) GetResult() isRetrieve_Result

func (*Retrieve) ProtoMessage added in v0.0.4

func (*Retrieve) ProtoMessage()

func (*Retrieve) ProtoReflect added in v0.0.7

func (x *Retrieve) ProtoReflect() protoreflect.Message

func (*Retrieve) Reset added in v0.0.4

func (x *Retrieve) Reset()

func (*Retrieve) String added in v0.0.4

func (x *Retrieve) String() string

type Retrieve_AcRes added in v0.0.5

type Retrieve_AcRes struct {
	AcRes *ACounters `protobuf:"bytes,5,opt,name=ac_res,json=acRes,proto3,oneof"`
}

type Retrieve_PcRes added in v0.0.5

type Retrieve_PcRes struct {
	PcRes *PCounters `protobuf:"bytes,4,opt,name=pc_res,json=pcRes,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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