2020-06-12 22:51:18 +01:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2020-06-13 00:23:21 +01:00
|
|
|
// versions:
|
2020-07-07 13:13:02 +01:00
|
|
|
// protoc-gen-go v1.25.0
|
2020-06-13 00:23:21 +01:00
|
|
|
// protoc v3.6.1
|
|
|
|
// source: rove/rove.proto
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-06-13 13:38:12 +01:00
|
|
|
// Rove
|
|
|
|
//
|
2020-07-10 00:27:14 +01:00
|
|
|
// Rove is an asychronous nomadic game about exploring a planet as part of a
|
|
|
|
// loose community
|
2020-06-13 13:38:12 +01:00
|
|
|
|
2020-06-12 22:51:18 +01:00
|
|
|
package rove
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
2020-06-13 00:23:21 +01:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-06-12 22:51:18 +01:00
|
|
|
)
|
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
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)
|
|
|
|
)
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// CommandType defines the type of a command to give to the rover
|
2020-07-10 00:12:54 +01:00
|
|
|
type CommandType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
CommandType_none CommandType = 0
|
|
|
|
// Move the rover in a direction, requires bearing
|
|
|
|
CommandType_move CommandType = 1
|
|
|
|
// Stashes item at current location in rover inventory
|
|
|
|
CommandType_stash CommandType = 2
|
|
|
|
// Repairs the rover using an inventory object
|
|
|
|
CommandType_repair CommandType = 3
|
|
|
|
// Waits a tick to add more charge to the rover
|
|
|
|
CommandType_recharge CommandType = 4
|
|
|
|
// Broadcasts a message to nearby rovers
|
|
|
|
CommandType_broadcast CommandType = 5
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for CommandType.
|
|
|
|
var (
|
|
|
|
CommandType_name = map[int32]string{
|
|
|
|
0: "none",
|
|
|
|
1: "move",
|
|
|
|
2: "stash",
|
|
|
|
3: "repair",
|
|
|
|
4: "recharge",
|
|
|
|
5: "broadcast",
|
|
|
|
}
|
|
|
|
CommandType_value = map[string]int32{
|
|
|
|
"none": 0,
|
|
|
|
"move": 1,
|
|
|
|
"stash": 2,
|
|
|
|
"repair": 3,
|
|
|
|
"recharge": 4,
|
|
|
|
"broadcast": 5,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x CommandType) Enum() *CommandType {
|
|
|
|
p := new(CommandType)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x CommandType) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (CommandType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_rove_rove_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (CommandType) Type() protoreflect.EnumType {
|
|
|
|
return &file_rove_rove_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x CommandType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use CommandType.Descriptor instead.
|
|
|
|
func (CommandType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// ServerStatusRequest is an empty placeholder
|
|
|
|
type ServerStatusRequest struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusRequest) Reset() {
|
|
|
|
*x = ServerStatusRequest{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusRequest) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*ServerStatusRequest) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusRequest) ProtoReflect() protoreflect.Message {
|
2020-06-13 00:23:21 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use ServerStatusRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ServerStatusRequest) Descriptor() ([]byte, []int) {
|
2020-06-13 00:23:21 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// ServerStatusResponse is a response with useful server information
|
|
|
|
type ServerStatusResponse struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The version of the server in v{major}.{minor}-{delta}-{sha} form
|
|
|
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
// Whether the server is ready to accept requests
|
|
|
|
Ready bool `protobuf:"varint,2,opt,name=ready,proto3" json:"ready,omitempty"`
|
|
|
|
// The tick rate of the server in minutes (how many minutes per tick)
|
|
|
|
TickRate int32 `protobuf:"varint,3,opt,name=tickRate,proto3" json:"tickRate,omitempty"`
|
|
|
|
// The current tick of the server
|
|
|
|
CurrentTick int32 `protobuf:"varint,4,opt,name=currentTick,proto3" json:"currentTick,omitempty"`
|
|
|
|
// The time the next tick will occur
|
|
|
|
NextTick string `protobuf:"bytes,5,opt,name=next_tick,json=nextTick,proto3" json:"next_tick,omitempty"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusResponse) Reset() {
|
|
|
|
*x = ServerStatusResponse{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusResponse) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*ServerStatusResponse) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusResponse) ProtoReflect() protoreflect.Message {
|
2020-06-13 00:23:21 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use ServerStatusResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ServerStatusResponse) Descriptor() ([]byte, []int) {
|
2020-06-13 00:23:21 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusResponse) GetVersion() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Version
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
return ""
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusResponse) GetReady() bool {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Ready
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
return false
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *ServerStatusResponse) GetTickRate() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.TickRate
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ServerStatusResponse) GetCurrentTick() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CurrentTick
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ServerStatusResponse) GetNextTick() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.NextTick
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// RegisterRequest contains data to register an account
|
|
|
|
type RegisterRequest struct {
|
2020-06-13 11:57:27 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-07-10 00:27:14 +01:00
|
|
|
|
|
|
|
// The desired account name
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
2020-06-13 11:57:27 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterRequest) Reset() {
|
|
|
|
*x = RegisterRequest{}
|
2020-06-13 11:57:27 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterRequest) String() string {
|
2020-06-13 11:57:27 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*RegisterRequest) ProtoMessage() {}
|
2020-06-13 11:57:27 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterRequest) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// Account describes a registered account
|
|
|
|
type Account struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The account name
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
// The account secret value, given when creating the account
|
|
|
|
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Account) Reset() {
|
|
|
|
*x = Account{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[3]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Account) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*Account) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Account) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[3]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use Account.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{3}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Account) GetName() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Name
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Account) GetSecret() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Secret
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// RegisterResponse is the response given to registering an account
|
|
|
|
type RegisterResponse struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The registered account information
|
2020-07-07 22:20:23 +01:00
|
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterResponse) Reset() {
|
|
|
|
*x = RegisterResponse{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[4]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterResponse) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*RegisterResponse) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[4]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{4}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RegisterResponse) GetAccount() *Account {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
|
|
|
return x.Account
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-07-07 22:20:23 +01:00
|
|
|
return nil
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Command is a single command for a rover
|
|
|
|
type Command struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The command type
|
|
|
|
Command CommandType `protobuf:"varint,1,opt,name=command,proto3,enum=rove.CommandType" json:"command,omitempty"`
|
|
|
|
// Types that are assignable to Data:
|
|
|
|
// *Command_Bearing
|
|
|
|
// *Command_Message
|
|
|
|
Data isCommand_Data `protobuf_oneof:"data"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Command) Reset() {
|
|
|
|
*x = Command{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[5]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Command) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*Command) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Command) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[5]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use Command.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Command) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{5}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Command) GetCommand() CommandType {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Command
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
return CommandType_none
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (m *Command) GetData() isCommand_Data {
|
|
|
|
if m != nil {
|
|
|
|
return m.Data
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Command) GetBearing() string {
|
|
|
|
if x, ok := x.GetData().(*Command_Bearing); ok {
|
|
|
|
return x.Bearing
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Command) GetMessage() []byte {
|
|
|
|
if x, ok := x.GetData().(*Command_Message); ok {
|
|
|
|
return x.Message
|
2020-07-03 17:00:04 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
type isCommand_Data interface {
|
|
|
|
isCommand_Data()
|
|
|
|
}
|
2020-07-07 22:20:23 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
type Command_Bearing struct {
|
|
|
|
// A bearing, example: NE
|
|
|
|
// Used with MOVE
|
|
|
|
Bearing string `protobuf:"bytes,2,opt,name=bearing,proto3,oneof"`
|
2020-06-13 11:57:27 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
type Command_Message struct {
|
|
|
|
// A simple message, must be composed of printable ASCII glyphs (32-126)
|
|
|
|
// maximum of three characters
|
|
|
|
// Used with BROADCAST
|
|
|
|
Message []byte `protobuf:"bytes,3,opt,name=message,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Command_Bearing) isCommand_Data() {}
|
|
|
|
|
|
|
|
func (*Command_Message) isCommand_Data() {}
|
|
|
|
|
|
|
|
// CommandRequest describes a set of commands to be requested for the rover
|
|
|
|
type CommandRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// The account to execute these commands
|
|
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
|
|
// The set of desired commands
|
|
|
|
Commands []*Command `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *CommandRequest) Reset() {
|
|
|
|
*x = CommandRequest{}
|
2020-06-13 11:57:27 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandRequest) String() string {
|
2020-06-13 11:57:27 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*CommandRequest) ProtoMessage() {}
|
2020-06-13 11:57:27 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandRequest) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use CommandRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CommandRequest) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandRequest) GetAccount() *Account {
|
2020-07-07 22:20:23 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Account
|
2020-07-07 22:20:23 +01:00
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
return nil
|
2020-07-07 22:20:23 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandRequest) GetCommands() []*Command {
|
|
|
|
if x != nil {
|
|
|
|
return x.Commands
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// CommandResponse is an empty placeholder
|
|
|
|
type CommandResponse struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandResponse) Reset() {
|
|
|
|
*x = CommandResponse{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[7]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandResponse) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*CommandResponse) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *CommandResponse) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[7]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use CommandResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CommandResponse) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{7}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// RadarRequest is the data needed to request the radar for a rover
|
|
|
|
type RadarRequest struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-06-13 11:57:27 +01:00
|
|
|
// The account for this request
|
2020-07-07 22:20:23 +01:00
|
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarRequest) Reset() {
|
|
|
|
*x = RadarRequest{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[8]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarRequest) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*RadarRequest) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarRequest) ProtoReflect() protoreflect.Message {
|
2020-06-13 11:57:27 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[8]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use RadarRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RadarRequest) Descriptor() ([]byte, []int) {
|
2020-06-13 11:57:27 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{8}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarRequest) GetAccount() *Account {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
|
|
|
return x.Account
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-07-07 22:20:23 +01:00
|
|
|
return nil
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// RadarResponse describes radar information
|
|
|
|
type RadarResponse struct {
|
2020-07-09 19:01:09 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The range in tiles from the rover of the radar data
|
|
|
|
Range int32 `protobuf:"varint,1,opt,name=range,proto3" json:"range,omitempty"`
|
|
|
|
// A 1D array representing range*2 + 1 squared set of tiles, origin bottom
|
|
|
|
// left and in row->column order
|
|
|
|
Tiles []byte `protobuf:"bytes,2,opt,name=tiles,proto3" json:"tiles,omitempty"`
|
|
|
|
// A similar array to the tile array, but containing objects
|
|
|
|
Objects []byte `protobuf:"bytes,3,opt,name=objects,proto3" json:"objects,omitempty"`
|
2020-07-09 19:01:09 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarResponse) Reset() {
|
|
|
|
*x = RadarResponse{}
|
2020-07-09 19:01:09 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[9]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarResponse) String() string {
|
2020-07-09 19:01:09 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*RadarResponse) ProtoMessage() {}
|
2020-07-09 19:01:09 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarResponse) ProtoReflect() protoreflect.Message {
|
2020-07-09 19:01:09 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[9]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use RadarResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*RadarResponse) Descriptor() ([]byte, []int) {
|
2020-07-09 19:01:09 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{9}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarResponse) GetRange() int32 {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
|
|
|
return x.Range
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarResponse) GetTiles() []byte {
|
2020-07-05 13:16:08 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Tiles
|
2020-07-05 13:16:08 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *RadarResponse) GetObjects() []byte {
|
2020-07-09 19:01:09 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Objects
|
2020-07-09 19:01:09 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// StatusRequest is information needed to request rover status
|
|
|
|
type StatusRequest struct {
|
2020-06-13 11:57:27 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-07-10 00:27:14 +01:00
|
|
|
|
|
|
|
// The account for this request
|
|
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
2020-06-13 11:57:27 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusRequest) Reset() {
|
|
|
|
*x = StatusRequest{}
|
2020-06-13 11:57:27 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-07-10 00:27:14 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[10]
|
2020-06-13 11:57:27 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusRequest) String() string {
|
2020-06-13 11:57:27 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*StatusRequest) ProtoMessage() {}
|
2020-06-13 11:57:27 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[10]
|
2020-06-13 11:57:27 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{10}
|
2020-06-13 11:57:27 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusRequest) GetAccount() *Account {
|
|
|
|
if x != nil {
|
|
|
|
return x.Account
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Log is a single log item
|
|
|
|
type Log struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The unix timestamp of the log
|
|
|
|
Time string `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
|
|
|
|
// The text of the log
|
|
|
|
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Log) Reset() {
|
|
|
|
*x = Log{}
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-07-10 00:27:14 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[11]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Log) String() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*Log) ProtoMessage() {}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Log) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[11]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use Log.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Log) Descriptor() ([]byte, []int) {
|
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{11}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Log) GetTime() string {
|
2020-06-13 00:23:21 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Time
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *Log) GetText() string {
|
2020-07-07 18:40:38 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Text
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Vector describes a point or vector in 2D space
|
2020-06-12 22:51:18 +01:00
|
|
|
type Vector struct {
|
2020-06-13 00:23:21 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
|
|
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
func (x *Vector) Reset() {
|
|
|
|
*x = Vector{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-07-10 00:27:14 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[12]
|
2020-06-13 00:23:21 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
|
|
|
func (x *Vector) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
|
|
|
|
func (*Vector) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Vector) ProtoReflect() protoreflect.Message {
|
2020-07-10 00:27:14 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[12]
|
2020-06-13 00:23:21 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
// Deprecated: Use Vector.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Vector) Descriptor() ([]byte, []int) {
|
2020-07-10 00:27:14 +01:00
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{12}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-12 22:51:18 +01:00
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
func (x *Vector) GetX() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.X
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
func (x *Vector) GetY() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Y
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// StatusResponse is the response given to a status request
|
|
|
|
type StatusResponse struct {
|
2020-07-07 22:20:23 +01:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// The name of the rover
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
// Position of the rover in world coordinates
|
|
|
|
Position *Vector `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
|
|
|
|
// The range of this rover's radar and broadcasting
|
|
|
|
Range int32 `protobuf:"varint,3,opt,name=range,proto3" json:"range,omitempty"`
|
|
|
|
// The items in the rover inventory
|
|
|
|
Inventory []byte `protobuf:"bytes,4,opt,name=inventory,proto3" json:"inventory,omitempty"`
|
|
|
|
// The capacity of the inventory
|
|
|
|
Capacity int32 `protobuf:"varint,5,opt,name=capacity,proto3" json:"capacity,omitempty"`
|
|
|
|
// The current health of the rover
|
|
|
|
Integrity int32 `protobuf:"varint,6,opt,name=integrity,proto3" json:"integrity,omitempty"`
|
|
|
|
// The maximum health of the rover
|
|
|
|
MaximumIntegrity int32 `protobuf:"varint,7,opt,name=maximumIntegrity,proto3" json:"maximumIntegrity,omitempty"`
|
|
|
|
// The energy stored in the rover
|
|
|
|
Charge int32 `protobuf:"varint,8,opt,name=charge,proto3" json:"charge,omitempty"`
|
|
|
|
// The max energy the rover can store
|
|
|
|
MaximumCharge int32 `protobuf:"varint,9,opt,name=maximumCharge,proto3" json:"maximumCharge,omitempty"`
|
|
|
|
// The set of currently incoming commands for this tick
|
|
|
|
IncomingCommands []*Command `protobuf:"bytes,10,rep,name=incomingCommands,proto3" json:"incomingCommands,omitempty"`
|
|
|
|
// The set of currently queued commands
|
|
|
|
QueuedCommands []*Command `protobuf:"bytes,11,rep,name=queuedCommands,proto3" json:"queuedCommands,omitempty"`
|
|
|
|
// The most recent logs
|
|
|
|
Logs []*Log `protobuf:"bytes,12,rep,name=logs,proto3" json:"logs,omitempty"`
|
2020-07-07 22:20:23 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusResponse) Reset() {
|
|
|
|
*x = StatusResponse{}
|
2020-07-07 22:20:23 +01:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-07-10 00:27:14 +01:00
|
|
|
mi := &file_rove_rove_proto_msgTypes[13]
|
2020-07-07 22:20:23 +01:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusResponse) String() string {
|
2020-07-07 22:20:23 +01:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (*StatusResponse) ProtoMessage() {}
|
2020-07-07 22:20:23 +01:00
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_rove_rove_proto_msgTypes[13]
|
2020-07-07 22:20:23 +01:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{13}
|
2020-07-07 22:20:23 +01:00
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusResponse) GetName() string {
|
2020-07-07 22:20:23 +01:00
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:27:14 +01:00
|
|
|
func (x *StatusResponse) GetPosition() *Vector {
|
2020-07-07 22:20:23 +01:00
|
|
|
if x != nil {
|
2020-07-10 00:27:14 +01:00
|
|
|
return x.Position
|
2020-07-07 22:20:23 +01:00
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetRange() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Range
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetInventory() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Inventory
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetCapacity() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Capacity
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetIntegrity() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Integrity
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetMaximumIntegrity() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.MaximumIntegrity
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetCharge() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Charge
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetMaximumCharge() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.MaximumCharge
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetIncomingCommands() []*Command {
|
|
|
|
if x != nil {
|
|
|
|
return x.IncomingCommands
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetQueuedCommands() []*Command {
|
|
|
|
if x != nil {
|
|
|
|
return x.QueuedCommands
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *StatusResponse) GetLogs() []*Log {
|
|
|
|
if x != nil {
|
|
|
|
return x.Logs
|
|
|
|
}
|
|
|
|
return nil
|
2020-07-07 22:20:23 +01:00
|
|
|
}
|
|
|
|
|
2020-06-13 00:23:21 +01:00
|
|
|
var File_rove_rove_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_rove_rove_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0f, 0x72, 0x6f, 0x76, 0x65, 0x2f, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
2020-07-10 00:27:14 +01:00
|
|
|
0x6f, 0x12, 0x04, 0x72, 0x6f, 0x76, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, 0x65,
|
|
|
|
0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1,
|
|
|
|
0x01, 0x0a, 0x14, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
|
|
|
|
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
|
|
|
0x6e, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x63, 0x6b, 0x52,
|
|
|
|
0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x69, 0x63, 0x6b, 0x52,
|
|
|
|
0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69,
|
|
|
|
0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
|
|
|
|
0x74, 0x54, 0x69, 0x63, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x69,
|
|
|
|
0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x69,
|
|
|
|
0x63, 0x6b, 0x22, 0x25, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x35, 0x0a, 0x07, 0x41, 0x63, 0x63,
|
|
|
|
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72,
|
|
|
|
0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
|
|
|
|
0x22, 0x3b, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x41, 0x63, 0x63,
|
|
|
|
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x76, 0x0a,
|
|
|
|
0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
|
|
|
|
0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x72, 0x6f, 0x76, 0x65,
|
|
|
|
0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x63, 0x6f,
|
|
|
|
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x07, 0x62, 0x65, 0x61, 0x72, 0x69, 0x6e, 0x67,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x62, 0x65, 0x61, 0x72, 0x69, 0x6e,
|
|
|
|
0x67, 0x12, 0x1a, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x06, 0x0a,
|
|
|
|
0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x64, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
2020-07-10 00:12:54 +01:00
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
|
|
|
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e,
|
|
|
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
2020-07-10 00:27:14 +01:00
|
|
|
0x12, 0x29, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03,
|
|
|
|
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
|
|
|
0x64, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x11, 0x0a, 0x0f, 0x43,
|
|
|
|
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37,
|
|
|
|
0x0a, 0x0c, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27,
|
|
|
|
0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07,
|
|
|
|
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x55, 0x0a, 0x0d, 0x52, 0x61, 0x64, 0x61, 0x72,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67,
|
|
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14,
|
|
|
|
0x0a, 0x05, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74,
|
|
|
|
0x69, 0x6c, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18,
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x38,
|
|
|
|
0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
0x27, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
|
|
|
|
0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2d, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12,
|
|
|
|
0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
|
|
|
|
0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x24, 0x0a, 0x06, 0x56, 0x65, 0x63, 0x74, 0x6f,
|
|
|
|
0x72, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12,
|
|
|
|
0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0xb7, 0x03,
|
|
|
|
0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
|
|
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x56, 0x65,
|
|
|
|
0x63, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14,
|
|
|
|
0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72,
|
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72,
|
|
|
|
0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f,
|
|
|
|
0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x05,
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1c,
|
|
|
|
0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
|
0x05, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x10,
|
|
|
|
0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79,
|
|
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x49,
|
|
|
|
0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x72,
|
|
|
|
0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65,
|
|
|
|
0x12, 0x24, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x43, 0x68, 0x61, 0x72, 0x67,
|
|
|
|
0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d,
|
|
|
|
0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69,
|
|
|
|
0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
|
2020-07-10 00:12:54 +01:00
|
|
|
0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
2020-07-10 00:27:14 +01:00
|
|
|
0x10, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
|
|
0x73, 0x12, 0x35, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
|
0x6e, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65,
|
|
|
|
0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64,
|
|
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73,
|
|
|
|
0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x4c, 0x6f,
|
|
|
|
0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x2a, 0x55, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
|
0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x10, 0x00,
|
|
|
|
0x12, 0x08, 0x0a, 0x04, 0x6d, 0x6f, 0x76, 0x65, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x73, 0x74,
|
|
|
|
0x61, 0x73, 0x68, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x61, 0x69, 0x72, 0x10,
|
|
|
|
0x03, 0x12, 0x0c, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x10, 0x04, 0x12,
|
|
|
|
0x0d, 0x0a, 0x09, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x10, 0x05, 0x32, 0xb1,
|
|
|
|
0x02, 0x0a, 0x04, 0x52, 0x6f, 0x76, 0x65, 0x12, 0x47, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
|
|
|
|
0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x53,
|
|
|
|
0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
|
|
|
0x12, 0x3b, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x72,
|
|
|
|
0x6f, 0x76, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73,
|
|
|
|
0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x38, 0x0a,
|
|
|
|
0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e,
|
|
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
|
|
|
|
0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x32, 0x0a, 0x05, 0x52, 0x61, 0x64, 0x61, 0x72,
|
|
|
|
0x12, 0x12, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x52, 0x61, 0x64, 0x61,
|
|
|
|
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x06, 0x53,
|
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x13, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x53, 0x74, 0x61,
|
|
|
|
0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x72, 0x6f, 0x76,
|
|
|
|
0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x22, 0x00, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
|
|
|
0x2f, 0x6d, 0x64, 0x69, 0x6c, 0x75, 0x7a, 0x2f, 0x72, 0x6f, 0x76, 0x65, 0x2f, 0x70, 0x6b, 0x67,
|
|
|
|
0x2f, 0x72, 0x6f, 0x76, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_rove_rove_proto_rawDescOnce sync.Once
|
|
|
|
file_rove_rove_proto_rawDescData = file_rove_rove_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_rove_rove_proto_rawDescGZIP() []byte {
|
|
|
|
file_rove_rove_proto_rawDescOnce.Do(func() {
|
|
|
|
file_rove_rove_proto_rawDescData = protoimpl.X.CompressGZIP(file_rove_rove_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_rove_rove_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2020-07-10 00:12:54 +01:00
|
|
|
var file_rove_rove_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
2020-07-10 00:27:14 +01:00
|
|
|
var file_rove_rove_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
2020-06-13 00:23:21 +01:00
|
|
|
var file_rove_rove_proto_goTypes = []interface{}{
|
2020-07-10 00:12:54 +01:00
|
|
|
(CommandType)(0), // 0: rove.CommandType
|
2020-07-10 00:27:14 +01:00
|
|
|
(*ServerStatusRequest)(nil), // 1: rove.ServerStatusRequest
|
|
|
|
(*ServerStatusResponse)(nil), // 2: rove.ServerStatusResponse
|
|
|
|
(*RegisterRequest)(nil), // 3: rove.RegisterRequest
|
|
|
|
(*Account)(nil), // 4: rove.Account
|
|
|
|
(*RegisterResponse)(nil), // 5: rove.RegisterResponse
|
|
|
|
(*Command)(nil), // 6: rove.Command
|
|
|
|
(*CommandRequest)(nil), // 7: rove.CommandRequest
|
|
|
|
(*CommandResponse)(nil), // 8: rove.CommandResponse
|
|
|
|
(*RadarRequest)(nil), // 9: rove.RadarRequest
|
|
|
|
(*RadarResponse)(nil), // 10: rove.RadarResponse
|
|
|
|
(*StatusRequest)(nil), // 11: rove.StatusRequest
|
|
|
|
(*Log)(nil), // 12: rove.Log
|
|
|
|
(*Vector)(nil), // 13: rove.Vector
|
|
|
|
(*StatusResponse)(nil), // 14: rove.StatusResponse
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
|
|
|
var file_rove_rove_proto_depIdxs = []int32{
|
2020-07-10 00:27:14 +01:00
|
|
|
4, // 0: rove.RegisterResponse.account:type_name -> rove.Account
|
|
|
|
0, // 1: rove.Command.command:type_name -> rove.CommandType
|
|
|
|
4, // 2: rove.CommandRequest.account:type_name -> rove.Account
|
|
|
|
6, // 3: rove.CommandRequest.commands:type_name -> rove.Command
|
|
|
|
4, // 4: rove.RadarRequest.account:type_name -> rove.Account
|
|
|
|
4, // 5: rove.StatusRequest.account:type_name -> rove.Account
|
|
|
|
13, // 6: rove.StatusResponse.position:type_name -> rove.Vector
|
|
|
|
6, // 7: rove.StatusResponse.incomingCommands:type_name -> rove.Command
|
|
|
|
6, // 8: rove.StatusResponse.queuedCommands:type_name -> rove.Command
|
|
|
|
12, // 9: rove.StatusResponse.logs:type_name -> rove.Log
|
|
|
|
1, // 10: rove.Rove.ServerStatus:input_type -> rove.ServerStatusRequest
|
|
|
|
3, // 11: rove.Rove.Register:input_type -> rove.RegisterRequest
|
|
|
|
7, // 12: rove.Rove.Command:input_type -> rove.CommandRequest
|
|
|
|
9, // 13: rove.Rove.Radar:input_type -> rove.RadarRequest
|
|
|
|
11, // 14: rove.Rove.Status:input_type -> rove.StatusRequest
|
|
|
|
2, // 15: rove.Rove.ServerStatus:output_type -> rove.ServerStatusResponse
|
|
|
|
5, // 16: rove.Rove.Register:output_type -> rove.RegisterResponse
|
|
|
|
8, // 17: rove.Rove.Command:output_type -> rove.CommandResponse
|
|
|
|
10, // 18: rove.Rove.Radar:output_type -> rove.RadarResponse
|
|
|
|
14, // 19: rove.Rove.Status:output_type -> rove.StatusResponse
|
2020-07-10 00:12:54 +01:00
|
|
|
15, // [15:20] is the sub-list for method output_type
|
|
|
|
10, // [10:15] is the sub-list for method input_type
|
|
|
|
10, // [10:10] is the sub-list for extension type_name
|
|
|
|
10, // [10:10] is the sub-list for extension extendee
|
|
|
|
0, // [0:10] is the sub-list for field type_name
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_rove_rove_proto_init() }
|
|
|
|
func file_rove_rove_proto_init() {
|
|
|
|
if File_rove_rove_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_rove_rove_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*ServerStatusRequest); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*ServerStatusResponse); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*RegisterRequest); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*Account); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*RegisterResponse); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*Command); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*CommandRequest); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*CommandResponse); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*RadarRequest); i {
|
2020-06-13 00:23:21 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*RadarResponse); i {
|
2020-06-13 11:57:27 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*StatusRequest); i {
|
2020-06-13 11:57:27 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-10 00:27:14 +01:00
|
|
|
switch v := v.(*Log); i {
|
2020-06-13 11:57:27 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_rove_rove_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2020-07-09 19:01:09 +01:00
|
|
|
switch v := v.(*Vector); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
file_rove_rove_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*StatusResponse); i {
|
2020-07-07 22:20:23 +01:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-07-10 00:27:14 +01:00
|
|
|
file_rove_rove_proto_msgTypes[5].OneofWrappers = []interface{}{
|
2020-07-10 00:12:54 +01:00
|
|
|
(*Command_Bearing)(nil),
|
|
|
|
(*Command_Message)(nil),
|
|
|
|
}
|
2020-06-13 00:23:21 +01:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_rove_rove_proto_rawDesc,
|
2020-07-10 00:12:54 +01:00
|
|
|
NumEnums: 1,
|
2020-07-10 00:27:14 +01:00
|
|
|
NumMessages: 14,
|
2020-06-13 00:23:21 +01:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_rove_rove_proto_goTypes,
|
|
|
|
DependencyIndexes: file_rove_rove_proto_depIdxs,
|
2020-07-10 00:12:54 +01:00
|
|
|
EnumInfos: file_rove_rove_proto_enumTypes,
|
2020-06-13 00:23:21 +01:00
|
|
|
MessageInfos: file_rove_rove_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_rove_rove_proto = out.File
|
|
|
|
file_rove_rove_proto_rawDesc = nil
|
|
|
|
file_rove_rove_proto_goTypes = nil
|
|
|
|
file_rove_rove_proto_depIdxs = nil
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConnInterface
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
// RoveClient is the client API for Rove service.
|
2020-06-12 22:51:18 +01:00
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2020-06-13 10:43:35 +01:00
|
|
|
type RoveClient interface {
|
2020-06-13 00:23:21 +01:00
|
|
|
// Server status
|
|
|
|
// Responds with various details about the current server status
|
2020-07-04 23:05:08 +01:00
|
|
|
ServerStatus(ctx context.Context, in *ServerStatusRequest, opts ...grpc.CallOption) (*ServerStatusResponse, error)
|
2020-06-13 00:23:21 +01:00
|
|
|
// Register an account
|
|
|
|
// Tries to register an account with the given name
|
2020-06-13 11:57:27 +01:00
|
|
|
Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
|
2020-06-12 22:51:18 +01:00
|
|
|
// Send commands to rover
|
2020-07-10 00:27:14 +01:00
|
|
|
// Sending commands to this endpoint will queue them to be executed during the
|
|
|
|
// following ticks, in the order sent. Commands sent within the same tick will
|
|
|
|
// overwrite until the tick has finished and the commands are queued
|
2020-07-05 12:55:01 +01:00
|
|
|
Command(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
|
2020-06-12 22:51:18 +01:00
|
|
|
// Get radar information
|
|
|
|
// Gets the radar output for the given rover
|
|
|
|
Radar(ctx context.Context, in *RadarRequest, opts ...grpc.CallOption) (*RadarResponse, error)
|
|
|
|
// Get rover information
|
|
|
|
// Gets information for the account's rover
|
2020-07-04 23:11:12 +01:00
|
|
|
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
type roveClient struct {
|
2020-06-12 22:51:18 +01:00
|
|
|
cc grpc.ClientConnInterface
|
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
func NewRoveClient(cc grpc.ClientConnInterface) RoveClient {
|
|
|
|
return &roveClient{cc}
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-04 23:05:08 +01:00
|
|
|
func (c *roveClient) ServerStatus(ctx context.Context, in *ServerStatusRequest, opts ...grpc.CallOption) (*ServerStatusResponse, error) {
|
|
|
|
out := new(ServerStatusResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/ServerStatus", in, out, opts...)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-06-13 11:57:27 +01:00
|
|
|
func (c *roveClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) {
|
|
|
|
out := new(RegisterResponse)
|
2020-06-13 10:43:35 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Register", in, out, opts...)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-07-05 12:55:01 +01:00
|
|
|
func (c *roveClient) Command(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error) {
|
|
|
|
out := new(CommandResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Command", in, out, opts...)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
func (c *roveClient) Radar(ctx context.Context, in *RadarRequest, opts ...grpc.CallOption) (*RadarResponse, error) {
|
2020-06-13 00:23:21 +01:00
|
|
|
out := new(RadarResponse)
|
2020-06-13 10:43:35 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Radar", in, out, opts...)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:11:12 +01:00
|
|
|
func (c *roveClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) {
|
|
|
|
out := new(StatusResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Status", in, out, opts...)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
// RoveServer is the server API for Rove service.
|
|
|
|
type RoveServer interface {
|
2020-06-13 00:23:21 +01:00
|
|
|
// Server status
|
|
|
|
// Responds with various details about the current server status
|
2020-07-04 23:05:08 +01:00
|
|
|
ServerStatus(context.Context, *ServerStatusRequest) (*ServerStatusResponse, error)
|
2020-06-13 00:23:21 +01:00
|
|
|
// Register an account
|
|
|
|
// Tries to register an account with the given name
|
2020-06-13 11:57:27 +01:00
|
|
|
Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
|
2020-06-12 22:51:18 +01:00
|
|
|
// Send commands to rover
|
2020-07-10 00:27:14 +01:00
|
|
|
// Sending commands to this endpoint will queue them to be executed during the
|
|
|
|
// following ticks, in the order sent. Commands sent within the same tick will
|
|
|
|
// overwrite until the tick has finished and the commands are queued
|
2020-07-05 12:55:01 +01:00
|
|
|
Command(context.Context, *CommandRequest) (*CommandResponse, error)
|
2020-06-12 22:51:18 +01:00
|
|
|
// Get radar information
|
|
|
|
// Gets the radar output for the given rover
|
|
|
|
Radar(context.Context, *RadarRequest) (*RadarResponse, error)
|
|
|
|
// Get rover information
|
|
|
|
// Gets information for the account's rover
|
2020-07-04 23:11:12 +01:00
|
|
|
Status(context.Context, *StatusRequest) (*StatusResponse, error)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
// UnimplementedRoveServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedRoveServer struct {
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-04 23:05:08 +01:00
|
|
|
func (*UnimplementedRoveServer) ServerStatus(context.Context, *ServerStatusRequest) (*ServerStatusResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ServerStatus not implemented")
|
2020-06-13 00:23:21 +01:00
|
|
|
}
|
2020-06-13 11:57:27 +01:00
|
|
|
func (*UnimplementedRoveServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) {
|
2020-06-13 00:23:21 +01:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
|
|
|
|
}
|
2020-07-05 12:55:01 +01:00
|
|
|
func (*UnimplementedRoveServer) Command(context.Context, *CommandRequest) (*CommandResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Command not implemented")
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
2020-06-13 10:43:35 +01:00
|
|
|
func (*UnimplementedRoveServer) Radar(context.Context, *RadarRequest) (*RadarResponse, error) {
|
2020-06-12 22:51:18 +01:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Radar not implemented")
|
|
|
|
}
|
2020-07-04 23:11:12 +01:00
|
|
|
func (*UnimplementedRoveServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
func RegisterRoveServer(s *grpc.Server, srv RoveServer) {
|
|
|
|
s.RegisterService(&_Rove_serviceDesc, srv)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
|
2020-07-04 23:05:08 +01:00
|
|
|
func _Rove_ServerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ServerStatusRequest)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2020-07-04 23:05:08 +01:00
|
|
|
return srv.(RoveServer).ServerStatus(ctx, in)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2020-07-04 23:05:08 +01:00
|
|
|
FullMethod: "/rove.Rove/ServerStatus",
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2020-07-04 23:05:08 +01:00
|
|
|
return srv.(RoveServer).ServerStatus(ctx, req.(*ServerStatusRequest))
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
func _Rove_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2020-06-13 00:23:21 +01:00
|
|
|
in := new(RegisterRequest)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2020-06-13 10:43:35 +01:00
|
|
|
return srv.(RoveServer).Register(ctx, in)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2020-06-13 10:43:35 +01:00
|
|
|
FullMethod: "/rove.Rove/Register",
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2020-06-13 10:43:35 +01:00
|
|
|
return srv.(RoveServer).Register(ctx, req.(*RegisterRequest))
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-07-05 12:55:01 +01:00
|
|
|
func _Rove_Command_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(CommandRequest)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2020-07-05 12:55:01 +01:00
|
|
|
return srv.(RoveServer).Command(ctx, in)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2020-07-05 12:55:01 +01:00
|
|
|
FullMethod: "/rove.Rove/Command",
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2020-07-05 12:55:01 +01:00
|
|
|
return srv.(RoveServer).Command(ctx, req.(*CommandRequest))
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
func _Rove_Radar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2020-06-13 00:23:21 +01:00
|
|
|
in := new(RadarRequest)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2020-06-13 10:43:35 +01:00
|
|
|
return srv.(RoveServer).Radar(ctx, in)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2020-06-13 10:43:35 +01:00
|
|
|
FullMethod: "/rove.Rove/Radar",
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2020-06-13 10:43:35 +01:00
|
|
|
return srv.(RoveServer).Radar(ctx, req.(*RadarRequest))
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-07-04 23:11:12 +01:00
|
|
|
func _Rove_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StatusRequest)
|
2020-06-12 22:51:18 +01:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2020-07-04 23:11:12 +01:00
|
|
|
return srv.(RoveServer).Status(ctx, in)
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2020-07-04 23:11:12 +01:00
|
|
|
FullMethod: "/rove.Rove/Status",
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2020-07-04 23:11:12 +01:00
|
|
|
return srv.(RoveServer).Status(ctx, req.(*StatusRequest))
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2020-06-13 10:43:35 +01:00
|
|
|
var _Rove_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "rove.Rove",
|
|
|
|
HandlerType: (*RoveServer)(nil),
|
2020-06-12 22:51:18 +01:00
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
2020-07-04 23:05:08 +01:00
|
|
|
MethodName: "ServerStatus",
|
|
|
|
Handler: _Rove_ServerStatus_Handler,
|
2020-06-12 22:51:18 +01:00
|
|
|
},
|
|
|
|
{
|
2020-06-13 00:23:21 +01:00
|
|
|
MethodName: "Register",
|
2020-06-13 10:43:35 +01:00
|
|
|
Handler: _Rove_Register_Handler,
|
2020-06-12 22:51:18 +01:00
|
|
|
},
|
|
|
|
{
|
2020-07-05 12:55:01 +01:00
|
|
|
MethodName: "Command",
|
|
|
|
Handler: _Rove_Command_Handler,
|
2020-06-12 22:51:18 +01:00
|
|
|
},
|
|
|
|
{
|
2020-06-13 00:23:21 +01:00
|
|
|
MethodName: "Radar",
|
2020-06-13 10:43:35 +01:00
|
|
|
Handler: _Rove_Radar_Handler,
|
2020-06-12 22:51:18 +01:00
|
|
|
},
|
|
|
|
{
|
2020-07-04 23:11:12 +01:00
|
|
|
MethodName: "Status",
|
|
|
|
Handler: _Rove_Status_Handler,
|
2020-06-12 22:51:18 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2020-06-13 00:23:21 +01:00
|
|
|
Metadata: "rove/rove.proto",
|
2020-06-12 22:51:18 +01:00
|
|
|
}
|