1291 lines
40 KiB
Go
1291 lines
40 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.23.0
|
|
// protoc v3.6.1
|
|
// source: rove/rove.proto
|
|
|
|
package rove
|
|
|
|
import (
|
|
context "context"
|
|
proto "github.com/golang/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
// of the legacy proto package is being used.
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
type Command struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The command to execute, currently only accepts move, which requires a bearing and a duration.
|
|
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
|
|
// The bearing, example: NE
|
|
Bearing string `protobuf:"bytes,2,opt,name=bearing,proto3" json:"bearing,omitempty"`
|
|
// The duration in ticks, example: 5
|
|
Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
}
|
|
|
|
func (x *Command) Reset() {
|
|
*x = Command{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Command) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Command) ProtoMessage() {}
|
|
|
|
func (x *Command) ProtoReflect() protoreflect.Message {
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use Command.ProtoReflect.Descriptor instead.
|
|
func (*Command) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Command) GetCommand() string {
|
|
if x != nil {
|
|
return x.Command
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Command) GetBearing() string {
|
|
if x != nil {
|
|
return x.Bearing
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Command) GetDuration() int32 {
|
|
if x != nil {
|
|
return x.Duration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CommandsRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The account to execture these commands
|
|
Account string `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 *CommandsRequest) Reset() {
|
|
*x = CommandsRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommandsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandsRequest) ProtoMessage() {}
|
|
|
|
func (x *CommandsRequest) ProtoReflect() protoreflect.Message {
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use CommandsRequest.ProtoReflect.Descriptor instead.
|
|
func (*CommandsRequest) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CommandsRequest) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CommandsRequest) GetCommands() []*Command {
|
|
if x != nil {
|
|
return x.Commands
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Empty placeholder
|
|
type CommandsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *CommandsResponse) Reset() {
|
|
*x = CommandsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CommandsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CommandsResponse) ProtoMessage() {}
|
|
|
|
func (x *CommandsResponse) ProtoReflect() protoreflect.Message {
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use CommandsResponse.ProtoReflect.Descriptor instead.
|
|
func (*CommandsResponse) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type Error struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// An explanation for the HTTP error returned
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
}
|
|
|
|
func (x *Error) Reset() {
|
|
*x = Error{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Error) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Error) ProtoMessage() {}
|
|
|
|
func (x *Error) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[3]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use Error.ProtoReflect.Descriptor instead.
|
|
func (*Error) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Error) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RadarRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The account for this request
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
}
|
|
|
|
func (x *RadarRequest) Reset() {
|
|
*x = RadarRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RadarRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RadarRequest) ProtoMessage() {}
|
|
|
|
func (x *RadarRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[4]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use RadarRequest.ProtoReflect.Descriptor instead.
|
|
func (*RadarRequest) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RadarRequest) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RadarResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// 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"`
|
|
}
|
|
|
|
func (x *RadarResponse) Reset() {
|
|
*x = RadarResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RadarResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RadarResponse) ProtoMessage() {}
|
|
|
|
func (x *RadarResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[5]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use RadarResponse.ProtoReflect.Descriptor instead.
|
|
func (*RadarResponse) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *RadarResponse) GetRange() int32 {
|
|
if x != nil {
|
|
return x.Range
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RadarResponse) GetTiles() []byte {
|
|
if x != nil {
|
|
return x.Tiles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Empty placeholder
|
|
type RegisterResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *RegisterResponse) Reset() {
|
|
*x = RegisterResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RegisterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
type RegisterRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The desired account name
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (x *RegisterRequest) Reset() {
|
|
*x = RegisterRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[7]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *RegisterRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RoverRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The account for this request
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
}
|
|
|
|
func (x *RoverRequest) Reset() {
|
|
*x = RoverRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RoverRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoverRequest) ProtoMessage() {}
|
|
|
|
func (x *RoverRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[8]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use RoverRequest.ProtoReflect.Descriptor instead.
|
|
func (*RoverRequest) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RoverRequest) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RoverResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// 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
|
|
Range int32 `protobuf:"varint,3,opt,name=range,proto3" json:"range,omitempty"`
|
|
// The speed the rover can move per tick
|
|
Speed int32 `protobuf:"varint,4,opt,name=speed,proto3" json:"speed,omitempty"`
|
|
}
|
|
|
|
func (x *RoverResponse) Reset() {
|
|
*x = RoverResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RoverResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoverResponse) ProtoMessage() {}
|
|
|
|
func (x *RoverResponse) ProtoReflect() protoreflect.Message {
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use RoverResponse.ProtoReflect.Descriptor instead.
|
|
func (*RoverResponse) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *RoverResponse) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoverResponse) GetPosition() *Vector {
|
|
if x != nil {
|
|
return x.Position
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoverResponse) GetRange() int32 {
|
|
if x != nil {
|
|
return x.Range
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RoverResponse) GetSpeed() int32 {
|
|
if x != nil {
|
|
return x.Speed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Empty placeholder
|
|
type StatusRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *StatusRequest) Reset() {
|
|
*x = StatusRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusRequest) ProtoMessage() {}
|
|
|
|
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[10]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
type StatusResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// The time the next tick will occur
|
|
NextTick string `protobuf:"bytes,1,opt,name=next_tick,json=nextTick,proto3" json:"next_tick,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)
|
|
Tick int32 `protobuf:"varint,3,opt,name=tick,proto3" json:"tick,omitempty"`
|
|
// The version of the server in v{major}.{minor}-{delta}-{sha} form
|
|
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
}
|
|
|
|
func (x *StatusResponse) Reset() {
|
|
*x = StatusResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusResponse) ProtoMessage() {}
|
|
|
|
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[11]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *StatusResponse) GetNextTick() string {
|
|
if x != nil {
|
|
return x.NextTick
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StatusResponse) GetReady() bool {
|
|
if x != nil {
|
|
return x.Ready
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *StatusResponse) GetTick() int32 {
|
|
if x != nil {
|
|
return x.Tick
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatusResponse) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Vector struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
|
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
|
}
|
|
|
|
func (x *Vector) Reset() {
|
|
*x = Vector{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_rove_rove_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Vector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Vector) ProtoMessage() {}
|
|
|
|
func (x *Vector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_rove_rove_proto_msgTypes[12]
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use Vector.ProtoReflect.Descriptor instead.
|
|
func (*Vector) Descriptor() ([]byte, []int) {
|
|
return file_rove_rove_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *Vector) GetX() int32 {
|
|
if x != nil {
|
|
return x.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Vector) GetY() int32 {
|
|
if x != nil {
|
|
return x.Y
|
|
}
|
|
return 0
|
|
}
|
|
|
|
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,
|
|
0x6f, 0x12, 0x04, 0x72, 0x6f, 0x76, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
|
0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x65,
|
|
0x61, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x65, 0x61,
|
|
0x72, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x22, 0x56, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x12, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x6d,
|
|
0x61, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x05,
|
|
0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x0c, 0x52,
|
|
0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61,
|
|
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63,
|
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3b, 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, 0x22, 0x12, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, 0x28, 0x0a,
|
|
0x0c, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
|
|
0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x79, 0x0a, 0x0d, 0x52, 0x6f, 0x76, 0x65, 0x72,
|
|
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, 0x14, 0x0a, 0x05,
|
|
0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x70, 0x65,
|
|
0x65, 0x64, 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x22, 0x71, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x69,
|
|
0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x69,
|
|
0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x63, 0x6b,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x69, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07,
|
|
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76,
|
|
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 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, 0x32, 0xf8, 0x02, 0x0a,
|
|
0x04, 0x52, 0x6f, 0x76, 0x65, 0x12, 0x44, 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, 0x0f, 0x82, 0xd3, 0xe4, 0x93,
|
|
0x02, 0x09, 0x12, 0x07, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4f, 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, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x22, 0x09,
|
|
0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x12, 0x4f, 0x0a, 0x08,
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x15, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e,
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
0x16, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x22,
|
|
0x09, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x43, 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,
|
|
0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x22, 0x06, 0x2f, 0x72, 0x61, 0x64, 0x61, 0x72, 0x3a,
|
|
0x01, 0x2a, 0x12, 0x43, 0x0a, 0x05, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x12, 0x2e, 0x72, 0x6f,
|
|
0x76, 0x65, 0x2e, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
0x13, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x2e, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x22, 0x06, 0x2f, 0x72,
|
|
0x6f, 0x76, 0x65, 0x72, 0x3a, 0x01, 0x2a, 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,
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
var file_rove_rove_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
var file_rove_rove_proto_goTypes = []interface{}{
|
|
(*Command)(nil), // 0: rove.Command
|
|
(*CommandsRequest)(nil), // 1: rove.CommandsRequest
|
|
(*CommandsResponse)(nil), // 2: rove.CommandsResponse
|
|
(*Error)(nil), // 3: rove.Error
|
|
(*RadarRequest)(nil), // 4: rove.RadarRequest
|
|
(*RadarResponse)(nil), // 5: rove.RadarResponse
|
|
(*RegisterResponse)(nil), // 6: rove.RegisterResponse
|
|
(*RegisterRequest)(nil), // 7: rove.RegisterRequest
|
|
(*RoverRequest)(nil), // 8: rove.RoverRequest
|
|
(*RoverResponse)(nil), // 9: rove.RoverResponse
|
|
(*StatusRequest)(nil), // 10: rove.StatusRequest
|
|
(*StatusResponse)(nil), // 11: rove.StatusResponse
|
|
(*Vector)(nil), // 12: rove.Vector
|
|
}
|
|
var file_rove_rove_proto_depIdxs = []int32{
|
|
0, // 0: rove.CommandsRequest.commands:type_name -> rove.Command
|
|
12, // 1: rove.RoverResponse.position:type_name -> rove.Vector
|
|
10, // 2: rove.Rove.Status:input_type -> rove.StatusRequest
|
|
7, // 3: rove.Rove.Register:input_type -> rove.RegisterRequest
|
|
1, // 4: rove.Rove.Commands:input_type -> rove.CommandsRequest
|
|
4, // 5: rove.Rove.Radar:input_type -> rove.RadarRequest
|
|
8, // 6: rove.Rove.Rover:input_type -> rove.RoverRequest
|
|
11, // 7: rove.Rove.Status:output_type -> rove.StatusResponse
|
|
6, // 8: rove.Rove.Register:output_type -> rove.RegisterResponse
|
|
2, // 9: rove.Rove.Commands:output_type -> rove.CommandsResponse
|
|
5, // 10: rove.Rove.Radar:output_type -> rove.RadarResponse
|
|
9, // 11: rove.Rove.Rover:output_type -> rove.RoverResponse
|
|
7, // [7:12] is the sub-list for method output_type
|
|
2, // [2:7] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
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{} {
|
|
switch v := v.(*Command); i {
|
|
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{} {
|
|
switch v := v.(*CommandsRequest); i {
|
|
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{} {
|
|
switch v := v.(*CommandsResponse); i {
|
|
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{} {
|
|
switch v := v.(*Error); i {
|
|
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{} {
|
|
switch v := v.(*RadarRequest); i {
|
|
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{} {
|
|
switch v := v.(*RadarResponse); i {
|
|
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{} {
|
|
switch v := v.(*RegisterResponse); i {
|
|
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{} {
|
|
switch v := v.(*RegisterRequest); i {
|
|
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{} {
|
|
switch v := v.(*RoverRequest); i {
|
|
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{} {
|
|
switch v := v.(*RoverResponse); i {
|
|
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{} {
|
|
switch v := v.(*StatusRequest); i {
|
|
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{} {
|
|
switch v := v.(*StatusResponse); i {
|
|
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{} {
|
|
switch v := v.(*Vector); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_rove_rove_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 13,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_rove_rove_proto_goTypes,
|
|
DependencyIndexes: file_rove_rove_proto_depIdxs,
|
|
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
|
|
}
|
|
|
|
// 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
|
|
|
|
// RoveClient is the client API for Rove service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type RoveClient interface {
|
|
// Server status
|
|
//
|
|
// Responds with various details about the current server status
|
|
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
|
|
// Register an account
|
|
//
|
|
// Tries to register an account with the given name
|
|
Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
|
|
// Send commands to rover
|
|
//
|
|
// Sending commands to this endpoint will queue them to be executed during the following ticks, in the order sent
|
|
Commands(ctx context.Context, in *CommandsRequest, opts ...grpc.CallOption) (*CommandsResponse, error)
|
|
// 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
|
|
Rover(ctx context.Context, in *RoverRequest, opts ...grpc.CallOption) (*RoverResponse, error)
|
|
}
|
|
|
|
type roveClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewRoveClient(cc grpc.ClientConnInterface) RoveClient {
|
|
return &roveClient{cc}
|
|
}
|
|
|
|
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...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *roveClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) {
|
|
out := new(RegisterResponse)
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Register", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *roveClient) Commands(ctx context.Context, in *CommandsRequest, opts ...grpc.CallOption) (*CommandsResponse, error) {
|
|
out := new(CommandsResponse)
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Commands", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *roveClient) Radar(ctx context.Context, in *RadarRequest, opts ...grpc.CallOption) (*RadarResponse, error) {
|
|
out := new(RadarResponse)
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Radar", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *roveClient) Rover(ctx context.Context, in *RoverRequest, opts ...grpc.CallOption) (*RoverResponse, error) {
|
|
out := new(RoverResponse)
|
|
err := c.cc.Invoke(ctx, "/rove.Rove/Rover", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// RoveServer is the server API for Rove service.
|
|
type RoveServer interface {
|
|
// Server status
|
|
//
|
|
// Responds with various details about the current server status
|
|
Status(context.Context, *StatusRequest) (*StatusResponse, error)
|
|
// Register an account
|
|
//
|
|
// Tries to register an account with the given name
|
|
Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
|
|
// Send commands to rover
|
|
//
|
|
// Sending commands to this endpoint will queue them to be executed during the following ticks, in the order sent
|
|
Commands(context.Context, *CommandsRequest) (*CommandsResponse, error)
|
|
// 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
|
|
Rover(context.Context, *RoverRequest) (*RoverResponse, error)
|
|
}
|
|
|
|
// UnimplementedRoveServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedRoveServer struct {
|
|
}
|
|
|
|
func (*UnimplementedRoveServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
|
|
}
|
|
func (*UnimplementedRoveServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
|
|
}
|
|
func (*UnimplementedRoveServer) Commands(context.Context, *CommandsRequest) (*CommandsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Commands not implemented")
|
|
}
|
|
func (*UnimplementedRoveServer) Radar(context.Context, *RadarRequest) (*RadarResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Radar not implemented")
|
|
}
|
|
func (*UnimplementedRoveServer) Rover(context.Context, *RoverRequest) (*RoverResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Rover not implemented")
|
|
}
|
|
|
|
func RegisterRoveServer(s *grpc.Server, srv RoveServer) {
|
|
s.RegisterService(&_Rove_serviceDesc, srv)
|
|
}
|
|
|
|
func _Rove_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StatusRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RoveServer).Status(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/rove.Rove/Status",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RoveServer).Status(ctx, req.(*StatusRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rove_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RegisterRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RoveServer).Register(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/rove.Rove/Register",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RoveServer).Register(ctx, req.(*RegisterRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rove_Commands_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CommandsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RoveServer).Commands(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/rove.Rove/Commands",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RoveServer).Commands(ctx, req.(*CommandsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rove_Radar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RadarRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RoveServer).Radar(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/rove.Rove/Radar",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RoveServer).Radar(ctx, req.(*RadarRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Rove_Rover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RoverRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RoveServer).Rover(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/rove.Rove/Rover",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RoveServer).Rover(ctx, req.(*RoverRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Rove_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "rove.Rove",
|
|
HandlerType: (*RoveServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Status",
|
|
Handler: _Rove_Status_Handler,
|
|
},
|
|
{
|
|
MethodName: "Register",
|
|
Handler: _Rove_Register_Handler,
|
|
},
|
|
{
|
|
MethodName: "Commands",
|
|
Handler: _Rove_Commands_Handler,
|
|
},
|
|
{
|
|
MethodName: "Radar",
|
|
Handler: _Rove_Radar_Handler,
|
|
},
|
|
{
|
|
MethodName: "Rover",
|
|
Handler: _Rove_Rover_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "rove/rove.proto",
|
|
}
|