config.pb.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/proxy/socks/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package socks is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/proxy/socks/config.proto
  8. It has these top-level messages:
  9. Account
  10. ServerConfig
  11. ClientConfig
  12. */
  13. package socks
  14. import proto "github.com/golang/protobuf/proto"
  15. import fmt "fmt"
  16. import math "math"
  17. import v2ray_core_common_net "v2ray.com/core/common/net"
  18. import v2ray_core_common_protocol1 "v2ray.com/core/common/protocol"
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. type AuthType int32
  29. const (
  30. AuthType_NO_AUTH AuthType = 0
  31. AuthType_PASSWORD AuthType = 1
  32. )
  33. var AuthType_name = map[int32]string{
  34. 0: "NO_AUTH",
  35. 1: "PASSWORD",
  36. }
  37. var AuthType_value = map[string]int32{
  38. "NO_AUTH": 0,
  39. "PASSWORD": 1,
  40. }
  41. func (x AuthType) String() string {
  42. return proto.EnumName(AuthType_name, int32(x))
  43. }
  44. func (AuthType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  45. type Account struct {
  46. Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
  47. Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
  48. }
  49. func (m *Account) Reset() { *m = Account{} }
  50. func (m *Account) String() string { return proto.CompactTextString(m) }
  51. func (*Account) ProtoMessage() {}
  52. func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  53. func (m *Account) GetUsername() string {
  54. if m != nil {
  55. return m.Username
  56. }
  57. return ""
  58. }
  59. func (m *Account) GetPassword() string {
  60. if m != nil {
  61. return m.Password
  62. }
  63. return ""
  64. }
  65. type ServerConfig struct {
  66. AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,enum=v2ray.core.proxy.socks.AuthType" json:"auth_type,omitempty"`
  67. Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  68. Address *v2ray_core_common_net.IPOrDomain `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
  69. UdpEnabled bool `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled" json:"udp_enabled,omitempty"`
  70. Timeout uint32 `protobuf:"varint,5,opt,name=timeout" json:"timeout,omitempty"`
  71. }
  72. func (m *ServerConfig) Reset() { *m = ServerConfig{} }
  73. func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
  74. func (*ServerConfig) ProtoMessage() {}
  75. func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  76. func (m *ServerConfig) GetAuthType() AuthType {
  77. if m != nil {
  78. return m.AuthType
  79. }
  80. return AuthType_NO_AUTH
  81. }
  82. func (m *ServerConfig) GetAccounts() map[string]string {
  83. if m != nil {
  84. return m.Accounts
  85. }
  86. return nil
  87. }
  88. func (m *ServerConfig) GetAddress() *v2ray_core_common_net.IPOrDomain {
  89. if m != nil {
  90. return m.Address
  91. }
  92. return nil
  93. }
  94. func (m *ServerConfig) GetUdpEnabled() bool {
  95. if m != nil {
  96. return m.UdpEnabled
  97. }
  98. return false
  99. }
  100. func (m *ServerConfig) GetTimeout() uint32 {
  101. if m != nil {
  102. return m.Timeout
  103. }
  104. return 0
  105. }
  106. type ClientConfig struct {
  107. Server []*v2ray_core_common_protocol1.ServerEndpoint `protobuf:"bytes,1,rep,name=server" json:"server,omitempty"`
  108. }
  109. func (m *ClientConfig) Reset() { *m = ClientConfig{} }
  110. func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
  111. func (*ClientConfig) ProtoMessage() {}
  112. func (*ClientConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  113. func (m *ClientConfig) GetServer() []*v2ray_core_common_protocol1.ServerEndpoint {
  114. if m != nil {
  115. return m.Server
  116. }
  117. return nil
  118. }
  119. func init() {
  120. proto.RegisterType((*Account)(nil), "v2ray.core.proxy.socks.Account")
  121. proto.RegisterType((*ServerConfig)(nil), "v2ray.core.proxy.socks.ServerConfig")
  122. proto.RegisterType((*ClientConfig)(nil), "v2ray.core.proxy.socks.ClientConfig")
  123. proto.RegisterEnum("v2ray.core.proxy.socks.AuthType", AuthType_name, AuthType_value)
  124. }
  125. func init() { proto.RegisterFile("v2ray.com/core/proxy/socks/config.proto", fileDescriptor0) }
  126. var fileDescriptor0 = []byte{
  127. // 453 bytes of a gzipped FileDescriptorProto
  128. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x91, 0x41, 0x6f, 0xd3, 0x30,
  129. 0x14, 0xc7, 0x49, 0x4b, 0xd7, 0xec, 0xa5, 0x43, 0x95, 0x85, 0xa6, 0x28, 0x17, 0x42, 0x25, 0x44,
  130. 0xb4, 0x83, 0x83, 0xc2, 0x05, 0x31, 0x71, 0x48, 0xbb, 0x4a, 0xec, 0xb2, 0x56, 0xee, 0x00, 0x89,
  131. 0x4b, 0xe5, 0x39, 0x86, 0x45, 0x6b, 0xec, 0xc8, 0x76, 0x0a, 0xf9, 0x4a, 0x7c, 0x1c, 0x3e, 0x11,
  132. 0x4a, 0x9c, 0x4c, 0x63, 0xea, 0x6e, 0x7e, 0x7e, 0xff, 0xf7, 0xf7, 0xfb, 0xff, 0x0c, 0x6f, 0xf7,
  133. 0x89, 0xa2, 0x35, 0x66, 0xb2, 0x88, 0x99, 0x54, 0x3c, 0x2e, 0x95, 0xfc, 0x5d, 0xc7, 0x5a, 0xb2,
  134. 0x3b, 0x1d, 0x33, 0x29, 0x7e, 0xe4, 0x3f, 0x71, 0xa9, 0xa4, 0x91, 0xe8, 0xb4, 0x17, 0x2a, 0x8e,
  135. 0x5b, 0x11, 0x6e, 0x45, 0xc1, 0x63, 0x03, 0x26, 0x8b, 0x42, 0x8a, 0x58, 0x70, 0x13, 0xd3, 0x2c,
  136. 0x53, 0x5c, 0x6b, 0x6b, 0x10, 0xbc, 0x3b, 0x2c, 0x6c, 0x9b, 0x4c, 0xee, 0x62, 0xcd, 0xd5, 0x9e,
  137. 0xab, 0xad, 0x2e, 0x39, 0xb3, 0x13, 0xb3, 0x14, 0xc6, 0x29, 0x63, 0xb2, 0x12, 0x06, 0x05, 0xe0,
  138. 0x56, 0x9a, 0x2b, 0x41, 0x0b, 0xee, 0x3b, 0xa1, 0x13, 0x1d, 0x93, 0xfb, 0xba, 0xe9, 0x95, 0x54,
  139. 0xeb, 0x5f, 0x52, 0x65, 0xfe, 0xc0, 0xf6, 0xfa, 0x7a, 0xf6, 0x77, 0x00, 0x93, 0x4d, 0x6b, 0xbc,
  140. 0x68, 0xc3, 0xa0, 0x4f, 0x70, 0x4c, 0x2b, 0x73, 0xbb, 0x35, 0x75, 0x69, 0x9d, 0x5e, 0x24, 0x21,
  141. 0x3e, 0x1c, 0x0d, 0xa7, 0x95, 0xb9, 0xbd, 0xae, 0x4b, 0x4e, 0x5c, 0xda, 0x9d, 0xd0, 0x15, 0xb8,
  142. 0xd4, 0xae, 0xa4, 0xfd, 0x41, 0x38, 0x8c, 0xbc, 0x24, 0x79, 0x6a, 0xfa, 0xe1, 0xb3, 0xb8, 0xcb,
  143. 0xa1, 0x97, 0xc2, 0xa8, 0x9a, 0xdc, 0x7b, 0xa0, 0x73, 0x18, 0x77, 0x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x5e, 0x34, 0xe2, 0x75, 0x2b, 0xde,
  155. 0x34, 0x8d, 0x9b, 0xa3, 0x76, 0xa5, 0xf7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x8f, 0x57,
  156. 0x58, 0x02, 0x03, 0x00, 0x00,
  157. }