config.pb.go 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. package simplified
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type ServerConfig struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. }
  21. func (x *ServerConfig) Reset() {
  22. *x = ServerConfig{}
  23. if protoimpl.UnsafeEnabled {
  24. mi := &file_proxy_http_simplified_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. }
  29. func (x *ServerConfig) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*ServerConfig) ProtoMessage() {}
  33. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  34. mi := &file_proxy_http_simplified_config_proto_msgTypes[0]
  35. if protoimpl.UnsafeEnabled && x != nil {
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. if ms.LoadMessageInfo() == nil {
  38. ms.StoreMessageInfo(mi)
  39. }
  40. return ms
  41. }
  42. return mi.MessageOf(x)
  43. }
  44. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  45. func (*ServerConfig) Descriptor() ([]byte, []int) {
  46. return file_proxy_http_simplified_config_proto_rawDescGZIP(), []int{0}
  47. }
  48. type ClientConfig struct {
  49. state protoimpl.MessageState
  50. sizeCache protoimpl.SizeCache
  51. unknownFields protoimpl.UnknownFields
  52. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  53. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  54. }
  55. func (x *ClientConfig) Reset() {
  56. *x = ClientConfig{}
  57. if protoimpl.UnsafeEnabled {
  58. mi := &file_proxy_http_simplified_config_proto_msgTypes[1]
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. ms.StoreMessageInfo(mi)
  61. }
  62. }
  63. func (x *ClientConfig) String() string {
  64. return protoimpl.X.MessageStringOf(x)
  65. }
  66. func (*ClientConfig) ProtoMessage() {}
  67. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  68. mi := &file_proxy_http_simplified_config_proto_msgTypes[1]
  69. if protoimpl.UnsafeEnabled && x != nil {
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. if ms.LoadMessageInfo() == nil {
  72. ms.StoreMessageInfo(mi)
  73. }
  74. return ms
  75. }
  76. return mi.MessageOf(x)
  77. }
  78. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  79. func (*ClientConfig) Descriptor() ([]byte, []int) {
  80. return file_proxy_http_simplified_config_proto_rawDescGZIP(), []int{1}
  81. }
  82. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  83. if x != nil {
  84. return x.Address
  85. }
  86. return nil
  87. }
  88. func (x *ClientConfig) GetPort() uint32 {
  89. if x != nil {
  90. return x.Port
  91. }
  92. return 0
  93. }
  94. var File_proxy_http_simplified_config_proto protoreflect.FileDescriptor
  95. var file_proxy_http_simplified_config_proto_rawDesc = []byte{
  96. 0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d,
  97. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  98. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  99. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70,
  100. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  101. 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  102. 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  103. 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  104. 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,
  105. 0x69, 0x67, 0x3a, 0x17, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  106. 0x64, 0x82, 0xb5, 0x18, 0x06, 0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x22, 0x79, 0x0a, 0x0c, 0x43,
  107. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61,
  108. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76,
  109. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  110. 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
  111. 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
  112. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x18, 0x82, 0xb5,
  113. 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x06,
  114. 0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  115. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  116. 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50,
  117. 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
  118. 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
  119. 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d,
  120. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e,
  121. 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x2e,
  122. 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  123. 0x6f, 0x33,
  124. }
  125. var (
  126. file_proxy_http_simplified_config_proto_rawDescOnce sync.Once
  127. file_proxy_http_simplified_config_proto_rawDescData = file_proxy_http_simplified_config_proto_rawDesc
  128. )
  129. func file_proxy_http_simplified_config_proto_rawDescGZIP() []byte {
  130. file_proxy_http_simplified_config_proto_rawDescOnce.Do(func() {
  131. file_proxy_http_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_http_simplified_config_proto_rawDescData)
  132. })
  133. return file_proxy_http_simplified_config_proto_rawDescData
  134. }
  135. var file_proxy_http_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  136. var file_proxy_http_simplified_config_proto_goTypes = []interface{}{
  137. (*ServerConfig)(nil), // 0: v2ray.core.proxy.http.simplified.ServerConfig
  138. (*ClientConfig)(nil), // 1: v2ray.core.proxy.http.simplified.ClientConfig
  139. (*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
  140. }
  141. var file_proxy_http_simplified_config_proto_depIdxs = []int32{
  142. 2, // 0: v2ray.core.proxy.http.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  143. 1, // [1:1] is the sub-list for method output_type
  144. 1, // [1:1] is the sub-list for method input_type
  145. 1, // [1:1] is the sub-list for extension type_name
  146. 1, // [1:1] is the sub-list for extension extendee
  147. 0, // [0:1] is the sub-list for field type_name
  148. }
  149. func init() { file_proxy_http_simplified_config_proto_init() }
  150. func file_proxy_http_simplified_config_proto_init() {
  151. if File_proxy_http_simplified_config_proto != nil {
  152. return
  153. }
  154. if !protoimpl.UnsafeEnabled {
  155. file_proxy_http_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  156. switch v := v.(*ServerConfig); i {
  157. case 0:
  158. return &v.state
  159. case 1:
  160. return &v.sizeCache
  161. case 2:
  162. return &v.unknownFields
  163. default:
  164. return nil
  165. }
  166. }
  167. file_proxy_http_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  168. switch v := v.(*ClientConfig); i {
  169. case 0:
  170. return &v.state
  171. case 1:
  172. return &v.sizeCache
  173. case 2:
  174. return &v.unknownFields
  175. default:
  176. return nil
  177. }
  178. }
  179. }
  180. type x struct{}
  181. out := protoimpl.TypeBuilder{
  182. File: protoimpl.DescBuilder{
  183. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  184. RawDescriptor: file_proxy_http_simplified_config_proto_rawDesc,
  185. NumEnums: 0,
  186. NumMessages: 2,
  187. NumExtensions: 0,
  188. NumServices: 0,
  189. },
  190. GoTypes: file_proxy_http_simplified_config_proto_goTypes,
  191. DependencyIndexes: file_proxy_http_simplified_config_proto_depIdxs,
  192. MessageInfos: file_proxy_http_simplified_config_proto_msgTypes,
  193. }.Build()
  194. File_proxy_http_simplified_config_proto = out.File
  195. file_proxy_http_simplified_config_proto_rawDesc = nil
  196. file_proxy_http_simplified_config_proto_goTypes = nil
  197. file_proxy_http_simplified_config_proto_depIdxs = nil
  198. }