github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/app/commander/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v4.25.3 5 // source: app/commander/config.proto 6 7 package commander 8 9 import ( 10 serial "github.com/xtls/xray-core/common/serial" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // Config is the settings for Commander. 25 type Config struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // Tag of the outbound handler that handles grpc connections. 31 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 32 // Network address of commander grpc service. 33 Listen string `protobuf:"bytes,3,opt,name=listen,proto3" json:"listen,omitempty"` 34 // Services that supported by this server. All services must implement Service 35 // interface. 36 Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"` 37 } 38 39 func (x *Config) Reset() { 40 *x = Config{} 41 if protoimpl.UnsafeEnabled { 42 mi := &file_app_commander_config_proto_msgTypes[0] 43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 ms.StoreMessageInfo(mi) 45 } 46 } 47 48 func (x *Config) String() string { 49 return protoimpl.X.MessageStringOf(x) 50 } 51 52 func (*Config) ProtoMessage() {} 53 54 func (x *Config) ProtoReflect() protoreflect.Message { 55 mi := &file_app_commander_config_proto_msgTypes[0] 56 if protoimpl.UnsafeEnabled && x != nil { 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 if ms.LoadMessageInfo() == nil { 59 ms.StoreMessageInfo(mi) 60 } 61 return ms 62 } 63 return mi.MessageOf(x) 64 } 65 66 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 67 func (*Config) Descriptor() ([]byte, []int) { 68 return file_app_commander_config_proto_rawDescGZIP(), []int{0} 69 } 70 71 func (x *Config) GetTag() string { 72 if x != nil { 73 return x.Tag 74 } 75 return "" 76 } 77 78 func (x *Config) GetListen() string { 79 if x != nil { 80 return x.Listen 81 } 82 return "" 83 } 84 85 func (x *Config) GetService() []*serial.TypedMessage { 86 if x != nil { 87 return x.Service 88 } 89 return nil 90 } 91 92 // ReflectionConfig is the placeholder config for ReflectionService. 93 type ReflectionConfig struct { 94 state protoimpl.MessageState 95 sizeCache protoimpl.SizeCache 96 unknownFields protoimpl.UnknownFields 97 } 98 99 func (x *ReflectionConfig) Reset() { 100 *x = ReflectionConfig{} 101 if protoimpl.UnsafeEnabled { 102 mi := &file_app_commander_config_proto_msgTypes[1] 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 ms.StoreMessageInfo(mi) 105 } 106 } 107 108 func (x *ReflectionConfig) String() string { 109 return protoimpl.X.MessageStringOf(x) 110 } 111 112 func (*ReflectionConfig) ProtoMessage() {} 113 114 func (x *ReflectionConfig) ProtoReflect() protoreflect.Message { 115 mi := &file_app_commander_config_proto_msgTypes[1] 116 if protoimpl.UnsafeEnabled && x != nil { 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 if ms.LoadMessageInfo() == nil { 119 ms.StoreMessageInfo(mi) 120 } 121 return ms 122 } 123 return mi.MessageOf(x) 124 } 125 126 // Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead. 127 func (*ReflectionConfig) Descriptor() ([]byte, []int) { 128 return file_app_commander_config_proto_rawDescGZIP(), []int{1} 129 } 130 131 var File_app_commander_config_proto protoreflect.FileDescriptor 132 133 var file_app_commander_config_proto_rawDesc = []byte{ 134 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f, 135 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72, 136 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 137 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 138 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 139 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 140 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 141 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 142 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 143 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 144 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 145 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 146 0x69, 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 147 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 148 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 149 0x72, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 150 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 151 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02, 0x12, 0x58, 152 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 153 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 154 } 155 156 var ( 157 file_app_commander_config_proto_rawDescOnce sync.Once 158 file_app_commander_config_proto_rawDescData = file_app_commander_config_proto_rawDesc 159 ) 160 161 func file_app_commander_config_proto_rawDescGZIP() []byte { 162 file_app_commander_config_proto_rawDescOnce.Do(func() { 163 file_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_commander_config_proto_rawDescData) 164 }) 165 return file_app_commander_config_proto_rawDescData 166 } 167 168 var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 169 var file_app_commander_config_proto_goTypes = []interface{}{ 170 (*Config)(nil), // 0: xray.app.commander.Config 171 (*ReflectionConfig)(nil), // 1: xray.app.commander.ReflectionConfig 172 (*serial.TypedMessage)(nil), // 2: xray.common.serial.TypedMessage 173 } 174 var file_app_commander_config_proto_depIdxs = []int32{ 175 2, // 0: xray.app.commander.Config.service:type_name -> xray.common.serial.TypedMessage 176 1, // [1:1] is the sub-list for method output_type 177 1, // [1:1] is the sub-list for method input_type 178 1, // [1:1] is the sub-list for extension type_name 179 1, // [1:1] is the sub-list for extension extendee 180 0, // [0:1] is the sub-list for field type_name 181 } 182 183 func init() { file_app_commander_config_proto_init() } 184 func file_app_commander_config_proto_init() { 185 if File_app_commander_config_proto != nil { 186 return 187 } 188 if !protoimpl.UnsafeEnabled { 189 file_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 190 switch v := v.(*Config); i { 191 case 0: 192 return &v.state 193 case 1: 194 return &v.sizeCache 195 case 2: 196 return &v.unknownFields 197 default: 198 return nil 199 } 200 } 201 file_app_commander_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 202 switch v := v.(*ReflectionConfig); i { 203 case 0: 204 return &v.state 205 case 1: 206 return &v.sizeCache 207 case 2: 208 return &v.unknownFields 209 default: 210 return nil 211 } 212 } 213 } 214 type x struct{} 215 out := protoimpl.TypeBuilder{ 216 File: protoimpl.DescBuilder{ 217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 218 RawDescriptor: file_app_commander_config_proto_rawDesc, 219 NumEnums: 0, 220 NumMessages: 2, 221 NumExtensions: 0, 222 NumServices: 0, 223 }, 224 GoTypes: file_app_commander_config_proto_goTypes, 225 DependencyIndexes: file_app_commander_config_proto_depIdxs, 226 MessageInfos: file_app_commander_config_proto_msgTypes, 227 }.Build() 228 File_app_commander_config_proto = out.File 229 file_app_commander_config_proto_rawDesc = nil 230 file_app_commander_config_proto_goTypes = nil 231 file_app_commander_config_proto_depIdxs = nil 232 }