// Control commands. Request-level version fields stay at this staged // revision; P4.1 removes them once the preamble owns compatibility. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: command.proto package wire import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // CommandOutcome is the closed terminal state of a command request. type CommandOutcome int32 const ( CommandOutcome_COMMAND_OUTCOME_UNSPECIFIED CommandOutcome = 0 CommandOutcome_COMMAND_OUTCOME_SUCCEEDED CommandOutcome = 1 CommandOutcome_COMMAND_OUTCOME_FAILED CommandOutcome = 2 CommandOutcome_COMMAND_OUTCOME_UNKNOWN CommandOutcome = 3 ) // Enum value maps for CommandOutcome. var ( CommandOutcome_name = map[int32]string{ 0: "COMMAND_OUTCOME_UNSPECIFIED", 1: "COMMAND_OUTCOME_SUCCEEDED", 2: "COMMAND_OUTCOME_FAILED", 3: "COMMAND_OUTCOME_UNKNOWN", } CommandOutcome_value = map[string]int32{ "COMMAND_OUTCOME_UNSPECIFIED": 0, "COMMAND_OUTCOME_SUCCEEDED": 1, "COMMAND_OUTCOME_FAILED": 2, "COMMAND_OUTCOME_UNKNOWN": 3, } ) func (x CommandOutcome) Enum() *CommandOutcome { p := new(CommandOutcome) *p = x return p } func (x CommandOutcome) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (CommandOutcome) Descriptor() protoreflect.EnumDescriptor { return file_command_proto_enumTypes[0].Descriptor() } func (CommandOutcome) Type() protoreflect.EnumType { return &file_command_proto_enumTypes[0] } func (x CommandOutcome) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use CommandOutcome.Descriptor instead. func (CommandOutcome) EnumDescriptor() ([]byte, []int) { return file_command_proto_rawDescGZIP(), []int{0} } // CommandRequest asks the daemon to run one control command. type CommandRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` RequestId uint64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Attached bool `protobuf:"varint,3,opt,name=attached,proto3" json:"attached,omitempty"` Self bool `protobuf:"varint,4,opt,name=self,proto3" json:"self,omitempty"` Slug string `protobuf:"bytes,5,opt,name=slug,proto3" json:"slug,omitempty"` Args []string `protobuf:"bytes,6,rep,name=args,proto3" json:"args,omitempty"` TargetSession string `protobuf:"bytes,7,opt,name=target_session,json=targetSession,proto3" json:"target_session,omitempty"` TargetTab string `protobuf:"bytes,8,opt,name=target_tab,json=targetTab,proto3" json:"target_tab,omitempty"` TargetPane string `protobuf:"bytes,9,opt,name=target_pane,json=targetPane,proto3" json:"target_pane,omitempty"` Json bool `protobuf:"varint,10,opt,name=json,proto3" json:"json,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CommandRequest) Reset() { *x = CommandRequest{} mi := &file_command_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CommandRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommandRequest) ProtoMessage() {} func (x *CommandRequest) ProtoReflect() protoreflect.Message { mi := &file_command_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CommandRequest.ProtoReflect.Descriptor instead. func (*CommandRequest) Descriptor() ([]byte, []int) { return file_command_proto_rawDescGZIP(), []int{0} } func (x *CommandRequest) GetVersion() uint32 { if x != nil { return x.Version } return 0 } func (x *CommandRequest) GetRequestId() uint64 { if x != nil { return x.RequestId } return 0 } func (x *CommandRequest) GetAttached() bool { if x != nil { return x.Attached } return false } func (x *CommandRequest) GetSelf() bool { if x != nil { return x.Self } return false } func (x *CommandRequest) GetSlug() string { if x != nil { return x.Slug } return "" } func (x *CommandRequest) GetArgs() []string { if x != nil { return x.Args } return nil } func (x *CommandRequest) GetTargetSession() string { if x != nil { return x.TargetSession } return "" } func (x *CommandRequest) GetTargetTab() string { if x != nil { return x.TargetTab } return "" } func (x *CommandRequest) GetTargetPane() string { if x != nil { return x.TargetPane } return "" } func (x *CommandRequest) GetJson() bool { if x != nil { return x.Json } return false } // CommandResult reports a control command's explicit terminal outcome. type CommandResult struct { state protoimpl.MessageState `protogen:"open.v1"` RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` Output string `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"` Outcome CommandOutcome `protobuf:"varint,6,opt,name=outcome,proto3,enum=vev.wire.v1.CommandOutcome" json:"outcome,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CommandResult) Reset() { *x = CommandResult{} mi := &file_command_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CommandResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommandResult) ProtoMessage() {} func (x *CommandResult) ProtoReflect() protoreflect.Message { mi := &file_command_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CommandResult.ProtoReflect.Descriptor instead. func (*CommandResult) Descriptor() ([]byte, []int) { return file_command_proto_rawDescGZIP(), []int{1} } func (x *CommandResult) GetRequestId() uint64 { if x != nil { return x.RequestId } return 0 } func (x *CommandResult) GetCode() uint32 { if x != nil { return x.Code } return 0 } func (x *CommandResult) GetText() string { if x != nil { return x.Text } return "" } func (x *CommandResult) GetOutput() string { if x != nil { return x.Output } return "" } func (x *CommandResult) GetOutcome() CommandOutcome { if x != nil { return x.Outcome } return CommandOutcome_COMMAND_OUTCOME_UNSPECIFIED } var File_command_proto protoreflect.FileDescriptor const file_command_proto_rawDesc = "" + "\n" + "\rcommand.proto\x12\vvev.wire.v1\"\x9c\x02\n" + "\x0eCommandRequest\x12\x18\n" + "\aversion\x18\x01 \x01(\rR\aversion\x12\x1d\n" + "\n" + "request_id\x18\x02 \x01(\x04R\trequestId\x12\x1a\n" + "\battached\x18\x03 \x01(\bR\battached\x12\x12\n" + "\x04self\x18\x04 \x01(\bR\x04self\x12\x12\n" + "\x04slug\x18\x05 \x01(\tR\x04slug\x12\x12\n" + "\x04args\x18\x06 \x03(\tR\x04args\x12%\n" + "\x0etarget_session\x18\a \x01(\tR\rtargetSession\x12\x1d\n" + "\n" + "target_tab\x18\b \x01(\tR\ttargetTab\x12\x1f\n" + "\vtarget_pane\x18\t \x01(\tR\n" + "targetPane\x12\x12\n" + "\x04json\x18\n" + " \x01(\bR\x04json\"\xaf\x01\n" + "\rCommandResult\x12\x1d\n" + "\n" + "request_id\x18\x01 \x01(\x04R\trequestId\x12\x12\n" + "\x04code\x18\x03 \x01(\rR\x04code\x12\x12\n" + "\x04text\x18\x04 \x01(\tR\x04text\x12\x16\n" + "\x06output\x18\x05 \x01(\tR\x06output\x125\n" + "\aoutcome\x18\x06 \x01(\x0e2\x1b.vev.wire.v1.CommandOutcomeR\aoutcomeJ\x04\b\x02\x10\x03R\x02ok*\x89\x01\n" + "\x0eCommandOutcome\x12\x1f\n" + "\x1bCOMMAND_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n" + "\x19COMMAND_OUTCOME_SUCCEEDED\x10\x01\x12\x1a\n" + "\x16COMMAND_OUTCOME_FAILED\x10\x02\x12\x1b\n" + "\x17COMMAND_OUTCOME_UNKNOWN\x10\x03B-Z+github.com/bnema/vev/internal/protocol/wireb\x06proto3" var ( file_command_proto_rawDescOnce sync.Once file_command_proto_rawDescData []byte ) func file_command_proto_rawDescGZIP() []byte { file_command_proto_rawDescOnce.Do(func() { file_command_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_command_proto_rawDesc), len(file_command_proto_rawDesc))) }) return file_command_proto_rawDescData } var file_command_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_command_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_command_proto_goTypes = []any{ (CommandOutcome)(0), // 0: vev.wire.v1.CommandOutcome (*CommandRequest)(nil), // 1: vev.wire.v1.CommandRequest (*CommandResult)(nil), // 2: vev.wire.v1.CommandResult } var file_command_proto_depIdxs = []int32{ 0, // 0: vev.wire.v1.CommandResult.outcome:type_name -> vev.wire.v1.CommandOutcome 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] 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 } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_command_proto_rawDesc), len(file_command_proto_rawDesc)), NumEnums: 1, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_command_proto_goTypes, DependencyIndexes: file_command_proto_depIdxs, EnumInfos: file_command_proto_enumTypes, MessageInfos: file_command_proto_msgTypes, }.Build() File_command_proto = out.File file_command_proto_goTypes = nil file_command_proto_depIdxs = nil }