where.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. // Code generated by ent, DO NOT EDIT.
  2. package channelmonitorrequesttemplate
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "entgo.io/ent/dialect/sql/sqlgraph"
  7. "github.com/Wei-Shaw/sub2api/ent/predicate"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id int64) predicate.ChannelMonitorRequestTemplate {
  11. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.ChannelMonitorRequestTemplate {
  15. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.ChannelMonitorRequestTemplate {
  19. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.ChannelMonitorRequestTemplate {
  23. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.ChannelMonitorRequestTemplate {
  27. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.ChannelMonitorRequestTemplate {
  31. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.ChannelMonitorRequestTemplate {
  35. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.ChannelMonitorRequestTemplate {
  39. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.ChannelMonitorRequestTemplate {
  43. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.ChannelMonitorRequestTemplate {
  47. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.ChannelMonitorRequestTemplate {
  51. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  54. func Name(v string) predicate.ChannelMonitorRequestTemplate {
  55. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldName, v))
  56. }
  57. // APIMode applies equality check predicate on the "api_mode" field. It's identical to APIModeEQ.
  58. func APIMode(v string) predicate.ChannelMonitorRequestTemplate {
  59. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldAPIMode, v))
  60. }
  61. // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
  62. func Description(v string) predicate.ChannelMonitorRequestTemplate {
  63. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldDescription, v))
  64. }
  65. // BodyOverrideMode applies equality check predicate on the "body_override_mode" field. It's identical to BodyOverrideModeEQ.
  66. func BodyOverrideMode(v string) predicate.ChannelMonitorRequestTemplate {
  67. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldBodyOverrideMode, v))
  68. }
  69. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  70. func CreatedAtEQ(v time.Time) predicate.ChannelMonitorRequestTemplate {
  71. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldCreatedAt, v))
  72. }
  73. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  74. func CreatedAtNEQ(v time.Time) predicate.ChannelMonitorRequestTemplate {
  75. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldCreatedAt, v))
  76. }
  77. // CreatedAtIn applies the In predicate on the "created_at" field.
  78. func CreatedAtIn(vs ...time.Time) predicate.ChannelMonitorRequestTemplate {
  79. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldCreatedAt, vs...))
  80. }
  81. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  82. func CreatedAtNotIn(vs ...time.Time) predicate.ChannelMonitorRequestTemplate {
  83. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldCreatedAt, vs...))
  84. }
  85. // CreatedAtGT applies the GT predicate on the "created_at" field.
  86. func CreatedAtGT(v time.Time) predicate.ChannelMonitorRequestTemplate {
  87. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldCreatedAt, v))
  88. }
  89. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  90. func CreatedAtGTE(v time.Time) predicate.ChannelMonitorRequestTemplate {
  91. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldCreatedAt, v))
  92. }
  93. // CreatedAtLT applies the LT predicate on the "created_at" field.
  94. func CreatedAtLT(v time.Time) predicate.ChannelMonitorRequestTemplate {
  95. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldCreatedAt, v))
  96. }
  97. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  98. func CreatedAtLTE(v time.Time) predicate.ChannelMonitorRequestTemplate {
  99. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldCreatedAt, v))
  100. }
  101. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  102. func UpdatedAtEQ(v time.Time) predicate.ChannelMonitorRequestTemplate {
  103. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldUpdatedAt, v))
  104. }
  105. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  106. func UpdatedAtNEQ(v time.Time) predicate.ChannelMonitorRequestTemplate {
  107. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldUpdatedAt, v))
  108. }
  109. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  110. func UpdatedAtIn(vs ...time.Time) predicate.ChannelMonitorRequestTemplate {
  111. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldUpdatedAt, vs...))
  112. }
  113. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  114. func UpdatedAtNotIn(vs ...time.Time) predicate.ChannelMonitorRequestTemplate {
  115. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldUpdatedAt, vs...))
  116. }
  117. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  118. func UpdatedAtGT(v time.Time) predicate.ChannelMonitorRequestTemplate {
  119. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldUpdatedAt, v))
  120. }
  121. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  122. func UpdatedAtGTE(v time.Time) predicate.ChannelMonitorRequestTemplate {
  123. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldUpdatedAt, v))
  124. }
  125. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  126. func UpdatedAtLT(v time.Time) predicate.ChannelMonitorRequestTemplate {
  127. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldUpdatedAt, v))
  128. }
  129. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  130. func UpdatedAtLTE(v time.Time) predicate.ChannelMonitorRequestTemplate {
  131. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldUpdatedAt, v))
  132. }
  133. // NameEQ applies the EQ predicate on the "name" field.
  134. func NameEQ(v string) predicate.ChannelMonitorRequestTemplate {
  135. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldName, v))
  136. }
  137. // NameNEQ applies the NEQ predicate on the "name" field.
  138. func NameNEQ(v string) predicate.ChannelMonitorRequestTemplate {
  139. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldName, v))
  140. }
  141. // NameIn applies the In predicate on the "name" field.
  142. func NameIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  143. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldName, vs...))
  144. }
  145. // NameNotIn applies the NotIn predicate on the "name" field.
  146. func NameNotIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  147. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldName, vs...))
  148. }
  149. // NameGT applies the GT predicate on the "name" field.
  150. func NameGT(v string) predicate.ChannelMonitorRequestTemplate {
  151. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldName, v))
  152. }
  153. // NameGTE applies the GTE predicate on the "name" field.
  154. func NameGTE(v string) predicate.ChannelMonitorRequestTemplate {
  155. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldName, v))
  156. }
  157. // NameLT applies the LT predicate on the "name" field.
  158. func NameLT(v string) predicate.ChannelMonitorRequestTemplate {
  159. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldName, v))
  160. }
  161. // NameLTE applies the LTE predicate on the "name" field.
  162. func NameLTE(v string) predicate.ChannelMonitorRequestTemplate {
  163. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldName, v))
  164. }
  165. // NameContains applies the Contains predicate on the "name" field.
  166. func NameContains(v string) predicate.ChannelMonitorRequestTemplate {
  167. return predicate.ChannelMonitorRequestTemplate(sql.FieldContains(FieldName, v))
  168. }
  169. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  170. func NameHasPrefix(v string) predicate.ChannelMonitorRequestTemplate {
  171. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasPrefix(FieldName, v))
  172. }
  173. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  174. func NameHasSuffix(v string) predicate.ChannelMonitorRequestTemplate {
  175. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasSuffix(FieldName, v))
  176. }
  177. // NameEqualFold applies the EqualFold predicate on the "name" field.
  178. func NameEqualFold(v string) predicate.ChannelMonitorRequestTemplate {
  179. return predicate.ChannelMonitorRequestTemplate(sql.FieldEqualFold(FieldName, v))
  180. }
  181. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  182. func NameContainsFold(v string) predicate.ChannelMonitorRequestTemplate {
  183. return predicate.ChannelMonitorRequestTemplate(sql.FieldContainsFold(FieldName, v))
  184. }
  185. // ProviderEQ applies the EQ predicate on the "provider" field.
  186. func ProviderEQ(v Provider) predicate.ChannelMonitorRequestTemplate {
  187. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldProvider, v))
  188. }
  189. // ProviderNEQ applies the NEQ predicate on the "provider" field.
  190. func ProviderNEQ(v Provider) predicate.ChannelMonitorRequestTemplate {
  191. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldProvider, v))
  192. }
  193. // ProviderIn applies the In predicate on the "provider" field.
  194. func ProviderIn(vs ...Provider) predicate.ChannelMonitorRequestTemplate {
  195. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldProvider, vs...))
  196. }
  197. // ProviderNotIn applies the NotIn predicate on the "provider" field.
  198. func ProviderNotIn(vs ...Provider) predicate.ChannelMonitorRequestTemplate {
  199. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldProvider, vs...))
  200. }
  201. // APIModeEQ applies the EQ predicate on the "api_mode" field.
  202. func APIModeEQ(v string) predicate.ChannelMonitorRequestTemplate {
  203. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldAPIMode, v))
  204. }
  205. // APIModeNEQ applies the NEQ predicate on the "api_mode" field.
  206. func APIModeNEQ(v string) predicate.ChannelMonitorRequestTemplate {
  207. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldAPIMode, v))
  208. }
  209. // APIModeIn applies the In predicate on the "api_mode" field.
  210. func APIModeIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  211. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldAPIMode, vs...))
  212. }
  213. // APIModeNotIn applies the NotIn predicate on the "api_mode" field.
  214. func APIModeNotIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  215. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldAPIMode, vs...))
  216. }
  217. // APIModeGT applies the GT predicate on the "api_mode" field.
  218. func APIModeGT(v string) predicate.ChannelMonitorRequestTemplate {
  219. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldAPIMode, v))
  220. }
  221. // APIModeGTE applies the GTE predicate on the "api_mode" field.
  222. func APIModeGTE(v string) predicate.ChannelMonitorRequestTemplate {
  223. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldAPIMode, v))
  224. }
  225. // APIModeLT applies the LT predicate on the "api_mode" field.
  226. func APIModeLT(v string) predicate.ChannelMonitorRequestTemplate {
  227. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldAPIMode, v))
  228. }
  229. // APIModeLTE applies the LTE predicate on the "api_mode" field.
  230. func APIModeLTE(v string) predicate.ChannelMonitorRequestTemplate {
  231. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldAPIMode, v))
  232. }
  233. // APIModeContains applies the Contains predicate on the "api_mode" field.
  234. func APIModeContains(v string) predicate.ChannelMonitorRequestTemplate {
  235. return predicate.ChannelMonitorRequestTemplate(sql.FieldContains(FieldAPIMode, v))
  236. }
  237. // APIModeHasPrefix applies the HasPrefix predicate on the "api_mode" field.
  238. func APIModeHasPrefix(v string) predicate.ChannelMonitorRequestTemplate {
  239. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasPrefix(FieldAPIMode, v))
  240. }
  241. // APIModeHasSuffix applies the HasSuffix predicate on the "api_mode" field.
  242. func APIModeHasSuffix(v string) predicate.ChannelMonitorRequestTemplate {
  243. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasSuffix(FieldAPIMode, v))
  244. }
  245. // APIModeEqualFold applies the EqualFold predicate on the "api_mode" field.
  246. func APIModeEqualFold(v string) predicate.ChannelMonitorRequestTemplate {
  247. return predicate.ChannelMonitorRequestTemplate(sql.FieldEqualFold(FieldAPIMode, v))
  248. }
  249. // APIModeContainsFold applies the ContainsFold predicate on the "api_mode" field.
  250. func APIModeContainsFold(v string) predicate.ChannelMonitorRequestTemplate {
  251. return predicate.ChannelMonitorRequestTemplate(sql.FieldContainsFold(FieldAPIMode, v))
  252. }
  253. // DescriptionEQ applies the EQ predicate on the "description" field.
  254. func DescriptionEQ(v string) predicate.ChannelMonitorRequestTemplate {
  255. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldDescription, v))
  256. }
  257. // DescriptionNEQ applies the NEQ predicate on the "description" field.
  258. func DescriptionNEQ(v string) predicate.ChannelMonitorRequestTemplate {
  259. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldDescription, v))
  260. }
  261. // DescriptionIn applies the In predicate on the "description" field.
  262. func DescriptionIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  263. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldDescription, vs...))
  264. }
  265. // DescriptionNotIn applies the NotIn predicate on the "description" field.
  266. func DescriptionNotIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  267. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldDescription, vs...))
  268. }
  269. // DescriptionGT applies the GT predicate on the "description" field.
  270. func DescriptionGT(v string) predicate.ChannelMonitorRequestTemplate {
  271. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldDescription, v))
  272. }
  273. // DescriptionGTE applies the GTE predicate on the "description" field.
  274. func DescriptionGTE(v string) predicate.ChannelMonitorRequestTemplate {
  275. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldDescription, v))
  276. }
  277. // DescriptionLT applies the LT predicate on the "description" field.
  278. func DescriptionLT(v string) predicate.ChannelMonitorRequestTemplate {
  279. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldDescription, v))
  280. }
  281. // DescriptionLTE applies the LTE predicate on the "description" field.
  282. func DescriptionLTE(v string) predicate.ChannelMonitorRequestTemplate {
  283. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldDescription, v))
  284. }
  285. // DescriptionContains applies the Contains predicate on the "description" field.
  286. func DescriptionContains(v string) predicate.ChannelMonitorRequestTemplate {
  287. return predicate.ChannelMonitorRequestTemplate(sql.FieldContains(FieldDescription, v))
  288. }
  289. // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
  290. func DescriptionHasPrefix(v string) predicate.ChannelMonitorRequestTemplate {
  291. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasPrefix(FieldDescription, v))
  292. }
  293. // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
  294. func DescriptionHasSuffix(v string) predicate.ChannelMonitorRequestTemplate {
  295. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasSuffix(FieldDescription, v))
  296. }
  297. // DescriptionIsNil applies the IsNil predicate on the "description" field.
  298. func DescriptionIsNil() predicate.ChannelMonitorRequestTemplate {
  299. return predicate.ChannelMonitorRequestTemplate(sql.FieldIsNull(FieldDescription))
  300. }
  301. // DescriptionNotNil applies the NotNil predicate on the "description" field.
  302. func DescriptionNotNil() predicate.ChannelMonitorRequestTemplate {
  303. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotNull(FieldDescription))
  304. }
  305. // DescriptionEqualFold applies the EqualFold predicate on the "description" field.
  306. func DescriptionEqualFold(v string) predicate.ChannelMonitorRequestTemplate {
  307. return predicate.ChannelMonitorRequestTemplate(sql.FieldEqualFold(FieldDescription, v))
  308. }
  309. // DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
  310. func DescriptionContainsFold(v string) predicate.ChannelMonitorRequestTemplate {
  311. return predicate.ChannelMonitorRequestTemplate(sql.FieldContainsFold(FieldDescription, v))
  312. }
  313. // BodyOverrideModeEQ applies the EQ predicate on the "body_override_mode" field.
  314. func BodyOverrideModeEQ(v string) predicate.ChannelMonitorRequestTemplate {
  315. return predicate.ChannelMonitorRequestTemplate(sql.FieldEQ(FieldBodyOverrideMode, v))
  316. }
  317. // BodyOverrideModeNEQ applies the NEQ predicate on the "body_override_mode" field.
  318. func BodyOverrideModeNEQ(v string) predicate.ChannelMonitorRequestTemplate {
  319. return predicate.ChannelMonitorRequestTemplate(sql.FieldNEQ(FieldBodyOverrideMode, v))
  320. }
  321. // BodyOverrideModeIn applies the In predicate on the "body_override_mode" field.
  322. func BodyOverrideModeIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  323. return predicate.ChannelMonitorRequestTemplate(sql.FieldIn(FieldBodyOverrideMode, vs...))
  324. }
  325. // BodyOverrideModeNotIn applies the NotIn predicate on the "body_override_mode" field.
  326. func BodyOverrideModeNotIn(vs ...string) predicate.ChannelMonitorRequestTemplate {
  327. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotIn(FieldBodyOverrideMode, vs...))
  328. }
  329. // BodyOverrideModeGT applies the GT predicate on the "body_override_mode" field.
  330. func BodyOverrideModeGT(v string) predicate.ChannelMonitorRequestTemplate {
  331. return predicate.ChannelMonitorRequestTemplate(sql.FieldGT(FieldBodyOverrideMode, v))
  332. }
  333. // BodyOverrideModeGTE applies the GTE predicate on the "body_override_mode" field.
  334. func BodyOverrideModeGTE(v string) predicate.ChannelMonitorRequestTemplate {
  335. return predicate.ChannelMonitorRequestTemplate(sql.FieldGTE(FieldBodyOverrideMode, v))
  336. }
  337. // BodyOverrideModeLT applies the LT predicate on the "body_override_mode" field.
  338. func BodyOverrideModeLT(v string) predicate.ChannelMonitorRequestTemplate {
  339. return predicate.ChannelMonitorRequestTemplate(sql.FieldLT(FieldBodyOverrideMode, v))
  340. }
  341. // BodyOverrideModeLTE applies the LTE predicate on the "body_override_mode" field.
  342. func BodyOverrideModeLTE(v string) predicate.ChannelMonitorRequestTemplate {
  343. return predicate.ChannelMonitorRequestTemplate(sql.FieldLTE(FieldBodyOverrideMode, v))
  344. }
  345. // BodyOverrideModeContains applies the Contains predicate on the "body_override_mode" field.
  346. func BodyOverrideModeContains(v string) predicate.ChannelMonitorRequestTemplate {
  347. return predicate.ChannelMonitorRequestTemplate(sql.FieldContains(FieldBodyOverrideMode, v))
  348. }
  349. // BodyOverrideModeHasPrefix applies the HasPrefix predicate on the "body_override_mode" field.
  350. func BodyOverrideModeHasPrefix(v string) predicate.ChannelMonitorRequestTemplate {
  351. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasPrefix(FieldBodyOverrideMode, v))
  352. }
  353. // BodyOverrideModeHasSuffix applies the HasSuffix predicate on the "body_override_mode" field.
  354. func BodyOverrideModeHasSuffix(v string) predicate.ChannelMonitorRequestTemplate {
  355. return predicate.ChannelMonitorRequestTemplate(sql.FieldHasSuffix(FieldBodyOverrideMode, v))
  356. }
  357. // BodyOverrideModeEqualFold applies the EqualFold predicate on the "body_override_mode" field.
  358. func BodyOverrideModeEqualFold(v string) predicate.ChannelMonitorRequestTemplate {
  359. return predicate.ChannelMonitorRequestTemplate(sql.FieldEqualFold(FieldBodyOverrideMode, v))
  360. }
  361. // BodyOverrideModeContainsFold applies the ContainsFold predicate on the "body_override_mode" field.
  362. func BodyOverrideModeContainsFold(v string) predicate.ChannelMonitorRequestTemplate {
  363. return predicate.ChannelMonitorRequestTemplate(sql.FieldContainsFold(FieldBodyOverrideMode, v))
  364. }
  365. // BodyOverrideIsNil applies the IsNil predicate on the "body_override" field.
  366. func BodyOverrideIsNil() predicate.ChannelMonitorRequestTemplate {
  367. return predicate.ChannelMonitorRequestTemplate(sql.FieldIsNull(FieldBodyOverride))
  368. }
  369. // BodyOverrideNotNil applies the NotNil predicate on the "body_override" field.
  370. func BodyOverrideNotNil() predicate.ChannelMonitorRequestTemplate {
  371. return predicate.ChannelMonitorRequestTemplate(sql.FieldNotNull(FieldBodyOverride))
  372. }
  373. // HasMonitors applies the HasEdge predicate on the "monitors" edge.
  374. func HasMonitors() predicate.ChannelMonitorRequestTemplate {
  375. return predicate.ChannelMonitorRequestTemplate(func(s *sql.Selector) {
  376. step := sqlgraph.NewStep(
  377. sqlgraph.From(Table, FieldID),
  378. sqlgraph.Edge(sqlgraph.O2M, true, MonitorsTable, MonitorsColumn),
  379. )
  380. sqlgraph.HasNeighbors(s, step)
  381. })
  382. }
  383. // HasMonitorsWith applies the HasEdge predicate on the "monitors" edge with a given conditions (other predicates).
  384. func HasMonitorsWith(preds ...predicate.ChannelMonitor) predicate.ChannelMonitorRequestTemplate {
  385. return predicate.ChannelMonitorRequestTemplate(func(s *sql.Selector) {
  386. step := newMonitorsStep()
  387. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  388. for _, p := range preds {
  389. p(s)
  390. }
  391. })
  392. })
  393. }
  394. // And groups predicates with the AND operator between them.
  395. func And(predicates ...predicate.ChannelMonitorRequestTemplate) predicate.ChannelMonitorRequestTemplate {
  396. return predicate.ChannelMonitorRequestTemplate(sql.AndPredicates(predicates...))
  397. }
  398. // Or groups predicates with the OR operator between them.
  399. func Or(predicates ...predicate.ChannelMonitorRequestTemplate) predicate.ChannelMonitorRequestTemplate {
  400. return predicate.ChannelMonitorRequestTemplate(sql.OrPredicates(predicates...))
  401. }
  402. // Not applies the not operator on the given predicate.
  403. func Not(p predicate.ChannelMonitorRequestTemplate) predicate.ChannelMonitorRequestTemplate {
  404. return predicate.ChannelMonitorRequestTemplate(sql.NotPredicates(p))
  405. }