github.com/v2fly/v2ray-core/v4@v4.45.2/proxy/trojan/config.pb.go (about)

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