config.pb.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/app/web/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package web is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/app/web/config.proto
  8. It has these top-level messages:
  9. FileServer
  10. Server
  11. Config
  12. */
  13. package web
  14. import proto "github.com/golang/protobuf/proto"
  15. import fmt "fmt"
  16. import math "math"
  17. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. // This is a compile-time assertion to ensure that this generated file
  23. // is compatible with the proto package it is being compiled against.
  24. // A compilation error at this line likely means your copy of the
  25. // proto package needs to be updated.
  26. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  27. type FileServer struct {
  28. Entry []*FileServer_Entry `protobuf:"bytes,1,rep,name=entry" json:"entry,omitempty"`
  29. }
  30. func (m *FileServer) Reset() { *m = FileServer{} }
  31. func (m *FileServer) String() string { return proto.CompactTextString(m) }
  32. func (*FileServer) ProtoMessage() {}
  33. func (*FileServer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  34. func (m *FileServer) GetEntry() []*FileServer_Entry {
  35. if m != nil {
  36. return m.Entry
  37. }
  38. return nil
  39. }
  40. type FileServer_Entry struct {
  41. // Types that are valid to be assigned to FileOrDir:
  42. // *FileServer_Entry_File
  43. // *FileServer_Entry_Directory
  44. FileOrDir isFileServer_Entry_FileOrDir `protobuf_oneof:"FileOrDir"`
  45. Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
  46. }
  47. func (m *FileServer_Entry) Reset() { *m = FileServer_Entry{} }
  48. func (m *FileServer_Entry) String() string { return proto.CompactTextString(m) }
  49. func (*FileServer_Entry) ProtoMessage() {}
  50. func (*FileServer_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  51. type isFileServer_Entry_FileOrDir interface {
  52. isFileServer_Entry_FileOrDir()
  53. }
  54. type FileServer_Entry_File struct {
  55. File string `protobuf:"bytes,1,opt,name=File,oneof"`
  56. }
  57. type FileServer_Entry_Directory struct {
  58. Directory string `protobuf:"bytes,2,opt,name=Directory,oneof"`
  59. }
  60. func (*FileServer_Entry_File) isFileServer_Entry_FileOrDir() {}
  61. func (*FileServer_Entry_Directory) isFileServer_Entry_FileOrDir() {}
  62. func (m *FileServer_Entry) GetFileOrDir() isFileServer_Entry_FileOrDir {
  63. if m != nil {
  64. return m.FileOrDir
  65. }
  66. return nil
  67. }
  68. func (m *FileServer_Entry) GetFile() string {
  69. if x, ok := m.GetFileOrDir().(*FileServer_Entry_File); ok {
  70. return x.File
  71. }
  72. return ""
  73. }
  74. func (m *FileServer_Entry) GetDirectory() string {
  75. if x, ok := m.GetFileOrDir().(*FileServer_Entry_Directory); ok {
  76. return x.Directory
  77. }
  78. return ""
  79. }
  80. // XXX_OneofFuncs is for the internal use of the proto package.
  81. 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{}) {
  82. return _FileServer_Entry_OneofMarshaler, _FileServer_Entry_OneofUnmarshaler, _FileServer_Entry_OneofSizer, []interface{}{
  83. (*FileServer_Entry_File)(nil),
  84. (*FileServer_Entry_Directory)(nil),
  85. }
  86. }
  87. func _FileServer_Entry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  88. m := msg.(*FileServer_Entry)
  89. // FileOrDir
  90. switch x := m.FileOrDir.(type) {
  91. case *FileServer_Entry_File:
  92. b.EncodeVarint(1<<3 | proto.WireBytes)
  93. b.EncodeStringBytes(x.File)
  94. case *FileServer_Entry_Directory:
  95. b.EncodeVarint(2<<3 | proto.WireBytes)
  96. b.EncodeStringBytes(x.Directory)
  97. case nil:
  98. default:
  99. return fmt.Errorf("FileServer_Entry.FileOrDir has unexpected type %T", x)
  100. }
  101. return nil
  102. }
  103. func _FileServer_Entry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  104. m := msg.(*FileServer_Entry)
  105. switch tag {
  106. case 1: // FileOrDir.File
  107. if wire != proto.WireBytes {
  108. return true, proto.ErrInternalBadWireType
  109. }
  110. x, err := b.DecodeStringBytes()
  111. m.FileOrDir = &FileServer_Entry_File{x}
  112. return true, err
  113. case 2: // FileOrDir.Directory
  114. if wire != proto.WireBytes {
  115. return true, proto.ErrInternalBadWireType
  116. }
  117. x, err := b.DecodeStringBytes()
  118. m.FileOrDir = &FileServer_Entry_Directory{x}
  119. return true, err
  120. default:
  121. return false, nil
  122. }
  123. }
  124. func _FileServer_Entry_OneofSizer(msg proto.Message) (n int) {
  125. m := msg.(*FileServer_Entry)
  126. // FileOrDir
  127. switch x := m.FileOrDir.(type) {
  128. case *FileServer_Entry_File:
  129. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  130. n += proto.SizeVarint(uint64(len(x.File)))
  131. n += len(x.File)
  132. case *FileServer_Entry_Directory:
  133. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  134. n += proto.SizeVarint(uint64(len(x.Directory)))
  135. n += len(x.Directory)
  136. case nil:
  137. default:
  138. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  139. }
  140. return n
  141. }
  142. type Server struct {
  143. Domain []string `protobuf:"bytes,1,rep,name=domain" json:"domain,omitempty"`
  144. Settings *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
  145. }
  146. func (m *Server) Reset() { *m = Server{} }
  147. func (m *Server) String() string { return proto.CompactTextString(m) }
  148. func (*Server) ProtoMessage() {}
  149. func (*Server) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  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. // 312 bytes of a gzipped FileDescriptorProto
  178. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
  179. 0x14, 0xc6, 0xad, 0xdb, 0x8a, 0x7d, 0xbd, 0x05, 0x19, 0x65, 0x07, 0x19, 0x53, 0x64, 0x78, 0x48,
  180. 0xa5, 0xde, 0xc4, 0x53, 0x9d, 0xe2, 0x45, 0x94, 0xea, 0xc9, 0x83, 0x92, 0x76, 0xcf, 0x19, 0x58,
  181. 0x9b, 0xf0, 0x1a, 0x56, 0xfa, 0x1f, 0xf9, 0x67, 0x4a, 0x93, 0xea, 0x44, 0x77, 0xcb, 0xcb, 0xfb,
  182. 0xbe, 0xf7, 0xbe, 0xfc, 0x02, 0xc7, 0x9b, 0x84, 0x44, 0xcb, 0x0b, 0x55, 0xc6, 0x85, 0x22, 0x8c,
  183. 0x85, 0xd6, 0x71, 0x83, 0x79, 0x5c, 0xa8, 0xea, 0x5d, 0xae, 0xb8, 0x26, 0x65, 0x14, 0x63, 0xdf,
  184. 0x22, 0x42, 0x2e, 0xb4, 0xe6, 0x0d, 0xe6, 0x93, 0xf3, 0x3f, 0xc6, 0x42, 0x95, 0xa5, 0xaa, 0xe2,
  185. 0x1a, 0x49, 0x8a, 0x75, 0x6c, 0x5a, 0x8d, 0xcb, 0xb7, 0x12, 0xeb, 0x5a, 0xac, 0xd0, 0x4d, 0x99,
  186. 0x7d, 0x7a, 0x00, 0xb7, 0x72, 0x8d, 0x4f, 0x48, 0x1b, 0x24, 0x76, 0x09, 0x23, 0xac, 0x0c, 0xb5,
  187. 0x91, 0x37, 0x1d, 0xcc, 0xc3, 0xe4, 0x84, 0xff, 0x5f, 0xc2, 0xb7, 0x72, 0x7e, 0xd3, 0x69, 0x33,
  188. 0x67, 0x99, 0xbc, 0xc2, 0xc8, 0xd6, 0xec, 0x10, 0x86, 0x9d, 0x26, 0xf2, 0xa6, 0xde, 0x3c, 0xb8,
  189. 0xdb, 0xcb, 0x6c, 0xc5, 0x8e, 0x20, 0x58, 0x48, 0xc2, 0xc2, 0x28, 0x6a, 0xa3, 0xfd, 0xbe, 0xb5,
  190. 0xbd, 0x62, 0x0c, 0x86, 0x5a, 0x98, 0x8f, 0x68, 0xd0, 0xb5, 0x32, 0x7b, 0x4e, 0x43, 0x08, 0x3a,
  191. 0xef, 0x03, 0x2d, 0x24, 0xcd, 0x96, 0xe0, 0xf7, 0x29, 0xc7, 0xe0, 0x2f, 0x55, 0x29, 0x64, 0x65,
  192. 0x63, 0x06, 0x59, 0x5f, 0xb1, 0x14, 0x0e, 0x6a, 0x34, 0x46, 0x56, 0xab, 0xda, 0x6e, 0x08, 0x93,
  193. 0xd3, 0xdf, 0x0f, 0x70, 0x34, 0xb8, 0xa3, 0xc1, 0x9f, 0x3b, 0x1a, 0xf7, 0x0e, 0x46, 0xf6, 0xe3,
  194. 0x9b, 0x5d, 0x81, 0x7f, 0x6d, 0x31, 0xb3, 0x04, 0xfc, 0xda, 0xee, 0xeb, 0x61, 0x4c, 0x76, 0xc1,
  195. 0x70, 0x89, 0xb2, 0x5e, 0x99, 0x9e, 0xc1, 0xb8, 0x50, 0xe5, 0x0e, 0x61, 0x1a, 0xba, 0xa9, 0x8f,
  196. 0x1d, 0xf5, 0x97, 0x41, 0x83, 0x79, 0xee, 0xdb, 0x1f, 0xb8, 0xf8, 0x0a, 0x00, 0x00, 0xff, 0xff,
  197. 0x21, 0xbf, 0x92, 0xe3, 0xee, 0x01, 0x00, 0x00,
  198. }