config.pb.go 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. H1SkipWaitForReply bool `protobuf:"varint,3,opt,name=h1_skip_wait_for_reply,json=h1SkipWaitForReply,proto3" json:"h1_skip_wait_for_reply,omitempty"`
  55. }
  56. func (x *ClientConfig) Reset() {
  57. *x = ClientConfig{}
  58. if protoimpl.UnsafeEnabled {
  59. mi := &file_proxy_http_simplified_config_proto_msgTypes[1]
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. ms.StoreMessageInfo(mi)
  62. }
  63. }
  64. func (x *ClientConfig) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*ClientConfig) ProtoMessage() {}
  68. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  69. mi := &file_proxy_http_simplified_config_proto_msgTypes[1]
  70. if protoimpl.UnsafeEnabled && x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  80. func (*ClientConfig) Descriptor() ([]byte, []int) {
  81. return file_proxy_http_simplified_config_proto_rawDescGZIP(), []int{1}
  82. }
  83. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  84. if x != nil {
  85. return x.Address
  86. }
  87. return nil
  88. }
  89. func (x *ClientConfig) GetPort() uint32 {
  90. if x != nil {
  91. return x.Port
  92. }
  93. return 0
  94. }
  95. func (x *ClientConfig) GetH1SkipWaitForReply() bool {
  96. if x != nil {
  97. return x.H1SkipWaitForReply
  98. }
  99. return false
  100. }
  101. var File_proxy_http_simplified_config_proto protoreflect.FileDescriptor
  102. var file_proxy_http_simplified_config_proto_rawDesc = []byte{
  103. 0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d,
  104. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  105. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  106. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70,
  107. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  108. 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  109. 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  110. 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  111. 0x74, 0x6f, 0x22, 0x23, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,
  112. 0x69, 0x67, 0x3a, 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  113. 0x64, 0x12, 0x04, 0x68, 0x74, 0x74, 0x70, 0x22, 0xa9, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65,
  114. 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
  115. 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61,
  116. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  117. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
  118. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
  119. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x16, 0x68, 0x31, 0x5f,
  120. 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x72, 0x65,
  121. 0x70, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x68, 0x31, 0x53, 0x6b, 0x69,
  122. 0x70, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x3a, 0x14, 0x82,
  123. 0xb5, 0x18, 0x10, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x04, 0x68,
  124. 0x74, 0x74, 0x70, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  125. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74,
  126. 0x70, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x01, 0x5a, 0x34,
  127. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
  128. 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70,
  129. 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69,
  130. 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  131. 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x2e, 0x53, 0x69, 0x6d,
  132. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  133. }
  134. var (
  135. file_proxy_http_simplified_config_proto_rawDescOnce sync.Once
  136. file_proxy_http_simplified_config_proto_rawDescData = file_proxy_http_simplified_config_proto_rawDesc
  137. )
  138. func file_proxy_http_simplified_config_proto_rawDescGZIP() []byte {
  139. file_proxy_http_simplified_config_proto_rawDescOnce.Do(func() {
  140. file_proxy_http_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_http_simplified_config_proto_rawDescData)
  141. })
  142. return file_proxy_http_simplified_config_proto_rawDescData
  143. }
  144. var file_proxy_http_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  145. var file_proxy_http_simplified_config_proto_goTypes = []interface{}{
  146. (*ServerConfig)(nil), // 0: v2ray.core.proxy.http.simplified.ServerConfig
  147. (*ClientConfig)(nil), // 1: v2ray.core.proxy.http.simplified.ClientConfig
  148. (*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
  149. }
  150. var file_proxy_http_simplified_config_proto_depIdxs = []int32{
  151. 2, // 0: v2ray.core.proxy.http.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  152. 1, // [1:1] is the sub-list for method output_type
  153. 1, // [1:1] is the sub-list for method input_type
  154. 1, // [1:1] is the sub-list for extension type_name
  155. 1, // [1:1] is the sub-list for extension extendee
  156. 0, // [0:1] is the sub-list for field type_name
  157. }
  158. func init() { file_proxy_http_simplified_config_proto_init() }
  159. func file_proxy_http_simplified_config_proto_init() {
  160. if File_proxy_http_simplified_config_proto != nil {
  161. return
  162. }
  163. if !protoimpl.UnsafeEnabled {
  164. file_proxy_http_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  165. switch v := v.(*ServerConfig); i {
  166. case 0:
  167. return &v.state
  168. case 1:
  169. return &v.sizeCache
  170. case 2:
  171. return &v.unknownFields
  172. default:
  173. return nil
  174. }
  175. }
  176. file_proxy_http_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  177. switch v := v.(*ClientConfig); i {
  178. case 0:
  179. return &v.state
  180. case 1:
  181. return &v.sizeCache
  182. case 2:
  183. return &v.unknownFields
  184. default:
  185. return nil
  186. }
  187. }
  188. }
  189. type x struct{}
  190. out := protoimpl.TypeBuilder{
  191. File: protoimpl.DescBuilder{
  192. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  193. RawDescriptor: file_proxy_http_simplified_config_proto_rawDesc,
  194. NumEnums: 0,
  195. NumMessages: 2,
  196. NumExtensions: 0,
  197. NumServices: 0,
  198. },
  199. GoTypes: file_proxy_http_simplified_config_proto_goTypes,
  200. DependencyIndexes: file_proxy_http_simplified_config_proto_depIdxs,
  201. MessageInfos: file_proxy_http_simplified_config_proto_msgTypes,
  202. }.Build()
  203. File_proxy_http_simplified_config_proto = out.File
  204. file_proxy_http_simplified_config_proto_rawDesc = nil
  205. file_proxy_http_simplified_config_proto_goTypes = nil
  206. file_proxy_http_simplified_config_proto_depIdxs = nil
  207. }