config.pb.go 8.5 KB

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