tactics.pb.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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/tactics.proto
  6. package psiphond
  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. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Tactics struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. BaseParams *BaseParams `protobuf:"bytes,1,opt,name=base_params,json=baseParams,proto3,oneof" json:"base_params,omitempty"`
  23. DialParams *DialParams `protobuf:"bytes,2,opt,name=dial_params,json=dialParams,proto3,oneof" json:"dial_params,omitempty"`
  24. IsTacticsRequest *bool `protobuf:"varint,100,opt,name=is_tactics_request,json=isTacticsRequest,proto3,oneof" json:"is_tactics_request,omitempty"`
  25. NewTacticsTag *string `protobuf:"bytes,101,opt,name=new_tactics_tag,json=newTacticsTag,proto3,oneof" json:"new_tactics_tag,omitempty"`
  26. StoredTacticsTag *string `protobuf:"bytes,102,opt,name=stored_tactics_tag,json=storedTacticsTag,proto3,oneof" json:"stored_tactics_tag,omitempty"`
  27. unknownFields protoimpl.UnknownFields
  28. sizeCache protoimpl.SizeCache
  29. }
  30. func (x *Tactics) Reset() {
  31. *x = Tactics{}
  32. mi := &file_ca_psiphon_psiphond_tactics_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. func (x *Tactics) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*Tactics) ProtoMessage() {}
  40. func (x *Tactics) ProtoReflect() protoreflect.Message {
  41. mi := &file_ca_psiphon_psiphond_tactics_proto_msgTypes[0]
  42. if 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 Tactics.ProtoReflect.Descriptor instead.
  52. func (*Tactics) Descriptor() ([]byte, []int) {
  53. return file_ca_psiphon_psiphond_tactics_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Tactics) GetBaseParams() *BaseParams {
  56. if x != nil {
  57. return x.BaseParams
  58. }
  59. return nil
  60. }
  61. func (x *Tactics) GetDialParams() *DialParams {
  62. if x != nil {
  63. return x.DialParams
  64. }
  65. return nil
  66. }
  67. func (x *Tactics) GetIsTacticsRequest() bool {
  68. if x != nil && x.IsTacticsRequest != nil {
  69. return *x.IsTacticsRequest
  70. }
  71. return false
  72. }
  73. func (x *Tactics) GetNewTacticsTag() string {
  74. if x != nil && x.NewTacticsTag != nil {
  75. return *x.NewTacticsTag
  76. }
  77. return ""
  78. }
  79. func (x *Tactics) GetStoredTacticsTag() string {
  80. if x != nil && x.StoredTacticsTag != nil {
  81. return *x.StoredTacticsTag
  82. }
  83. return ""
  84. }
  85. type TacticsSpeedTest struct {
  86. state protoimpl.MessageState `protogen:"open.v1"`
  87. BaseParams *BaseParams `protobuf:"bytes,1,opt,name=base_params,json=baseParams,proto3,oneof" json:"base_params,omitempty"`
  88. RoundTripTimeMs *int64 `protobuf:"varint,100,opt,name=round_trip_time_ms,json=roundTripTimeMs,proto3,oneof" json:"round_trip_time_ms,omitempty"`
  89. BytesDown *int64 `protobuf:"varint,101,opt,name=bytes_down,json=bytesDown,proto3,oneof" json:"bytes_down,omitempty"`
  90. BytesUp *int64 `protobuf:"varint,102,opt,name=bytes_up,json=bytesUp,proto3,oneof" json:"bytes_up,omitempty"`
  91. RelayProtocol *string `protobuf:"bytes,103,opt,name=relay_protocol,json=relayProtocol,proto3,oneof" json:"relay_protocol,omitempty"`
  92. ServerRegion *string `protobuf:"bytes,104,opt,name=server_region,json=serverRegion,proto3,oneof" json:"server_region,omitempty"`
  93. unknownFields protoimpl.UnknownFields
  94. sizeCache protoimpl.SizeCache
  95. }
  96. func (x *TacticsSpeedTest) Reset() {
  97. *x = TacticsSpeedTest{}
  98. mi := &file_ca_psiphon_psiphond_tactics_proto_msgTypes[1]
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. ms.StoreMessageInfo(mi)
  101. }
  102. func (x *TacticsSpeedTest) String() string {
  103. return protoimpl.X.MessageStringOf(x)
  104. }
  105. func (*TacticsSpeedTest) ProtoMessage() {}
  106. func (x *TacticsSpeedTest) ProtoReflect() protoreflect.Message {
  107. mi := &file_ca_psiphon_psiphond_tactics_proto_msgTypes[1]
  108. if x != nil {
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. if ms.LoadMessageInfo() == nil {
  111. ms.StoreMessageInfo(mi)
  112. }
  113. return ms
  114. }
  115. return mi.MessageOf(x)
  116. }
  117. // Deprecated: Use TacticsSpeedTest.ProtoReflect.Descriptor instead.
  118. func (*TacticsSpeedTest) Descriptor() ([]byte, []int) {
  119. return file_ca_psiphon_psiphond_tactics_proto_rawDescGZIP(), []int{1}
  120. }
  121. func (x *TacticsSpeedTest) GetBaseParams() *BaseParams {
  122. if x != nil {
  123. return x.BaseParams
  124. }
  125. return nil
  126. }
  127. func (x *TacticsSpeedTest) GetRoundTripTimeMs() int64 {
  128. if x != nil && x.RoundTripTimeMs != nil {
  129. return *x.RoundTripTimeMs
  130. }
  131. return 0
  132. }
  133. func (x *TacticsSpeedTest) GetBytesDown() int64 {
  134. if x != nil && x.BytesDown != nil {
  135. return *x.BytesDown
  136. }
  137. return 0
  138. }
  139. func (x *TacticsSpeedTest) GetBytesUp() int64 {
  140. if x != nil && x.BytesUp != nil {
  141. return *x.BytesUp
  142. }
  143. return 0
  144. }
  145. func (x *TacticsSpeedTest) GetRelayProtocol() string {
  146. if x != nil && x.RelayProtocol != nil {
  147. return *x.RelayProtocol
  148. }
  149. return ""
  150. }
  151. func (x *TacticsSpeedTest) GetServerRegion() string {
  152. if x != nil && x.ServerRegion != nil {
  153. return *x.ServerRegion
  154. }
  155. return ""
  156. }
  157. var File_ca_psiphon_psiphond_tactics_proto protoreflect.FileDescriptor
  158. const file_ca_psiphon_psiphond_tactics_proto_rawDesc = "" +
  159. "\n" +
  160. "!ca.psiphon.psiphond/tactics.proto\x12\x13ca.psiphon.psiphond\x1a%ca.psiphon.psiphond/base_params.proto\x1a%ca.psiphon.psiphond/dial_params.proto\"\x8c\x03\n" +
  161. "\aTactics\x12E\n" +
  162. "\vbase_params\x18\x01 \x01(\v2\x1f.ca.psiphon.psiphond.BaseParamsH\x00R\n" +
  163. "baseParams\x88\x01\x01\x12E\n" +
  164. "\vdial_params\x18\x02 \x01(\v2\x1f.ca.psiphon.psiphond.DialParamsH\x01R\n" +
  165. "dialParams\x88\x01\x01\x121\n" +
  166. "\x12is_tactics_request\x18d \x01(\bH\x02R\x10isTacticsRequest\x88\x01\x01\x12+\n" +
  167. "\x0fnew_tactics_tag\x18e \x01(\tH\x03R\rnewTacticsTag\x88\x01\x01\x121\n" +
  168. "\x12stored_tactics_tag\x18f \x01(\tH\x04R\x10storedTacticsTag\x88\x01\x01B\x0e\n" +
  169. "\f_base_paramsB\x0e\n" +
  170. "\f_dial_paramsB\x15\n" +
  171. "\x13_is_tactics_requestB\x12\n" +
  172. "\x10_new_tactics_tagB\x15\n" +
  173. "\x13_stored_tactics_tag\"\x8d\x03\n" +
  174. "\x10TacticsSpeedTest\x12E\n" +
  175. "\vbase_params\x18\x01 \x01(\v2\x1f.ca.psiphon.psiphond.BaseParamsH\x00R\n" +
  176. "baseParams\x88\x01\x01\x120\n" +
  177. "\x12round_trip_time_ms\x18d \x01(\x03H\x01R\x0froundTripTimeMs\x88\x01\x01\x12\"\n" +
  178. "\n" +
  179. "bytes_down\x18e \x01(\x03H\x02R\tbytesDown\x88\x01\x01\x12\x1e\n" +
  180. "\bbytes_up\x18f \x01(\x03H\x03R\abytesUp\x88\x01\x01\x12*\n" +
  181. "\x0erelay_protocol\x18g \x01(\tH\x04R\rrelayProtocol\x88\x01\x01\x12(\n" +
  182. "\rserver_region\x18h \x01(\tH\x05R\fserverRegion\x88\x01\x01B\x0e\n" +
  183. "\f_base_paramsB\x15\n" +
  184. "\x13_round_trip_time_msB\r\n" +
  185. "\v_bytes_downB\v\n" +
  186. "\t_bytes_upB\x11\n" +
  187. "\x0f_relay_protocolB\x10\n" +
  188. "\x0e_server_regionBHZFgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/psiphondb\x06proto3"
  189. var (
  190. file_ca_psiphon_psiphond_tactics_proto_rawDescOnce sync.Once
  191. file_ca_psiphon_psiphond_tactics_proto_rawDescData []byte
  192. )
  193. func file_ca_psiphon_psiphond_tactics_proto_rawDescGZIP() []byte {
  194. file_ca_psiphon_psiphond_tactics_proto_rawDescOnce.Do(func() {
  195. file_ca_psiphon_psiphond_tactics_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_tactics_proto_rawDesc), len(file_ca_psiphon_psiphond_tactics_proto_rawDesc)))
  196. })
  197. return file_ca_psiphon_psiphond_tactics_proto_rawDescData
  198. }
  199. var file_ca_psiphon_psiphond_tactics_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  200. var file_ca_psiphon_psiphond_tactics_proto_goTypes = []any{
  201. (*Tactics)(nil), // 0: ca.psiphon.psiphond.Tactics
  202. (*TacticsSpeedTest)(nil), // 1: ca.psiphon.psiphond.TacticsSpeedTest
  203. (*BaseParams)(nil), // 2: ca.psiphon.psiphond.BaseParams
  204. (*DialParams)(nil), // 3: ca.psiphon.psiphond.DialParams
  205. }
  206. var file_ca_psiphon_psiphond_tactics_proto_depIdxs = []int32{
  207. 2, // 0: ca.psiphon.psiphond.Tactics.base_params:type_name -> ca.psiphon.psiphond.BaseParams
  208. 3, // 1: ca.psiphon.psiphond.Tactics.dial_params:type_name -> ca.psiphon.psiphond.DialParams
  209. 2, // 2: ca.psiphon.psiphond.TacticsSpeedTest.base_params:type_name -> ca.psiphon.psiphond.BaseParams
  210. 3, // [3:3] is the sub-list for method output_type
  211. 3, // [3:3] is the sub-list for method input_type
  212. 3, // [3:3] is the sub-list for extension type_name
  213. 3, // [3:3] is the sub-list for extension extendee
  214. 0, // [0:3] is the sub-list for field type_name
  215. }
  216. func init() { file_ca_psiphon_psiphond_tactics_proto_init() }
  217. func file_ca_psiphon_psiphond_tactics_proto_init() {
  218. if File_ca_psiphon_psiphond_tactics_proto != nil {
  219. return
  220. }
  221. file_ca_psiphon_psiphond_base_params_proto_init()
  222. file_ca_psiphon_psiphond_dial_params_proto_init()
  223. file_ca_psiphon_psiphond_tactics_proto_msgTypes[0].OneofWrappers = []any{}
  224. file_ca_psiphon_psiphond_tactics_proto_msgTypes[1].OneofWrappers = []any{}
  225. type x struct{}
  226. out := protoimpl.TypeBuilder{
  227. File: protoimpl.DescBuilder{
  228. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  229. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_tactics_proto_rawDesc), len(file_ca_psiphon_psiphond_tactics_proto_rawDesc)),
  230. NumEnums: 0,
  231. NumMessages: 2,
  232. NumExtensions: 0,
  233. NumServices: 0,
  234. },
  235. GoTypes: file_ca_psiphon_psiphond_tactics_proto_goTypes,
  236. DependencyIndexes: file_ca_psiphon_psiphond_tactics_proto_depIdxs,
  237. MessageInfos: file_ca_psiphon_psiphond_tactics_proto_msgTypes,
  238. }.Build()
  239. File_ca_psiphon_psiphond_tactics_proto = out.File
  240. file_ca_psiphon_psiphond_tactics_proto_goTypes = nil
  241. file_ca_psiphon_psiphond_tactics_proto_depIdxs = nil
  242. }