mirror of
https://github.com/safing/portmaster.git
synced 2026-12-05 10:03:06 +00:00
242 lines
9.1 KiB
Go
242 lines
9.1 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.21.2
|
|
// source: decider.proto
|
|
|
|
package proto
|
|
|
|
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 DecideOnConnectionRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Connection *Connection `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
|
|
}
|
|
|
|
func (x *DecideOnConnectionRequest) Reset() {
|
|
*x = DecideOnConnectionRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_decider_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DecideOnConnectionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DecideOnConnectionRequest) ProtoMessage() {}
|
|
|
|
func (x *DecideOnConnectionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_decider_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 DecideOnConnectionRequest.ProtoReflect.Descriptor instead.
|
|
func (*DecideOnConnectionRequest) Descriptor() ([]byte, []int) {
|
|
return file_decider_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DecideOnConnectionRequest) GetConnection() *Connection {
|
|
if x != nil {
|
|
return x.Connection
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DecideOnConnectionResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Verdict Verdict `protobuf:"varint,1,opt,name=verdict,proto3,enum=safing.portmaster.plugin.proto.Verdict" json:"verdict,omitempty"`
|
|
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
}
|
|
|
|
func (x *DecideOnConnectionResponse) Reset() {
|
|
*x = DecideOnConnectionResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_decider_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DecideOnConnectionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DecideOnConnectionResponse) ProtoMessage() {}
|
|
|
|
func (x *DecideOnConnectionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_decider_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 DecideOnConnectionResponse.ProtoReflect.Descriptor instead.
|
|
func (*DecideOnConnectionResponse) Descriptor() ([]byte, []int) {
|
|
return file_decider_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DecideOnConnectionResponse) GetVerdict() Verdict {
|
|
if x != nil {
|
|
return x.Verdict
|
|
}
|
|
return Verdict_VERDICT_UNDECIDED
|
|
}
|
|
|
|
func (x *DecideOnConnectionResponse) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_decider_proto protoreflect.FileDescriptor
|
|
|
|
var file_decider_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x1e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74,
|
|
0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
|
0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67,
|
|
0x0a, 0x19, 0x44, 0x65, 0x63, 0x69, 0x64, 0x65, 0x4f, 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x0a, 0x63,
|
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
0x2a, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73,
|
|
0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e,
|
|
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x0a, 0x1a, 0x44, 0x65, 0x63, 0x69, 0x64,
|
|
0x65, 0x4f, 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e,
|
|
0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69,
|
|
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x52,
|
|
0x07, 0x76, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73,
|
|
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e,
|
|
0x32, 0xa0, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x63, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76,
|
|
0x69, 0x63, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x63, 0x69, 0x64, 0x65, 0x4f, 0x6e,
|
|
0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x2e, 0x73, 0x61, 0x66,
|
|
0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70,
|
|
0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x63, 0x69,
|
|
0x64, 0x65, 0x4f, 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70,
|
|
0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x64, 0x65, 0x4f, 0x6e, 0x43,
|
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
0x65, 0x22, 0x00, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_decider_proto_rawDescOnce sync.Once
|
|
file_decider_proto_rawDescData = file_decider_proto_rawDesc
|
|
)
|
|
|
|
func file_decider_proto_rawDescGZIP() []byte {
|
|
file_decider_proto_rawDescOnce.Do(func() {
|
|
file_decider_proto_rawDescData = protoimpl.X.CompressGZIP(file_decider_proto_rawDescData)
|
|
})
|
|
return file_decider_proto_rawDescData
|
|
}
|
|
|
|
var file_decider_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_decider_proto_goTypes = []interface{}{
|
|
(*DecideOnConnectionRequest)(nil), // 0: safing.portmaster.plugin.proto.DecideOnConnectionRequest
|
|
(*DecideOnConnectionResponse)(nil), // 1: safing.portmaster.plugin.proto.DecideOnConnectionResponse
|
|
(*Connection)(nil), // 2: safing.portmaster.plugin.proto.Connection
|
|
(Verdict)(0), // 3: safing.portmaster.plugin.proto.Verdict
|
|
}
|
|
var file_decider_proto_depIdxs = []int32{
|
|
2, // 0: safing.portmaster.plugin.proto.DecideOnConnectionRequest.connection:type_name -> safing.portmaster.plugin.proto.Connection
|
|
3, // 1: safing.portmaster.plugin.proto.DecideOnConnectionResponse.verdict:type_name -> safing.portmaster.plugin.proto.Verdict
|
|
0, // 2: safing.portmaster.plugin.proto.DeciderService.DecideOnConnection:input_type -> safing.portmaster.plugin.proto.DecideOnConnectionRequest
|
|
1, // 3: safing.portmaster.plugin.proto.DeciderService.DecideOnConnection:output_type -> safing.portmaster.plugin.proto.DecideOnConnectionResponse
|
|
3, // [3:4] is the sub-list for method output_type
|
|
2, // [2:3] 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_decider_proto_init() }
|
|
func file_decider_proto_init() {
|
|
if File_decider_proto != nil {
|
|
return
|
|
}
|
|
file_network_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_decider_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DecideOnConnectionRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_decider_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DecideOnConnectionResponse); 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_decider_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_decider_proto_goTypes,
|
|
DependencyIndexes: file_decider_proto_depIdxs,
|
|
MessageInfos: file_decider_proto_msgTypes,
|
|
}.Build()
|
|
File_decider_proto = out.File
|
|
file_decider_proto_rawDesc = nil
|
|
file_decider_proto_goTypes = nil
|
|
file_decider_proto_depIdxs = nil
|
|
}
|