curl.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v4.23.3
  5. // source: curl.proto
  6. package curl
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // request
  20. type CurlRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
  25. Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
  26. Ua string `protobuf:"bytes,3,opt,name=ua,proto3" json:"ua,omitempty"`
  27. UseHeadMethod bool `protobuf:"varint,4,opt,name=useHeadMethod,proto3" json:"useHeadMethod,omitempty"`
  28. }
  29. func (x *CurlRequest) Reset() {
  30. *x = CurlRequest{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_curl_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *CurlRequest) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*CurlRequest) ProtoMessage() {}
  41. func (x *CurlRequest) ProtoReflect() protoreflect.Message {
  42. mi := &file_curl_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use CurlRequest.ProtoReflect.Descriptor instead.
  53. func (*CurlRequest) Descriptor() ([]byte, []int) {
  54. return file_curl_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *CurlRequest) GetUrl() string {
  57. if x != nil {
  58. return x.Url
  59. }
  60. return ""
  61. }
  62. func (x *CurlRequest) GetIp() string {
  63. if x != nil {
  64. return x.Ip
  65. }
  66. return ""
  67. }
  68. func (x *CurlRequest) GetUa() string {
  69. if x != nil {
  70. return x.Ua
  71. }
  72. return ""
  73. }
  74. func (x *CurlRequest) GetUseHeadMethod() bool {
  75. if x != nil {
  76. return x.UseHeadMethod
  77. }
  78. return false
  79. }
  80. // response
  81. type CurlReply struct {
  82. state protoimpl.MessageState
  83. sizeCache protoimpl.SizeCache
  84. unknownFields protoimpl.UnknownFields
  85. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  86. ContentLength int64 `protobuf:"varint,2,opt,name=contentLength,proto3" json:"contentLength,omitempty"`
  87. Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
  88. }
  89. func (x *CurlReply) Reset() {
  90. *x = CurlReply{}
  91. if protoimpl.UnsafeEnabled {
  92. mi := &file_curl_proto_msgTypes[1]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. }
  97. func (x *CurlReply) String() string {
  98. return protoimpl.X.MessageStringOf(x)
  99. }
  100. func (*CurlReply) ProtoMessage() {}
  101. func (x *CurlReply) ProtoReflect() protoreflect.Message {
  102. mi := &file_curl_proto_msgTypes[1]
  103. if protoimpl.UnsafeEnabled && x != nil {
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. if ms.LoadMessageInfo() == nil {
  106. ms.StoreMessageInfo(mi)
  107. }
  108. return ms
  109. }
  110. return mi.MessageOf(x)
  111. }
  112. // Deprecated: Use CurlReply.ProtoReflect.Descriptor instead.
  113. func (*CurlReply) Descriptor() ([]byte, []int) {
  114. return file_curl_proto_rawDescGZIP(), []int{1}
  115. }
  116. func (x *CurlReply) GetCode() int32 {
  117. if x != nil {
  118. return x.Code
  119. }
  120. return 0
  121. }
  122. func (x *CurlReply) GetContentLength() int64 {
  123. if x != nil {
  124. return x.ContentLength
  125. }
  126. return 0
  127. }
  128. func (x *CurlReply) GetError() string {
  129. if x != nil {
  130. return x.Error
  131. }
  132. return ""
  133. }
  134. var File_curl_proto protoreflect.FileDescriptor
  135. var file_curl_proto_rawDesc = []byte{
  136. 0x0a, 0x0a, 0x63, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x75,
  137. 0x72, 0x6c, 0x22, 0x65, 0x0a, 0x0b, 0x43, 0x75, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  138. 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  139. 0x75, 0x72, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  140. 0x02, 0x69, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x75, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  141. 0x02, 0x75, 0x61, 0x12, 0x24, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x4d, 0x65,
  142. 0x74, 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x48,
  143. 0x65, 0x61, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x5b, 0x0a, 0x09, 0x43, 0x75, 0x72,
  144. 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
  145. 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f,
  146. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28,
  147. 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68,
  148. 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  149. 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0x4f, 0x0a, 0x0f, 0x43, 0x75, 0x72, 0x6c, 0x57, 0x69,
  150. 0x74, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x3c, 0x0a, 0x14, 0x43, 0x75, 0x72,
  151. 0x6c, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x50, 0x61, 0x72, 0x61,
  152. 0x6d, 0x12, 0x11, 0x2e, 0x63, 0x75, 0x72, 0x6c, 0x2e, 0x43, 0x75, 0x72, 0x6c, 0x52, 0x65, 0x71,
  153. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x63, 0x75, 0x72, 0x6c, 0x2e, 0x43, 0x75, 0x72, 0x6c,
  154. 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x29, 0x0a, 0x0c, 0x69, 0x6f, 0x2e, 0x67, 0x72,
  155. 0x70, 0x63, 0x2e, 0x63, 0x75, 0x72, 0x6c, 0x42, 0x0f, 0x63, 0x75, 0x72, 0x6c, 0x57, 0x69, 0x74,
  156. 0x68, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x50, 0x01, 0x5a, 0x06, 0x2e, 0x2f, 0x63, 0x75,
  157. 0x72, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  158. }
  159. var (
  160. file_curl_proto_rawDescOnce sync.Once
  161. file_curl_proto_rawDescData = file_curl_proto_rawDesc
  162. )
  163. func file_curl_proto_rawDescGZIP() []byte {
  164. file_curl_proto_rawDescOnce.Do(func() {
  165. file_curl_proto_rawDescData = protoimpl.X.CompressGZIP(file_curl_proto_rawDescData)
  166. })
  167. return file_curl_proto_rawDescData
  168. }
  169. var file_curl_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  170. var file_curl_proto_goTypes = []interface{}{
  171. (*CurlRequest)(nil), // 0: curl.CurlRequest
  172. (*CurlReply)(nil), // 1: curl.CurlReply
  173. }
  174. var file_curl_proto_depIdxs = []int32{
  175. 0, // 0: curl.CurlWithResolve.CurlWithResolveParam:input_type -> curl.CurlRequest
  176. 1, // 1: curl.CurlWithResolve.CurlWithResolveParam:output_type -> curl.CurlReply
  177. 1, // [1:2] is the sub-list for method output_type
  178. 0, // [0:1] is the sub-list for method input_type
  179. 0, // [0:0] is the sub-list for extension type_name
  180. 0, // [0:0] is the sub-list for extension extendee
  181. 0, // [0:0] is the sub-list for field type_name
  182. }
  183. func init() { file_curl_proto_init() }
  184. func file_curl_proto_init() {
  185. if File_curl_proto != nil {
  186. return
  187. }
  188. if !protoimpl.UnsafeEnabled {
  189. file_curl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  190. switch v := v.(*CurlRequest); i {
  191. case 0:
  192. return &v.state
  193. case 1:
  194. return &v.sizeCache
  195. case 2:
  196. return &v.unknownFields
  197. default:
  198. return nil
  199. }
  200. }
  201. file_curl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  202. switch v := v.(*CurlReply); i {
  203. case 0:
  204. return &v.state
  205. case 1:
  206. return &v.sizeCache
  207. case 2:
  208. return &v.unknownFields
  209. default:
  210. return nil
  211. }
  212. }
  213. }
  214. type x struct{}
  215. out := protoimpl.TypeBuilder{
  216. File: protoimpl.DescBuilder{
  217. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  218. RawDescriptor: file_curl_proto_rawDesc,
  219. NumEnums: 0,
  220. NumMessages: 2,
  221. NumExtensions: 0,
  222. NumServices: 1,
  223. },
  224. GoTypes: file_curl_proto_goTypes,
  225. DependencyIndexes: file_curl_proto_depIdxs,
  226. MessageInfos: file_curl_proto_msgTypes,
  227. }.Build()
  228. File_curl_proto = out.File
  229. file_curl_proto_rawDesc = nil
  230. file_curl_proto_goTypes = nil
  231. file_curl_proto_depIdxs = nil
  232. }