config.pb.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. package web
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  6. // Reference imports to suppress errors if they are not otherwise used.
  7. var _ = proto.Marshal
  8. var _ = fmt.Errorf
  9. var _ = math.Inf
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the proto package it is being compiled against.
  12. // A compilation error at this line likely means your copy of the
  13. // proto package needs to be updated.
  14. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  15. type FileServer struct {
  16. Entry []*FileServer_Entry `protobuf:"bytes,1,rep,name=entry" json:"entry,omitempty"`
  17. }
  18. func (m *FileServer) Reset() { *m = FileServer{} }
  19. func (m *FileServer) String() string { return proto.CompactTextString(m) }
  20. func (*FileServer) ProtoMessage() {}
  21. func (*FileServer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  22. func (m *FileServer) GetEntry() []*FileServer_Entry {
  23. if m != nil {
  24. return m.Entry
  25. }
  26. return nil
  27. }
  28. type FileServer_Entry struct {
  29. // Types that are valid to be assigned to FileOrDir:
  30. // *FileServer_Entry_File
  31. // *FileServer_Entry_Directory
  32. FileOrDir isFileServer_Entry_FileOrDir `protobuf_oneof:"FileOrDir"`
  33. Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
  34. }
  35. func (m *FileServer_Entry) Reset() { *m = FileServer_Entry{} }
  36. func (m *FileServer_Entry) String() string { return proto.CompactTextString(m) }
  37. func (*FileServer_Entry) ProtoMessage() {}
  38. func (*FileServer_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  39. type isFileServer_Entry_FileOrDir interface {
  40. isFileServer_Entry_FileOrDir()
  41. }
  42. type FileServer_Entry_File struct {
  43. File string `protobuf:"bytes,1,opt,name=File,oneof"`
  44. }
  45. type FileServer_Entry_Directory struct {
  46. Directory string `protobuf:"bytes,2,opt,name=Directory,oneof"`
  47. }
  48. func (*FileServer_Entry_File) isFileServer_Entry_FileOrDir() {}
  49. func (*FileServer_Entry_Directory) isFileServer_Entry_FileOrDir() {}
  50. func (m *FileServer_Entry) GetFileOrDir() isFileServer_Entry_FileOrDir {
  51. if m != nil {
  52. return m.FileOrDir
  53. }
  54. return nil
  55. }
  56. func (m *FileServer_Entry) GetFile() string {
  57. if x, ok := m.GetFileOrDir().(*FileServer_Entry_File); ok {
  58. return x.File
  59. }
  60. return ""
  61. }
  62. func (m *FileServer_Entry) GetDirectory() string {
  63. if x, ok := m.GetFileOrDir().(*FileServer_Entry_Directory); ok {
  64. return x.Directory
  65. }
  66. return ""
  67. }
  68. func (m *FileServer_Entry) GetPath() string {
  69. if m != nil {
  70. return m.Path
  71. }
  72. return ""
  73. }
  74. // XXX_OneofFuncs is for the internal use of the proto package.
  75. func (*FileServer_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  76. return _FileServer_Entry_OneofMarshaler, _FileServer_Entry_OneofUnmarshaler, _FileServer_Entry_OneofSizer, []interface{}{
  77. (*FileServer_Entry_File)(nil),
  78. (*FileServer_Entry_Directory)(nil),
  79. }
  80. }
  81. func _FileServer_Entry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  82. m := msg.(*FileServer_Entry)
  83. // FileOrDir
  84. switch x := m.FileOrDir.(type) {
  85. case *FileServer_Entry_File:
  86. b.EncodeVarint(1<<3 | proto.WireBytes)
  87. b.EncodeStringBytes(x.File)
  88. case *FileServer_Entry_Directory:
  89. b.EncodeVarint(2<<3 | proto.WireBytes)
  90. b.EncodeStringBytes(x.Directory)
  91. case nil:
  92. default:
  93. return fmt.Errorf("FileServer_Entry.FileOrDir has unexpected type %T", x)
  94. }
  95. return nil
  96. }
  97. func _FileServer_Entry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  98. m := msg.(*FileServer_Entry)
  99. switch tag {
  100. case 1: // FileOrDir.File
  101. if wire != proto.WireBytes {
  102. return true, proto.ErrInternalBadWireType
  103. }
  104. x, err := b.DecodeStringBytes()
  105. m.FileOrDir = &FileServer_Entry_File{x}
  106. return true, err
  107. case 2: // FileOrDir.Directory
  108. if wire != proto.WireBytes {
  109. return true, proto.ErrInternalBadWireType
  110. }
  111. x, err := b.DecodeStringBytes()
  112. m.FileOrDir = &FileServer_Entry_Directory{x}
  113. return true, err
  114. default:
  115. return false, nil
  116. }
  117. }
  118. func _FileServer_Entry_OneofSizer(msg proto.Message) (n int) {
  119. m := msg.(*FileServer_Entry)
  120. // FileOrDir
  121. switch x := m.FileOrDir.(type) {
  122. case *FileServer_Entry_File:
  123. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  124. n += proto.SizeVarint(uint64(len(x.File)))
  125. n += len(x.File)
  126. case *FileServer_Entry_Directory:
  127. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  128. n += proto.SizeVarint(uint64(len(x.Directory)))
  129. n += len(x.Directory)
  130. case nil:
  131. default:
  132. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  133. }
  134. return n
  135. }
  136. type Server struct {
  137. Domain []string `protobuf:"bytes,1,rep,name=domain" json:"domain,omitempty"`
  138. Settings *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
  139. }
  140. func (m *Server) Reset() { *m = Server{} }
  141. func (m *Server) String() string { return proto.CompactTextString(m) }
  142. func (*Server) ProtoMessage() {}
  143. func (*Server) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  144. func (m *Server) GetDomain() []string {
  145. if m != nil {
  146. return m.Domain
  147. }
  148. return nil
  149. }
  150. func (m *Server) GetSettings() *v2ray_core_common_serial.TypedMessage {
  151. if m != nil {
  152. return m.Settings
  153. }
  154. return nil
  155. }
  156. type Config struct {
  157. Server []*Server `protobuf:"bytes,1,rep,name=server" json:"server,omitempty"`
  158. }
  159. func (m *Config) Reset() { *m = Config{} }
  160. func (m *Config) String() string { return proto.CompactTextString(m) }
  161. func (*Config) ProtoMessage() {}
  162. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  163. func (m *Config) GetServer() []*Server {
  164. if m != nil {
  165. return m.Server
  166. }
  167. return nil
  168. }
  169. func init() {
  170. proto.RegisterType((*FileServer)(nil), "v2ray.core.app.web.FileServer")
  171. proto.RegisterType((*FileServer_Entry)(nil), "v2ray.core.app.web.FileServer.Entry")
  172. proto.RegisterType((*Server)(nil), "v2ray.core.app.web.Server")
  173. proto.RegisterType((*Config)(nil), "v2ray.core.app.web.Config")
  174. }
  175. func init() { proto.RegisterFile("v2ray.com/core/app/web/config.proto", fileDescriptor0) }
  176. var fileDescriptor0 = []byte{
  177. // 324 bytes of a gzipped FileDescriptorProto
  178. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xcf, 0x4a, 0xc3, 0x40,
  179. 0x10, 0x87, 0x4d, 0xff, 0x04, 0x33, 0xbd, 0x2d, 0x52, 0x42, 0x0f, 0x52, 0xaa, 0x48, 0x4f, 0x1b,
  180. 0x89, 0x9e, 0xc4, 0x8b, 0x6d, 0x15, 0x2f, 0xa2, 0xac, 0xa2, 0xe0, 0x41, 0xd9, 0xa4, 0x63, 0x5d,
  181. 0x68, 0xb2, 0xcb, 0x64, 0x69, 0xc9, 0x1b, 0x89, 0x4f, 0x29, 0xd9, 0x44, 0x2b, 0xda, 0x5b, 0x26,
  182. 0xf3, 0xfd, 0x76, 0x66, 0xbf, 0x85, 0x83, 0x55, 0x4c, 0xb2, 0xe4, 0xa9, 0xce, 0xa2, 0x54, 0x13,
  183. 0x46, 0xd2, 0x98, 0x68, 0x8d, 0x49, 0x94, 0xea, 0xfc, 0x4d, 0x2d, 0xb8, 0x21, 0x6d, 0x35, 0x63,
  184. 0xdf, 0x10, 0x21, 0x97, 0xc6, 0xf0, 0x35, 0x26, 0x83, 0xe3, 0x3f, 0xc1, 0x54, 0x67, 0x99, 0xce,
  185. 0xa3, 0x02, 0x49, 0xc9, 0x65, 0x64, 0x4b, 0x83, 0xf3, 0xd7, 0x0c, 0x8b, 0x42, 0x2e, 0xb0, 0x3e,
  186. 0x65, 0xf4, 0xe1, 0x01, 0x5c, 0xa9, 0x25, 0xde, 0x23, 0xad, 0x90, 0xd8, 0x19, 0x74, 0x31, 0xb7,
  187. 0x54, 0x86, 0xde, 0xb0, 0x3d, 0xee, 0xc5, 0x87, 0xfc, 0xff, 0x10, 0xbe, 0xc1, 0xf9, 0x65, 0xc5,
  188. 0x8a, 0x3a, 0x32, 0x78, 0x81, 0xae, 0xab, 0xd9, 0x1e, 0x74, 0x2a, 0x26, 0xf4, 0x86, 0xde, 0x38,
  189. 0xb8, 0xde, 0x11, 0xae, 0x62, 0xfb, 0x10, 0xcc, 0x14, 0x61, 0x6a, 0x35, 0x95, 0x61, 0xab, 0x69,
  190. 0x6d, 0x7e, 0x31, 0x06, 0x1d, 0x23, 0xed, 0x7b, 0xd8, 0xae, 0x5a, 0xc2, 0x7d, 0x4f, 0x7a, 0x10,
  191. 0x54, 0xd9, 0x5b, 0x9a, 0x29, 0x1a, 0xcd, 0xc1, 0x6f, 0xb6, 0xec, 0x83, 0x3f, 0xd7, 0x99, 0x54,
  192. 0xb9, 0x5b, 0x33, 0x10, 0x4d, 0xc5, 0x26, 0xb0, 0x5b, 0xa0, 0xb5, 0x2a, 0x5f, 0x14, 0x6e, 0x42,
  193. 0x2f, 0x3e, 0xfa, 0x7d, 0x81, 0xda, 0x06, 0xaf, 0x6d, 0xf0, 0x87, 0xca, 0xc6, 0x4d, 0x2d, 0x43,
  194. 0xfc, 0xe4, 0x46, 0xe7, 0xe0, 0x4f, 0x9d, 0x66, 0x16, 0x83, 0x5f, 0xb8, 0x79, 0x8d, 0x8c, 0xc1,
  195. 0x36, 0x19, 0xf5, 0x46, 0xa2, 0x21, 0x27, 0xa7, 0xd0, 0x4f, 0x75, 0xb6, 0x05, 0xbc, 0xf3, 0x9e,
  196. 0xdb, 0x6b, 0x4c, 0x3e, 0x5b, 0xec, 0x31, 0x16, 0xb2, 0xe4, 0xd3, 0xaa, 0x77, 0x61, 0x0c, 0x7f,
  197. 0xc2, 0x24, 0xf1, 0xdd, 0x5b, 0x9c, 0x7c, 0x05, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x2a, 0xe1, 0x59,
  198. 0xf8, 0x01, 0x00, 0x00,
  199. }