intakev1

package
v0.0.0-...-4c4bac1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntakeService_Record_FullMethodName  = "/bbq.intake.v1.IntakeService/Record"
	IntakeService_Session_FullMethodName = "/bbq.intake.v1.IntakeService/Session"
)

Variables

View Source
var File_bbq_intake_v1_bbq_proto protoreflect.FileDescriptor
View Source
var File_bbq_intake_v1_intake_service_proto protoreflect.FileDescriptor
View Source
var IntakeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bbq.intake.v1.IntakeService",
	HandlerType: (*IntakeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Record",
			Handler:    _IntakeService_Record_Handler,
		},
		{
			MethodName: "Session",
			Handler:    _IntakeService_Session_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bbq/intake/v1/intake_service.proto",
}

IntakeService_ServiceDesc is the grpc.ServiceDesc for IntakeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIntakeServiceServer

func RegisterIntakeServiceServer(s grpc.ServiceRegistrar, srv IntakeServiceServer)

Types

type CreateSensorAlertRequest

type CreateSensorAlertRequest struct {
	SensorAlert *SensorAlert       `protobuf:"bytes,1,opt,name=sensor_alert,json=sensorAlert,proto3" json:"sensor_alert,omitempty"`
	Rules       []*SensorAlertRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSensorAlertRequest) Descriptor deprecated

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

Deprecated: Use CreateSensorAlertRequest.ProtoReflect.Descriptor instead.

func (*CreateSensorAlertRequest) GetRules

func (x *CreateSensorAlertRequest) GetRules() []*SensorAlertRule

func (*CreateSensorAlertRequest) GetSensorAlert

func (x *CreateSensorAlertRequest) GetSensorAlert() *SensorAlert

func (*CreateSensorAlertRequest) ProtoMessage

func (*CreateSensorAlertRequest) ProtoMessage()

func (*CreateSensorAlertRequest) ProtoReflect

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

func (*CreateSensorAlertRequest) Reset

func (x *CreateSensorAlertRequest) Reset()

func (*CreateSensorAlertRequest) String

func (x *CreateSensorAlertRequest) String() string

type CreateSensorAlertResponse

