base_params.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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/base_params.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 BaseParams struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. ClientAsn *string `protobuf:"bytes,1,opt,name=client_asn,json=clientAsn,proto3,oneof" json:"client_asn,omitempty"`
  24. ClientAso *string `protobuf:"bytes,2,opt,name=client_aso,json=clientAso,proto3,oneof" json:"client_aso,omitempty"`
  25. ClientBuildRev *string `protobuf:"bytes,3,opt,name=client_build_rev,json=clientBuildRev,proto3,oneof" json:"client_build_rev,omitempty"`
  26. ClientCity *string `protobuf:"bytes,4,opt,name=client_city,json=clientCity,proto3,oneof" json:"client_city,omitempty"`
  27. ClientFeatures []string `protobuf:"bytes,5,rep,name=client_features,json=clientFeatures,proto3" json:"client_features,omitempty"`
  28. ClientIsp *string `protobuf:"bytes,6,opt,name=client_isp,json=clientIsp,proto3,oneof" json:"client_isp,omitempty"`
  29. ClientPlatform *string `protobuf:"bytes,7,opt,name=client_platform,json=clientPlatform,proto3,oneof" json:"client_platform,omitempty"`
  30. ClientRegion *string `protobuf:"bytes,8,opt,name=client_region,json=clientRegion,proto3,oneof" json:"client_region,omitempty"`
  31. ClientVersion *int64 `protobuf:"varint,9,opt,name=client_version,json=clientVersion,proto3,oneof" json:"client_version,omitempty"`
  32. DeviceLocation *string `protobuf:"bytes,10,opt,name=device_location,json=deviceLocation,proto3,oneof" json:"device_location,omitempty"` //device_location uses geohash encoding
  33. DeviceRegion *string `protobuf:"bytes,11,opt,name=device_region,json=deviceRegion,proto3,oneof" json:"device_region,omitempty"`
  34. SessionId *string `protobuf:"bytes,12,opt,name=session_id,json=sessionId,proto3,oneof" json:"session_id,omitempty"`
  35. SponsorId *string `protobuf:"bytes,13,opt,name=sponsor_id,json=sponsorId,proto3,oneof" json:"sponsor_id,omitempty"`
  36. PropagationChannelId *string `protobuf:"bytes,14,opt,name=propagation_channel_id,json=propagationChannelId,proto3,oneof" json:"propagation_channel_id,omitempty"`
  37. AppliedTacticsTag *string `protobuf:"bytes,15,opt,name=applied_tactics_tag,json=appliedTacticsTag,proto3,oneof" json:"applied_tactics_tag,omitempty"`
  38. EgressRegion *string `protobuf:"bytes,16,opt,name=egress_region,json=egressRegion,proto3,oneof" json:"egress_region,omitempty"`
  39. LastConnected *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=last_connected,json=lastConnected,proto3,oneof" json:"last_connected,omitempty"`
  40. AuthorizedAccessTypes []string `protobuf:"bytes,18,rep,name=authorized_access_types,json=authorizedAccessTypes,proto3" json:"authorized_access_types,omitempty"`
  41. NetworkType *string `protobuf:"bytes,19,opt,name=network_type,json=networkType,proto3,oneof" json:"network_type,omitempty"`
  42. unknownFields protoimpl.UnknownFields
  43. sizeCache protoimpl.SizeCache
  44. }
  45. func (x *BaseParams) Reset() {
  46. *x = BaseParams{}
  47. mi := &file_ca_psiphon_psiphond_base_params_proto_msgTypes[0]
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. ms.StoreMessageInfo(mi)
  50. }
  51. func (x *BaseParams) String() string {
  52. return protoimpl.X.MessageStringOf(x)
  53. }
  54. func (*BaseParams) ProtoMessage() {}
  55. func (x *BaseParams) ProtoReflect() protoreflect.Message {
  56. mi := &file_ca_psiphon_psiphond_base_params_proto_msgTypes[0]
  57. if x != nil {
  58. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  59. if ms.LoadMessageInfo() == nil {
  60. ms.StoreMessageInfo(mi)
  61. }
  62. return ms
  63. }
  64. return mi.MessageOf(x)
  65. }
  66. // Deprecated: Use BaseParams.ProtoReflect.Descriptor instead.
  67. func (*BaseParams) Descriptor() ([]byte, []int) {
  68. return file_ca_psiphon_psiphond_base_params_proto_rawDescGZIP(), []int{0}
  69. }
  70. func (x *BaseParams) GetClientAsn() string {
  71. if x != nil && x.ClientAsn != nil {
  72. return *x.ClientAsn
  73. }
  74. return ""
  75. }
  76. func (x *BaseParams) GetClientAso() string {
  77. if x != nil && x.ClientAso != nil {
  78. return *x.ClientAso
  79. }
  80. return ""
  81. }
  82. func (x *BaseParams) GetClientBuildRev() string {
  83. if x != nil && x.ClientBuildRev != nil {
  84. return *x.ClientBuildRev
  85. }
  86. return ""
  87. }
  88. func (x *BaseParams) GetClientCity() string {
  89. if x != nil && x.ClientCity != nil {
  90. return *x.ClientCity
  91. }
  92. return ""
  93. }
  94. func (x *BaseParams) GetClientFeatures() []string {
  95. if x != nil {
  96. return x.ClientFeatures
  97. }
  98. return nil
  99. }
  100. func (x *BaseParams) GetClientIsp() string {
  101. if x != nil && x.ClientIsp != nil {
  102. return *x.ClientIsp
  103. }
  104. return ""
  105. }
  106. func (x *BaseParams) GetClientPlatform() string {
  107. if x != nil && x.ClientPlatform != nil {
  108. return *x.ClientPlatform
  109. }
  110. return ""
  111. }
  112. func (x *BaseParams) GetClientRegion() string {
  113. if x != nil && x.ClientRegion != nil {
  114. return *x.ClientRegion
  115. }
  116. return ""
  117. }
  118. func (x *BaseParams) GetClientVersion() int64 {
  119. if x != nil && x.ClientVersion != nil {
  120. return *x.ClientVersion
  121. }
  122. return 0
  123. }
  124. func (x *BaseParams) GetDeviceLocation() string {
  125. if x != nil && x.DeviceLocation != nil {
  126. return *x.DeviceLocation
  127. }
  128. return ""
  129. }
  130. func (x *BaseParams) GetDeviceRegion() string {
  131. if x != nil && x.DeviceRegion != nil {
  132. return *x.DeviceRegion
  133. }
  134. return ""
  135. }
  136. func (x *BaseParams) GetSessionId() string {
  137. if x != nil && x.SessionId != nil {
  138. return *x.SessionId
  139. }
  140. return ""
  141. }
  142. func (x *BaseParams) GetSponsorId() string {
  143. if x != nil && x.SponsorId != nil {
  144. return *x.SponsorId
  145. }
  146. return ""
  147. }
  148. func (x *BaseParams) GetPropagationChannelId() string {
  149. if x != nil && x.PropagationChannelId != nil {
  150. return *x.PropagationChannelId
  151. }
  152. return ""
  153. }
  154. func (x *BaseParams) GetAppliedTacticsTag() string {
  155. if x != nil && x.AppliedTacticsTag != nil {
  156. return *x.AppliedTacticsTag
  157. }
  158. return ""
  159. }
  160. func (x *BaseParams) GetEgressRegion() string {
  161. if x != nil && x.EgressRegion != nil {
  162. return *x.EgressRegion
  163. }
  164. return ""
  165. }
  166. func (x *BaseParams) GetLastConnected() *timestamppb.Timestamp {
  167. if x != nil {
  168. return x.LastConnected
  169. }
  170. return nil
  171. }
  172. func (x *BaseParams) GetAuthorizedAccessTypes() []string {
  173. if x != nil {
  174. return x.AuthorizedAccessTypes
  175. }
  176. return nil
  177. }
  178. func (x *BaseParams) GetNetworkType() string {
  179. if x != nil && x.NetworkType != nil {
  180. return *x.NetworkType
  181. }
  182. return ""
  183. }
  184. var File_ca_psiphon_psiphond_base_params_proto protoreflect.FileDescriptor
  185. const file_ca_psiphon_psiphond_base_params_proto_rawDesc = "" +
  186. "\n" +
  187. "%ca.psiphon.psiphond/base_params.proto\x12\x13ca.psiphon.psiphond\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\t\n" +
  188. "\n" +
  189. "BaseParams\x12\"\n" +
  190. "\n" +
  191. "client_asn\x18\x01 \x01(\tH\x00R\tclientAsn\x88\x01\x01\x12\"\n" +
  192. "\n" +
  193. "client_aso\x18\x02 \x01(\tH\x01R\tclientAso\x88\x01\x01\x12-\n" +
  194. "\x10client_build_rev\x18\x03 \x01(\tH\x02R\x0eclientBuildRev\x88\x01\x01\x12$\n" +
  195. "\vclient_city\x18\x04 \x01(\tH\x03R\n" +
  196. "clientCity\x88\x01\x01\x12'\n" +
  197. "\x0fclient_features\x18\x05 \x03(\tR\x0eclientFeatures\x12\"\n" +
  198. "\n" +
  199. "client_isp\x18\x06 \x01(\tH\x04R\tclientIsp\x88\x01\x01\x12,\n" +
  200. "\x0fclient_platform\x18\a \x01(\tH\x05R\x0eclientPlatform\x88\x01\x01\x12(\n" +
  201. "\rclient_region\x18\b \x01(\tH\x06R\fclientRegion\x88\x01\x01\x12*\n" +
  202. "\x0eclient_version\x18\t \x01(\x03H\aR\rclientVersion\x88\x01\x01\x12,\n" +
  203. "\x0fdevice_location\x18\n" +
  204. " \x01(\tH\bR\x0edeviceLocation\x88\x01\x01\x12(\n" +
  205. "\rdevice_region\x18\v \x01(\tH\tR\fdeviceRegion\x88\x01\x01\x12\"\n" +
  206. "\n" +
  207. "session_id\x18\f \x01(\tH\n" +
  208. "R\tsessionId\x88\x01\x01\x12\"\n" +
  209. "\n" +
  210. "sponsor_id\x18\r \x01(\tH\vR\tsponsorId\x88\x01\x01\x129\n" +
  211. "\x16propagation_channel_id\x18\x0e \x01(\tH\fR\x14propagationChannelId\x88\x01\x01\x123\n" +
  212. "\x13applied_tactics_tag\x18\x0f \x01(\tH\rR\x11appliedTacticsTag\x88\x01\x01\x12(\n" +
  213. "\regress_region\x18\x10 \x01(\tH\x0eR\fegressRegion\x88\x01\x01\x12F\n" +
  214. "\x0elast_connected\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampH\x0fR\rlastConnected\x88\x01\x01\x126\n" +
  215. "\x17authorized_access_types\x18\x12 \x03(\tR\x15authorizedAccessTypes\x12&\n" +
  216. "\fnetwork_type\x18\x13 \x01(\tH\x10R\vnetworkType\x88\x01\x01B\r\n" +
  217. "\v_client_asnB\r\n" +
  218. "\v_client_asoB\x13\n" +
  219. "\x11_client_build_revB\x0e\n" +
  220. "\f_client_cityB\r\n" +
  221. "\v_client_ispB\x12\n" +
  222. "\x10_client_platformB\x10\n" +
  223. "\x0e_client_regionB\x11\n" +
  224. "\x0f_client_versionB\x12\n" +
  225. "\x10_device_locationB\x10\n" +
  226. "\x0e_device_regionB\r\n" +
  227. "\v_session_idB\r\n" +
  228. "\v_sponsor_idB\x19\n" +
  229. "\x17_propagation_channel_idB\x16\n" +
  230. "\x14_applied_tactics_tagB\x10\n" +
  231. "\x0e_egress_regionB\x11\n" +
  232. "\x0f_last_connectedB\x0f\n" +
  233. "\r_network_typeBHZFgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/psiphondb\x06proto3"
  234. var (
  235. file_ca_psiphon_psiphond_base_params_proto_rawDescOnce sync.Once
  236. file_ca_psiphon_psiphond_base_params_proto_rawDescData []byte
  237. )
  238. func file_ca_psiphon_psiphond_base_params_proto_rawDescGZIP() []byte {
  239. file_ca_psiphon_psiphond_base_params_proto_rawDescOnce.Do(func() {
  240. file_ca_psiphon_psiphond_base_params_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_base_params_proto_rawDesc), len(file_ca_psiphon_psiphond_base_params_proto_rawDesc)))
  241. })
  242. return file_ca_psiphon_psiphond_base_params_proto_rawDescData
  243. }
  244. var file_ca_psiphon_psiphond_base_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  245. var file_ca_psiphon_psiphond_base_params_proto_goTypes = []any{
  246. (*BaseParams)(nil), // 0: ca.psiphon.psiphond.BaseParams
  247. (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
  248. }
  249. var file_ca_psiphon_psiphond_base_params_proto_depIdxs = []int32{
  250. 1, // 0: ca.psiphon.psiphond.BaseParams.last_connected:type_name -> google.protobuf.Timestamp
  251. 1, // [1:1] is the sub-list for method output_type
  252. 1, // [1:1] is the sub-list for method input_type
  253. 1, // [1:1] is the sub-list for extension type_name
  254. 1, // [1:1] is the sub-list for extension extendee
  255. 0, // [0:1] is the sub-list for field type_name
  256. }
  257. func init() { file_ca_psiphon_psiphond_base_params_proto_init() }
  258. func file_ca_psiphon_psiphond_base_params_proto_init() {
  259. if File_ca_psiphon_psiphond_base_params_proto != nil {
  260. return
  261. }
  262. file_ca_psiphon_psiphond_base_params_proto_msgTypes[0].OneofWrappers = []any{}
  263. type x struct{}
  264. out := protoimpl.TypeBuilder{
  265. File: protoimpl.DescBuilder{
  266. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  267. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_base_params_proto_rawDesc), len(file_ca_psiphon_psiphond_base_params_proto_rawDesc)),
  268. NumEnums: 0,
  269. NumMessages: 1,
  270. NumExtensions: 0,
  271. NumServices: 0,
  272. },
  273. GoTypes: file_ca_psiphon_psiphond_base_params_proto_goTypes,
  274. DependencyIndexes: file_ca_psiphon_psiphond_base_params_proto_depIdxs,
  275. MessageInfos: file_ca_psiphon_psiphond_base_params_proto_msgTypes,
  276. }.Build()
  277. File_ca_psiphon_psiphond_base_params_proto = out.File
  278. file_ca_psiphon_psiphond_base_params_proto_goTypes = nil
  279. file_ca_psiphon_psiphond_base_params_proto_depIdxs = nil
  280. }