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