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