networkDiagnostic.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.28.2
  5. // source: networkDiagnostic.proto
  6. package networkdiagnostic
  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 NetworkLatencyProbeRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. DomainName string `protobuf:"bytes,1,opt,name=domainName,proto3" json:"domainName,omitempty"`
  25. ExecCount int32 `protobuf:"varint,2,opt,name=execCount,proto3" json:"execCount,omitempty"`
  26. Interval int32 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
  27. }
  28. func (x *NetworkLatencyProbeRequest) Reset() {
  29. *x = NetworkLatencyProbeRequest{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_networkDiagnostic_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *NetworkLatencyProbeRequest) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*NetworkLatencyProbeRequest) ProtoMessage() {}
  40. func (x *NetworkLatencyProbeRequest) ProtoReflect() protoreflect.Message {
  41. mi := &file_networkDiagnostic_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use NetworkLatencyProbeRequest.ProtoReflect.Descriptor instead.
  52. func (*NetworkLatencyProbeRequest) Descriptor() ([]byte, []int) {
  53. return file_networkDiagnostic_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *NetworkLatencyProbeRequest) GetDomainName() string {
  56. if x != nil {
  57. return x.DomainName
  58. }
  59. return ""
  60. }
  61. func (x *NetworkLatencyProbeRequest) GetExecCount() int32 {
  62. if x != nil {
  63. return x.ExecCount
  64. }
  65. return 0
  66. }
  67. func (x *NetworkLatencyProbeRequest) GetInterval() int32 {
  68. if x != nil {
  69. return x.Interval
  70. }
  71. return 0
  72. }
  73. // response
  74. type NetworkLatencyProbeReply struct {
  75. state protoimpl.MessageState
  76. sizeCache protoimpl.SizeCache
  77. unknownFields protoimpl.UnknownFields
  78. Latency float64 `protobuf:"fixed64,1,opt,name=latency,proto3" json:"latency,omitempty"`
  79. PacketsReceive int32 `protobuf:"varint,2,opt,name=packetsReceive,proto3" json:"packetsReceive,omitempty"`
  80. PacketsSend int32 `protobuf:"varint,3,opt,name=packetsSend,proto3" json:"packetsSend,omitempty"`
  81. IpAddr string `protobuf:"bytes,4,opt,name=ipAddr,proto3" json:"ipAddr,omitempty"`
  82. Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
  83. }
  84. func (x *NetworkLatencyProbeReply) Reset() {
  85. *x = NetworkLatencyProbeReply{}
  86. if protoimpl.UnsafeEnabled {
  87. mi := &file_networkDiagnostic_proto_msgTypes[1]
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. ms.StoreMessageInfo(mi)
  90. }
  91. }
  92. func (x *NetworkLatencyProbeReply) String() string {
  93. return protoimpl.X.MessageStringOf(x)
  94. }
  95. func (*NetworkLatencyProbeReply) ProtoMessage() {}
  96. func (x *NetworkLatencyProbeReply) ProtoReflect() protoreflect.Message {
  97. mi := &file_networkDiagnostic_proto_msgTypes[1]
  98. if protoimpl.UnsafeEnabled && x != nil {
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. if ms.LoadMessageInfo() == nil {
  101. ms.StoreMessageInfo(mi)
  102. }
  103. return ms
  104. }
  105. return mi.MessageOf(x)
  106. }
  107. // Deprecated: Use NetworkLatencyProbeReply.ProtoReflect.Descriptor instead.
  108. func (*NetworkLatencyProbeReply) Descriptor() ([]byte, []int) {
  109. return file_networkDiagnostic_proto_rawDescGZIP(), []int{1}
  110. }
  111. func (x *NetworkLatencyProbeReply) GetLatency() float64 {
  112. if x != nil {
  113. return x.Latency
  114. }
  115. return 0
  116. }
  117. func (x *NetworkLatencyProbeReply) GetPacketsReceive() int32 {
  118. if x != nil {
  119. return x.PacketsReceive
  120. }
  121. return 0
  122. }
  123. func (x *NetworkLatencyProbeReply) GetPacketsSend() int32 {
  124. if x != nil {
  125. return x.PacketsSend
  126. }
  127. return 0
  128. }
  129. func (x *NetworkLatencyProbeReply) GetIpAddr() string {
  130. if x != nil {
  131. return x.IpAddr
  132. }
  133. return ""
  134. }
  135. func (x *NetworkLatencyProbeReply) GetError() string {
  136. if x != nil {
  137. return x.Error
  138. }
  139. return ""
  140. }
  141. var File_networkDiagnostic_proto protoreflect.FileDescriptor
  142. var file_networkDiagnostic_proto_rawDesc = []byte{
  143. 0x0a, 0x17, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73,
  144. 0x74, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  145. 0x72, 0x6b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x22, 0x76, 0x0a, 0x1a,
  146. 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x72,
  147. 0x6f, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x6f,
  148. 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
  149. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78,
  150. 0x65, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65,
  151. 0x78, 0x65, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65,
  152. 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65,
  153. 0x72, 0x76, 0x61, 0x6c, 0x22, 0xac, 0x01, 0x0a, 0x18, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  154. 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, 0x70, 0x6c,
  155. 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01,
  156. 0x28, 0x01, 0x52, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x70,
  157. 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20,
  158. 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x63, 0x65,
  159. 0x69, 0x76, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65,
  160. 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74,
  161. 0x73, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x18,
  162. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x14, 0x0a,
  163. 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72,
  164. 0x72, 0x6f, 0x72, 0x32, 0x8f, 0x01, 0x0a, 0x18, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44,
  165. 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  166. 0x12, 0x73, 0x0a, 0x13, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x61, 0x74, 0x65, 0x6e,
  167. 0x63, 0x79, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x12, 0x2d, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  168. 0x6b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77,
  169. 0x6f, 0x72, 0x6b, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52,
  170. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  171. 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f,
  172. 0x72, 0x6b, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65,
  173. 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x4a, 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63,
  174. 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74,
  175. 0x69, 0x63, 0x42, 0x16, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x61, 0x67, 0x6e,
  176. 0x6f, 0x73, 0x74, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x13, 0x2e, 0x2f,
  177. 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69,
  178. 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  179. }
  180. var (
  181. file_networkDiagnostic_proto_rawDescOnce sync.Once
  182. file_networkDiagnostic_proto_rawDescData = file_networkDiagnostic_proto_rawDesc
  183. )
  184. func file_networkDiagnostic_proto_rawDescGZIP() []byte {
  185. file_networkDiagnostic_proto_rawDescOnce.Do(func() {
  186. file_networkDiagnostic_proto_rawDescData = protoimpl.X.CompressGZIP(file_networkDiagnostic_proto_rawDescData)
  187. })
  188. return file_networkDiagnostic_proto_rawDescData
  189. }
  190. var file_networkDiagnostic_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  191. var file_networkDiagnostic_proto_goTypes = []any{
  192. (*NetworkLatencyProbeRequest)(nil), // 0: networkdiagnostic.NetworkLatencyProbeRequest
  193. (*NetworkLatencyProbeReply)(nil), // 1: networkdiagnostic.NetworkLatencyProbeReply
  194. }
  195. var file_networkDiagnostic_proto_depIdxs = []int32{
  196. 0, // 0: networkdiagnostic.NetworkDiagnosticService.NetworkLatencyProbe:input_type -> networkdiagnostic.NetworkLatencyProbeRequest
  197. 1, // 1: networkdiagnostic.NetworkDiagnosticService.NetworkLatencyProbe:output_type -> networkdiagnostic.NetworkLatencyProbeReply
  198. 1, // [1:2] is the sub-list for method output_type
  199. 0, // [0:1] is the sub-list for method input_type
  200. 0, // [0:0] is the sub-list for extension type_name
  201. 0, // [0:0] is the sub-list for extension extendee
  202. 0, // [0:0] is the sub-list for field type_name
  203. }
  204. func init() { file_networkDiagnostic_proto_init() }
  205. func file_networkDiagnostic_proto_init() {
  206. if File_networkDiagnostic_proto != nil {
  207. return
  208. }
  209. if !protoimpl.UnsafeEnabled {
  210. file_networkDiagnostic_proto_msgTypes[0].Exporter = func(v any, i int) any {
  211. switch v := v.(*NetworkLatencyProbeRequest); i {
  212. case 0:
  213. return &v.state
  214. case 1:
  215. return &v.sizeCache
  216. case 2:
  217. return &v.unknownFields
  218. default:
  219. return nil
  220. }
  221. }
  222. file_networkDiagnostic_proto_msgTypes[1].Exporter = func(v any, i int) any {
  223. switch v := v.(*NetworkLatencyProbeReply); i {
  224. case 0:
  225. return &v.state
  226. case 1:
  227. return &v.sizeCache
  228. case 2:
  229. return &v.unknownFields
  230. default:
  231. return nil
  232. }
  233. }
  234. }
  235. type x struct{}
  236. out := protoimpl.TypeBuilder{
  237. File: protoimpl.DescBuilder{
  238. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  239. RawDescriptor: file_networkDiagnostic_proto_rawDesc,
  240. NumEnums: 0,
  241. NumMessages: 2,
  242. NumExtensions: 0,
  243. NumServices: 1,
  244. },
  245. GoTypes: file_networkDiagnostic_proto_goTypes,
  246. DependencyIndexes: file_networkDiagnostic_proto_depIdxs,
  247. MessageInfos: file_networkDiagnostic_proto_msgTypes,
  248. }.Build()
  249. File_networkDiagnostic_proto = out.File
  250. file_networkDiagnostic_proto_rawDesc = nil
  251. file_networkDiagnostic_proto_goTypes = nil
  252. file_networkDiagnostic_proto_depIdxs = nil
  253. }