715 lines
23 KiB
Go
715 lines
23 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.1
|
|
// protoc v6.30.1
|
|
// source: command.proto
|
|
|
|
package grpc
|
|
|
|
import (
|
|
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)
|
|
)
|
|
|
|
type Command struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Types that are assignable to CommandType:
|
|
//
|
|
// *Command_AddDestination
|
|
// *Command_RemoveDestination
|
|
// *Command_StartDestination
|
|
// *Command_StopDestination
|
|
// *Command_CloseOtherInstances
|
|
// *Command_KillServer
|
|
// *Command_StartHandshake
|
|
CommandType isCommand_CommandType `protobuf_oneof:"command_type"`
|
|
}
|
|
|
|
func (x *Command) Reset() {
|
|
*x = Command{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_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_command_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_command_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (m *Command) GetCommandType() isCommand_CommandType {
|
|
if m != nil {
|
|
return m.CommandType
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetAddDestination() *AddDestinationCommand {
|
|
if x, ok := x.GetCommandType().(*Command_AddDestination); ok {
|
|
return x.AddDestination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetRemoveDestination() *RemoveDestinationCommand {
|
|
if x, ok := x.GetCommandType().(*Command_RemoveDestination); ok {
|
|
return x.RemoveDestination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetStartDestination() *StartDestinationCommand {
|
|
if x, ok := x.GetCommandType().(*Command_StartDestination); ok {
|
|
return x.StartDestination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetStopDestination() *StopDestinationCommand {
|
|
if x, ok := x.GetCommandType().(*Command_StopDestination); ok {
|
|
return x.StopDestination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetCloseOtherInstances() *CloseOtherInstancesCommand {
|
|
if x, ok := x.GetCommandType().(*Command_CloseOtherInstances); ok {
|
|
return x.CloseOtherInstances
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetKillServer() *KillServerCommand {
|
|
if x, ok := x.GetCommandType().(*Command_KillServer); ok {
|
|
return x.KillServer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Command) GetStartHandshake() *StartHandshakeCommand {
|
|
if x, ok := x.GetCommandType().(*Command_StartHandshake); ok {
|
|
return x.StartHandshake
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isCommand_CommandType interface {
|
|
isCommand_CommandType()
|
|
}
|
|
|
|
type Command_AddDestination struct {
|
|
AddDestination *AddDestinationCommand `protobuf:"bytes,1,opt,name=add_destination,json=addDestination,proto3,oneof"`
|
|
}
|
|
|
|
type Command_RemoveDestination struct {
|
|
RemoveDestination *RemoveDestinationCommand `protobuf:"bytes,2,opt,name=remove_destination,json=removeDestination,proto3,oneof"`
|
|
}
|
|
|
|
type Command_StartDestination struct {
|
|
StartDestination *StartDestinationCommand `protobuf:"bytes,3,opt,name=start_destination,json=startDestination,proto3,oneof"`
|
|
}
|
|
|
|
type Command_StopDestination struct {
|
|
StopDestination *StopDestinationCommand `protobuf:"bytes,4,opt,name=stop_destination,json=stopDestination,proto3,oneof"`
|
|
}
|
|
|
|
type Command_CloseOtherInstances struct {
|
|
CloseOtherInstances *CloseOtherInstancesCommand `protobuf:"bytes,5,opt,name=close_other_instances,json=closeOtherInstances,proto3,oneof"`
|
|
}
|
|
|
|
type Command_KillServer struct {
|
|
KillServer *KillServerCommand `protobuf:"bytes,6,opt,name=kill_server,json=killServer,proto3,oneof"`
|
|
}
|
|
|
|
type Command_StartHandshake struct {
|
|
StartHandshake *StartHandshakeCommand `protobuf:"bytes,7,opt,name=start_handshake,json=startHandshake,proto3,oneof"`
|
|
}
|
|
|
|
func (*Command_AddDestination) isCommand_CommandType() {}
|
|
|
|
func (*Command_RemoveDestination) isCommand_CommandType() {}
|
|
|
|
func (*Command_StartDestination) isCommand_CommandType() {}
|
|
|
|
func (*Command_StopDestination) isCommand_CommandType() {}
|
|
|
|
func (*Command_CloseOtherInstances) isCommand_CommandType() {}
|
|
|
|
func (*Command_KillServer) isCommand_CommandType() {}
|
|
|
|
func (*Command_StartHandshake) isCommand_CommandType() {}
|
|
|
|
type AddDestinationCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *AddDestinationCommand) Reset() {
|
|
*x = AddDestinationCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *AddDestinationCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddDestinationCommand) ProtoMessage() {}
|
|
|
|
func (x *AddDestinationCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 AddDestinationCommand.ProtoReflect.Descriptor instead.
|
|
func (*AddDestinationCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AddDestinationCommand) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddDestinationCommand) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveDestinationCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *RemoveDestinationCommand) Reset() {
|
|
*x = RemoveDestinationCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RemoveDestinationCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveDestinationCommand) ProtoMessage() {}
|
|
|
|
func (x *RemoveDestinationCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 RemoveDestinationCommand.ProtoReflect.Descriptor instead.
|
|
func (*RemoveDestinationCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RemoveDestinationCommand) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StartDestinationCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *StartDestinationCommand) Reset() {
|
|
*x = StartDestinationCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StartDestinationCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartDestinationCommand) ProtoMessage() {}
|
|
|
|
func (x *StartDestinationCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 StartDestinationCommand.ProtoReflect.Descriptor instead.
|
|
func (*StartDestinationCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *StartDestinationCommand) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StopDestinationCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *StopDestinationCommand) Reset() {
|
|
*x = StopDestinationCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StopDestinationCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StopDestinationCommand) ProtoMessage() {}
|
|
|
|
func (x *StopDestinationCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 StopDestinationCommand.ProtoReflect.Descriptor instead.
|
|
func (*StopDestinationCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *StopDestinationCommand) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CloseOtherInstancesCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *CloseOtherInstancesCommand) Reset() {
|
|
*x = CloseOtherInstancesCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CloseOtherInstancesCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CloseOtherInstancesCommand) ProtoMessage() {}
|
|
|
|
func (x *CloseOtherInstancesCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 CloseOtherInstancesCommand.ProtoReflect.Descriptor instead.
|
|
func (*CloseOtherInstancesCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type KillServerCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *KillServerCommand) Reset() {
|
|
*x = KillServerCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *KillServerCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*KillServerCommand) ProtoMessage() {}
|
|
|
|
func (x *KillServerCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 KillServerCommand.ProtoReflect.Descriptor instead.
|
|
func (*KillServerCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
type StartHandshakeCommand struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *StartHandshakeCommand) Reset() {
|
|
*x = StartHandshakeCommand{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_command_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StartHandshakeCommand) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartHandshakeCommand) ProtoMessage() {}
|
|
|
|
func (x *StartHandshakeCommand) ProtoReflect() protoreflect.Message {
|
|
mi := &file_command_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 StartHandshakeCommand.ProtoReflect.Descriptor instead.
|
|
func (*StartHandshakeCommand) Descriptor() ([]byte, []int) {
|
|
return file_command_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
var File_command_proto protoreflect.FileDescriptor
|
|
|
|
var file_command_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x03, 0x61, 0x70, 0x69, 0x22, 0xa0, 0x04, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
0x12, 0x45, 0x0a, 0x0f, 0x61, 0x64, 0x64, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
0x41, 0x64, 0x64, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
|
|
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x64, 0x64, 0x44, 0x65, 0x73, 0x74,
|
|
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x12, 0x72, 0x65, 0x6d, 0x6f, 0x76,
|
|
0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
|
0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
0x6e, 0x64, 0x48, 0x00, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x73, 0x74,
|
|
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x72, 0x74,
|
|
0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
|
|
0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x65,
|
|
0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
0x48, 0x00, 0x52, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x10, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x64, 0x65, 0x73,
|
|
0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x73,
|
|
0x74, 0x6f, 0x70, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x55,
|
|
0x0a, 0x15, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x6e,
|
|
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
|
|
0x61, 0x70, 0x69, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x49, 0x6e,
|
|
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00,
|
|
0x52, 0x13, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74,
|
|
0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x73, 0x65,
|
|
0x72, 0x76, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69,
|
|
0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x6b, 0x69, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
|
|
0x12, 0x45, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68,
|
|
0x61, 0x6b, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x43, 0x6f,
|
|
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x61,
|
|
0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
|
|
0x6e, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3d, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x44, 0x65,
|
|
0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x2c, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
|
0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x03, 0x75, 0x72, 0x6c, 0x22, 0x2b, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x72, 0x74, 0x44, 0x65, 0x73,
|
|
0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12,
|
|
0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
|
|
0x6c, 0x22, 0x2a, 0x0a, 0x16, 0x53, 0x74, 0x6f, 0x70, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
|
0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x1c, 0x0a,
|
|
0x1a, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61,
|
|
0x6e, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x4b,
|
|
0x69, 0x6c, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
0x22, 0x17, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61,
|
|
0x6b, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74,
|
|
0x2e, 0x6e, 0x65, 0x74, 0x66, 0x6c, 0x75, 0x78, 0x2e, 0x69, 0x6f, 0x2f, 0x72, 0x6f, 0x62, 0x2f,
|
|
0x6f, 0x63, 0x74, 0x6f, 0x70, 0x6c, 0x65, 0x78, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
|
|
0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x67, 0x72, 0x70, 0x63,
|
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_command_proto_rawDescOnce sync.Once
|
|
file_command_proto_rawDescData = file_command_proto_rawDesc
|
|
)
|
|
|
|
func file_command_proto_rawDescGZIP() []byte {
|
|
file_command_proto_rawDescOnce.Do(func() {
|
|
file_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_command_proto_rawDescData)
|
|
})
|
|
return file_command_proto_rawDescData
|
|
}
|
|
|
|
var file_command_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
var file_command_proto_goTypes = []interface{}{
|
|
(*Command)(nil), // 0: api.Command
|
|
(*AddDestinationCommand)(nil), // 1: api.AddDestinationCommand
|
|
(*RemoveDestinationCommand)(nil), // 2: api.RemoveDestinationCommand
|
|
(*StartDestinationCommand)(nil), // 3: api.StartDestinationCommand
|
|
(*StopDestinationCommand)(nil), // 4: api.StopDestinationCommand
|
|
(*CloseOtherInstancesCommand)(nil), // 5: api.CloseOtherInstancesCommand
|
|
(*KillServerCommand)(nil), // 6: api.KillServerCommand
|
|
(*StartHandshakeCommand)(nil), // 7: api.StartHandshakeCommand
|
|
}
|
|
var file_command_proto_depIdxs = []int32{
|
|
1, // 0: api.Command.add_destination:type_name -> api.AddDestinationCommand
|
|
2, // 1: api.Command.remove_destination:type_name -> api.RemoveDestinationCommand
|
|
3, // 2: api.Command.start_destination:type_name -> api.StartDestinationCommand
|
|
4, // 3: api.Command.stop_destination:type_name -> api.StopDestinationCommand
|
|
5, // 4: api.Command.close_other_instances:type_name -> api.CloseOtherInstancesCommand
|
|
6, // 5: api.Command.kill_server:type_name -> api.KillServerCommand
|
|
7, // 6: api.Command.start_handshake:type_name -> api.StartHandshakeCommand
|
|
7, // [7:7] is the sub-list for method output_type
|
|
7, // [7:7] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_command_proto_init() }
|
|
func file_command_proto_init() {
|
|
if File_command_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_command_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_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*AddDestinationCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*RemoveDestinationCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StartDestinationCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StopDestinationCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CloseOtherInstancesCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*KillServerCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StartHandshakeCommand); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_command_proto_msgTypes[0].OneofWrappers = []interface{}{
|
|
(*Command_AddDestination)(nil),
|
|
(*Command_RemoveDestination)(nil),
|
|
(*Command_StartDestination)(nil),
|
|
(*Command_StopDestination)(nil),
|
|
(*Command_CloseOtherInstances)(nil),
|
|
(*Command_KillServer)(nil),
|
|
(*Command_StartHandshake)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_command_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 8,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_command_proto_goTypes,
|
|
DependencyIndexes: file_command_proto_depIdxs,
|
|
MessageInfos: file_command_proto_msgTypes,
|
|
}.Build()
|
|
File_command_proto = out.File
|
|
file_command_proto_rawDesc = nil
|
|
file_command_proto_goTypes = nil
|
|
file_command_proto_depIdxs = nil
|
|
}
|