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