|
1 | 1 | package commander
|
2 | 2 |
|
3 | 3 | import (
|
4 |
| - fmt "fmt" |
5 | 4 | proto "github.com/golang/protobuf/proto"
|
6 |
| - math "math" |
| 5 | + protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 6 | + protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 7 | + reflect "reflect" |
| 8 | + sync "sync" |
7 | 9 | serial "v2ray.com/core/common/serial"
|
8 | 10 | )
|
9 | 11 |
|
10 |
| -// Reference imports to suppress errors if they are not otherwise used. |
11 |
| -var _ = proto.Marshal |
12 |
| -var _ = fmt.Errorf |
13 |
| -var _ = math.Inf |
| 12 | +const ( |
| 13 | + // Verify that this generated code is sufficiently up-to-date. |
| 14 | + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 15 | + // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 16 | + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 17 | +) |
14 | 18 |
|
15 |
| -// This is a compile-time assertion to ensure that this generated file |
16 |
| -// is compatible with the proto package it is being compiled against. |
17 |
| -// A compilation error at this line likely means your copy of the |
18 |
| -// proto package needs to be updated. |
19 |
| -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 19 | +// This is a compile-time assertion that a sufficiently up-to-date version |
| 20 | +// of the legacy proto package is being used. |
| 21 | +const _ = proto.ProtoPackageIsVersion4 |
20 | 22 |
|
21 | 23 | // Config is the settings for Commander.
|
22 | 24 | type Config struct {
|
| 25 | + state protoimpl.MessageState |
| 26 | + sizeCache protoimpl.SizeCache |
| 27 | + unknownFields protoimpl.UnknownFields |
| 28 | + |
23 | 29 | // Tag of the outbound handler that handles grpc connections.
|
24 | 30 | Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
|
25 | 31 | // Services that supported by this server. All services must implement Service interface.
|
26 |
| - Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"` |
27 |
| - XXX_NoUnkeyedLiteral struct{} `json:"-"` |
28 |
| - XXX_unrecognized []byte `json:"-"` |
29 |
| - XXX_sizecache int32 `json:"-"` |
| 32 | + Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"` |
30 | 33 | }
|
31 | 34 |
|
32 |
| -func (m *Config) Reset() { *m = Config{} } |
33 |
| -func (m *Config) String() string { return proto.CompactTextString(m) } |
34 |
| -func (*Config) ProtoMessage() {} |
35 |
| -func (*Config) Descriptor() ([]byte, []int) { |
36 |
| - return fileDescriptor_4af9cfd3f0e2019e, []int{0} |
| 35 | +func (x *Config) Reset() { |
| 36 | + *x = Config{} |
| 37 | + if protoimpl.UnsafeEnabled { |
| 38 | + mi := &file_v2ray_com_core_app_commander_config_proto_msgTypes[0] |
| 39 | + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 40 | + ms.StoreMessageInfo(mi) |
| 41 | + } |
37 | 42 | }
|
38 | 43 |
|
39 |
| -func (m *Config) XXX_Unmarshal(b []byte) error { |
40 |
| - return xxx_messageInfo_Config.Unmarshal(m, b) |
41 |
| -} |
42 |
| -func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
43 |
| - return xxx_messageInfo_Config.Marshal(b, m, deterministic) |
| 44 | +func (x *Config) String() string { |
| 45 | + return protoimpl.X.MessageStringOf(x) |
44 | 46 | }
|
45 |
| -func (m *Config) XXX_Merge(src proto.Message) { |
46 |
| - xxx_messageInfo_Config.Merge(m, src) |
47 |
| -} |
48 |
| -func (m *Config) XXX_Size() int { |
49 |
| - return xxx_messageInfo_Config.Size(m) |
50 |
| -} |
51 |
| -func (m *Config) XXX_DiscardUnknown() { |
52 |
| - xxx_messageInfo_Config.DiscardUnknown(m) |
| 47 | + |
| 48 | +func (*Config) ProtoMessage() {} |
| 49 | + |
| 50 | +func (x *Config) ProtoReflect() protoreflect.Message { |
| 51 | + mi := &file_v2ray_com_core_app_commander_config_proto_msgTypes[0] |
| 52 | + if protoimpl.UnsafeEnabled && x != nil { |
| 53 | + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 54 | + if ms.LoadMessageInfo() == nil { |
| 55 | + ms.StoreMessageInfo(mi) |
| 56 | + } |
| 57 | + return ms |
| 58 | + } |
| 59 | + return mi.MessageOf(x) |
53 | 60 | }
|
54 | 61 |
|
55 |
| -var xxx_messageInfo_Config proto.InternalMessageInfo |
| 62 | +// Deprecated: Use Config.ProtoReflect.Descriptor instead. |
| 63 | +func (*Config) Descriptor() ([]byte, []int) { |
| 64 | + return file_v2ray_com_core_app_commander_config_proto_rawDescGZIP(), []int{0} |
| 65 | +} |
56 | 66 |
|
57 |
| -func (m *Config) GetTag() string { |
58 |
| - if m != nil { |
59 |
| - return m.Tag |
| 67 | +func (x *Config) GetTag() string { |
| 68 | + if x != nil { |
| 69 | + return x.Tag |
60 | 70 | }
|
61 | 71 | return ""
|
62 | 72 | }
|
63 | 73 |
|
64 |
| -func (m *Config) GetService() []*serial.TypedMessage { |
65 |
| - if m != nil { |
66 |
| - return m.Service |
| 74 | +func (x *Config) GetService() []*serial.TypedMessage { |
| 75 | + if x != nil { |
| 76 | + return x.Service |
67 | 77 | }
|
68 | 78 | return nil
|
69 | 79 | }
|
70 | 80 |
|
71 |
| -func init() { |
72 |
| - proto.RegisterType((*Config)(nil), "v2ray.core.app.commander.Config") |
| 81 | +var File_v2ray_com_core_app_commander_config_proto protoreflect.FileDescriptor |
| 82 | + |
| 83 | +var file_v2ray_com_core_app_commander_config_proto_rawDesc = []byte{ |
| 84 | + 0x0a, 0x29, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, |
| 85 | + 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f, 0x63, |
| 86 | + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32, 0x72, |
| 87 | + 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, |
| 88 | + 0x61, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x30, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, |
| 89 | + 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, |
| 90 | + 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, |
| 91 | + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 92 | + 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, |
| 93 | + 0x74, 0x61, 0x67, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, |
| 94 | + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, |
| 95 | + 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, |
| 96 | + 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x73, 0x65, |
| 97 | + 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x46, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, |
| 98 | + 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, |
| 99 | + 0x61, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, |
| 100 | + 0x65, 0x72, 0xaa, 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, |
| 101 | + 0x41, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, |
| 102 | + 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 103 | +} |
| 104 | + |
| 105 | +var ( |
| 106 | + file_v2ray_com_core_app_commander_config_proto_rawDescOnce sync.Once |
| 107 | + file_v2ray_com_core_app_commander_config_proto_rawDescData = file_v2ray_com_core_app_commander_config_proto_rawDesc |
| 108 | +) |
| 109 | + |
| 110 | +func file_v2ray_com_core_app_commander_config_proto_rawDescGZIP() []byte { |
| 111 | + file_v2ray_com_core_app_commander_config_proto_rawDescOnce.Do(func() { |
| 112 | + file_v2ray_com_core_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_app_commander_config_proto_rawDescData) |
| 113 | + }) |
| 114 | + return file_v2ray_com_core_app_commander_config_proto_rawDescData |
73 | 115 | }
|
74 | 116 |
|
75 |
| -func init() { |
76 |
| - proto.RegisterFile("v2ray.com/core/app/commander/config.proto", fileDescriptor_4af9cfd3f0e2019e) |
| 117 | +var file_v2ray_com_core_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 118 | +var file_v2ray_com_core_app_commander_config_proto_goTypes = []interface{}{ |
| 119 | + (*Config)(nil), // 0: v2ray.core.app.commander.Config |
| 120 | + (*serial.TypedMessage)(nil), // 1: v2ray.core.common.serial.TypedMessage |
| 121 | +} |
| 122 | +var file_v2ray_com_core_app_commander_config_proto_depIdxs = []int32{ |
| 123 | + 1, // 0: v2ray.core.app.commander.Config.service:type_name -> v2ray.core.common.serial.TypedMessage |
| 124 | + 1, // [1:1] is the sub-list for method output_type |
| 125 | + 1, // [1:1] is the sub-list for method input_type |
| 126 | + 1, // [1:1] is the sub-list for extension type_name |
| 127 | + 1, // [1:1] is the sub-list for extension extendee |
| 128 | + 0, // [0:1] is the sub-list for field type_name |
77 | 129 | }
|
78 | 130 |
|
79 |
| -var fileDescriptor_4af9cfd3f0e2019e = []byte{ |
80 |
| - // 212 bytes of a gzipped FileDescriptorProto |
81 |
| - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2c, 0x33, 0x2a, 0x4a, |
82 |
| - 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0x2c, 0x28, 0xd0, 0x4f, |
83 |
| - 0xce, 0xcf, 0xcd, 0x4d, 0xcc, 0x4b, 0x49, 0x2d, 0xd2, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, |
84 |
| - 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x80, 0x29, 0x2d, 0x4a, 0xd5, 0x4b, 0x2c, 0x28, 0xd0, |
85 |
| - 0x83, 0x2b, 0x93, 0x32, 0x40, 0x33, 0x04, 0x24, 0x93, 0x9f, 0xa7, 0x5f, 0x9c, 0x5a, 0x94, 0x99, |
86 |
| - 0x98, 0xa3, 0x5f, 0x52, 0x59, 0x90, 0x9a, 0x12, 0x9f, 0x9b, 0x5a, 0x5c, 0x9c, 0x98, 0x9e, 0x0a, |
87 |
| - 0x31, 0x4b, 0x29, 0x86, 0x8b, 0xcd, 0x19, 0x6c, 0xb6, 0x90, 0x00, 0x17, 0x73, 0x49, 0x62, 0xba, |
88 |
| - 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x88, 0x29, 0xe4, 0xc0, 0xc5, 0x5e, 0x9c, 0x5a, 0x54, |
89 |
| - 0x96, 0x99, 0x9c, 0x2a, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x6d, 0xa4, 0xa6, 0x87, 0x64, 0x33, 0xc4, |
90 |
| - 0x6c, 0x3d, 0x88, 0xd9, 0x7a, 0x21, 0x20, 0xb3, 0x7d, 0x21, 0x46, 0x07, 0xc1, 0xb4, 0x39, 0xb9, |
91 |
| - 0x71, 0xc9, 0x24, 0xe7, 0xe7, 0xea, 0xe1, 0x72, 0x6f, 0x00, 0x63, 0x14, 0x27, 0x9c, 0xb3, 0x8a, |
92 |
| - 0x49, 0x22, 0xcc, 0x28, 0x28, 0xb1, 0x52, 0xcf, 0x19, 0xa4, 0xce, 0xb1, 0xa0, 0x40, 0xcf, 0x19, |
93 |
| - 0x26, 0x95, 0xc4, 0x06, 0x76, 0xac, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x29, 0x02, 0xa6, 0x19, |
94 |
| - 0x25, 0x01, 0x00, 0x00, |
| 131 | +func init() { file_v2ray_com_core_app_commander_config_proto_init() } |
| 132 | +func file_v2ray_com_core_app_commander_config_proto_init() { |
| 133 | + if File_v2ray_com_core_app_commander_config_proto != nil { |
| 134 | + return |
| 135 | + } |
| 136 | + if !protoimpl.UnsafeEnabled { |
| 137 | + file_v2ray_com_core_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 138 | + switch v := v.(*Config); i { |
| 139 | + case 0: |
| 140 | + return &v.state |
| 141 | + case 1: |
| 142 | + return &v.sizeCache |
| 143 | + case 2: |
| 144 | + return &v.unknownFields |
| 145 | + default: |
| 146 | + return nil |
| 147 | + } |
| 148 | + } |
| 149 | + } |
| 150 | + type x struct{} |
| 151 | + out := protoimpl.TypeBuilder{ |
| 152 | + File: protoimpl.DescBuilder{ |
| 153 | + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 154 | + RawDescriptor: file_v2ray_com_core_app_commander_config_proto_rawDesc, |
| 155 | + NumEnums: 0, |
| 156 | + NumMessages: 1, |
| 157 | + NumExtensions: 0, |
| 158 | + NumServices: 0, |
| 159 | + }, |
| 160 | + GoTypes: file_v2ray_com_core_app_commander_config_proto_goTypes, |
| 161 | + DependencyIndexes: file_v2ray_com_core_app_commander_config_proto_depIdxs, |
| 162 | + MessageInfos: file_v2ray_com_core_app_commander_config_proto_msgTypes, |
| 163 | + }.Build() |
| 164 | + File_v2ray_com_core_app_commander_config_proto = out.File |
| 165 | + file_v2ray_com_core_app_commander_config_proto_rawDesc = nil |
| 166 | + file_v2ray_com_core_app_commander_config_proto_goTypes = nil |
| 167 | + file_v2ray_com_core_app_commander_config_proto_depIdxs = nil |
95 | 168 | }
|
0 commit comments