github.com/moqsien/xraycore@v1.8.5/proxy/trojan/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: proxy/trojan/config.proto
     6  
     7  package trojan
     8  
     9  import (
    10  	protocol "github.com/moqsien/xraycore/common/protocol"
    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  type Account struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
    30  }
    31  
    32  func (x *Account) Reset() {
    33  	*x = Account{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_proxy_trojan_config_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *Account) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*Account) ProtoMessage() {}
    46  
    47  func (x *Account) ProtoReflect() protoreflect.Message {
    48  	mi := &file_proxy_trojan_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 Account.ProtoReflect.Descriptor instead.
    60  func (*Account) Descriptor() ([]byte, []int) {
    61  	return file_proxy_trojan_config_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *Account) GetPassword() string {
    65  	if x != nil {
    66  		return x.Password
    67  	}
    68  	return ""
    69  }
    70  
    71  type Fallback struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    77  	Alpn string `protobuf:"bytes,2,opt,name=alpn,proto3" json:"alpn,omitempty"`
    78  	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
    79  	Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
    80  	Dest string `protobuf:"bytes,5,opt,name=dest,proto3" json:"dest,omitempty"`
    81  	Xver uint64 `protobuf:"varint,6,opt,name=xver,proto3" json:"xver,omitempty"`
    82  }
    83  
    84  func (x *Fallback) Reset() {
    85  	*x = Fallback{}
    86  	if protoimpl.UnsafeEnabled {
    87  		mi := &file_proxy_trojan_config_proto_msgTypes[1]
    88  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    89  		ms.StoreMessageInfo(mi)
    90  	}
    91  }
    92  
    93  func (x *Fallback) String() string {
    94  	return protoimpl.X.MessageStringOf(x)
    95  }
    96  
    97  func (*Fallback) ProtoMessage() {}
    98  
    99  func (x *Fallback) ProtoReflect() protoreflect.Message {
   100  	mi := &file_proxy_trojan_config_proto_msgTypes[1]
   101  	if protoimpl.UnsafeEnabled && x != nil {
   102  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   103  		if ms.LoadMessageInfo() == nil {
   104  			ms.StoreMessageInfo(mi)
   105  		}
   106  		return ms
   107  	}
   108  	return mi.MessageOf(x)
   109  }
   110  
   111  // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
   112  func (*Fallback) Descriptor() ([]byte, []int) {
   113  	return file_proxy_trojan_config_proto_rawDescGZIP(), []int{1}
   114  }
   115  
   116  func (x *Fallback) GetName() string {
   117  	if x != nil {
   118  		return x.Name
   119  	}
   120  	return ""
   121  }
   122  
   123  func (x *Fallback) GetAlpn() string {
   124  	if x != nil {
   125  		return x.Alpn
   126  	}
   127  	return ""
   128  }
   129  
   130  func (x *Fallback) GetPath() string {
   131  	if x != nil {
   132  		return x.Path
   133  	}
   134  	return ""
   135  }
   136  
   137  func (x *Fallback) GetType() string {
   138  	if x != nil {
   139  		return x.Type
   140  	}
   141  	return ""
   142  }
   143  
   144  func (x *Fallback) GetDest() string {
   145  	if x != nil {
   146  		return x.Dest
   147  	}
   148  	return ""
   149  }
   150  
   151  func (x *Fallback) GetXver() uint64 {
   152  	if x != nil {
   153  		return x.Xver
   154  	}
   155  	return 0
   156  }
   157  
   158  type ClientConfig struct {
   159  	state         protoimpl.MessageState
   160  	sizeCache     protoimpl.SizeCache
   161  	unknownFields protoimpl.UnknownFields
   162  
   163  	Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
   164  }
   165  
   166  func (x *ClientConfig) Reset() {
   167  	*x = ClientConfig{}
   168  	if protoimpl.UnsafeEnabled {
   169  		mi := &file_proxy_trojan_config_proto_msgTypes[2]
   170  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   171  		ms.StoreMessageInfo(mi)
   172  	}
   173  }
   174  
   175  func (x *ClientConfig) String() string {
   176  	return protoimpl.X.MessageStringOf(x)
   177  }
   178  
   179  func (*ClientConfig) ProtoMessage() {}
   180  
   181  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
   182  	mi := &file_proxy_trojan_config_proto_msgTypes[2]
   183  	if protoimpl.UnsafeEnabled && x != nil {
   184  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   185  		if ms.LoadMessageInfo() == nil {
   186  			ms.StoreMessageInfo(mi)
   187  		}
   188  		return ms
   189  	}
   190  	return mi.MessageOf(x)
   191  }
   192  
   193  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
   194  func (*ClientConfig) Descriptor() ([]byte, []int) {
   195  	return file_proxy_trojan_config_proto_rawDescGZIP(), []int{2}
   196  }
   197  
   198  func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
   199  	if x != nil {
   200  		return x.Server
   201  	}
   202  	return nil
   203  }
   204  
   205  type ServerConfig struct {
   206  	state         protoimpl.MessageState
   207  	sizeCache     protoimpl.SizeCache
   208  	unknownFields protoimpl.UnknownFields
   209  
   210  	Users     []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
   211  	Fallbacks []*Fallback      `protobuf:"bytes,2,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
   212  }
   213  
   214  func (x *ServerConfig) Reset() {
   215  	*x = ServerConfig{}
   216  	if protoimpl.UnsafeEnabled {
   217  		mi := &file_proxy_trojan_config_proto_msgTypes[3]
   218  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   219  		ms.StoreMessageInfo(mi)
   220  	}
   221  }
   222  
   223  func (x *ServerConfig) String() string {
   224  	return protoimpl.X.MessageStringOf(x)
   225  }
   226  
   227  func (*ServerConfig) ProtoMessage() {}
   228  
   229  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
   230  	mi := &file_proxy_trojan_config_proto_msgTypes[3]
   231  	if protoimpl.UnsafeEnabled && x != nil {
   232  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   233  		if ms.LoadMessageInfo() == nil {
   234  			ms.StoreMessageInfo(mi)
   235  		}
   236  		return ms
   237  	}
   238  	return mi.MessageOf(x)
   239  }
   240  
   241  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
   242  func (*ServerConfig) Descriptor() ([]byte, []int) {
   243  	return file_proxy_trojan_config_proto_rawDescGZIP(), []int{3}
   244  }
   245  
   246  func (x *ServerConfig) GetUsers() []*protocol.User {
   247  	if x != nil {
   248  		return x.Users
   249  	}
   250  	return nil
   251  }
   252  
   253  func (x *ServerConfig) GetFallbacks() []*Fallback {
   254  	if x != nil {
   255  		return x.Fallbacks
   256  	}
   257  	return nil
   258  }
   259  
   260  var File_proxy_trojan_config_proto protoreflect.FileDescriptor
   261  
   262  var file_proxy_trojan_config_proto_rawDesc = []byte{
   263  	0x0a, 0x19, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2f, 0x63,
   264  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x78, 0x72, 0x61,
   265  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x1a, 0x1a,
   266  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
   267  	0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
   268  	0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76,
   269  	0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a,
   270  	0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73,
   271  	0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,
   272  	0x77, 0x6f, 0x72, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
   273  	0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   274  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x18, 0x02, 0x20,
   275  	0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
   276  	0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a,
   277  	0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
   278  	0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
   279  	0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 0x65, 0x72, 0x18, 0x06, 0x20,
   280  	0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x0c, 0x43, 0x6c, 0x69,
   281  	0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65, 0x72,
   282  	0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79,
   283  	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
   284  	0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52,
   285  	0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x7b, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
   286  	0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73,
   287  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
   288  	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73,
   289  	0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x09, 0x66, 0x61, 0x6c,
   290  	0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78,
   291  	0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e,
   292  	0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62,
   293  	0x61, 0x63, 0x6b, 0x73, 0x42, 0x55, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79,
   294  	0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x50, 0x01, 0x5a,
   295  	0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
   296  	0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79,
   297  	0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0xaa, 0x02, 0x11, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50,
   298  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x54, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f,
   299  	0x74, 0x6f, 0x33,
   300  }
   301  
   302  var (
   303  	file_proxy_trojan_config_proto_rawDescOnce sync.Once
   304  	file_proxy_trojan_config_proto_rawDescData = file_proxy_trojan_config_proto_rawDesc
   305  )
   306  
   307  func file_proxy_trojan_config_proto_rawDescGZIP() []byte {
   308  	file_proxy_trojan_config_proto_rawDescOnce.Do(func() {
   309  		file_proxy_trojan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_trojan_config_proto_rawDescData)
   310  	})
   311  	return file_proxy_trojan_config_proto_rawDescData
   312  }
   313  
   314  var file_proxy_trojan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   315  var file_proxy_trojan_config_proto_goTypes = []interface{}{
   316  	(*Account)(nil),                 // 0: xray.proxy.trojan.Account
   317  	(*Fallback)(nil),                // 1: xray.proxy.trojan.Fallback
   318  	(*ClientConfig)(nil),            // 2: xray.proxy.trojan.ClientConfig
   319  	(*ServerConfig)(nil),            // 3: xray.proxy.trojan.ServerConfig
   320  	(*protocol.ServerEndpoint)(nil), // 4: xray.common.protocol.ServerEndpoint
   321  	(*protocol.User)(nil),           // 5: xray.common.protocol.User
   322  }
   323  var file_proxy_trojan_config_proto_depIdxs = []int32{
   324  	4, // 0: xray.proxy.trojan.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint
   325  	5, // 1: xray.proxy.trojan.ServerConfig.users:type_name -> xray.common.protocol.User
   326  	1, // 2: xray.proxy.trojan.ServerConfig.fallbacks:type_name -> xray.proxy.trojan.Fallback
   327  	3, // [3:3] is the sub-list for method output_type
   328  	3, // [3:3] is the sub-list for method input_type
   329  	3, // [3:3] is the sub-list for extension type_name
   330  	3, // [3:3] is the sub-list for extension extendee
   331  	0, // [0:3] is the sub-list for field type_name
   332  }
   333  
   334  func init() { file_proxy_trojan_config_proto_init() }
   335  func file_proxy_trojan_config_proto_init() {
   336  	if File_proxy_trojan_config_proto != nil {
   337  		return
   338  	}
   339  	if !protoimpl.UnsafeEnabled {
   340  		file_proxy_trojan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   341  			switch v := v.(*Account); i {
   342  			case 0:
   343  				return &v.state
   344  			case 1:
   345  				return &v.sizeCache
   346  			case 2:
   347  				return &v.unknownFields
   348  			default:
   349  				return nil
   350  			}
   351  		}
   352  		file_proxy_trojan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   353  			switch v := v.(*Fallback); i {
   354  			case 0:
   355  				return &v.state
   356  			case 1:
   357  				return &v.sizeCache
   358  			case 2:
   359  				return &v.unknownFields
   360  			default:
   361  				return nil
   362  			}
   363  		}
   364  		file_proxy_trojan_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   365  			switch v := v.(*ClientConfig); i {
   366  			case 0:
   367  				return &v.state
   368  			case 1:
   369  				return &v.sizeCache
   370  			case 2:
   371  				return &v.unknownFields
   372  			default:
   373  				return nil
   374  			}
   375  		}
   376  		file_proxy_trojan_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   377  			switch v := v.(*ServerConfig); i {
   378  			case 0:
   379  				return &v.state
   380  			case 1:
   381  				return &v.sizeCache
   382  			case 2:
   383  				return &v.unknownFields
   384  			default:
   385  				return nil
   386  			}
   387  		}
   388  	}
   389  	type x struct{}
   390  	out := protoimpl.TypeBuilder{
   391  		File: protoimpl.DescBuilder{
   392  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   393  			RawDescriptor: file_proxy_trojan_config_proto_rawDesc,
   394  			NumEnums:      0,
   395  			NumMessages:   4,
   396  			NumExtensions: 0,
   397  			NumServices:   0,
   398  		},
   399  		GoTypes:           file_proxy_trojan_config_proto_goTypes,
   400  		DependencyIndexes: file_proxy_trojan_config_proto_depIdxs,
   401  		MessageInfos:      file_proxy_trojan_config_proto_msgTypes,
   402  	}.Build()
   403  	File_proxy_trojan_config_proto = out.File
   404  	file_proxy_trojan_config_proto_rawDesc = nil
   405  	file_proxy_trojan_config_proto_goTypes = nil
   406  	file_proxy_trojan_config_proto_depIdxs = nil
   407  }