723 lines
21 KiB
Go
723 lines
21 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: api/shack.proto
|
|
|
|
package api
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Empty struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Empty) Reset() {
|
|
*x = Empty{}
|
|
mi := &file_api_shack_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Empty) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Empty) ProtoMessage() {}
|
|
|
|
func (x *Empty) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_api_shack_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginResponse) Reset() {
|
|
*x = LoginResponse{}
|
|
mi := &file_api_shack_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *LoginResponse) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RigCommand struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FrequencyHz int64 `protobuf:"varint,1,opt,name=frequency_hz,json=frequencyHz,proto3" json:"frequency_hz,omitempty"`
|
|
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
Ptt bool `protobuf:"varint,3,opt,name=ptt,proto3" json:"ptt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RigCommand) Reset() {
|
|
*x = RigCommand{}
|
|
mi := &file_api_shack_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RigCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RigCommand) ProtoMessage() {}
|
|
|
|
func (x *RigCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RigCommand.ProtoReflect.Descriptor instead.
|
|
func (*RigCommand) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RigCommand) GetFrequencyHz() int64 {
|
|
if x != nil {
|
|
return x.FrequencyHz
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RigCommand) GetMode() string {
|
|
if x != nil {
|
|
return x.Mode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RigCommand) GetPtt() bool {
|
|
if x != nil {
|
|
return x.Ptt
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RigStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FrequencyHz int64 `protobuf:"varint,1,opt,name=frequency_hz,json=frequencyHz,proto3" json:"frequency_hz,omitempty"`
|
|
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
SMeter int32 `protobuf:"varint,3,opt,name=s_meter,json=sMeter,proto3" json:"s_meter,omitempty"`
|
|
PowerMeter int32 `protobuf:"varint,4,opt,name=power_meter,json=powerMeter,proto3" json:"power_meter,omitempty"`
|
|
ActiveOperatorName string `protobuf:"bytes,5,opt,name=active_operator_name,json=activeOperatorName,proto3" json:"active_operator_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RigStatus) Reset() {
|
|
*x = RigStatus{}
|
|
mi := &file_api_shack_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RigStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RigStatus) ProtoMessage() {}
|
|
|
|
func (x *RigStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RigStatus.ProtoReflect.Descriptor instead.
|
|
func (*RigStatus) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RigStatus) GetFrequencyHz() int64 {
|
|
if x != nil {
|
|
return x.FrequencyHz
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RigStatus) GetMode() string {
|
|
if x != nil {
|
|
return x.Mode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RigStatus) GetSMeter() int32 {
|
|
if x != nil {
|
|
return x.SMeter
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RigStatus) GetPowerMeter() int32 {
|
|
if x != nil {
|
|
return x.PowerMeter
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RigStatus) GetActiveOperatorName() string {
|
|
if x != nil {
|
|
return x.ActiveOperatorName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RotorTarget struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Azimuth float64 `protobuf:"fixed64,1,opt,name=azimuth,proto3" json:"azimuth,omitempty"`
|
|
Elevation float64 `protobuf:"fixed64,2,opt,name=elevation,proto3" json:"elevation,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RotorTarget) Reset() {
|
|
*x = RotorTarget{}
|
|
mi := &file_api_shack_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RotorTarget) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RotorTarget) ProtoMessage() {}
|
|
|
|
func (x *RotorTarget) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RotorTarget.ProtoReflect.Descriptor instead.
|
|
func (*RotorTarget) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *RotorTarget) GetAzimuth() float64 {
|
|
if x != nil {
|
|
return x.Azimuth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RotorTarget) GetElevation() float64 {
|
|
if x != nil {
|
|
return x.Elevation
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RotorStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AzimuthIs float64 `protobuf:"fixed64,1,opt,name=azimuth_is,json=azimuthIs,proto3" json:"azimuth_is,omitempty"`
|
|
ElevationIs float64 `protobuf:"fixed64,2,opt,name=elevation_is,json=elevationIs,proto3" json:"elevation_is,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RotorStatus) Reset() {
|
|
*x = RotorStatus{}
|
|
mi := &file_api_shack_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RotorStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RotorStatus) ProtoMessage() {}
|
|
|
|
func (x *RotorStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RotorStatus.ProtoReflect.Descriptor instead.
|
|
func (*RotorStatus) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *RotorStatus) GetAzimuthIs() float64 {
|
|
if x != nil {
|
|
return x.AzimuthIs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RotorStatus) GetElevationIs() float64 {
|
|
if x != nil {
|
|
return x.ElevationIs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RelaisRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pin int32 `protobuf:"varint,1,opt,name=pin,proto3" json:"pin,omitempty"`
|
|
State bool `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RelaisRequest) Reset() {
|
|
*x = RelaisRequest{}
|
|
mi := &file_api_shack_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RelaisRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RelaisRequest) ProtoMessage() {}
|
|
|
|
func (x *RelaisRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RelaisRequest.ProtoReflect.Descriptor instead.
|
|
func (*RelaisRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *RelaisRequest) GetPin() int32 {
|
|
if x != nil {
|
|
return x.Pin
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RelaisRequest) GetState() bool {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RelaisResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pins map[int32]bool `protobuf:"bytes,1,rep,name=pins,proto3" json:"pins,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RelaisResponse) Reset() {
|
|
*x = RelaisResponse{}
|
|
mi := &file_api_shack_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RelaisResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RelaisResponse) ProtoMessage() {}
|
|
|
|
func (x *RelaisResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RelaisResponse.ProtoReflect.Descriptor instead.
|
|
func (*RelaisResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RelaisResponse) GetPins() map[int32]bool {
|
|
if x != nil {
|
|
return x.Pins
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChannelReading struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Voltage float32 `protobuf:"fixed32,1,opt,name=voltage,proto3" json:"voltage,omitempty"`
|
|
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChannelReading) Reset() {
|
|
*x = ChannelReading{}
|
|
mi := &file_api_shack_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChannelReading) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChannelReading) ProtoMessage() {}
|
|
|
|
func (x *ChannelReading) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChannelReading.ProtoReflect.Descriptor instead.
|
|
func (*ChannelReading) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ChannelReading) GetVoltage() float32 {
|
|
if x != nil {
|
|
return x.Voltage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChannelReading) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VoltageResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Map von globaler Kanal-ID (1..16) auf den kombinierten Messwert
|
|
Channels map[int32]*ChannelReading `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VoltageResponse) Reset() {
|
|
*x = VoltageResponse{}
|
|
mi := &file_api_shack_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VoltageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VoltageResponse) ProtoMessage() {}
|
|
|
|
func (x *VoltageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_shack_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VoltageResponse.ProtoReflect.Descriptor instead.
|
|
func (*VoltageResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_shack_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *VoltageResponse) GetChannels() map[int32]*ChannelReading {
|
|
if x != nil {
|
|
return x.Channels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_api_shack_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_shack_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0fapi/shack.proto\x12\x03api\"\a\n" +
|
|
"\x05Empty\"*\n" +
|
|
"\fLoginRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\"%\n" +
|
|
"\rLoginResponse\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"U\n" +
|
|
"\n" +
|
|
"RigCommand\x12!\n" +
|
|
"\ffrequency_hz\x18\x01 \x01(\x03R\vfrequencyHz\x12\x12\n" +
|
|
"\x04mode\x18\x02 \x01(\tR\x04mode\x12\x10\n" +
|
|
"\x03ptt\x18\x03 \x01(\bR\x03ptt\"\xae\x01\n" +
|
|
"\tRigStatus\x12!\n" +
|
|
"\ffrequency_hz\x18\x01 \x01(\x03R\vfrequencyHz\x12\x12\n" +
|
|
"\x04mode\x18\x02 \x01(\tR\x04mode\x12\x17\n" +
|
|
"\as_meter\x18\x03 \x01(\x05R\x06sMeter\x12\x1f\n" +
|
|
"\vpower_meter\x18\x04 \x01(\x05R\n" +
|
|
"powerMeter\x120\n" +
|
|
"\x14active_operator_name\x18\x05 \x01(\tR\x12activeOperatorName\"E\n" +
|
|
"\vRotorTarget\x12\x18\n" +
|
|
"\aazimuth\x18\x01 \x01(\x01R\aazimuth\x12\x1c\n" +
|
|
"\televation\x18\x02 \x01(\x01R\televation\"O\n" +
|
|
"\vRotorStatus\x12\x1d\n" +
|
|
"\n" +
|
|
"azimuth_is\x18\x01 \x01(\x01R\tazimuthIs\x12!\n" +
|
|
"\felevation_is\x18\x02 \x01(\x01R\velevationIs\"7\n" +
|
|
"\rRelaisRequest\x12\x10\n" +
|
|
"\x03pin\x18\x01 \x01(\x05R\x03pin\x12\x14\n" +
|
|
"\x05state\x18\x02 \x01(\bR\x05state\"|\n" +
|
|
"\x0eRelaisResponse\x121\n" +
|
|
"\x04pins\x18\x01 \x03(\v2\x1d.api.RelaisResponse.PinsEntryR\x04pins\x1a7\n" +
|
|
"\tPinsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\"@\n" +
|
|
"\x0eChannelReading\x12\x18\n" +
|
|
"\avoltage\x18\x01 \x01(\x02R\avoltage\x12\x14\n" +
|
|
"\x05label\x18\x02 \x01(\tR\x05label\"\xa3\x01\n" +
|
|
"\x0fVoltageResponse\x12>\n" +
|
|
"\bchannels\x18\x01 \x03(\v2\".api.VoltageResponse.ChannelsEntryR\bchannels\x1aP\n" +
|
|
"\rChannelsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\x05R\x03key\x12)\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x13.api.ChannelReadingR\x05value:\x028\x012=\n" +
|
|
"\vAuthService\x12.\n" +
|
|
"\x05Login\x12\x11.api.LoginRequest\x1a\x12.api.LoginResponse2t\n" +
|
|
"\n" +
|
|
"RigService\x126\n" +
|
|
"\x0fOperatorSession\x12\x0f.api.RigCommand\x1a\x0e.api.RigStatus(\x010\x01\x12.\n" +
|
|
"\x0eMonitorSession\x12\n" +
|
|
".api.Empty\x1a\x0e.api.RigStatus0\x012n\n" +
|
|
"\fRotorService\x12.\n" +
|
|
"\x0eTargetPosition\x12\x10.api.RotorTarget\x1a\n" +
|
|
".api.Empty\x12.\n" +
|
|
"\fLivePosition\x12\n" +
|
|
".api.Empty\x1a\x10.api.RotorStatus0\x012x\n" +
|
|
"\rRelaisService\x124\n" +
|
|
"\tSetRelais\x12\x12.api.RelaisRequest\x1a\x13.api.RelaisResponse\x121\n" +
|
|
"\x0eGetRelaisState\x12\n" +
|
|
".api.Empty\x1a\x13.api.RelaisResponse2H\n" +
|
|
"\x10TelemetryService\x124\n" +
|
|
"\x0eStreamVoltages\x12\n" +
|
|
".api.Empty\x1a\x14.api.VoltageResponse0\x01B\x12Z\x10remote-shack/apib\x06proto3"
|
|
|
|
var (
|
|
file_api_shack_proto_rawDescOnce sync.Once
|
|
file_api_shack_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_shack_proto_rawDescGZIP() []byte {
|
|
file_api_shack_proto_rawDescOnce.Do(func() {
|
|
file_api_shack_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_shack_proto_rawDesc), len(file_api_shack_proto_rawDesc)))
|
|
})
|
|
return file_api_shack_proto_rawDescData
|
|
}
|
|
|
|
var file_api_shack_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
var file_api_shack_proto_goTypes = []any{
|
|
(*Empty)(nil), // 0: api.Empty
|
|
(*LoginRequest)(nil), // 1: api.LoginRequest
|
|
(*LoginResponse)(nil), // 2: api.LoginResponse
|
|
(*RigCommand)(nil), // 3: api.RigCommand
|
|
(*RigStatus)(nil), // 4: api.RigStatus
|
|
(*RotorTarget)(nil), // 5: api.RotorTarget
|
|
(*RotorStatus)(nil), // 6: api.RotorStatus
|
|
(*RelaisRequest)(nil), // 7: api.RelaisRequest
|
|
(*RelaisResponse)(nil), // 8: api.RelaisResponse
|
|
(*ChannelReading)(nil), // 9: api.ChannelReading
|
|
(*VoltageResponse)(nil), // 10: api.VoltageResponse
|
|
nil, // 11: api.RelaisResponse.PinsEntry
|
|
nil, // 12: api.VoltageResponse.ChannelsEntry
|
|
}
|
|
var file_api_shack_proto_depIdxs = []int32{
|
|
11, // 0: api.RelaisResponse.pins:type_name -> api.RelaisResponse.PinsEntry
|
|
12, // 1: api.VoltageResponse.channels:type_name -> api.VoltageResponse.ChannelsEntry
|
|
9, // 2: api.VoltageResponse.ChannelsEntry.value:type_name -> api.ChannelReading
|
|
1, // 3: api.AuthService.Login:input_type -> api.LoginRequest
|
|
3, // 4: api.RigService.OperatorSession:input_type -> api.RigCommand
|
|
0, // 5: api.RigService.MonitorSession:input_type -> api.Empty
|
|
5, // 6: api.RotorService.TargetPosition:input_type -> api.RotorTarget
|
|
0, // 7: api.RotorService.LivePosition:input_type -> api.Empty
|
|
7, // 8: api.RelaisService.SetRelais:input_type -> api.RelaisRequest
|
|
0, // 9: api.RelaisService.GetRelaisState:input_type -> api.Empty
|
|
0, // 10: api.TelemetryService.StreamVoltages:input_type -> api.Empty
|
|
2, // 11: api.AuthService.Login:output_type -> api.LoginResponse
|
|
4, // 12: api.RigService.OperatorSession:output_type -> api.RigStatus
|
|
4, // 13: api.RigService.MonitorSession:output_type -> api.RigStatus
|
|
0, // 14: api.RotorService.TargetPosition:output_type -> api.Empty
|
|
6, // 15: api.RotorService.LivePosition:output_type -> api.RotorStatus
|
|
8, // 16: api.RelaisService.SetRelais:output_type -> api.RelaisResponse
|
|
8, // 17: api.RelaisService.GetRelaisState:output_type -> api.RelaisResponse
|
|
10, // 18: api.TelemetryService.StreamVoltages:output_type -> api.VoltageResponse
|
|
11, // [11:19] is the sub-list for method output_type
|
|
3, // [3:11] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_shack_proto_init() }
|
|
func file_api_shack_proto_init() {
|
|
if File_api_shack_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_shack_proto_rawDesc), len(file_api_shack_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 13,
|
|
NumExtensions: 0,
|
|
NumServices: 5,
|
|
},
|
|
GoTypes: file_api_shack_proto_goTypes,
|
|
DependencyIndexes: file_api_shack_proto_depIdxs,
|
|
MessageInfos: file_api_shack_proto_msgTypes,
|
|
}.Build()
|
|
File_api_shack_proto = out.File
|
|
file_api_shack_proto_goTypes = nil
|
|
file_api_shack_proto_depIdxs = nil
|
|
}
|