config.pb.go 8.4 KB

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