where.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. // Code generated by ent, DO NOT EDIT.
  2. package tlsfingerprintprofile
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "github.com/Wei-Shaw/sub2api/ent/predicate"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id int64) predicate.TLSFingerprintProfile {
  10. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id int64) predicate.TLSFingerprintProfile {
  14. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id int64) predicate.TLSFingerprintProfile {
  18. return predicate.TLSFingerprintProfile(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...int64) predicate.TLSFingerprintProfile {
  22. return predicate.TLSFingerprintProfile(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...int64) predicate.TLSFingerprintProfile {
  26. return predicate.TLSFingerprintProfile(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id int64) predicate.TLSFingerprintProfile {
  30. return predicate.TLSFingerprintProfile(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id int64) predicate.TLSFingerprintProfile {
  34. return predicate.TLSFingerprintProfile(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id int64) predicate.TLSFingerprintProfile {
  38. return predicate.TLSFingerprintProfile(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id int64) predicate.TLSFingerprintProfile {
  42. return predicate.TLSFingerprintProfile(sql.FieldLTE(FieldID, id))
  43. }
  44. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  45. func CreatedAt(v time.Time) predicate.TLSFingerprintProfile {
  46. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldCreatedAt, v))
  47. }
  48. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  49. func UpdatedAt(v time.Time) predicate.TLSFingerprintProfile {
  50. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  53. func Name(v string) predicate.TLSFingerprintProfile {
  54. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldName, v))
  55. }
  56. // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
  57. func Description(v string) predicate.TLSFingerprintProfile {
  58. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldDescription, v))
  59. }
  60. // EnableGrease applies equality check predicate on the "enable_grease" field. It's identical to EnableGreaseEQ.
  61. func EnableGrease(v bool) predicate.TLSFingerprintProfile {
  62. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldEnableGrease, v))
  63. }
  64. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  65. func CreatedAtEQ(v time.Time) predicate.TLSFingerprintProfile {
  66. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldCreatedAt, v))
  67. }
  68. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  69. func CreatedAtNEQ(v time.Time) predicate.TLSFingerprintProfile {
  70. return predicate.TLSFingerprintProfile(sql.FieldNEQ(FieldCreatedAt, v))
  71. }
  72. // CreatedAtIn applies the In predicate on the "created_at" field.
  73. func CreatedAtIn(vs ...time.Time) predicate.TLSFingerprintProfile {
  74. return predicate.TLSFingerprintProfile(sql.FieldIn(FieldCreatedAt, vs...))
  75. }
  76. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  77. func CreatedAtNotIn(vs ...time.Time) predicate.TLSFingerprintProfile {
  78. return predicate.TLSFingerprintProfile(sql.FieldNotIn(FieldCreatedAt, vs...))
  79. }
  80. // CreatedAtGT applies the GT predicate on the "created_at" field.
  81. func CreatedAtGT(v time.Time) predicate.TLSFingerprintProfile {
  82. return predicate.TLSFingerprintProfile(sql.FieldGT(FieldCreatedAt, v))
  83. }
  84. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  85. func CreatedAtGTE(v time.Time) predicate.TLSFingerprintProfile {
  86. return predicate.TLSFingerprintProfile(sql.FieldGTE(FieldCreatedAt, v))
  87. }
  88. // CreatedAtLT applies the LT predicate on the "created_at" field.
  89. func CreatedAtLT(v time.Time) predicate.TLSFingerprintProfile {
  90. return predicate.TLSFingerprintProfile(sql.FieldLT(FieldCreatedAt, v))
  91. }
  92. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  93. func CreatedAtLTE(v time.Time) predicate.TLSFingerprintProfile {
  94. return predicate.TLSFingerprintProfile(sql.FieldLTE(FieldCreatedAt, v))
  95. }
  96. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  97. func UpdatedAtEQ(v time.Time) predicate.TLSFingerprintProfile {
  98. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldUpdatedAt, v))
  99. }
  100. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  101. func UpdatedAtNEQ(v time.Time) predicate.TLSFingerprintProfile {
  102. return predicate.TLSFingerprintProfile(sql.FieldNEQ(FieldUpdatedAt, v))
  103. }
  104. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  105. func UpdatedAtIn(vs ...time.Time) predicate.TLSFingerprintProfile {
  106. return predicate.TLSFingerprintProfile(sql.FieldIn(FieldUpdatedAt, vs...))
  107. }
  108. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  109. func UpdatedAtNotIn(vs ...time.Time) predicate.TLSFingerprintProfile {
  110. return predicate.TLSFingerprintProfile(sql.FieldNotIn(FieldUpdatedAt, vs...))
  111. }
  112. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  113. func UpdatedAtGT(v time.Time) predicate.TLSFingerprintProfile {
  114. return predicate.TLSFingerprintProfile(sql.FieldGT(FieldUpdatedAt, v))
  115. }
  116. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  117. func UpdatedAtGTE(v time.Time) predicate.TLSFingerprintProfile {
  118. return predicate.TLSFingerprintProfile(sql.FieldGTE(FieldUpdatedAt, v))
  119. }
  120. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  121. func UpdatedAtLT(v time.Time) predicate.TLSFingerprintProfile {
  122. return predicate.TLSFingerprintProfile(sql.FieldLT(FieldUpdatedAt, v))
  123. }
  124. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  125. func UpdatedAtLTE(v time.Time) predicate.TLSFingerprintProfile {
  126. return predicate.TLSFingerprintProfile(sql.FieldLTE(FieldUpdatedAt, v))
  127. }
  128. // NameEQ applies the EQ predicate on the "name" field.
  129. func NameEQ(v string) predicate.TLSFingerprintProfile {
  130. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldName, v))
  131. }
  132. // NameNEQ applies the NEQ predicate on the "name" field.
  133. func NameNEQ(v string) predicate.TLSFingerprintProfile {
  134. return predicate.TLSFingerprintProfile(sql.FieldNEQ(FieldName, v))
  135. }
  136. // NameIn applies the In predicate on the "name" field.
  137. func NameIn(vs ...string) predicate.TLSFingerprintProfile {
  138. return predicate.TLSFingerprintProfile(sql.FieldIn(FieldName, vs...))
  139. }
  140. // NameNotIn applies the NotIn predicate on the "name" field.
  141. func NameNotIn(vs ...string) predicate.TLSFingerprintProfile {
  142. return predicate.TLSFingerprintProfile(sql.FieldNotIn(FieldName, vs...))
  143. }
  144. // NameGT applies the GT predicate on the "name" field.
  145. func NameGT(v string) predicate.TLSFingerprintProfile {
  146. return predicate.TLSFingerprintProfile(sql.FieldGT(FieldName, v))
  147. }
  148. // NameGTE applies the GTE predicate on the "name" field.
  149. func NameGTE(v string) predicate.TLSFingerprintProfile {
  150. return predicate.TLSFingerprintProfile(sql.FieldGTE(FieldName, v))
  151. }
  152. // NameLT applies the LT predicate on the "name" field.
  153. func NameLT(v string) predicate.TLSFingerprintProfile {
  154. return predicate.TLSFingerprintProfile(sql.FieldLT(FieldName, v))
  155. }
  156. // NameLTE applies the LTE predicate on the "name" field.
  157. func NameLTE(v string) predicate.TLSFingerprintProfile {
  158. return predicate.TLSFingerprintProfile(sql.FieldLTE(FieldName, v))
  159. }
  160. // NameContains applies the Contains predicate on the "name" field.
  161. func NameContains(v string) predicate.TLSFingerprintProfile {
  162. return predicate.TLSFingerprintProfile(sql.FieldContains(FieldName, v))
  163. }
  164. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  165. func NameHasPrefix(v string) predicate.TLSFingerprintProfile {
  166. return predicate.TLSFingerprintProfile(sql.FieldHasPrefix(FieldName, v))
  167. }
  168. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  169. func NameHasSuffix(v string) predicate.TLSFingerprintProfile {
  170. return predicate.TLSFingerprintProfile(sql.FieldHasSuffix(FieldName, v))
  171. }
  172. // NameEqualFold applies the EqualFold predicate on the "name" field.
  173. func NameEqualFold(v string) predicate.TLSFingerprintProfile {
  174. return predicate.TLSFingerprintProfile(sql.FieldEqualFold(FieldName, v))
  175. }
  176. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  177. func NameContainsFold(v string) predicate.TLSFingerprintProfile {
  178. return predicate.TLSFingerprintProfile(sql.FieldContainsFold(FieldName, v))
  179. }
  180. // DescriptionEQ applies the EQ predicate on the "description" field.
  181. func DescriptionEQ(v string) predicate.TLSFingerprintProfile {
  182. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldDescription, v))
  183. }
  184. // DescriptionNEQ applies the NEQ predicate on the "description" field.
  185. func DescriptionNEQ(v string) predicate.TLSFingerprintProfile {
  186. return predicate.TLSFingerprintProfile(sql.FieldNEQ(FieldDescription, v))
  187. }
  188. // DescriptionIn applies the In predicate on the "description" field.
  189. func DescriptionIn(vs ...string) predicate.TLSFingerprintProfile {
  190. return predicate.TLSFingerprintProfile(sql.FieldIn(FieldDescription, vs...))
  191. }
  192. // DescriptionNotIn applies the NotIn predicate on the "description" field.
  193. func DescriptionNotIn(vs ...string) predicate.TLSFingerprintProfile {
  194. return predicate.TLSFingerprintProfile(sql.FieldNotIn(FieldDescription, vs...))
  195. }
  196. // DescriptionGT applies the GT predicate on the "description" field.
  197. func DescriptionGT(v string) predicate.TLSFingerprintProfile {
  198. return predicate.TLSFingerprintProfile(sql.FieldGT(FieldDescription, v))
  199. }
  200. // DescriptionGTE applies the GTE predicate on the "description" field.
  201. func DescriptionGTE(v string) predicate.TLSFingerprintProfile {
  202. return predicate.TLSFingerprintProfile(sql.FieldGTE(FieldDescription, v))
  203. }
  204. // DescriptionLT applies the LT predicate on the "description" field.
  205. func DescriptionLT(v string) predicate.TLSFingerprintProfile {
  206. return predicate.TLSFingerprintProfile(sql.FieldLT(FieldDescription, v))
  207. }
  208. // DescriptionLTE applies the LTE predicate on the "description" field.
  209. func DescriptionLTE(v string) predicate.TLSFingerprintProfile {
  210. return predicate.TLSFingerprintProfile(sql.FieldLTE(FieldDescription, v))
  211. }
  212. // DescriptionContains applies the Contains predicate on the "description" field.
  213. func DescriptionContains(v string) predicate.TLSFingerprintProfile {
  214. return predicate.TLSFingerprintProfile(sql.FieldContains(FieldDescription, v))
  215. }
  216. // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
  217. func DescriptionHasPrefix(v string) predicate.TLSFingerprintProfile {
  218. return predicate.TLSFingerprintProfile(sql.FieldHasPrefix(FieldDescription, v))
  219. }
  220. // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
  221. func DescriptionHasSuffix(v string) predicate.TLSFingerprintProfile {
  222. return predicate.TLSFingerprintProfile(sql.FieldHasSuffix(FieldDescription, v))
  223. }
  224. // DescriptionIsNil applies the IsNil predicate on the "description" field.
  225. func DescriptionIsNil() predicate.TLSFingerprintProfile {
  226. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldDescription))
  227. }
  228. // DescriptionNotNil applies the NotNil predicate on the "description" field.
  229. func DescriptionNotNil() predicate.TLSFingerprintProfile {
  230. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldDescription))
  231. }
  232. // DescriptionEqualFold applies the EqualFold predicate on the "description" field.
  233. func DescriptionEqualFold(v string) predicate.TLSFingerprintProfile {
  234. return predicate.TLSFingerprintProfile(sql.FieldEqualFold(FieldDescription, v))
  235. }
  236. // DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
  237. func DescriptionContainsFold(v string) predicate.TLSFingerprintProfile {
  238. return predicate.TLSFingerprintProfile(sql.FieldContainsFold(FieldDescription, v))
  239. }
  240. // EnableGreaseEQ applies the EQ predicate on the "enable_grease" field.
  241. func EnableGreaseEQ(v bool) predicate.TLSFingerprintProfile {
  242. return predicate.TLSFingerprintProfile(sql.FieldEQ(FieldEnableGrease, v))
  243. }
  244. // EnableGreaseNEQ applies the NEQ predicate on the "enable_grease" field.
  245. func EnableGreaseNEQ(v bool) predicate.TLSFingerprintProfile {
  246. return predicate.TLSFingerprintProfile(sql.FieldNEQ(FieldEnableGrease, v))
  247. }
  248. // CipherSuitesIsNil applies the IsNil predicate on the "cipher_suites" field.
  249. func CipherSuitesIsNil() predicate.TLSFingerprintProfile {
  250. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldCipherSuites))
  251. }
  252. // CipherSuitesNotNil applies the NotNil predicate on the "cipher_suites" field.
  253. func CipherSuitesNotNil() predicate.TLSFingerprintProfile {
  254. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldCipherSuites))
  255. }
  256. // CurvesIsNil applies the IsNil predicate on the "curves" field.
  257. func CurvesIsNil() predicate.TLSFingerprintProfile {
  258. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldCurves))
  259. }
  260. // CurvesNotNil applies the NotNil predicate on the "curves" field.
  261. func CurvesNotNil() predicate.TLSFingerprintProfile {
  262. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldCurves))
  263. }
  264. // PointFormatsIsNil applies the IsNil predicate on the "point_formats" field.
  265. func PointFormatsIsNil() predicate.TLSFingerprintProfile {
  266. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldPointFormats))
  267. }
  268. // PointFormatsNotNil applies the NotNil predicate on the "point_formats" field.
  269. func PointFormatsNotNil() predicate.TLSFingerprintProfile {
  270. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldPointFormats))
  271. }
  272. // SignatureAlgorithmsIsNil applies the IsNil predicate on the "signature_algorithms" field.
  273. func SignatureAlgorithmsIsNil() predicate.TLSFingerprintProfile {
  274. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldSignatureAlgorithms))
  275. }
  276. // SignatureAlgorithmsNotNil applies the NotNil predicate on the "signature_algorithms" field.
  277. func SignatureAlgorithmsNotNil() predicate.TLSFingerprintProfile {
  278. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldSignatureAlgorithms))
  279. }
  280. // AlpnProtocolsIsNil applies the IsNil predicate on the "alpn_protocols" field.
  281. func AlpnProtocolsIsNil() predicate.TLSFingerprintProfile {
  282. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldAlpnProtocols))
  283. }
  284. // AlpnProtocolsNotNil applies the NotNil predicate on the "alpn_protocols" field.
  285. func AlpnProtocolsNotNil() predicate.TLSFingerprintProfile {
  286. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldAlpnProtocols))
  287. }
  288. // SupportedVersionsIsNil applies the IsNil predicate on the "supported_versions" field.
  289. func SupportedVersionsIsNil() predicate.TLSFingerprintProfile {
  290. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldSupportedVersions))
  291. }
  292. // SupportedVersionsNotNil applies the NotNil predicate on the "supported_versions" field.
  293. func SupportedVersionsNotNil() predicate.TLSFingerprintProfile {
  294. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldSupportedVersions))
  295. }
  296. // KeyShareGroupsIsNil applies the IsNil predicate on the "key_share_groups" field.
  297. func KeyShareGroupsIsNil() predicate.TLSFingerprintProfile {
  298. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldKeyShareGroups))
  299. }
  300. // KeyShareGroupsNotNil applies the NotNil predicate on the "key_share_groups" field.
  301. func KeyShareGroupsNotNil() predicate.TLSFingerprintProfile {
  302. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldKeyShareGroups))
  303. }
  304. // PskModesIsNil applies the IsNil predicate on the "psk_modes" field.
  305. func PskModesIsNil() predicate.TLSFingerprintProfile {
  306. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldPskModes))
  307. }
  308. // PskModesNotNil applies the NotNil predicate on the "psk_modes" field.
  309. func PskModesNotNil() predicate.TLSFingerprintProfile {
  310. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldPskModes))
  311. }
  312. // ExtensionsIsNil applies the IsNil predicate on the "extensions" field.
  313. func ExtensionsIsNil() predicate.TLSFingerprintProfile {
  314. return predicate.TLSFingerprintProfile(sql.FieldIsNull(FieldExtensions))
  315. }
  316. // ExtensionsNotNil applies the NotNil predicate on the "extensions" field.
  317. func ExtensionsNotNil() predicate.TLSFingerprintProfile {
  318. return predicate.TLSFingerprintProfile(sql.FieldNotNull(FieldExtensions))
  319. }
  320. // And groups predicates with the AND operator between them.
  321. func And(predicates ...predicate.TLSFingerprintProfile) predicate.TLSFingerprintProfile {
  322. return predicate.TLSFingerprintProfile(sql.AndPredicates(predicates...))
  323. }
  324. // Or groups predicates with the OR operator between them.
  325. func Or(predicates ...predicate.TLSFingerprintProfile) predicate.TLSFingerprintProfile {
  326. return predicate.TLSFingerprintProfile(sql.OrPredicates(predicates...))
  327. }
  328. // Not applies the not operator on the given predicate.
  329. func Not(p predicate.TLSFingerprintProfile) predicate.TLSFingerprintProfile {
  330. return predicate.TLSFingerprintProfile(sql.NotPredicates(p))
  331. }