github.com/eagleql/xray-core@v1.4.4/proxy/mtproto/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: proxy/mtproto/config.proto 6 7 package mtproto 8 9 import ( 10 protocol "github.com/eagleql/xray-core/common/protocol" 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 type Account struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` 35 } 36 37 func (x *Account) Reset() { 38 *x = Account{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_proxy_mtproto_config_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *Account) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*Account) ProtoMessage() {} 51 52 func (x *Account) ProtoReflect() protoreflect.Message { 53 mi := &file_proxy_mtproto_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 Account.ProtoReflect.Descriptor instead. 65 func (*Account) Descriptor() ([]byte, []int) { 66 return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *Account) GetSecret() []byte { 70 if x != nil { 71 return x.Secret 72 } 73 return nil 74 } 75 76 type ServerConfig struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 81 // User is a list of users that allowed to connect to this inbound. 82 // Although this is a repeated field, only the first user is effective for 83 // now. 84 User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"` 85 } 86 87 func (x *ServerConfig) Reset() { 88 *x = ServerConfig{} 89 if protoimpl.UnsafeEnabled { 90 mi := &file_proxy_mtproto_config_proto_msgTypes[1] 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 ms.StoreMessageInfo(mi) 93 } 94 } 95 96 func (x *ServerConfig) String() string { 97 return protoimpl.X.MessageStringOf(x) 98 } 99 100 func (*ServerConfig) ProtoMessage() {} 101 102 func (x *ServerConfig) ProtoReflect() protoreflect.Message { 103 mi := &file_proxy_mtproto_config_proto_msgTypes[1] 104 if protoimpl.UnsafeEnabled && x != nil { 105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 106 if ms.LoadMessageInfo() == nil { 107 ms.StoreMessageInfo(mi) 108 } 109 return ms 110 } 111 return mi.MessageOf(x) 112 } 113 114 // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead. 115 func (*ServerConfig) Descriptor() ([]byte, []int) { 116 return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{1} 117 } 118 119 func (x *ServerConfig) GetUser() []*protocol.User { 120 if x != nil { 121 return x.User 122 } 123 return nil 124 } 125 126 type ClientConfig struct { 127 state protoimpl.MessageState 128 sizeCache protoimpl.SizeCache 129 unknownFields protoimpl.UnknownFields 130 } 131 132 func (x *ClientConfig) Reset() { 133 *x = ClientConfig{} 134 if protoimpl.UnsafeEnabled { 135 mi := &file_proxy_mtproto_config_proto_msgTypes[2] 136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 137 ms.StoreMessageInfo(mi) 138 } 139 } 140 141 func (x *ClientConfig) String() string { 142 return protoimpl.X.MessageStringOf(x) 143 } 144 145 func (*ClientConfig) ProtoMessage() {} 146 147 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 148 mi := &file_proxy_mtproto_config_proto_msgTypes[2] 149 if protoimpl.UnsafeEnabled && x != nil { 150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 151 if ms.LoadMessageInfo() == nil { 152 ms.StoreMessageInfo(mi) 153 } 154 return ms 155 } 156 return mi.MessageOf(x) 157 } 158 159 // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead. 160 func (*ClientConfig) Descriptor() ([]byte, []int) { 161 return file_proxy_mtproto_config_proto_rawDescGZIP(), []int{2} 162 } 163 164 var File_proxy_mtproto_config_proto protoreflect.FileDescriptor 165 166 var file_proxy_mtproto_config_proto_rawDesc = []byte{ 167 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 168 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72, 169 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 170 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 171 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x21, 0x0a, 0x07, 172 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 173 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 174 0x3e, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 175 0x2e, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 176 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 177 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 178 0x0e, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 179 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 180 0x79, 0x2e, 0x6d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 181 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 182 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x6d, 0x74, 0x70, 183 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 184 0x79, 0x2e, 0x4d, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 185 0x33, 186 } 187 188 var ( 189 file_proxy_mtproto_config_proto_rawDescOnce sync.Once 190 file_proxy_mtproto_config_proto_rawDescData = file_proxy_mtproto_config_proto_rawDesc 191 ) 192 193 func file_proxy_mtproto_config_proto_rawDescGZIP() []byte { 194 file_proxy_mtproto_config_proto_rawDescOnce.Do(func() { 195 file_proxy_mtproto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_mtproto_config_proto_rawDescData) 196 }) 197 return file_proxy_mtproto_config_proto_rawDescData 198 } 199 200 var file_proxy_mtproto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 201 var file_proxy_mtproto_config_proto_goTypes = []interface{}{ 202 (*Account)(nil), // 0: xray.proxy.mtproto.Account 203 (*ServerConfig)(nil), // 1: xray.proxy.mtproto.ServerConfig 204 (*ClientConfig)(nil), // 2: xray.proxy.mtproto.ClientConfig 205 (*protocol.User)(nil), // 3: xray.common.protocol.User 206 } 207 var file_proxy_mtproto_config_proto_depIdxs = []int32{ 208 3, // 0: xray.proxy.mtproto.ServerConfig.user:type_name -> xray.common.protocol.User 209 1, // [1:1] is the sub-list for method output_type 210 1, // [1:1] is the sub-list for method input_type 211 1, // [1:1] is the sub-list for extension type_name 212 1, // [1:1] is the sub-list for extension extendee 213 0, // [0:1] is the sub-list for field type_name 214 } 215 216 func init() { file_proxy_mtproto_config_proto_init() } 217 func file_proxy_mtproto_config_proto_init() { 218 if File_proxy_mtproto_config_proto != nil { 219 return 220 } 221 if !protoimpl.UnsafeEnabled { 222 file_proxy_mtproto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 223 switch v := v.(*Account); i { 224 case 0: 225 return &v.state 226 case 1: 227 return &v.sizeCache 228 case 2: 229 return &v.unknownFields 230 default: 231 return nil 232 } 233 } 234 file_proxy_mtproto_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 235 switch v := v.(*ServerConfig); i { 236 case 0: 237 return &v.state 238 case 1: 239 return &v.sizeCache 240 case 2: 241 return &v.unknownFields 242 default: 243 return nil 244 } 245 } 246 file_proxy_mtproto_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 247 switch v := v.(*ClientConfig); i { 248 case 0: 249 return &v.state 250 case 1: 251 return &v.sizeCache 252 case 2: 253 return &v.unknownFields 254 default: 255 return nil 256 } 257 } 258 } 259 type x struct{} 260 out := protoimpl.TypeBuilder{ 261 File: protoimpl.DescBuilder{ 262 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 263 RawDescriptor: file_proxy_mtproto_config_proto_rawDesc, 264 NumEnums: 0, 265 NumMessages: 3, 266 NumExtensions: 0, 267 NumServices: 0, 268 }, 269 GoTypes: file_proxy_mtproto_config_proto_goTypes, 270 DependencyIndexes: file_proxy_mtproto_config_proto_depIdxs, 271 MessageInfos: file_proxy_mtproto_config_proto_msgTypes, 272 }.Build() 273 File_proxy_mtproto_config_proto = out.File 274 file_proxy_mtproto_config_proto_rawDesc = nil 275 file_proxy_mtproto_config_proto_goTypes = nil 276 file_proxy_mtproto_config_proto_depIdxs = nil 277 }