github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/app/commander/config.pb.go (about) 1 package commander 2 3 import ( 4 _ "github.com/v2fly/v2ray-core/v5/common/protoext" 5 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 6 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 7 anypb "google.golang.org/protobuf/types/known/anypb" 8 reflect "reflect" 9 sync "sync" 10 ) 11 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 ) 18 19 // Config is the settings for Commander. 20 type Config struct { 21 state protoimpl.MessageState 22 sizeCache protoimpl.SizeCache 23 unknownFields protoimpl.UnknownFields 24 25 // Tag of the outbound handler that handles grpc connections. 26 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 27 // Services that supported by this server. All services must implement Service 28 // interface. 29 Service []*anypb.Any `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"` 30 } 31 32 func (x *Config) Reset() { 33 *x = Config{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_app_commander_config_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *Config) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*Config) ProtoMessage() {} 46 47 func (x *Config) ProtoReflect() protoreflect.Message { 48 mi := &file_app_commander_config_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 60 func (*Config) Descriptor() ([]byte, []int) { 61 return file_app_commander_config_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *Config) GetTag() string { 65 if x != nil { 66 return x.Tag 67 } 68 return "" 69 } 70 71 func (x *Config) GetService() []*anypb.Any { 72 if x != nil { 73 return x.Service 74 } 75 return nil 76 } 77 78 // ReflectionConfig is the placeholder config for ReflectionService. 79 type ReflectionConfig struct { 80 state protoimpl.MessageState 81 sizeCache protoimpl.SizeCache 82 unknownFields protoimpl.UnknownFields 83 } 84 85 func (x *ReflectionConfig) Reset() { 86 *x = ReflectionConfig{} 87 if protoimpl.UnsafeEnabled { 88 mi := &file_app_commander_config_proto_msgTypes[1] 89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 90 ms.StoreMessageInfo(mi) 91 } 92 } 93 94 func (x *ReflectionConfig) String() string { 95 return protoimpl.X.MessageStringOf(x) 96 } 97 98 func (*ReflectionConfig) ProtoMessage() {} 99 100 func (x *ReflectionConfig) ProtoReflect() protoreflect.Message { 101 mi := &file_app_commander_config_proto_msgTypes[1] 102 if protoimpl.UnsafeEnabled && x != nil { 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 if ms.LoadMessageInfo() == nil { 105 ms.StoreMessageInfo(mi) 106 } 107 return ms 108 } 109 return mi.MessageOf(x) 110 } 111 112 // Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead. 113 func (*ReflectionConfig) Descriptor() ([]byte, []int) { 114 return file_app_commander_config_proto_rawDescGZIP(), []int{1} 115 } 116 117 type SimplifiedConfig struct { 118 state protoimpl.MessageState 119 sizeCache protoimpl.SizeCache 120 unknownFields protoimpl.UnknownFields 121 122 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 123 Name []string `protobuf:"bytes,2,rep,name=name,proto3" json:"name,omitempty"` 124 } 125 126 func (x *SimplifiedConfig) Reset() { 127 *x = SimplifiedConfig{} 128 if protoimpl.UnsafeEnabled { 129 mi := &file_app_commander_config_proto_msgTypes[2] 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 ms.StoreMessageInfo(mi) 132 } 133 } 134 135 func (x *SimplifiedConfig) String() string { 136 return protoimpl.X.MessageStringOf(x) 137 } 138 139 func (*SimplifiedConfig) ProtoMessage() {} 140 141 func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message { 142 mi := &file_app_commander_config_proto_msgTypes[2] 143 if protoimpl.UnsafeEnabled && x != nil { 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 if ms.LoadMessageInfo() == nil { 146 ms.StoreMessageInfo(mi) 147 } 148 return ms 149 } 150 return mi.MessageOf(x) 151 } 152 153 // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead. 154 func (*SimplifiedConfig) Descriptor() ([]byte, []int) { 155 return file_app_commander_config_proto_rawDescGZIP(), []int{2} 156 } 157 158 func (x *SimplifiedConfig) GetTag() string { 159 if x != nil { 160 return x.Tag 161 } 162 return "" 163 } 164 165 func (x *SimplifiedConfig) GetName() []string { 166 if x != nil { 167 return x.Name 168 } 169 return nil 170 } 171 172 var File_app_commander_config_proto protoreflect.FileDescriptor 173 174 var file_app_commander_config_proto_rawDesc = []byte{ 175 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f, 176 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32, 177 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 178 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 179 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 180 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 181 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 182 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 183 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 184 0x2e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 185 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 186 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 187 0x31, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 188 0x66, 0x69, 0x67, 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x19, 0x0a, 0x0b, 0x67, 0x72, 0x70, 0x63, 0x73, 189 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0a, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 190 0x6f, 0x6e, 0x22, 0x52, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 191 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 192 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 193 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x18, 0x82, 0xb5, 194 0x18, 0x14, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x09, 0x63, 0x6f, 0x6d, 195 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x69, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 196 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 197 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 198 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 199 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 200 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 201 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 202 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 203 } 204 205 var ( 206 file_app_commander_config_proto_rawDescOnce sync.Once 207 file_app_commander_config_proto_rawDescData = file_app_commander_config_proto_rawDesc 208 ) 209 210 func file_app_commander_config_proto_rawDescGZIP() []byte { 211 file_app_commander_config_proto_rawDescOnce.Do(func() { 212 file_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_commander_config_proto_rawDescData) 213 }) 214 return file_app_commander_config_proto_rawDescData 215 } 216 217 var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 218 var file_app_commander_config_proto_goTypes = []interface{}{ 219 (*Config)(nil), // 0: v2ray.core.app.commander.Config 220 (*ReflectionConfig)(nil), // 1: v2ray.core.app.commander.ReflectionConfig 221 (*SimplifiedConfig)(nil), // 2: v2ray.core.app.commander.SimplifiedConfig 222 (*anypb.Any)(nil), // 3: google.protobuf.Any 223 } 224 var file_app_commander_config_proto_depIdxs = []int32{ 225 3, // 0: v2ray.core.app.commander.Config.service:type_name -> google.protobuf.Any 226 1, // [1:1] is the sub-list for method output_type 227 1, // [1:1] is the sub-list for method input_type 228 1, // [1:1] is the sub-list for extension type_name 229 1, // [1:1] is the sub-list for extension extendee 230 0, // [0:1] is the sub-list for field type_name 231 } 232 233 func init() { file_app_commander_config_proto_init() } 234 func file_app_commander_config_proto_init() { 235 if File_app_commander_config_proto != nil { 236 return 237 } 238 if !protoimpl.UnsafeEnabled { 239 file_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 240 switch v := v.(*Config); i { 241 case 0: 242 return &v.state 243 case 1: 244 return &v.sizeCache 245 case 2: 246 return &v.unknownFields 247 default: 248 return nil 249 } 250 } 251 file_app_commander_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 252 switch v := v.(*ReflectionConfig); i { 253 case 0: 254 return &v.state 255 case 1: 256 return &v.sizeCache 257 case 2: 258 return &v.unknownFields 259 default: 260 return nil 261 } 262 } 263 file_app_commander_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 264 switch v := v.(*SimplifiedConfig); i { 265 case 0: 266 return &v.state 267 case 1: 268 return &v.sizeCache 269 case 2: 270 return &v.unknownFields 271 default: 272 return nil 273 } 274 } 275 } 276 type x struct{} 277 out := protoimpl.TypeBuilder{ 278 File: protoimpl.DescBuilder{ 279 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 280 RawDescriptor: file_app_commander_config_proto_rawDesc, 281 NumEnums: 0, 282 NumMessages: 3, 283 NumExtensions: 0, 284 NumServices: 0, 285 }, 286 GoTypes: file_app_commander_config_proto_goTypes, 287 DependencyIndexes: file_app_commander_config_proto_depIdxs, 288 MessageInfos: file_app_commander_config_proto_msgTypes, 289 }.Build() 290 File_app_commander_config_proto = out.File 291 file_app_commander_config_proto_rawDesc = nil 292 file_app_commander_config_proto_goTypes = nil 293 file_app_commander_config_proto_depIdxs = nil 294 }