failed_tunnel.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v6.33.0
  5. // source: ca.psiphon.psiphond/failed_tunnel.proto
  6. package psiphond
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  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 FailedTunnel struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. BaseParams *BaseParams `protobuf:"bytes,1,opt,name=base_params,json=baseParams,proto3,oneof" json:"base_params,omitempty"`
  24. DialParams *DialParams `protobuf:"bytes,2,opt,name=dial_params,json=dialParams,proto3,oneof" json:"dial_params,omitempty"`
  25. InproxyDialParams *InproxyDialParams `protobuf:"bytes,3,opt,name=inproxy_dial_params,json=inproxyDialParams,proto3,oneof" json:"inproxy_dial_params,omitempty"`
  26. BytesDown *int64 `protobuf:"varint,100,opt,name=bytes_down,json=bytesDown,proto3,oneof" json:"bytes_down,omitempty"`
  27. BytesUp *int64 `protobuf:"varint,101,opt,name=bytes_up,json=bytesUp,proto3,oneof" json:"bytes_up,omitempty"`
  28. ClientFailedTimestamp *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=client_failed_timestamp,json=clientFailedTimestamp,proto3,oneof" json:"client_failed_timestamp,omitempty"`
  29. LivenessTestDownstreamBytes *int64 `protobuf:"varint,103,opt,name=liveness_test_downstream_bytes,json=livenessTestDownstreamBytes,proto3,oneof" json:"liveness_test_downstream_bytes,omitempty"`
  30. LivenessTestReceivedDownstreamBytes *int64 `protobuf:"varint,104,opt,name=liveness_test_received_downstream_bytes,json=livenessTestReceivedDownstreamBytes,proto3,oneof" json:"liveness_test_received_downstream_bytes,omitempty"`
  31. LivenessTestSentUpstreamBytes *int64 `protobuf:"varint,105,opt,name=liveness_test_sent_upstream_bytes,json=livenessTestSentUpstreamBytes,proto3,oneof" json:"liveness_test_sent_upstream_bytes,omitempty"`
  32. LivenessTestUpstreamBytes *int64 `protobuf:"varint,106,opt,name=liveness_test_upstream_bytes,json=livenessTestUpstreamBytes,proto3,oneof" json:"liveness_test_upstream_bytes,omitempty"`
  33. RecordProbability *float64 `protobuf:"fixed64,107,opt,name=record_probability,json=recordProbability,proto3,oneof" json:"record_probability,omitempty"`
  34. TunnelError *string `protobuf:"bytes,108,opt,name=tunnel_error,json=tunnelError,proto3,oneof" json:"tunnel_error,omitempty"`
  35. unknownFields protoimpl.UnknownFields
  36. sizeCache protoimpl.SizeCache
  37. }
  38. func (x *FailedTunnel) Reset() {
  39. *x = FailedTunnel{}
  40. mi := &file_ca_psiphon_psiphond_failed_tunnel_proto_msgTypes[0]
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. ms.StoreMessageInfo(mi)
  43. }
  44. func (x *FailedTunnel) String() string {
  45. return protoimpl.X.MessageStringOf(x)
  46. }
  47. func (*FailedTunnel) ProtoMessage() {}
  48. func (x *FailedTunnel) ProtoReflect() protoreflect.Message {
  49. mi := &file_ca_psiphon_psiphond_failed_tunnel_proto_msgTypes[0]
  50. if x != nil {
  51. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  52. if ms.LoadMessageInfo() == nil {
  53. ms.StoreMessageInfo(mi)
  54. }
  55. return ms
  56. }
  57. return mi.MessageOf(x)
  58. }
  59. // Deprecated: Use FailedTunnel.ProtoReflect.Descriptor instead.
  60. func (*FailedTunnel) Descriptor() ([]byte, []int) {
  61. return file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescGZIP(), []int{0}
  62. }
  63. func (x *FailedTunnel) GetBaseParams() *BaseParams {
  64. if x != nil {
  65. return x.BaseParams
  66. }
  67. return nil
  68. }
  69. func (x *FailedTunnel) GetDialParams() *DialParams {
  70. if x != nil {
  71. return x.DialParams
  72. }
  73. return nil
  74. }
  75. func (x *FailedTunnel) GetInproxyDialParams() *InproxyDialParams {
  76. if x != nil {
  77. return x.InproxyDialParams
  78. }
  79. return nil
  80. }
  81. func (x *FailedTunnel) GetBytesDown() int64 {
  82. if x != nil && x.BytesDown != nil {
  83. return *x.BytesDown
  84. }
  85. return 0
  86. }
  87. func (x *FailedTunnel) GetBytesUp() int64 {
  88. if x != nil && x.BytesUp != nil {
  89. return *x.BytesUp
  90. }
  91. return 0
  92. }
  93. func (x *FailedTunnel) GetClientFailedTimestamp() *timestamppb.Timestamp {
  94. if x != nil {
  95. return x.ClientFailedTimestamp
  96. }
  97. return nil
  98. }
  99. func (x *FailedTunnel) GetLivenessTestDownstreamBytes() int64 {
  100. if x != nil && x.LivenessTestDownstreamBytes != nil {
  101. return *x.LivenessTestDownstreamBytes
  102. }
  103. return 0
  104. }
  105. func (x *FailedTunnel) GetLivenessTestReceivedDownstreamBytes() int64 {
  106. if x != nil && x.LivenessTestReceivedDownstreamBytes != nil {
  107. return *x.LivenessTestReceivedDownstreamBytes
  108. }
  109. return 0
  110. }
  111. func (x *FailedTunnel) GetLivenessTestSentUpstreamBytes() int64 {
  112. if x != nil && x.LivenessTestSentUpstreamBytes != nil {
  113. return *x.LivenessTestSentUpstreamBytes
  114. }
  115. return 0
  116. }
  117. func (x *FailedTunnel) GetLivenessTestUpstreamBytes() int64 {
  118. if x != nil && x.LivenessTestUpstreamBytes != nil {
  119. return *x.LivenessTestUpstreamBytes
  120. }
  121. return 0
  122. }
  123. func (x *FailedTunnel) GetRecordProbability() float64 {
  124. if x != nil && x.RecordProbability != nil {
  125. return *x.RecordProbability
  126. }
  127. return 0
  128. }
  129. func (x *FailedTunnel) GetTunnelError() string {
  130. if x != nil && x.TunnelError != nil {
  131. return *x.TunnelError
  132. }
  133. return ""
  134. }
  135. var File_ca_psiphon_psiphond_failed_tunnel_proto protoreflect.FileDescriptor
  136. const file_ca_psiphon_psiphond_failed_tunnel_proto_rawDesc = "" +
  137. "\n" +
  138. "'ca.psiphon.psiphond/failed_tunnel.proto\x12\x13ca.psiphon.psiphond\x1a%ca.psiphon.psiphond/base_params.proto\x1a%ca.psiphon.psiphond/dial_params.proto\x1a-ca.psiphon.psiphond/inproxy_dial_params.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\b\n" +
  139. "\fFailedTunnel\x12E\n" +
  140. "\vbase_params\x18\x01 \x01(\v2\x1f.ca.psiphon.psiphond.BaseParamsH\x00R\n" +
  141. "baseParams\x88\x01\x01\x12E\n" +
  142. "\vdial_params\x18\x02 \x01(\v2\x1f.ca.psiphon.psiphond.DialParamsH\x01R\n" +
  143. "dialParams\x88\x01\x01\x12[\n" +
  144. "\x13inproxy_dial_params\x18\x03 \x01(\v2&.ca.psiphon.psiphond.InproxyDialParamsH\x02R\x11inproxyDialParams\x88\x01\x01\x12\"\n" +
  145. "\n" +
  146. "bytes_down\x18d \x01(\x03H\x03R\tbytesDown\x88\x01\x01\x12\x1e\n" +
  147. "\bbytes_up\x18e \x01(\x03H\x04R\abytesUp\x88\x01\x01\x12W\n" +
  148. "\x17client_failed_timestamp\x18f \x01(\v2\x1a.google.protobuf.TimestampH\x05R\x15clientFailedTimestamp\x88\x01\x01\x12H\n" +
  149. "\x1eliveness_test_downstream_bytes\x18g \x01(\x03H\x06R\x1blivenessTestDownstreamBytes\x88\x01\x01\x12Y\n" +
  150. "'liveness_test_received_downstream_bytes\x18h \x01(\x03H\aR#livenessTestReceivedDownstreamBytes\x88\x01\x01\x12M\n" +
  151. "!liveness_test_sent_upstream_bytes\x18i \x01(\x03H\bR\x1dlivenessTestSentUpstreamBytes\x88\x01\x01\x12D\n" +
  152. "\x1cliveness_test_upstream_bytes\x18j \x01(\x03H\tR\x19livenessTestUpstreamBytes\x88\x01\x01\x122\n" +
  153. "\x12record_probability\x18k \x01(\x01H\n" +
  154. "R\x11recordProbability\x88\x01\x01\x12&\n" +
  155. "\ftunnel_error\x18l \x01(\tH\vR\vtunnelError\x88\x01\x01B\x0e\n" +
  156. "\f_base_paramsB\x0e\n" +
  157. "\f_dial_paramsB\x16\n" +
  158. "\x14_inproxy_dial_paramsB\r\n" +
  159. "\v_bytes_downB\v\n" +
  160. "\t_bytes_upB\x1a\n" +
  161. "\x18_client_failed_timestampB!\n" +
  162. "\x1f_liveness_test_downstream_bytesB*\n" +
  163. "(_liveness_test_received_downstream_bytesB$\n" +
  164. "\"_liveness_test_sent_upstream_bytesB\x1f\n" +
  165. "\x1d_liveness_test_upstream_bytesB\x15\n" +
  166. "\x13_record_probabilityB\x0f\n" +
  167. "\r_tunnel_errorBHZFgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/psiphondb\x06proto3"
  168. var (
  169. file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescOnce sync.Once
  170. file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescData []byte
  171. )
  172. func file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescGZIP() []byte {
  173. file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescOnce.Do(func() {
  174. file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_failed_tunnel_proto_rawDesc), len(file_ca_psiphon_psiphond_failed_tunnel_proto_rawDesc)))
  175. })
  176. return file_ca_psiphon_psiphond_failed_tunnel_proto_rawDescData
  177. }
  178. var file_ca_psiphon_psiphond_failed_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  179. var file_ca_psiphon_psiphond_failed_tunnel_proto_goTypes = []any{
  180. (*FailedTunnel)(nil), // 0: ca.psiphon.psiphond.FailedTunnel
  181. (*BaseParams)(nil), // 1: ca.psiphon.psiphond.BaseParams
  182. (*DialParams)(nil), // 2: ca.psiphon.psiphond.DialParams
  183. (*InproxyDialParams)(nil), // 3: ca.psiphon.psiphond.InproxyDialParams
  184. (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
  185. }
  186. var file_ca_psiphon_psiphond_failed_tunnel_proto_depIdxs = []int32{
  187. 1, // 0: ca.psiphon.psiphond.FailedTunnel.base_params:type_name -> ca.psiphon.psiphond.BaseParams
  188. 2, // 1: ca.psiphon.psiphond.FailedTunnel.dial_params:type_name -> ca.psiphon.psiphond.DialParams
  189. 3, // 2: ca.psiphon.psiphond.FailedTunnel.inproxy_dial_params:type_name -> ca.psiphon.psiphond.InproxyDialParams
  190. 4, // 3: ca.psiphon.psiphond.FailedTunnel.client_failed_timestamp:type_name -> google.protobuf.Timestamp
  191. 4, // [4:4] is the sub-list for method output_type
  192. 4, // [4:4] is the sub-list for method input_type
  193. 4, // [4:4] is the sub-list for extension type_name
  194. 4, // [4:4] is the sub-list for extension extendee
  195. 0, // [0:4] is the sub-list for field type_name
  196. }
  197. func init() { file_ca_psiphon_psiphond_failed_tunnel_proto_init() }
  198. func file_ca_psiphon_psiphond_failed_tunnel_proto_init() {
  199. if File_ca_psiphon_psiphond_failed_tunnel_proto != nil {
  200. return
  201. }
  202. file_ca_psiphon_psiphond_base_params_proto_init()
  203. file_ca_psiphon_psiphond_dial_params_proto_init()
  204. file_ca_psiphon_psiphond_inproxy_dial_params_proto_init()
  205. file_ca_psiphon_psiphond_failed_tunnel_proto_msgTypes[0].OneofWrappers = []any{}
  206. type x struct{}
  207. out := protoimpl.TypeBuilder{
  208. File: protoimpl.DescBuilder{
  209. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  210. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_failed_tunnel_proto_rawDesc), len(file_ca_psiphon_psiphond_failed_tunnel_proto_rawDesc)),
  211. NumEnums: 0,
  212. NumMessages: 1,
  213. NumExtensions: 0,
  214. NumServices: 0,
  215. },
  216. GoTypes: file_ca_psiphon_psiphond_failed_tunnel_proto_goTypes,
  217. DependencyIndexes: file_ca_psiphon_psiphond_failed_tunnel_proto_depIdxs,
  218. MessageInfos: file_ca_psiphon_psiphond_failed_tunnel_proto_msgTypes,
  219. }.Build()
  220. File_ca_psiphon_psiphond_failed_tunnel_proto = out.File
  221. file_ca_psiphon_psiphond_failed_tunnel_proto_goTypes = nil
  222. file_ca_psiphon_psiphond_failed_tunnel_proto_depIdxs = nil
  223. }