type CreateSensorAlertResponse struct {
	SensorAlert *SensorAlert `protobuf:"bytes,1,opt,name=sensor_alert,json=sensorAlert,proto3" json:"sensor_alert,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSensorAlertResponse) Descriptor deprecated

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

Deprecated: Use CreateSensorAlertResponse.ProtoReflect.Descriptor instead.

func (*CreateSensorAlertResponse) GetSensorAlert

func (x *CreateSensorAlertResponse) GetSensorAlert() *SensorAlert

func (*CreateSensorAlertResponse) ProtoMessage

func (*CreateSensorAlertResponse) ProtoMessage()

func (*CreateSensorAlertResponse) ProtoReflect

func (*CreateSensorAlertResponse) Reset

func (x *CreateSensorAlertResponse) Reset()

func (*CreateSensorAlertResponse) String

func (x *CreateSensorAlertResponse) String() string

type IntakeServiceClient

type IntakeServiceClient interface {
	Record(ctx context.Context, in *RecordRequest, opts ...grpc.CallOption) (*RecordResponse, error)
	Session(ctx context.Context, in *SessionRequest, opts ...grpc.CallOption) (*SessionResponse, error)
}

IntakeServiceClient is the client API for IntakeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IntakeServiceServer

type IntakeServiceServer interface {
	Record(context.Context, *RecordRequest) (*RecordResponse, error)
	Session(context.Context, *SessionRequest) (*SessionResponse, error)
	// contains filtered or unexported methods
}

IntakeServiceServer is the server API for IntakeService service. All implementations must embed UnimplementedIntakeServiceServer for forward compatibility

type Reading

type Reading struct {
	SessionId  string           `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Readings   []*SensorReading `protobuf:"bytes,2,rep,name=readings,proto3" json:"readings,omitempty"`
	RecordedAt int64            `protobuf:"varint,3,opt,name=recorded_at,json=recordedAt,proto3" json:"recorded_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Reading) Descriptor deprecated

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

Deprecated: Use Reading.ProtoReflect.Descriptor instead.

func (*Reading) GetReadings

func (x *Reading) GetReadings() []*SensorReading

func (*Reading) GetRecordedAt

func (x *Reading) GetRecordedAt() int64

func (*Reading) GetSessionId

func (x *Reading) GetSessionId() string

func (*Reading) ProtoMessage

func (*Reading) ProtoMessage()

func (*Reading) ProtoReflect

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

func (*Reading) Reset

func (x *Reading) Reset()

func (*Reading) String

func (x *Reading) String() string

type RecordRequest

type RecordRequest struct {
	Reading []*Reading `protobuf:"bytes,1,rep,name=reading,proto3" json:"reading,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordRequest) Descriptor deprecated

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

Deprecated: Use RecordRequest.ProtoReflect.Descriptor instead.

func (*RecordRequest) GetReading

func (x *RecordRequest) GetReading() []*Reading

func (*RecordRequest) ProtoMessage

func (*RecordRequest) ProtoMessage()

func (*RecordRequest) ProtoReflect

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

func (*RecordRequest) Reset

func (x *RecordRequest) Reset()

func (*RecordRequest) String

func (x *RecordRequest) String() string

type RecordResponse

type RecordResponse struct {
	SessionId  string                 `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	RecordedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=recorded_at,json=recordedAt,proto3" json:"recorded_at,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordResponse) Descriptor deprecated

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

Deprecated: Use RecordResponse.ProtoReflect.Descriptor instead.

func (*RecordResponse) GetRecordedAt

func (x *RecordResponse) GetRecordedAt() *timestamppb.Timestamp

func (*RecordResponse) GetSessionId

func (x *RecordResponse) GetSessionId() string

func (*RecordResponse) ProtoMessage

func (*RecordResponse) ProtoMessage()

func (*RecordResponse) ProtoReflect

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

func (*RecordResponse) Reset

func (x *RecordResponse) Reset()

func (*RecordResponse) String

func (x *RecordResponse) String() string

type Sensor

type Sensor struct {
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Manufacturer    string `protobuf:"bytes,2,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	SensorCount     int32  `protobuf:"varint,3,opt,name=sensor_count,json=sensorCount,proto3" json:"sensor_count,omitempty"`
	TemperatureUnit string `protobuf:"bytes,4,opt,name=temperature_unit,json=temperatureUnit,proto3" json:"temperature_unit,omitempty"`
	SensorId        string `protobuf:"bytes,5,opt,name=sensor_id,json=sensorId,proto3" json:"sensor_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Sensor) Descriptor deprecated

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

Deprecated: Use Sensor.ProtoReflect.Descriptor instead.

func (*Sensor) GetManufacturer

func (x *Sensor) GetManufacturer() string

func (*Sensor) GetName

func (x *Sensor) GetName() string

func (*Sensor) GetSensorCount

func (x *Sensor) GetSensorCount() int32

func (*Sensor) GetSensorId

func (x *Sensor) GetSensorId() string

func (*Sensor) GetTemperatureUnit

func (x *Sensor) GetTemperatureUnit() string

func (*Sensor) ProtoMessage

func (*Sensor) ProtoMessage()

func (*Sensor) ProtoReflect

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

func (*Sensor) Reset

func (x *Sensor) Reset()

func (*Sensor) String

func (x *Sensor) String() string

type SensorAlert

type SensorAlert struct {
	Id           *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	SensorId     string  `protobuf:"bytes,2,opt,name=sensor_id,json=sensorId,proto3" json:"sensor_id,omitempty"`
	AlertName    string  `protobuf:"bytes,3,opt,name=alert_name,json=alertName,proto3" json:"alert_name,omitempty"`
	DefaultAlert bool    `protobuf:"varint,4,opt,name=default_alert,json=defaultAlert,proto3" json:"default_alert,omitempty"`
	// contains filtered or unexported fields
}

func (*SensorAlert) Descriptor deprecated

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

Deprecated: Use SensorAlert.ProtoReflect.Descriptor instead.

func (*SensorAlert) GetAlertName

func (x *SensorAlert) GetAlertName() string

func (*SensorAlert) GetDefaultAlert

func (x *SensorAlert) GetDefaultAlert() bool

func (*SensorAlert) GetId

func (x *SensorAlert) GetId() string

func (*SensorAlert) GetSensorId

func (x *SensorAlert) GetSensorId() string

func (*SensorAlert) ProtoMessage

func (*SensorAlert) ProtoMessage()

func (*SensorAlert) ProtoReflect

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

func (*SensorAlert) Reset

func (x *SensorAlert) Reset()

func (*SensorAlert) String

func (x *SensorAlert) String() string

type SensorAlertRule

type SensorAlertRule struct {
	SensorAlertId  string  `protobuf:"bytes,1,opt,name=sensor_alert_id,json=sensorAlertId,proto3" json:"sensor_alert_id,omitempty"`
	SensorNumber   int32   `protobuf:"varint,2,opt,name=sensor_number,json=sensorNumber,proto3" json:"sensor_number,omitempty"`
	MinTemperature float32 `protobuf:"fixed32,3,opt,name=min_temperature,json=minTemperature,proto3" json:"min_temperature,omitempty"`
	MaxTemperature float32 `protobuf:"fixed32,4,opt,name=max_temperature,json=maxTemperature,proto3" json:"max_temperature,omitempty"`
	// contains filtered or unexported fields
}

func (*SensorAlertRule) Descriptor deprecated

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

Deprecated: Use SensorAlertRule.ProtoReflect.Descriptor instead.

func (*SensorAlertRule) GetMaxTemperature

func (x *SensorAlertRule) GetMaxTemperature() float32

func (*SensorAlertRule) GetMinTemperature

func (x *SensorAlertRule) GetMinTemperature() float32

func (*SensorAlertRule) GetSensorAlertId

func (x *SensorAlertRule) GetSensorAlertId() string

func (*SensorAlertRule) GetSensorNumber

func (x *SensorAlertRule) GetSensorNumber() int32

func (*SensorAlertRule) ProtoMessage

func (*SensorAlertRule) ProtoMessage()

func (*SensorAlertRule) ProtoReflect

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

func (*SensorAlertRule) Reset

func (x *SensorAlertRule) Reset()

func (*SensorAlertRule) String

func (x *SensorAlertRule) String() string

type SensorReading

type SensorReading struct {
	SensorNumber int32   `protobuf:"varint,1,opt,name=sensor_number,json=sensorNumber,proto3" json:"sensor_number,omitempty"`
	Temperature  float32 `protobuf:"fixed32,2,opt,name=temperature,proto3" json:"temperature,omitempty"`
	// contains filtered or unexported fields
}

func (*SensorReading) Descriptor deprecated

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

Deprecated: Use SensorReading.ProtoReflect.Descriptor instead.

func (*SensorReading) GetSensorNumber

func (x *SensorReading) GetSensorNumber() int32

func (*SensorReading) GetTemperature

func (x *SensorReading) GetTemperature() float32

func (*SensorReading) ProtoMessage

func (*SensorReading) ProtoMessage()

func (*SensorReading) ProtoReflect

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

func (*SensorReading) Reset

func (x *SensorReading) Reset()

func (*SensorReading) String

func (x *SensorReading) String() string

type Session

type Session struct {
	Id            string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DeviceId      string  `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	DesiredState  string  `protobuf:"bytes,3,opt,name=desired_state,json=desiredState,proto3" json:"desired_state,omitempty"`
	Description   string  `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	StartTime     int64   `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime       *int64  `protobuf:"varint,6,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"`
	SensorId      string  `protobuf:"bytes,7,opt,name=sensor_id,json=sensorId,proto3" json:"sensor_id,omitempty"`
	SessionType   string  `protobuf:"bytes,8,opt,name=session_type,json=sessionType,proto3" json:"session_type,omitempty"`
	SubjectId     string  `protobuf:"bytes,9,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	SensorAlertId *string `protobuf:"bytes,10,opt,name=sensor_alert_id,json=sensorAlertId,proto3,oneof" json:"sensor_alert_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetDescription

func (x *Session) GetDescription() string

func (*Session) GetDesiredState

func (x *Session) GetDesiredState() string

func (*Session) GetDeviceId

func (x *Session) GetDeviceId() string

func (*Session) GetEndTime

func (x *Session) GetEndTime() int64

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetSensorAlertId

func (x *Session) GetSensorAlertId() string

func (*Session) GetSensorId

func (x *Session) GetSensorId() string

func (*Session) GetSessionType

func (x *Session) GetSessionType() string

func (*Session) GetStartTime

func (x *Session) GetStartTime() int64

func (*Session) GetSubjectId

func (x *Session) GetSubjectId() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SessionDataRate

type SessionDataRate struct {
	Sensors           int32 `protobuf:"varint,1,opt,name=sensors,proto3" json:"sensors,omitempty"`
	MaxReadingsMinute int32 `protobuf:"varint,2,opt,name=max_readings_minute,json=maxReadingsMinute,proto3" json:"max_readings_minute,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionDataRate) Descriptor deprecated

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

Deprecated: Use SessionDataRate.ProtoReflect.Descriptor instead.

func (*SessionDataRate) GetMaxReadingsMinute

func (x *SessionDataRate) GetMaxReadingsMinute() int32

func (*SessionDataRate) GetSensors

func (x *SessionDataRate) GetSensors() int32

func (*SessionDataRate) ProtoMessage

func (*SessionDataRate) ProtoMessage()

func (*SessionDataRate) ProtoReflect

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

func (*SessionDataRate) Reset

func (x *SessionDataRate) Reset()

func (*SessionDataRate) String

func (x *SessionDataRate) String() string

type SessionRequest

type SessionRequest struct {
	Description  string  `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	DeviceName   *string `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3,oneof" json:"device_name,omitempty"`
	SensorName   *string `protobuf:"bytes,3,opt,name=sensor_name,json=sensorName,proto3,oneof" json:"sensor_name,omitempty"`
	SubjectId    *string `protobuf:"bytes,4,opt,name=subject_id,json=subjectId,proto3,oneof" json:"subject_id,omitempty"`
	DesiredState *string `protobuf:"bytes,5,opt,name=desired_state,json=desiredState,proto3,oneof" json:"desired_state,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionRequest) Descriptor deprecated

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

Deprecated: Use SessionRequest.ProtoReflect.Descriptor instead.

func (*SessionRequest) GetDescription

func (x *SessionRequest) GetDescription() string

func (*SessionRequest) GetDesiredState

func (x *SessionRequest) GetDesiredState() string

func (*SessionRequest) GetDeviceName

func (x *SessionRequest) GetDeviceName() string

func (*SessionRequest) GetSensorName

func (x *SessionRequest) GetSensorName() string

func (*SessionRequest) GetSubjectId

func (x *SessionRequest) GetSubjectId() string

func (*SessionRequest) ProtoMessage

func (*SessionRequest) ProtoMessage()

func (*SessionRequest) ProtoReflect

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

func (*SessionRequest) Reset

func (x *SessionRequest) Reset()

func (*SessionRequest) String

func (x *SessionRequest) String() string

type SessionResponse

type SessionResponse struct {
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionResponse) Descriptor deprecated

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

Deprecated: Use SessionResponse.ProtoReflect.Descriptor instead.

func (*SessionResponse) GetSession

func (x *SessionResponse) GetSession() *Session

func (*SessionResponse) ProtoMessage

func (*SessionResponse) ProtoMessage()

func (*SessionResponse) ProtoReflect

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

func (*SessionResponse) Reset

func (x *SessionResponse) Reset()

func (*SessionResponse) String

func (x *SessionResponse) String() string

type UnimplementedIntakeServiceServer

type UnimplementedIntakeServiceServer struct {
}

UnimplementedIntakeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIntakeServiceServer) Record

func (UnimplementedIntakeServiceServer) Session

type UnsafeIntakeServiceServer

type UnsafeIntakeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIntakeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IntakeServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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