diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c0885250..ac550f09 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: 939d2f12fecf92a82326fb98be3b67dc + docChecksum: 5cbe9973b042165f2c62f32620c4fb67 docVersion: 0.9.0 - speakeasyVersion: 1.786.1 - generationVersion: 2.913.3 - releaseVersion: 0.13.2 - configChecksum: 01f92ca30e2bf918b3bac1a614226956 + speakeasyVersion: 1.788.0 + generationVersion: 2.915.0 + releaseVersion: 0.14.0 + configChecksum: 05f90d845b740f156ec917cd08e27872 repoURL: https://github.com/gleanwork/api-client-java.git installationURL: https://github.com/gleanwork/api-client-java published: true persistentEdits: - generation_id: 3498d006-ae0b-4a64-aa1d-b989fe61ba4c - pristine_commit_hash: 2b6d49e2aa71cfe2c8e29a040fc146bab84e6523 - pristine_tree_hash: fcd0a4ac28027112f6f2ea72af98e527a8d35e87 + generation_id: 78c5c9e9-c1ba-4ffe-a5d9-fb2c157c5aaf + pristine_commit_hash: cd55c49e2f73ad0f5c2ba384059d652394978116 + pristine_tree_hash: aee4cde97a1976fdb4a10c4b7b3352752bd0824f features: java: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.3 - core: 3.55.28 + core: 3.55.30 deprecations: 2.81.2 downloadStreams: 0.1.1 examples: 2.81.9 @@ -32,6 +32,7 @@ features: groups: 2.81.3 methodServerURLs: 2.82.2 nameOverrides: 2.81.5 + nullables: 0.1.0 sdkHooks: 1.2.0 unions: 0.3.6 uploadStreams: 0.1.0 @@ -46,8 +47,8 @@ trackedFiles: pristine_git_object: 3d1f9b105935ea1eded859513fe6b38b36bd9154 build.gradle: id: f07866736216 - last_write_checksum: sha1:6ddc685a56343e9e5e0ffc14b6cfd984ac79c452 - pristine_git_object: c428ed4e9ce3129515120476df4b6190defe701b + last_write_checksum: sha1:bb0d4a1ec7e91057bfba5afc907f91d66b057ba6 + pristine_git_object: e78cd7dfbe8e8f06bd68c2450bd1ae6fe13bec1c docs/models/components/ActionAuthType.md: id: 85f17dd1d9c7 last_write_checksum: sha1:e2e0e2b4617367b35aab4d1092d820c2b1856072 @@ -1796,6 +1797,102 @@ trackedFiles: id: 815a98152861 last_write_checksum: sha1:3f84f59fe69a40543a34cdc7e20f654de02b0fc7 pristine_git_object: 73d960cf6462bdd5cf1a77e6bd58c0b2a7a7cc79 + docs/models/components/PlatformActionSummary.md: + id: 3813f89fa9f4 + last_write_checksum: sha1:4b0e25fbe5ec26fb3c42b83c4114a486983c9ef1 + pristine_git_object: 89b36e083c1ba618a73e1628b7ca0ee941b7bfb2 + docs/models/components/PlatformAgent.md: + id: 5763f9944a48 + last_write_checksum: sha1:2e90933a6155311c9a8341f06aaf6f451c147f70 + pristine_git_object: 822f3577e9a11d359c6eaeade90724a4b61f477c + docs/models/components/PlatformAgentCapabilities.md: + id: c24c49e9a448 + last_write_checksum: sha1:62deb6c856fa00ce0b358da46bd2959b1be296b0 + pristine_git_object: cd5db8bad86bde42d39073848a0f80f8f63c415d + docs/models/components/PlatformAgentExecutionStatus.md: + id: 65a7c6875829 + last_write_checksum: sha1:ff6c2986e04c9aaa76f2dccd2c2df0c209b3e79b + pristine_git_object: 8dd7293d665a8f1913616c22fcda5ba2239a72aa + docs/models/components/PlatformAgentGetResponse.md: + id: fc72f6f38295 + last_write_checksum: sha1:3ff3469b75e30f79a8d1de7db65dc5d085ef3e1f + pristine_git_object: f3f7c952c8ec7e75e7a266c4aeb8d9f993cbc8e8 + docs/models/components/PlatformAgentRun.md: + id: cc970c03874f + last_write_checksum: sha1:2b3188bd48f2a0c78b293e429eade8fdb1d94836 + pristine_git_object: 7a328523cc01d9cd1859054bbb0117cf5dba87bf + docs/models/components/PlatformAgentRunCreateRequest.md: + id: 89bdce59e86c + last_write_checksum: sha1:5a49a3d6e7fc281411cda419f0ce719aec664bd8 + pristine_git_object: 68cecd952b4fd16b639b411c2e7042c0798d984d + docs/models/components/PlatformAgentRunWaitResponse.md: + id: d3616cea607b + last_write_checksum: sha1:5e15de71c76558a14c4fe69b46c6a8f0dbd59c82 + pristine_git_object: 3ee8ba702911a929a5cce98c25a82188ba48f621 + docs/models/components/PlatformAgentSchemasResponse.md: + id: f0f494f3fbf0 + last_write_checksum: sha1:9522c5c9a27332c8cc6562a6b59c83b2c6b0f815 + pristine_git_object: 4e898f0c622c38750c8592fd0acb11825f61c1f7 + docs/models/components/PlatformAgentsSearchRequest.md: + id: 402f9db01fba + last_write_checksum: sha1:efddcad835ad367ba6b700e2ce2893225fa7c82b + pristine_git_object: 4647646e2cc55caa1610fe54b2a2ea1235be009c + docs/models/components/PlatformAgentsSearchResponse.md: + id: 62eace9b8227 + last_write_checksum: sha1:632b5b991321c556416d437cb95cf5e51b3756b6 + pristine_git_object: d99b7704ed42401b74abccaaf46ad0aee9106b74 + docs/models/components/PlatformContentType.md: + id: 4f00756c77e6 + last_write_checksum: sha1:8a391070d3f8e58a29b53b34e71ea702519f0b38 + pristine_git_object: b14d42cc1ba1c22a2a6f454dac3b4c197133e443 + docs/models/components/PlatformFilter.md: + id: f6050e7256d6 + last_write_checksum: sha1:bffd82a9821798db1bc8e416b6993ccc1b93984e + pristine_git_object: 9b4b83c1e316fa93a1b037800826845f632f51b5 + docs/models/components/PlatformFilterOperator.md: + id: f345eb615b68 + last_write_checksum: sha1:64b82b5dd017c1e6526a407ec2989e0d7187b538 + pristine_git_object: 8104e06f6f6b3b008a493d08a15daa027582bfb9 + docs/models/components/PlatformMessage.md: + id: f8348976d9d8 + last_write_checksum: sha1:b0b4691941491486952bc1e8be01b337b9c24de6 + pristine_git_object: 5e11fc68ac56cc41828fcf20b2a8f25be4825078 + docs/models/components/PlatformMessageRole.md: + id: d7a10c641108 + last_write_checksum: sha1:d7507da2050d054c6e72bd64000d1cebfa073722 + pristine_git_object: 1e374ffa7daeafc4a810a2666a9d53f9dd75d1c6 + docs/models/components/PlatformMessageTextBlock.md: + id: f0fe5978ef03 + last_write_checksum: sha1:cc600b2ca2458e47f7bfb9d7393d7b3e6c268424 + pristine_git_object: 0e3bc639a861716377d41d1c73bcaf0881569295 + docs/models/components/PlatformPersonReference.md: + id: 1207198b68e3 + last_write_checksum: sha1:684c58562eb45d7cb7e82b095690ffd68693b268 + pristine_git_object: 8106cb5ea807f1c37e8f2ce9d709e4396e6e219c + docs/models/components/PlatformProblemDetailCode.md: + id: 7197ed40b080 + last_write_checksum: sha1:64ff90a932af54575db58c61858d0d73212a34e6 + pristine_git_object: 39ba23fdcbcccd1aefefd6ec7ed8bfcd395fedc7 + docs/models/components/PlatformProblemDetailError.md: + id: a89d7785f103 + last_write_checksum: sha1:3b700665719809b98c8908f81168091021a2e763 + pristine_git_object: 3f6de73eb45fcff1aab314f236d903c26ae92b3e + docs/models/components/PlatformResult.md: + id: b0d7a2d55a3c + last_write_checksum: sha1:64b134366a2b8cee44b4d8bcbc9b902b3a78eb41 + pristine_git_object: c1f2481bb7fde4bc6ffd9a85c78e39e0aa28828e + docs/models/components/PlatformSearchRequest.md: + id: 4e23a5750a64 + last_write_checksum: sha1:a806b1f8c768a8cf84207a2678451e9f27bc6bf8 + pristine_git_object: fb3eaf3993a9f45642bf18b90b509887d1c749ae + docs/models/components/PlatformSearchResponse.md: + id: 5f92876fb5c8 + last_write_checksum: sha1:d463001b22ff3419918e31ec7832587341fb35a1 + pristine_git_object: 083cad412eb152684e3895da619d1f4f393ae0bf + docs/models/components/PlatformTimeRange.md: + id: e23ca7368dc2 + last_write_checksum: sha1:48c1a8a19bac073372bdf5b5e688865d568d6225 + pristine_git_object: 67c075a66517b00915dad2c063b62f0145838551 docs/models/components/PossibleValue.md: id: b082d515927c last_write_checksum: sha1:80b4a4842f40dd2b5a0e20956b1d60b66486a080 @@ -2468,6 +2565,10 @@ trackedFiles: id: 90db26d988e3 last_write_checksum: sha1:6248a6b2912b5aaf4b51a29c7049af274a060d85 pristine_git_object: fa12f9644bab377f09064f69869097b40cbea2b6 + docs/models/errors/PlatformProblemDetailException.md: + id: 20c46776ad61 + last_write_checksum: sha1:33b922bba6fffa2aeed4b3382c742f943b1651e7 + pristine_git_object: e3133b511263d5fb4a0fa4bbc1152dee37ad3d16 docs/models/operations/ActivityResponse.md: id: abb6e00957d5 last_write_checksum: sha1:abc14096d3cb9aed19f041351a32089f5f000289 @@ -3048,6 +3149,38 @@ trackedFiles: id: e52582fd708d last_write_checksum: sha1:22ae58dddc0b07dc1ee532da2079b82efac2cb70 pristine_git_object: 7ec951818fbef87d1867f6c1756937757ce80b4f + docs/models/operations/PlatformAgentsCreateRunRequest.md: + id: 2f5db74d38b8 + last_write_checksum: sha1:6e41fce8e34041c52aceb856120088a71e219b71 + pristine_git_object: 5824662e101dec34cea7d95571b953f34c9cbf0f + docs/models/operations/PlatformAgentsCreateRunResponse.md: + id: 8d49f44f776a + last_write_checksum: sha1:87760fd7793a4f9bf8b1a8bd8b230a19350b887b + pristine_git_object: d930b7edda3e254cf157e1f7f81d73488cc035be + docs/models/operations/PlatformAgentsGetRequest.md: + id: 15a2b0951ad2 + last_write_checksum: sha1:a21cb1e45812982a602bc010418d2d397bbb0361 + pristine_git_object: f55b2cfba17badfdd5921df0a602b2bb4f746b5a + docs/models/operations/PlatformAgentsGetResponse.md: + id: 953ffea39d06 + last_write_checksum: sha1:60e681dcf7ffc582d4654a34cb89068614056018 + pristine_git_object: bbf6b68c0bd0afcd38cd3351bb3ed4c866d2af74 + docs/models/operations/PlatformAgentsGetSchemasRequest.md: + id: 98489c68fae0 + last_write_checksum: sha1:960e1f59cb8c0312024ed9dfb1bed6af5b5e0e63 + pristine_git_object: 710fc7b6635e0b07310b7a8e324a32c57a468f09 + docs/models/operations/PlatformAgentsGetSchemasResponse.md: + id: 323ee6c15984 + last_write_checksum: sha1:6ef5af450e8c46d8547658a88f9e7838382d1f1a + pristine_git_object: ba185290dccb0159ba876a9c520b193048745b12 + docs/models/operations/PlatformAgentsSearchResponse.md: + id: 69c6ba109512 + last_write_checksum: sha1:439f70aa6d30b622e8bb20c6ef8c2a8ce800a459 + pristine_git_object: e1d4afd47a1e924bf6c174452f04c361350c4ad2 + docs/models/operations/PlatformSearchResponse.md: + id: 7ab2beea5f75 + last_write_checksum: sha1:b019dc80b72396e4103f40bc931b1a39b8b00117 + pristine_git_object: 10908aeaba0726a7003a58e259f514c0cb3d33ba docs/models/operations/PostApiIndexV1AdddatasourceResponse.md: id: 6cd8415eee56 last_write_checksum: sha1:0b68cdac07ec9e7f87091e7dfc4a45184dedb70d @@ -3350,8 +3483,8 @@ trackedFiles: pristine_git_object: f3ecb5fda2b888721a48e50acb4e541bcc09a757 docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:87cc311cb445f843121fe08246d922af7a8bf6a6 - pristine_git_object: 1fe959f7fad70d6333fb86fc96e2319edea655c4 + last_write_checksum: sha1:70a06cfa4b5a6340103889320e29e3c4f1795202 + pristine_git_object: 6377e3c194ce773ccfbc01b9783f7d88811a115e docs/sdks/announcements/README.md: id: 3d2e130a217c last_write_checksum: sha1:d518fe37c613bdef6f738b2e1ef52918bc782324 @@ -3360,42 +3493,34 @@ trackedFiles: id: d1b7559999eb last_write_checksum: sha1:94774ab84f604ca8f9c867c02a495ecd463775db pristine_git_object: 6603db8c8828357d67059a746ee541aee6c45301 - docs/sdks/authentication/README.md: - id: 45be241adfc3 - last_write_checksum: sha1:8bd7d3af2a734d193918ad7839cc1e77607f18db - pristine_git_object: 3dc2fdb8b2f87016d2a70a88d8c89eb6e9750fab docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:23899c4e51b7ebf98014661bcb433f7a08950a9d - pristine_git_object: c20a5675af08763fadd048ba9a41727e500a8dc6 + last_write_checksum: sha1:ade661010cbab46a895b5086382fcbf9281e4cff + pristine_git_object: d38cf187d02dd13b1ee3b610410648a0d2d73d08 docs/sdks/clientagents/README.md: id: 8e00e6d6b64e - last_write_checksum: sha1:304435cbc66bd4d045fa071b55c88a57c131ac5d - pristine_git_object: 21e864412a3451a9a6ad2078161e74bd6fad2e60 + last_write_checksum: sha1:54f8ce2cc631099c310bccb470a0967d84215a67 + pristine_git_object: 34a21ef03f3fdfa633d6b34bc773054e7ff7268b docs/sdks/clientauthentication/README.md: id: 463bffe80b61 - last_write_checksum: sha1:2fd98f65448c3497397f73270dc7c8836d990ae4 - pristine_git_object: 4a0e88ee774f39b6ebe189f6f4fe63c1f46ec1a8 - docs/sdks/clientchat/README.md: - id: baf998e3d238 - last_write_checksum: sha1:4fffe9a116f350198f10d6a097a0a667296557b6 - pristine_git_object: 25e8121d524591e65504d93f46972ad962baf80e + last_write_checksum: sha1:0f7d8400827026efb88dc7cd2afaeba5c324a474 + pristine_git_object: 401ff982eaf16538bca2018203658a97f1ef4dc5 + docs/sdks/clientdatasources/README.md: + id: 0d629dc3ac5b + last_write_checksum: sha1:5b80d287a3926544af948472c94aeb04b2a3209d + pristine_git_object: 872b2781a35fba3e164e91a72330cd7f2a995496 docs/sdks/clientdocuments/README.md: id: e0c074acef4e last_write_checksum: sha1:3e30b01291b4a723ac69e849a3bb65aa4fcf0af3 pristine_git_object: 2e2c8b83e8be3004848d77f41037d93bf9c2c265 - docs/sdks/cliententities/README.md: - id: d087d30c9006 - last_write_checksum: sha1:49c9cf1f1044dca5861a0f0eb49ef71b00cb5109 - pristine_git_object: f097864a2a0ccdea7b7db74b28ab49dc0b430e2c + docs/sdks/clientsearch/README.md: + id: 0a2a3cf68489 + last_write_checksum: sha1:c803e689148a7aabdba7de5c44f772b56fcc9e62 + pristine_git_object: fdc2008b3e9d2b4053372d171b4d360621730175 docs/sdks/clientshortcuts/README.md: id: d5a9d841b61c last_write_checksum: sha1:846039b10157b677afa51d091b63b4db33ab09ec pristine_git_object: 08557336eff2a0a4ed6203af80ed3eb8ffe2c457 - docs/sdks/clienttools/README.md: - id: 6c303a9741bd - last_write_checksum: sha1:443ad3d8198183eab732122ab66926931190d2e9 - pristine_git_object: 1401dc0cb3b70e6c5ded922abb844dfb12c2e857 docs/sdks/collections/README.md: id: 7985e64efccf last_write_checksum: sha1:36e51d7a648b790473bccd08c9876f544f11ef52 @@ -3408,18 +3533,14 @@ trackedFiles: id: 4671628477b5 last_write_checksum: sha1:b1689e010c0c8aa4d1a242b953f478760876a187 pristine_git_object: a997ca8507fcd9d54912e53a8e2fce7d472aef18 - docs/sdks/datasources/README.md: - id: 024d3ed36945 - last_write_checksum: sha1:2649a8d5d895adbc39e2791b846a03eade6bb448 - pristine_git_object: c00393dfb30cd951d3ddebce81a3f19e6283bfa9 docs/sdks/entities/README.md: id: a140ac5181b9 - last_write_checksum: sha1:d7b6704d56662560ba6d7d36142a489419982c86 - pristine_git_object: 96837684f0071235e512d096de6f66e0a32e2a7e - docs/sdks/governance/README.md: - id: 87817eb7bf48 - last_write_checksum: sha1:66faf82b188c34fd99312632163438a34c0a983b - pristine_git_object: 8f7b5d54cee261099158b1a4c40951f80b092bf6 + last_write_checksum: sha1:a68d6efb83cdd6627eb2b9714b99693ea95cbe8a + pristine_git_object: 4aaef976ce22f5070db90d336d31e1f75c170c9d + docs/sdks/findings/README.md: + id: 7f7356eb9e9c + last_write_checksum: sha1:8baba15c800054ef96caf48a0f2a8105cb425044 + pristine_git_object: 2f6991e58f0623ff86fe3d1f53bbeb9e6e4b77c3 docs/sdks/indexingauthentication/README.md: id: 3d8b5fccff24 last_write_checksum: sha1:6bfee7b81e30d1fac8ca500d7798c37bb74aa189 @@ -3430,8 +3551,8 @@ trackedFiles: pristine_git_object: 8806406063917507f03e54c6be099807518b25d1 docs/sdks/indexingdocuments/README.md: id: 7ca38da53414 - last_write_checksum: sha1:1796a32cb881f5a64e17e8235e003245ebea19ad - pristine_git_object: ebb2d36432179a930fed81e0991223b228a11ab5 + last_write_checksum: sha1:2d8c525b2cd55d063e285d2cce46e98ada2ac31a + pristine_git_object: 1be33a2927eb22435366b64ae034f5c9d662d10a docs/sdks/indexingshortcuts/README.md: id: 5cf29bd168af last_write_checksum: sha1:9aa008830dcd353fd47cfc4bd1f17103aa8eeeb0 @@ -3466,16 +3587,12 @@ trackedFiles: pristine_git_object: 50cc780abca57bc36960910449cfa6491f729579 docs/sdks/search/README.md: id: 5c534716244c - last_write_checksum: sha1:c803e689148a7aabdba7de5c44f772b56fcc9e62 - pristine_git_object: fdc2008b3e9d2b4053372d171b4d360621730175 + last_write_checksum: sha1:147a1fc7ec9a3bf40a9cfa22b75ef0c86d61c1b4 + pristine_git_object: 056a49a759fd978daadc09e692e667715a930fb3 docs/sdks/tools/README.md: id: 044286549bac - last_write_checksum: sha1:9591f4edaa2cb9848489f8321a1b49ec38e044b2 - pristine_git_object: c4c23f4c20e6e32c31e72148850de9aeee167d2d - docs/sdks/troubleshooting/README.md: - id: 0c78de25ee92 - last_write_checksum: sha1:ffbdc94e67a7fbe5140beee0c18cf4e573e635e2 - pristine_git_object: b77f0ef6860ef0517fa87c95b1214a2473bbc471 + last_write_checksum: sha1:0f5363cf4c494cd135ecb54c135010690c09040b + pristine_git_object: aac7edaa17d6e0c83df582dd5abd2f724bdb4d8e docs/sdks/verification/README.md: id: 8148670b64d3 last_write_checksum: sha1:e4b6b3b45b5b0c1718596fc683778df5ffc612bf @@ -3490,8 +3607,8 @@ trackedFiles: pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:bd3287b5990a48c2f3da46acc554222af8b3b9ee - pristine_git_object: 0b215eeb630619c5ad8ff02b6b69e1a44c04dce5 + last_write_checksum: sha1:2a628a43a6035c21fcb34a1e49e75d7c1b82560f + pristine_git_object: 3005c215b9e0856962bd64ea2a3ce6432568959a gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3522,8 +3639,8 @@ trackedFiles: pristine_git_object: df42bc238520dfa6a790833984bfc1e386b3510e src/main/java/com/glean/api_client/glean_api_client/Agents.java: id: 69615daff4b4 - last_write_checksum: sha1:fa174d355d792f253f0ffa8be4adaf49bd4b8b20 - pristine_git_object: bc56c524014ed94f38cad21669910c29be0b5e4a + last_write_checksum: sha1:15af95a8d92a86e889479f2975395720f2796916 + pristine_git_object: 4e1b4489f3e3a56f864ed2d5c47076fe3e9d6e81 src/main/java/com/glean/api_client/glean_api_client/Announcements.java: id: 23fcf3ba5c75 last_write_checksum: sha1:41a393ad53e8dedc383c224a3b789e80f936b114 @@ -3538,8 +3655,8 @@ trackedFiles: pristine_git_object: c4b4a844fc24a20d724ee016bc00cfb0125c28f9 src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java: id: 5fb5adf2262c - last_write_checksum: sha1:c074c9ecd3150109944d143dad4c0d0d8e6b629c - pristine_git_object: fa11a40b96185612b46f5106028d3862821cd78d + last_write_checksum: sha1:bc5ca9739f9dc607ab158b291fa7eb1ddab79f27 + pristine_git_object: 3c6ac1b2a03e5789044754dc9b607f631c562093 src/main/java/com/glean/api_client/glean_api_client/AsyncAnnouncements.java: id: a4630e10d992 last_write_checksum: sha1:7c3ded3cbef281f4de46835f65ca4348af14137c @@ -3548,50 +3665,38 @@ trackedFiles: id: 2a2ddc20b08c last_write_checksum: sha1:7b72531fe19367649c35007058737ebcf5b76818 pristine_git_object: 2e4b82da55703e54e9f737d617789cbda7c1d869 - src/main/java/com/glean/api_client/glean_api_client/AsyncAuthentication.java: - id: 6e8adea5509a - last_write_checksum: sha1:70630704d4559eb9c59f27fd86233b7f8bc90d8c - pristine_git_object: c5f5cd0c248f2bfb4c49f3afb7ca8de7c79fce91 src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java: id: 64a2a6f928f7 - last_write_checksum: sha1:6415a5368023a03c081d79a8d038f497418e4fb6 - pristine_git_object: 06b88476bcd11a582b465dc0e772565f3e6c1643 + last_write_checksum: sha1:ac9894abf3ea3870f9c2ff5f6905d962a4de8099 + pristine_git_object: 91c0401d76f02dc538aca0289e10978d2638a17d src/main/java/com/glean/api_client/glean_api_client/AsyncClient.java: id: 4458603ff05d - last_write_checksum: sha1:49de7ade00edf1205317ff905c6665d1031da0d7 - pristine_git_object: 169a6b74b275c17dc2cb0f4e736e6e313084ab16 + last_write_checksum: sha1:7fd2ac1cf60dc29bb0a1c64e4e04643fe4fb4deb + pristine_git_object: 7f9bffcad607f62dfb71906006dc8323ff81f86f src/main/java/com/glean/api_client/glean_api_client/AsyncClientAgents.java: id: 3f21cca40539 - last_write_checksum: sha1:1aaec27434328017e2ec9744ac4b20ab1a68fd3d - pristine_git_object: 48147776703b5f7f8822df925aa02852f0c8c781 + last_write_checksum: sha1:18001a91ac434081a13c4852984fcb3aaeb7911d + pristine_git_object: db0ba6fb9c8a54c40666b45665a857f3e5d56df5 src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java: id: 3d83dd65dd00 - last_write_checksum: sha1:5d40508abe4dbea9b98b9417afa0c7bb7378a273 - pristine_git_object: d40eca1bba434c2291161dbaef4b874efa525c52 - src/main/java/com/glean/api_client/glean_api_client/AsyncClientChat.java: - id: 4576354be4d8 - last_write_checksum: sha1:c227007b48e163bb159d69dbe293ea48dac928e8 - pristine_git_object: b3122d161457a32ce1d4aacc4031f55c0826e23d + last_write_checksum: sha1:686a9ea4330e2a52ebe10095d75a61f08b6fbeca + pristine_git_object: 6d309a2f2e3ea996932175b2d0f7524521da1365 + src/main/java/com/glean/api_client/glean_api_client/AsyncClientDatasources.java: + id: a823c73e3290 + last_write_checksum: sha1:35807fac8ec29f330ed9c13c0b50480fac694eba + pristine_git_object: ade0e3314d43ca8eb06f8fea79184584a91dccb0 src/main/java/com/glean/api_client/glean_api_client/AsyncClientDocuments.java: id: 25df5f237d37 last_write_checksum: sha1:dbb468921e681db8440b1b63917d3bb6d9dc90d4 pristine_git_object: 4e329a04c4c1a758f494e5a39fd2d8ab67f11708 - src/main/java/com/glean/api_client/glean_api_client/AsyncClientEntities.java: - id: 379d1a5a3ee9 - last_write_checksum: sha1:88bbfe0138a518363335dc77d9acde77ab55a373 - pristine_git_object: f0ce36941650f59895316df95991a24f63140fb2 - src/main/java/com/glean/api_client/glean_api_client/AsyncClientGovernance.java: - id: 2c29466c8c9d - last_write_checksum: sha1:534d79134deed4b631ec5a5c53705d3fc48907ee - pristine_git_object: b43b53d3036b665f1b0b92be3eadda1b49718160 + src/main/java/com/glean/api_client/glean_api_client/AsyncClientSearch.java: + id: d57bf2325db3 + last_write_checksum: sha1:3ee1d1c93fd3905b42237a21d6e6c3a02432c21e + pristine_git_object: 826e5b9d8c4c23263711dfa63c5143ea73e3b4cd src/main/java/com/glean/api_client/glean_api_client/AsyncClientShortcuts.java: id: 90a2d77a0873 last_write_checksum: sha1:dbdc24df79f1de020a2ea27b3c576fa474340823 pristine_git_object: a6ce8ea4969a99115bc865ba4700e4bc78114303 - src/main/java/com/glean/api_client/glean_api_client/AsyncClientTools.java: - id: eeb89c7cb08c - last_write_checksum: sha1:e169403fb23e217c7879cfea3cafde7966088216 - pristine_git_object: 1a6353baf46665485dff081a88a0ea6aefd2caef src/main/java/com/glean/api_client/glean_api_client/AsyncCollections.java: id: 87aa49909a73 last_write_checksum: sha1:708a14351d540fe664f30f106789df25721b237b @@ -3602,28 +3707,28 @@ trackedFiles: pristine_git_object: c263d7e7d73571b4bb73f7907219352943906b77 src/main/java/com/glean/api_client/glean_api_client/AsyncData.java: id: 9ed1e756fda7 - last_write_checksum: sha1:744aaa774fcbf6e9e51888b7e9fad7d8aaee0c5f - pristine_git_object: e5c2e985935dd1e574af33c3dc9a9ec6ca674416 + last_write_checksum: sha1:68e593e2b869fd86d605013773e0c3189e72d655 + pristine_git_object: f8b07ee3b1d63f915304f90f5d2c35f17346b9ed src/main/java/com/glean/api_client/glean_api_client/AsyncDatasource.java: id: b2d9bb955f20 last_write_checksum: sha1:8c64331aac3c96157e90e10bdf83b134eb7b2ee0 pristine_git_object: 119195b920979511b646f622fdc3b9b670b345c4 - src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java: - id: 3c173ec01fbb - last_write_checksum: sha1:525cbb1a0a88dcf2907454eaaf7d4d6653932cfd - pristine_git_object: 52bde47924e0644e6dc71828c1e1230b18017169 src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java: id: 7589d9e17031 - last_write_checksum: sha1:8abf33fee019e61a399afdd478a539fb18846d34 - pristine_git_object: a822d7e4899833a7b59043f634813740b36ff83f + last_write_checksum: sha1:b3a06ffc088cb209c56b87d8efcfbbadebd0a59c + pristine_git_object: 41a369b65a64afb11ad06daf7fff7e0ad6bd0608 + src/main/java/com/glean/api_client/glean_api_client/AsyncFindings.java: + id: 7f1c2e5b0c11 + last_write_checksum: sha1:c5f28a1d6656e64404f209ff7b2e7b390d7ea024 + pristine_git_object: b688538c7b9c976d4493061d3608ebff442b6875 src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java: id: 41f5be2f8342 - last_write_checksum: sha1:e8e5072d0c45b7a02542ed28231049b6f229f5be - pristine_git_object: 3ef8fd2e813ec74b1aacdb534ef2f9c86121e251 + last_write_checksum: sha1:454467031a5fa7d6a7abb56ccdeddf7e1a778a7e + pristine_git_object: 043e1a834f9199a6e52545d2a6e6c46872ca5753 src/main/java/com/glean/api_client/glean_api_client/AsyncGovernance.java: id: 38b2443ece41 - last_write_checksum: sha1:bc418436cd6ef72bb52d44982e4abb2b519e060d - pristine_git_object: 0cf57b7e4ada2b3e84a09b608dbd0614cc0aa8fb + last_write_checksum: sha1:d98fcd8de4bbdd2455f0b186d630f68cf0aede69 + pristine_git_object: c2096cd52b16bee95ef125ddf5ff6f0637a158ec src/main/java/com/glean/api_client/glean_api_client/AsyncGovernanceDocuments.java: id: 0bc4f5a7574f last_write_checksum: sha1:000f4b9b64c3205ff7943b23e0125ef2f44dcd68 @@ -3642,8 +3747,8 @@ trackedFiles: pristine_git_object: 5976744e34c4f0e7b188d1837784f11c4dc12d8a src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java: id: 979f8541bead - last_write_checksum: sha1:9a053932f584b3e9fd6d8d01e9ceb6e7fae7f461 - pristine_git_object: 85b78529817b730e2711d011f3f250e77655a5c5 + last_write_checksum: sha1:afadb6995b7992b3287b1188025343d72677f529 + pristine_git_object: da19d818757f15b9edfeaf77eaee8f34138ae917 src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingShortcuts.java: id: fb65791b1457 last_write_checksum: sha1:a68de5b86a73ae1caced519ce863a6b147036e0b @@ -3678,16 +3783,12 @@ trackedFiles: pristine_git_object: f6b22c18ff13f777e3641ec68739a3cb09365b48 src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java: id: 443645b885fa - last_write_checksum: sha1:07c2ded9a49a1e23eaae84cc8d41911298eb2730 - pristine_git_object: 0b36c31f830194a99c74cb4891a2469366d3dc08 + last_write_checksum: sha1:0241338c962eda005c9e6c3fe4f66d78030a20d2 + pristine_git_object: 4a17ff91f2cad3a65578dd16fac8bfbb864699e5 src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java: id: 02ad87504d7a - last_write_checksum: sha1:6a143d250778eb8b0ae32def97bf717f128c40e1 - pristine_git_object: ec19d3944c304eae8cd61492984cf3a09119947c - src/main/java/com/glean/api_client/glean_api_client/AsyncTroubleshooting.java: - id: f2be2d980f25 - last_write_checksum: sha1:40f4836a69a79c134a7d688665fa835c2d63b387 - pristine_git_object: 1a4f99a5b33e038b80c10e6a65f373016a90af24 + last_write_checksum: sha1:77975095651d9c358eec76b3733e6a3ebaa75fdb + pristine_git_object: e7c82602b4f5ba1a45ab22769b65d1eac4657da2 src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java: id: 8666e963a45c last_write_checksum: sha1:33ab517028f147aab0b1f15c15d32e0077948b58 @@ -3696,50 +3797,38 @@ trackedFiles: id: 36fdf54a21d9 last_write_checksum: sha1:43a9f5e7d19064c05c0a0a9725f25a58ada98763 pristine_git_object: 097ece11f4924877616823c8526babbc38a3b1cb - src/main/java/com/glean/api_client/glean_api_client/Authentication.java: - id: b1e5a2c1ca8b - last_write_checksum: sha1:7eeb159b164c84fc9a0c99f99d73d58ae7caac04 - pristine_git_object: a6c45dd92836cdb97de83e498f6ed32a12e8f14e src/main/java/com/glean/api_client/glean_api_client/Chat.java: id: 84cca4c2d53b - last_write_checksum: sha1:67591aaf859e61b7aadb69fc3c21f415b034aba6 - pristine_git_object: 21321088857473dad945082b1ea28c32e0cd447d + last_write_checksum: sha1:8de000bce58f21872f04f2bcacdd0ea5b393d42b + pristine_git_object: b54437288880f175117bdafac8b169700db60cfd src/main/java/com/glean/api_client/glean_api_client/Client.java: id: 3e1158028401 - last_write_checksum: sha1:3b285d328372234056171c1c6383217c08e8bb74 - pristine_git_object: 3fc2436e6210dc88b1755257191711316cceedb4 + last_write_checksum: sha1:34b67ba8cb36cf7f12c9e08830354f8238009b84 + pristine_git_object: df2bafaf7e1f739fab50aab099213b768bdc13bf src/main/java/com/glean/api_client/glean_api_client/ClientAgents.java: id: 2e741a0b8353 - last_write_checksum: sha1:e4c12b1d570f987dfa7ff2e162d45bf15792f531 - pristine_git_object: ce69c6920c4309ef8d3a83d81017498c31c17fb7 + last_write_checksum: sha1:c11014e3443102c0f921357db5c45f6aa7f746e4 + pristine_git_object: c11213b564c2db94d642082fef89abf0862c6d24 src/main/java/com/glean/api_client/glean_api_client/ClientAuthentication.java: id: 5a8320d838de - last_write_checksum: sha1:9426ae6475e21e3887d5df1f563d71b038e7eda9 - pristine_git_object: 40432df73c884e3a1c196871f3de7def7b8e2a6b - src/main/java/com/glean/api_client/glean_api_client/ClientChat.java: - id: 22b392d75521 - last_write_checksum: sha1:71e7692f8bc2d8b7d62f0e5e10e77e86bb58d33b - pristine_git_object: 3b4c166badf5241aeeae5398dfbd87d4bfa406fc + last_write_checksum: sha1:478ca0c5ae44615894dc5ec5c2e6de8c24cf67e5 + pristine_git_object: 61e17b681d65376fc558d3b3f8ce0b2af4052c69 + src/main/java/com/glean/api_client/glean_api_client/ClientDatasources.java: + id: 85d636ad0221 + last_write_checksum: sha1:f1d4ce2a49069129ebe7f0c2c4f19634fef65e7f + pristine_git_object: 978282a3d90b2159e9fe7d3a553021704215ecc2 src/main/java/com/glean/api_client/glean_api_client/ClientDocuments.java: id: 6b0978aae33a last_write_checksum: sha1:91bfbc8edcf5b0cb51139c458c23780705c6ee4f pristine_git_object: 64a4551a713d6564c0fe75704a4536dc44fcbd97 - src/main/java/com/glean/api_client/glean_api_client/ClientEntities.java: - id: 43c5ec4923c3 - last_write_checksum: sha1:9147f4ea4a0289b5b0e9f6e12afbcf51dbef4d6b - pristine_git_object: b5a038d16f383553955f71ec03de3df3f891f96e - src/main/java/com/glean/api_client/glean_api_client/ClientGovernance.java: - id: 7b367f4bc4b6 - last_write_checksum: sha1:19019a58e2c55bacb344635fdff71c32f0f185e8 - pristine_git_object: f896b0c69af6be62832e2eef368cf3addaeb6b2d + src/main/java/com/glean/api_client/glean_api_client/ClientSearch.java: + id: fef3811c0706 + last_write_checksum: sha1:e9916331f88c3169528d38dd4173275fc0589cbf + pristine_git_object: 14ce54955f05237b7b0b3ffa075860b11025e1d1 src/main/java/com/glean/api_client/glean_api_client/ClientShortcuts.java: id: 7882d0a8fc5e last_write_checksum: sha1:6469a6bfe0bb7c80b0564c98c418d195a3a1a721 pristine_git_object: 8258436bfe57050ff480aee32ad8d8b19a84c601 - src/main/java/com/glean/api_client/glean_api_client/ClientTools.java: - id: 30729233253e - last_write_checksum: sha1:0ce958cd11150bf77a23e4d082a3740ea5626383 - pristine_git_object: 5ca19c6df82ce94f53ccb57470937ac2f8dc8f11 src/main/java/com/glean/api_client/glean_api_client/Collections.java: id: 8fd450b9bb3c last_write_checksum: sha1:40a082ea94a855419f7880a621fbed8490b5313d @@ -3750,28 +3839,28 @@ trackedFiles: pristine_git_object: bea54ab8fd0f24b7eb6fbcff3fab8933a7a9655f src/main/java/com/glean/api_client/glean_api_client/Data.java: id: d460d2f06f58 - last_write_checksum: sha1:3b92dda01ffc78155b5401dbd8547a79028c8b7e - pristine_git_object: 4b82b7383d1b83a708d88d36c3bf272222974425 + last_write_checksum: sha1:8bf44977e5e65f02807545c88bcbfcc48a990e33 + pristine_git_object: ef68c0800738930ec678df5eee79fcdf8c14a974 src/main/java/com/glean/api_client/glean_api_client/Datasource.java: id: 833dc90bf578 last_write_checksum: sha1:e7f9422a632859521f2e21e6190099dbeeccdcdd pristine_git_object: 141b1f40d3230bfa85f0960a9af4bd604f555334 - src/main/java/com/glean/api_client/glean_api_client/Datasources.java: - id: a5c243202fb9 - last_write_checksum: sha1:b1359c37d6872e7b2d4188ea259acb1c4d3f4a40 - pristine_git_object: 3f6dae5dbe24dac2a789f39f808689cca40c328a src/main/java/com/glean/api_client/glean_api_client/Entities.java: id: 8254f307c235 - last_write_checksum: sha1:8a62ed143d5d59f169819e211fca4c0f4060b181 - pristine_git_object: 5706517df674b1759ffae3aa7188e507d598e462 + last_write_checksum: sha1:e8c00d93e0168a923c8b97c47637752c84a0c3f5 + pristine_git_object: 3159e97830aa75a602fc366396a076d48d7dc7ca + src/main/java/com/glean/api_client/glean_api_client/Findings.java: + id: 1403de9abd9e + last_write_checksum: sha1:1119f9f9646a1221343ccd295cbdab23bf5a5afe + pristine_git_object: e9ce0228b65e0b98e94830159dd24e3cd4abb9d3 src/main/java/com/glean/api_client/glean_api_client/Glean.java: id: ebe9053b14eb - last_write_checksum: sha1:c9c3f12cb78819f1deb108d839076b94c1a624b4 - pristine_git_object: 6daa8699181d8cc44cfefbcf7c8b84675451c918 + last_write_checksum: sha1:0d365163ee1902e4797ba948db1a93f9f8a29ad1 + pristine_git_object: 3a9023767e0eb05306b07dd990a5e9d59b6958a1 src/main/java/com/glean/api_client/glean_api_client/Governance.java: id: 2d4a3c95da6a - last_write_checksum: sha1:0f382cfcb96689435a4b397b1105ff9641d98eac - pristine_git_object: a1b56412f99aaae9b227618a01b9b03d066d1320 + last_write_checksum: sha1:66221fd24d5e17ecdfed6bf44bbd6f73a1f93c67 + pristine_git_object: 9cfcbfe13591ff1c05163902a27b8d637d12793c src/main/java/com/glean/api_client/glean_api_client/GovernanceDocuments.java: id: 5000c5f47f51 last_write_checksum: sha1:e588bddc32bff70d61ccfc31a301039184a2722b @@ -3790,8 +3879,8 @@ trackedFiles: pristine_git_object: fa37373f9b7472a2e16d9f653f18eaeb033118ec src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java: id: b8e047968f3b - last_write_checksum: sha1:b4427bc4d64361a7d138d504d8d8f8de3aca189c - pristine_git_object: 7c23c9a50939c734250f2de3bd6eb5ade7f42455 + last_write_checksum: sha1:be58287d33e4d34fde481a016fe1606652642ca8 + pristine_git_object: d5dc4b0ee91b257b9b935d45ce8629cf892ad29e src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java: id: 0c6f099d0bd2 last_write_checksum: sha1:1f15c9fa4317e4ae22c7895654d5fefd33c4d0da @@ -3826,24 +3915,20 @@ trackedFiles: pristine_git_object: ffae914775eb41ff311371f62504344a59d090fd src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java: id: d5fcc61f5992 - last_write_checksum: sha1:f5a8c8b4b6909f0024bae2fe32c4d1d724b1908a - pristine_git_object: 2e276c2482ec5417905c23e7525c3e8aca0d94ba + last_write_checksum: sha1:56bf237dedf201b265da97c5f197b739fdcbc72a + pristine_git_object: a20ce5a3bfd102af41975851b42311ba0eeb574f src/main/java/com/glean/api_client/glean_api_client/Search.java: id: f22d94b920b5 - last_write_checksum: sha1:ac38d1ed47be207940dd6fb7e4c688dddccc6a8b - pristine_git_object: b9543324ae43749ae075c169ebeea9643fcdfd33 + last_write_checksum: sha1:803fcb8e55cb4a76ec275ae45b83730fc7ed18c7 + pristine_git_object: 81cade62fd3fa7da6637858947858ad31f3565bb src/main/java/com/glean/api_client/glean_api_client/SecuritySource.java: id: add211a7c1dd last_write_checksum: sha1:060fd502a5844abda3dba22f9e00ca79f8317f94 pristine_git_object: f1e58a1696e5159e96259e20e83ca6f5584f810a src/main/java/com/glean/api_client/glean_api_client/Tools.java: id: bb072637f39b - last_write_checksum: sha1:33f65f57e864843f3f7dd1b65dfff891687b1df5 - pristine_git_object: 4273481203cd30140b885a310c4644932aa65e74 - src/main/java/com/glean/api_client/glean_api_client/Troubleshooting.java: - id: 3af293a40941 - last_write_checksum: sha1:b01f403ac0cb1ad0f51514d2e50cada82f0d3d8c - pristine_git_object: 650fc66cac0dd791200e2844bb941a7585ebe871 + last_write_checksum: sha1:a457200166845c6fc66805a419b84ede1711fc9f + pristine_git_object: 93a74dec92a313692ac33c40120ae0d341a8c245 src/main/java/com/glean/api_client/glean_api_client/Verification.java: id: a9b3dde933de last_write_checksum: sha1:19ce4d59d774ae80dce441f62e87bda2e6be3fbd @@ -5600,6 +5685,102 @@ trackedFiles: id: 37484b3af112 last_write_checksum: sha1:b6d015065bb61834823b0fd773977c26503a51fd pristine_git_object: e50763a3229c69c02d6a69620f409de3d39ad942 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformActionSummary.java: + id: 334f53c10c78 + last_write_checksum: sha1:2a20c907662dd47fff0cd2c3870e6a85df12f0c7 + pristine_git_object: 0e422d22d595291835aa66af04cc03735e862a40 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgent.java: + id: 73f278672714 + last_write_checksum: sha1:452fc3268027be5d798802d53e47ac90dee3594d + pristine_git_object: 613e1862aeb323667b158fb120c27f0eaa43d4bd + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentCapabilities.java: + id: a83d7a5eee98 + last_write_checksum: sha1:e61cb1b8f28f3aa8a4437722d9f4ecb08430c438 + pristine_git_object: 874a960a1f0b8d9568cde1357452263a236231dd + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentExecutionStatus.java: + id: f36128e0d392 + last_write_checksum: sha1:40764f3c430f34ae272c4df4c64dd0de116fcf76 + pristine_git_object: 6380e825751c96af147814909d88cebfb6297253 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentGetResponse.java: + id: 57671c3df4e4 + last_write_checksum: sha1:874eac6a888ede55047fdb8d1e999c5fe750ca2c + pristine_git_object: e37efa12a8ae0956ee7b72ddeac342f0471e8f7a + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRun.java: + id: a83975cf7b6e + last_write_checksum: sha1:e64404472d1274f65e0991fb27bbe18e6a8b132a + pristine_git_object: 2fd4ec65b93f2d488b9f0a92e26641f2cd171865 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunCreateRequest.java: + id: 1643eb434b69 + last_write_checksum: sha1:d589aa7fcc1d9ad77a27cffe325510eaf1dc6507 + pristine_git_object: e1eb48490b10bf099a47536889ab2d9f7ed38410 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunWaitResponse.java: + id: 587a8637439b + last_write_checksum: sha1:f4c7d055b25d4ad3e375d263690a804ff52ff04f + pristine_git_object: bb30387f3a79e2305e317328cda53acaa3d94056 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentSchemasResponse.java: + id: ceb6267898bb + last_write_checksum: sha1:f2851ab329a22bcf919ab45b3a9499932e4f2011 + pristine_git_object: 6bdbc9908dfb1317b927dada33dbce79806e6234 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchRequest.java: + id: bde39542be1c + last_write_checksum: sha1:1af0591cb43cd18de14e26d90eabcfe43201eec0 + pristine_git_object: 2b79345af45aa58eefed9e9b922cd3fdb595012c + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchResponse.java: + id: afb7301ebc31 + last_write_checksum: sha1:7c785dc14bc08d5ad72713edaff23b0a2bcbe3fc + pristine_git_object: aa733159fc31e4d8d3d3719580082697b36892ed + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformContentType.java: + id: de39566bcffe + last_write_checksum: sha1:769c4d48aedfb3638a6dde3e762d9373b3155d20 + pristine_git_object: 6c3564656db7d82a7cb0abfc6479e3bb0d163cc6 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilter.java: + id: 79535f6079d1 + last_write_checksum: sha1:0b5b67c8640ec81897142d0fd4349e732a193c71 + pristine_git_object: b542c1d0622f1a18bfb075e790a07b061673c51a + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilterOperator.java: + id: 66c7c018aa4f + last_write_checksum: sha1:616e18d5bb0bcb7ce9dda6e24e6a110104dc523e + pristine_git_object: ad7114fd7cf5de09bf69694171541fa41b14db4b + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessage.java: + id: c1cf5da6fc08 + last_write_checksum: sha1:f4f376ebbf062f855845e8083909966628ce296a + pristine_git_object: 8f84189368ce415d419b938cf1dfcdefbfcd65df + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageRole.java: + id: 7cdabbc49413 + last_write_checksum: sha1:7246135c108e67a2edecd0ddc0e067a3055d4dee + pristine_git_object: 33230232d18934fcf7c58858d6f38eb1f197f314 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageTextBlock.java: + id: 6bc4d83f920a + last_write_checksum: sha1:4b84089b7cfd82c023b22ad7b1b0b80e325ee831 + pristine_git_object: 8382416c077835d434a2bc49fe1ce414ff251c32 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformPersonReference.java: + id: 7772997bc703 + last_write_checksum: sha1:1a86789e35f548036ce3676e77fddb02fe35bb41 + pristine_git_object: bdb080cd5f0cc4cb17995f3b36dbd4d81842327e + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailCode.java: + id: 644320a1a246 + last_write_checksum: sha1:b45b5cbd8bde22188ec669b522bbfdbd6eb2a27e + pristine_git_object: e5048270dd5f97c2c915ad42899581132813f6bb + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailError.java: + id: 0e58c09c0b28 + last_write_checksum: sha1:8b469e1ec6948461d69d0d06162db756a2e31140 + pristine_git_object: 6c2a2883903d54f8255c0c35a01cb0d5d4cb37d2 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformResult.java: + id: cfedffb9bb25 + last_write_checksum: sha1:af520e178d10bbdd5a2a1fb5f5f2519c31c09955 + pristine_git_object: 9f2a14b55fe016e46a1d6c7636c97738afb396bb + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchRequest.java: + id: 87faac7fcad3 + last_write_checksum: sha1:911a882b358129a7ab1e54d88b993b9712ea22a0 + pristine_git_object: 41659fab14eacfadc652a8b38a52a6d28e02803d + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchResponse.java: + id: 170859d5c40a + last_write_checksum: sha1:f6bb81d05003571db41220e1d40d54a854206d97 + pristine_git_object: bba2b20565c5103d873fb2de0ca511298695c829 + src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformTimeRange.java: + id: ab9269c32c6a + last_write_checksum: sha1:6f3c5cb8d6d2a61f8d2b7ee42a1d7b73ac02c6b7 + pristine_git_object: 560c03adf256f536904c6f627487fe8c39c865f4 src/main/java/com/glean/api_client/glean_api_client/models/components/PossibleValue.java: id: 1c530baf92d6 last_write_checksum: sha1:676338b4060eb871152260e200286654979986ed @@ -6288,6 +6469,10 @@ trackedFiles: id: f76c87475860 last_write_checksum: sha1:754eba9ce1ae739d560bae792a820f34d86fff3e pristine_git_object: d6dc6f1d34278d937c22acb580630d74f4f8064d + src/main/java/com/glean/api_client/glean_api_client/models/errors/PlatformProblemDetailException.java: + id: 3a28c9778452 + last_write_checksum: sha1:a0309324c8ebbc1573cdf1c6ace2b2e7d8dd786c + pristine_git_object: a98aab68ed1daf82d22e95892beae47c02a3b363 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ActivityRequestBuilder.java: id: 0d2acf5ee3a1 last_write_checksum: sha1:ea3dcd151647666f6b9e2474166cd487750a9855 @@ -6592,6 +6777,26 @@ trackedFiles: id: 11e86f5b0c45 last_write_checksum: sha1:ed74c828b542a1275743c354dfc84e627adc52c7 pristine_git_object: cad28761741f93fbab9c51119bfa39277a7065a2 + src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PlatformAgentsCreateRunRequestBuilder.java: + id: 58da900f568b + last_write_checksum: sha1:22e5df89b8c2f8b44220c90762bf77fbccbbd074 + pristine_git_object: cdecf5e5bdbe2bce86726fd395f4f681a9a63a19 + src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PlatformAgentsGetRequestBuilder.java: + id: 1946c89a8094 + last_write_checksum: sha1:d9672627d1d71a354aaa1b25cad5df47f8a2c0c2 + pristine_git_object: 418e4303eb07deba82dcd0f3bfc2cc656b2da528 + src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PlatformAgentsGetSchemasRequestBuilder.java: + id: ace28d537195 + last_write_checksum: sha1:d6953ecae45cf01032276f4eacc0be6ee7481cfd + pristine_git_object: 8b68ea62f7d6d020317a9ead6b424ae0b3c7e5e8 + src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PlatformAgentsSearchRequestBuilder.java: + id: 232a1dab138b + last_write_checksum: sha1:aca04a29477a63e4b032c8b995f9c448c0e80f71 + pristine_git_object: 6954137606f65f50a3347f5454e9c08b5dd0bfbf + src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PlatformSearchRequestBuilder.java: + id: 82db0b41fde4 + last_write_checksum: sha1:7af4c73a77eeb27581501f320f4b69e76cf83d62 + pristine_git_object: 18d1426633220ae8c17fb39a810f941ece0a2713 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PostApiIndexV1AdddatasourceRequestBuilder.java: id: 3c6f34b93b68 last_write_checksum: sha1:4e8bdefb602c072ec9b82058b5593546e04e059b @@ -7692,6 +7897,58 @@ trackedFiles: id: b4daab3f9129 last_write_checksum: sha1:eb8505cecbc7f17561f70afdf44c5a686f4c2af9 pristine_git_object: b9ea55b33ee7db77e6eb45e1623dc295a7aa5f98 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequest.java: + id: f7509daf572d + last_write_checksum: sha1:59a48b3a5681e6d8e9c569fb6a201593f46e8e50 + pristine_git_object: 448692afc4970bc21d175430aace96e4157fd2f5 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequestBuilder.java: + id: 7fad9151e0d8 + last_write_checksum: sha1:6e4dc3d4897fc689b0dadb058a14e960144aa426 + pristine_git_object: 13bdc02d267bd92822fc9b5b04bd1cdb9628b45a + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunResponse.java: + id: 943b97d76c0d + last_write_checksum: sha1:4ea4bee44dc43de77a1aac5d9b2bd0b4f1a78909 + pristine_git_object: ab23ff5a782b0b3f16a7376892d3a6d911c19617 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequest.java: + id: 8efd7ef6596a + last_write_checksum: sha1:25c63fad755d4f29bdd422db3d6179d2e5c50a23 + pristine_git_object: 3536e83b938c91c2fc0dc9df8cb9ef8a74101aaa + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequestBuilder.java: + id: 07e20d7ddec3 + last_write_checksum: sha1:e607fb75938d016bbda2901f41a1c7aee833fe8b + pristine_git_object: f775fde7d7b40ea638f9fe811b88a8b49a0a0308 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetResponse.java: + id: 95441ff92c65 + last_write_checksum: sha1:72d8f5a3f64ee454e34bf405a2b6374086bfd748 + pristine_git_object: 46b90cec431237bdd4d060d337041e376580e7b6 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequest.java: + id: 952911a98a12 + last_write_checksum: sha1:58ea5dbfc41b3648f3bca90e214f68f110ef142e + pristine_git_object: 64103e6845f27dbf10ceceb43f0ffccc5a1726bd + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequestBuilder.java: + id: 09a1415f8383 + last_write_checksum: sha1:e89d5717f6ef94b32298b26dcff816d3baee221e + pristine_git_object: 4e9230ee5697a486c23ba3bdd7273acbcdd4398d + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasResponse.java: + id: a67a15bca591 + last_write_checksum: sha1:930e19745fd55d6a9b06ebe2b7caa794b72639ed + pristine_git_object: 143fd2779258feffc0f5ac50a59aa2998e7847a6 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchRequestBuilder.java: + id: 42d9210b3445 + last_write_checksum: sha1:64a8495e43d543158aa1dd8977536f7ba510cfc5 + pristine_git_object: 8ff8da9a0e39be64d86b99d9e1a18abb37e793f4 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchResponse.java: + id: 797a95edf650 + last_write_checksum: sha1:ad6856a23785be496390782be312b0b004a974a2 + pristine_git_object: f6403da16588dde87d9315b9438ebc1d4d4abe14 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchRequestBuilder.java: + id: fa980ac90208 + last_write_checksum: sha1:8dc85371316b91ea65715a95dbc7483d31331260 + pristine_git_object: 20f2eeb9278f8e2717c725eeca77a95f72e015ea + src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchResponse.java: + id: 68bd184c4656 + last_write_checksum: sha1:602ef94742690f30edd18aed6eeb9c6b0ff5b846 + pristine_git_object: f019690379285f41adeeae32dce29d9891e6f82d src/main/java/com/glean/api_client/glean_api_client/models/operations/PostApiIndexV1AdddatasourceRequestBuilder.java: id: 12cfb3a208c3 last_write_checksum: sha1:46483ea129771ac3bc157a1e7bfcc5f672bb645b @@ -8508,6 +8765,26 @@ trackedFiles: id: 2fff51ee70a3 last_write_checksum: sha1:48aa8ffd96f11a1fb59db08f333f7223c01fedac pristine_git_object: f5dc7781f54477e770bdcdccba824810e6d82c80 + src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunResponse.java: + id: 6cdc74da1e86 + last_write_checksum: sha1:0781b7da3eb8a5b60a4d860662187296098b5404 + pristine_git_object: 63583da70291d3990da458f330328181a0ca1b85 + src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetResponse.java: + id: ef08df192853 + last_write_checksum: sha1:a082dd082675b567817dce50546ec17dd1fdf991 + pristine_git_object: e815085470b637b592382658b6ac990ee742a70e + src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasResponse.java: + id: 8437a545be18 + last_write_checksum: sha1:24d805f2fc54f67130eed1b9f70f898cc5256230 + pristine_git_object: ff34ca0043d71c2903dba648a3d692b11ac78f31 + src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchResponse.java: + id: dd7a149a5ac2 + last_write_checksum: sha1:15e40e2048959fb2e80f08d5fe275e2d4d88b8f6 + pristine_git_object: 84352def253ce9dac5fb54dfd7a7b14df2f0b20e + src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchResponse.java: + id: c324b8a2e02b + last_write_checksum: sha1:0ce35493af407ceddc10f68564a406736d6a2247 + pristine_git_object: 2fe9dd653b898a2ac834b9bc870086e4e200f75f src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PostApiIndexV1AdddatasourceResponse.java: id: 8063718dd4c6 last_write_checksum: sha1:8f5180b2a2f460afab4f8278f71524ab24d411eb @@ -9032,6 +9309,26 @@ trackedFiles: id: d4467a81f7b7 last_write_checksum: sha1:495fa8147e8687b475ddae2174bdfafa1432a76f pristine_git_object: febd45ffaac9f3f51f12f255fec3fdc9ab3a63d2 + src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsCreateRun.java: + id: 85c8e88f4285 + last_write_checksum: sha1:ccad4a45188ddbe591b2f3d51f87315393442cae + pristine_git_object: 8e2932faae1d87addb5fd39368672578074c889e + src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGet.java: + id: 4a9693c7c21d + last_write_checksum: sha1:149b39f35a336a8c141e1941509f9db278fd667b + pristine_git_object: f73a2260c2e3e797ac7a10caf04cdf9a90f0bcfe + src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGetSchemas.java: + id: 79b3ee998a38 + last_write_checksum: sha1:2ecffd2b998f3d980e9640803f9e0fe2a53e7695 + pristine_git_object: c97da3d2482227a2a7a4336b795f3ee29f4e96f2 + src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsSearch.java: + id: 1b741467e559 + last_write_checksum: sha1:ca3b9f9c2c3a38db0d185c0fe099ef04f547f873 + pristine_git_object: 90a6c46bd9602f2b8866cdf428a741e9921b3f1d + src/main/java/com/glean/api_client/glean_api_client/operations/PlatformSearch.java: + id: 9b5d67796029 + last_write_checksum: sha1:8ba325cd18af273b77ce406c4d415d7099073738 + pristine_git_object: 9ae93cf0ed58a56fe0264c5e1a3b1c23efb2cb80 src/main/java/com/glean/api_client/glean_api_client/operations/PostApiIndexV1Adddatasource.java: id: 06627a85321f last_write_checksum: sha1:0a738b10de0b1c822504f5cee019a66bb4bdf35c @@ -10439,6 +10736,69 @@ examples: responses: "200": application/json: {"workflow": {"author": {"name": "George Clooney", "obfuscatedId": "abc123"}, "lastDraftSavedBy": {"name": "George Clooney", "obfuscatedId": "abc123"}, "lastUpdatedBy": {"name": "George Clooney", "obfuscatedId": "abc123"}}} + platform-agents-search: + speakeasy-default-platform-agents-search: + requestBody: + application/json: {"name": "HR Policy Agent"} + responses: + "200": + application/json: {"agents": [], "request_id": ""} + "400": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + "500": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + platform-agents-get: + speakeasy-default-platform-agents-get: + parameters: + path: + agent_id: "" + responses: + "200": + application/json: {"agent": {"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "capabilities": {}}, "request_id": ""} + "400": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + "500": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + platform-agents-get-schemas: + speakeasy-default-platform-agents-get-schemas: + parameters: + path: + agent_id: "" + query: + include_tools: false + responses: + "200": + application/json: {"agent_id": "", "input_schema": {}, "output_schema": {"key": "", "key1": "", "key2": ""}, "request_id": ""} + "400": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + "500": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + platform-agents-create-run: + speakeasy-default-platform-agents-create-run: + parameters: + path: + agent_id: "" + requestBody: + application/json: {"messages": [{"role": "USER", "content": []}], "stream": false} + responses: + "200": + application/json: {"run": {"agent_id": "", "messages": [{"role": "USER", "content": []}], "status": "error"}, "messages": [{"role": "USER", "content": []}], "request_id": ""} + text/event-stream: "" + "400": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + "500": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + platform-search: + speakeasy-default-platform-search: + requestBody: + application/json: {"query": "quarterly planning 2026", "page_size": 10, "datasources": ["confluence", "google_drive"], "datasource_instances": ["slack_acme", "slack_eu"], "filters": [{"field": "type", "values": ["spreadsheet", "presentation"]}]} + responses: + "200": + application/json: {"results": [], "has_more": false, "next_cursor": "", "request_id": ""} + "400": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} + "500": + application/problem+json: {"type": "https://developer.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developer.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} examplesVersion: 1.0.2 generatedTests: activity: "2025-06-09T18:03:44Z" @@ -10581,7 +10941,45 @@ generatedTests: get_/rest/api/v1/tools/list: "2025-06-09T18:03:44Z" post_/rest/api/v1/tools/call: "2025-06-09T18:03:44Z" listpolicies: "2025-06-09T18:03:44Z" -releaseNotes: "## Java SDK Changes:\n* `glean.agents.createAgent()`: **Added**\n* `glean.client.announcements.create()`: \n * `request.createAnnouncementRequest.body.structuredList[].document.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n * `response.body.structuredList[].document.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.announcements.update()`: \n * `request.updateAnnouncementRequest.body.structuredList[].document.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n * `response.body.structuredList[].document.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.answers.create()`: \n * `request.createAnswerRequest.data.addedRoles[].group.type.enum(collectionAudience)` **Added**\n * `response.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.answers.update()`: \n * `request.editAnswerRequest.addedRoles[].group.type.enum(collectionAudience)` **Added**\n * `response.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.answers.retrieve()`: `response.answerResult.answer.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.answers.list()`: `response.answerResults[].answer.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.chat.create()`: \n * `request.chatRequest.messages[].citations[].sourceDocument.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n * `response.messages[].citations[].sourceDocument.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.chat.retrieve()`: `response.chatResult.chat.createdBy.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.chat.list()`: `response.chatResults[].chat.createdBy.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].citations[].sourceDocument.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.addItems()`: `response.collection.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.create()`: \n * `request.createCollectionRequest.addedRoles[].group.type.enum(collectionAudience)` **Added**\n * `response.union(class (0)).collection.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.deleteItem()`: `response.collection.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.update()`: \n * `request.editCollectionRequest.addedRoles[].group.type.enum(collectionAudience)` **Added**\n * `response.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.updateItem()`: `response.collection.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.collections.list()`: `response.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.documents.retrieve()`: `response.documents.Map.union(Document).metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.documents.retrieveByFacets()`: `response.documents[].metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.insights.retrieve()`: `response.gleanAssist.activityInsights[].user.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.messages.retrieve()`: `response.searchResponse.results[].structuredResults[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.pins.update()`: `response.attribution.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.pins.list()`: `response.pins[].attribution.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.pins.create()`: `response.attribution.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.search.queryAsAdmin()`: \n * `request.searchRequest.sourceDocument.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n * `response.results[].structuredResults[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.search.autocomplete()`: `response.results[].document.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.search.retrieveFeed()`: \n * `request.feedRequest.categories[].enum(cardStackPromo)` **Added**\n * `response.results[]` **Changed**\n* `glean.client.search.recommendations()`: \n * `request.recommendationsRequest.sourceDocument.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n * `response.results[].structuredResults[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.search.query()`: \n * `request.searchRequest.sourceDocument.metadata.author.relatedDocuments[].results[].structuredResults[].customEntity.roles[].group.type.enum(collectionAudience)` **Added**\n * `response.results[].structuredResults[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.entities.list()`: `response.results[].relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.entities.readPeople()`: `response.results[].relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.shortcuts.create()`: \n * `request.createShortcutRequest.data.addedRoles[].group.type.enum(collectionAudience)` **Added**\n * `response.shortcut.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.shortcuts.list()`: `response.shortcuts[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.shortcuts.update()`: \n * `request.updateShortcutRequest.addedRoles[].group.type.enum(collectionAudience)` **Added**\n * `response.shortcut.addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.verification.addReminder()`: `response.metadata.lastVerifier.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.verification.list()`: `response.documents[].metadata.lastVerifier.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.verification.verify()`: `response.metadata.lastVerifier.relatedDocuments[].querySuggestion.ranges[].document.metadata.collections[].addedRoles[].group.type.enum(collectionAudience)` **Added**\n* `glean.client.governance.data.policies.retrieve()`: `response.report.config.allowlistOptions.regexes` **Added**\n* `glean.client.governance.data.policies.update()`: \n * `request.updateDlpReportRequest.config.allowlistOptions.regexes` **Added**\n* `glean.client.governance.data.policies.list()`: `response.reports[].config.allowlistOptions.regexes` **Added**\n* `glean.client.governance.data.policies.create()`: \n * `request.config.allowlistOptions.regexes` **Added**\n * `response.report.config.allowlistOptions.regexes` **Added**\n* `glean.client.governance.data.reports.create()`: \n * `request.config.allowlistOptions.regexes` **Added**\n" +releaseNotes: | + ## Java SDK Changes: + * `glean.agents.search()`: **Added** + * `glean.agents.get()`: **Added** + * `glean.agents.getSchemas()`: **Added** + * `glean.agents.createRun()`: **Added** + * `glean.search.query()`: **Added** + * `glean.client.authentication.checkDatasourceAuth()`: **Added** + * `glean.client.chat.retrieveFile()`: **Added** + * `glean.client.agents.create()`: **Added** + * `glean.client.agents.update()`: **Added** + * `glean.client.entities.retrievePersonPhoto()`: **Added** + * `glean.client.tools.retrieveActionPackAuthStatus()`: **Added** + * `glean.client.tools.authorizeActionPack()`: **Added** + * `glean.client.governance.data.findings.create()`: **Added** + * `glean.client.governance.data.findings.list()`: **Added** + * `glean.client.governance.data.findings.download()`: **Added** + * `glean.client.governance.data.findings.delete()`: **Added** + * `glean.client.datasources.retrieveConfiguration()`: **Added** + * `glean.client.datasources.updateConfiguration()`: **Added** + * `glean.client.datasources.retrieveCredentialStatus()`: **Added** + * `glean.client.datasources.rotateCredentials()`: **Added** + * `glean.indexing.documents.debugEvents()`: **Added** + * `glean.authentication.checkdatasourceauth()`: **Removed** (Breaking ⚠️) + * `glean.chat.getChatFile()`: **Removed** (Breaking ⚠️) + * `glean.agents.createAgent()`: **Removed** (Breaking ⚠️) + * `glean.agents.editAgent()`: **Removed** (Breaking ⚠️) + * `glean.entities.getPersonPhoto()`: **Removed** (Breaking ⚠️) + * `glean.tools.getActionPackAuthStatus()`: **Removed** (Breaking ⚠️) + * `glean.tools.authorizeActionPack()`: **Removed** (Breaking ⚠️) + * `glean.troubleshooting.post/api/index/v1/debug/{datasource}/document/events()`: **Removed** (Breaking ⚠️) + * `glean.governance.createfindingsexport()`: **Removed** (Breaking ⚠️) + * `glean.governance.listfindingsexports()`: **Removed** (Breaking ⚠️) + * `glean.governance.downloadfindingsexport()`: **Removed** (Breaking ⚠️) + * `glean.governance.deletefindingsexport()`: **Removed** (Breaking ⚠️) + * `glean.datasources.getDatasourceInstanceConfiguration()`: **Removed** (Breaking ⚠️) + * `glean.datasources.updateDatasourceInstanceConfiguration()`: **Removed** (Breaking ⚠️) + * `glean.datasources.getDatasourceCredentialStatus()`: **Removed** (Breaking ⚠️) + * `glean.datasources.rotateDatasourceCredentials()`: **Removed** (Breaking ⚠️) generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f0225fe1..a31006df 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.13.2 + version: 0.14.0 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index feaa39be..870a17e1 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -1,8 +1,9 @@ openapi: 3.0.0 info: - version: 0.9.0 + version: "0.9.0" title: Glean API - x-source-commit-sha: 52a3263df71e58b10c98865e6b4a6f9a29f293db + x-source-commit-sha: 750ec3e4db6f2877f191460b47bff807273c68d8 + x-open-api-commit-sha: 5130487252df59e5fe21a96c4e758609933045da description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +23,6 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: d3cdeccde1b5f13944a9e3958f651e8f61c667d6 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -31,20 +31,281 @@ servers: default: instance-name description: The instance name (typically the email domain without the TLD) that determines the deployment backend. paths: - /rest/api/v1/activity: + /api/agents/search: post: tags: - - Activity - summary: Report document activity - description: Report user activity that occurs on indexed documents such as viewing or editing. This signal improves search quality. - operationId: activity + - Agents + summary: Search agents + description: | + Search agents available to the authenticated user by agent name. + operationId: platform-agents-search x-visibility: Public + x-glean-experimental: + id: 4abc1e17-8e06-490b-99a7-e8f97592405a + introduced: "2026-05-12" x-codegen-request-body-name: payload requestBody: + required: true content: application/json: schema: - $ref: "#/components/schemas/Activity" + $ref: "#/components/schemas/PlatformAgentsSearchRequest" + responses: + "200": + description: Successful response. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformAgentsSearchResponse" + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: agents + x-speakeasy-name-override: search + security: + - APIToken: [] + /api/agents/{agent_id}: + get: + tags: + - Agents + summary: Get agent + description: | + Retrieve details for an agent available to the authenticated user. + operationId: platform-agents-get + x-visibility: Public + x-glean-experimental: + id: 009b3e94-694b-4deb-b80a-c67011173715 + introduced: "2026-05-12" + parameters: + - in: path + name: agent_id + description: ID of the agent to retrieve. + required: true + schema: + type: string + minLength: 1 + responses: + "200": + description: Successful response. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformAgentGetResponse" + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: agents + x-speakeasy-name-override: get + security: + - APIToken: [] + /api/agents/{agent_id}/schemas: + get: + tags: + - Agents + summary: Get agent schemas + description: | + Retrieve an agent's input and output JSON schemas. + operationId: platform-agents-get-schemas + x-visibility: Public + x-glean-experimental: + id: b40b4dd3-3839-48e6-9e45-7e63e8148b49 + introduced: "2026-05-12" + parameters: + - in: path + name: agent_id + description: ID of the agent whose schemas should be retrieved. + required: true + schema: + type: string + minLength: 1 + - in: query + name: include_tools + description: Whether to include tool metadata in the response. + required: false + schema: + type: boolean + default: false + responses: + "200": + description: Successful response. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformAgentSchemasResponse" + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: agents + x-speakeasy-name-override: getSchemas + security: + - APIToken: [] + /api/agents/{agent_id}/runs: + post: + tags: + - Agents + summary: Create agent run + description: | + Execute an agent run. Set `stream` to true to receive server-sent events; otherwise the response contains the final agent messages. + operationId: platform-agents-create-run + x-visibility: Public + x-glean-experimental: + id: 26bba669-2e92-4e5d-9798-6a532fae4e9f + introduced: "2026-05-12" + x-codegen-request-body-name: payload + parameters: + - in: path + name: agent_id + description: ID of the agent to run. + required: true + schema: + type: string + minLength: 1 + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformAgentRunCreateRequest" + responses: + "200": + description: Successful response. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformAgentRunWaitResponse" + text/event-stream: + schema: + type: string + description: Server-sent events emitted by the running agent. + example: | + id: 1 + event: message + data: {"messages":[{"role":"GLEAN_AI","content":[{"text":"Hello","type":"text"}]}]} + + id: 2 + event: message + data: {"messages":[{"role":"GLEAN_AI","content":[{"text":", I can help with HR policy questions.","type":"text"}]}]} + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "409": + $ref: "#/components/responses/PlatformConflict" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: agents + x-speakeasy-name-override: createRun + security: + - APIToken: [] + /api/search: + post: + tags: + - Search + summary: Search + description: | + Execute a search query and retrieve ranked results. This is the data retrieval variant of the search API and returns only results and pagination state. + operationId: platform-search + x-visibility: Public + x-glean-experimental: + id: 5ab612fc-ed50-4419-bec3-e5fe83934653 + introduced: "2026-04-08" + x-codegen-request-body-name: payload + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformSearchRequest" + responses: + "200": + description: Successful search. + content: + application/json: + schema: + $ref: "#/components/schemas/PlatformSearchResponse" + "400": + $ref: "#/components/responses/PlatformBadRequest" + "401": + $ref: "#/components/responses/PlatformUnauthorized" + "403": + $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" + "408": + $ref: "#/components/responses/PlatformRequestTimeout" + "429": + $ref: "#/components/responses/PlatformTooManyRequests" + "500": + $ref: "#/components/responses/PlatformInternalServerError" + "503": + $ref: "#/components/responses/PlatformServiceUnavailable" + x-speakeasy-group: search + x-speakeasy-name-override: query + security: + - APIToken: [] + /rest/api/v1/activity: + post: + operationId: activity + summary: Report document activity + description: Report user activity that occurs on indexed documents such as viewing or editing. This signal improves search quality. + tags: + - Activity + security: + - APIToken: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Activity' required: true x-exportParamName: Activity responses: @@ -56,19 +317,19 @@ paths: description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: report x-speakeasy-group: client.activity /rest/api/v1/feedback: post: - tags: - - Activity + operationId: feedback summary: Report client activity description: Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. - operationId: feedback - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Activity + security: + - APIToken: [] parameters: - name: feedback in: query @@ -80,7 +341,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Feedback" + $ref: '#/components/schemas/Feedback' x-exportParamName: Feedback responses: "200": @@ -91,26 +352,26 @@ paths: description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.activity /rest/api/v1/createannouncement: post: - tags: - - Announcements + operationId: createannouncement summary: Create Announcement description: Create a textual announcement visible to some set of users based on department and location. - operationId: createannouncement - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Announcements + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Announcement content content: application/json: schema: - $ref: "#/components/schemas/CreateAnnouncementRequest" - description: Announcement content + $ref: '#/components/schemas/CreateAnnouncementRequest' required: true x-exportParamName: Request responses: @@ -119,34 +380,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Announcement" + $ref: '#/components/schemas/Announcement' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: create x-speakeasy-group: client.announcements /rest/api/v1/deleteannouncement: post: - tags: - - Announcements + operationId: deleteannouncement summary: Delete Announcement description: Delete an existing user-generated announcement. - operationId: deleteannouncement - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Announcements + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Delete announcement request content: application/json: schema: - $ref: "#/components/schemas/DeleteAnnouncementRequest" - description: Delete announcement request + $ref: '#/components/schemas/DeleteAnnouncementRequest' required: true x-exportParamName: Request responses: @@ -158,27 +419,27 @@ paths: description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: delete x-speakeasy-group: client.announcements /rest/api/v1/updateannouncement: post: - tags: - - Announcements + operationId: updateannouncement summary: Update Announcement description: Update a textual announcement visible to some set of users based on department and location. - operationId: updateannouncement - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Announcements + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Announcement content. Id need to be specified for the announcement. content: application/json: schema: - $ref: "#/components/schemas/UpdateAnnouncementRequest" - description: Announcement content. Id need to be specified for the announcement. + $ref: '#/components/schemas/UpdateAnnouncementRequest' required: true x-exportParamName: Request responses: @@ -187,34 +448,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Announcement" + $ref: '#/components/schemas/Announcement' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: update x-speakeasy-group: client.announcements /rest/api/v1/createanswer: post: - tags: - - Answers + operationId: createanswer summary: Create Answer description: Create a user-generated Answer that contains a question and answer. - operationId: createanswer - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Answers + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: CreateAnswer request content: application/json: schema: - $ref: "#/components/schemas/CreateAnswerRequest" - description: CreateAnswer request + $ref: '#/components/schemas/CreateAnswerRequest' required: true x-exportParamName: Request responses: @@ -223,34 +484,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Answer" + $ref: '#/components/schemas/Answer' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: create x-speakeasy-group: client.answers /rest/api/v1/deleteanswer: post: - tags: - - Answers + operationId: deleteanswer summary: Delete Answer description: Delete an existing user-generated Answer. - operationId: deleteanswer - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Answers + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: DeleteAnswer request content: application/json: schema: - $ref: "#/components/schemas/DeleteAnswerRequest" - description: DeleteAnswer request + $ref: '#/components/schemas/DeleteAnswerRequest' required: true x-exportParamName: Request responses: @@ -262,27 +523,27 @@ paths: description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: delete x-speakeasy-group: client.answers /rest/api/v1/editanswer: post: - tags: - - Answers + operationId: editanswer summary: Update Answer description: Update an existing user-generated Answer. - operationId: editanswer - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Answers + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: EditAnswer request content: application/json: schema: - $ref: "#/components/schemas/EditAnswerRequest" - description: EditAnswer request + $ref: '#/components/schemas/EditAnswerRequest' required: true x-exportParamName: Request responses: @@ -291,34 +552,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Answer" + $ref: '#/components/schemas/Answer' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: update x-speakeasy-group: client.answers /rest/api/v1/getanswer: post: - tags: - - Answers + operationId: getanswer summary: Read Answer description: Read the details of a particular Answer given its ID. - operationId: getanswer - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Answers + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: GetAnswer request content: application/json: schema: - $ref: "#/components/schemas/GetAnswerRequest" - description: GetAnswer request + $ref: '#/components/schemas/GetAnswerRequest' required: true x-exportParamName: Request responses: @@ -327,35 +588,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetAnswerResponse" + $ref: '#/components/schemas/GetAnswerResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.answers /rest/api/v1/listanswers: post: - tags: - - Answers + operationId: listanswers summary: List Answers description: List Answers created by the current user. - operationId: listanswers - deprecated: true - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Answers + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: ListAnswers request content: application/json: schema: - $ref: "#/components/schemas/ListAnswersRequest" - description: ListAnswers request + $ref: '#/components/schemas/ListAnswersRequest' required: true x-exportParamName: Request responses: @@ -364,27 +624,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListAnswersResponse" + $ref: '#/components/schemas/ListAnswersResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests + deprecated: true + x-visibility: Public + x-codegen-request-body-name: payload x-glean-deprecated: id: 4c0923bd-64c7-45b9-99a5-b36f2705e618 introduced: "2026-01-21" message: Answer boards have been removed and this endpoint no longer serves a purpose removal: "2026-10-15" x-speakeasy-deprecation-message: "Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose" - security: - - APIToken: [] x-speakeasy-name-override: list x-speakeasy-group: client.answers /rest/api/v1/checkdatasourceauth: post: - tags: - - Authentication + operationId: checkdatasourceauth summary: Check datasource authorization description: | Returns all datasource instances that require per-user OAuth authorization @@ -394,8 +654,10 @@ paths: Clients construct the full OAuth URL by combining the backend base URL, the `authUrlRelativePath` from each instance, and the transient auth token: `/?transient_auth_token=`. - operationId: checkdatasourceauth - x-visibility: Public + tags: + - Authentication + security: + - APIToken: [] parameters: [] responses: "200": @@ -403,17 +665,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckDatasourceAuthResponse" + $ref: '#/components/schemas/CheckDatasourceAuthResponse' "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-speakeasy-name-override: checkDatasourceAuth + x-speakeasy-group: client.authentication /rest/api/v1/createauthtoken: post: - tags: - - Authentication + operationId: createauthtoken summary: Create authentication token description: | Creates an authentication token for the authenticated user. These are @@ -421,8 +683,10 @@ paths: Note: The tokens generated from this endpoint are **not** valid tokens for use with the Client API (e.g. `/rest/api/v1/*`). - operationId: createauthtoken - x-visibility: Public + tags: + - Authentication + security: + - APIToken: [] parameters: [] responses: "200": @@ -430,34 +694,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateAuthTokenResponse" + $ref: '#/components/schemas/CreateAuthTokenResponse' "400": description: Invalid Request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public x-speakeasy-name-override: createToken x-speakeasy-group: client.authentication /rest/api/v1/chat: post: - tags: - - Chat + operationId: chat summary: Chat description: Have a conversation with Glean AI. - operationId: chat - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: + description: Includes chat history for Glean AI to respond to. content: application/json: schema: - $ref: "#/components/schemas/ChatRequest" + $ref: '#/components/schemas/ChatRequest' examples: defaultExample: value: @@ -475,7 +739,6 @@ paths: messageType: CONTENT fragments: - text: Who was the first person to land on the moon? - description: Includes chat history for Glean AI to respond to. required: true x-exportParamName: Request responses: @@ -579,7 +842,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ChatResponse" + $ref: '#/components/schemas/ChatResponse' examples: queuedExample: value: @@ -594,23 +857,23 @@ paths: description: Request Timeout "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.chat x-speakeasy-name-override: create x-speakeasy-usage-example: true /rest/api/v1/deleteallchats: post: - tags: - - Chat + operationId: deleteallchats summary: Deletes all saved Chats owned by a user description: Deletes all saved Chats a user has had and all their contained conversational content. - operationId: deleteallchats - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' responses: "200": description: OK @@ -620,27 +883,27 @@ paths: description: Not Authorized "403": description: Forbidden - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: deleteAll x-speakeasy-group: client.chat /rest/api/v1/deletechats: post: - tags: - - Chat + operationId: deletechats summary: Deletes saved Chats description: Deletes saved Chats and all their contained conversational content. - operationId: deletechats - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: content: application/json: schema: - $ref: "#/components/schemas/DeleteChatsRequest" + $ref: '#/components/schemas/DeleteChatsRequest' required: true x-exportParamName: Request responses: @@ -654,27 +917,27 @@ paths: description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: delete x-speakeasy-group: client.chat /rest/api/v1/getchat: post: - tags: - - Chat + operationId: getchat summary: Retrieves a Chat description: Retrieves the chat history between Glean Assistant and the user for a given Chat. - operationId: getchat - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: content: application/json: schema: - $ref: "#/components/schemas/GetChatRequest" + $ref: '#/components/schemas/GetChatRequest' required: true x-exportParamName: Request responses: @@ -683,7 +946,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetChatResponse" + $ref: '#/components/schemas/GetChatResponse' "400": description: Invalid request "401": @@ -692,56 +955,56 @@ paths: description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.chat /rest/api/v1/listchats: post: - tags: - - Chat + operationId: listchats summary: Retrieves all saved Chats description: Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. - operationId: listchats - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' responses: "200": description: OK content: application/json: schema: - $ref: "#/components/schemas/ListChatsResponse" + $ref: '#/components/schemas/ListChatsResponse' "401": description: Not Authorized "403": description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: list x-speakeasy-group: client.chat /rest/api/v1/getchatapplication: post: - tags: - - Chat + operationId: getchatapplication summary: Gets the metadata for a custom Chat application description: Gets the Chat application details for the specified application ID. - operationId: getchatapplication - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: content: application/json: schema: - $ref: "#/components/schemas/GetChatApplicationRequest" + $ref: '#/components/schemas/GetChatApplicationRequest' required: true x-exportParamName: Request responses: @@ -750,34 +1013,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetChatApplicationResponse" + $ref: '#/components/schemas/GetChatApplicationResponse' "400": description: Invalid request "401": description: Not Authorized "403": description: Forbidden - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieveApplication x-speakeasy-group: client.chat /rest/api/v1/uploadchatfiles: post: - tags: - - Chat + operationId: uploadchatfiles summary: Upload files for Chat description: Upload files for Chat. - operationId: uploadchatfiles - x-visibility: Public + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: - required: true content: multipart/form-data: schema: - $ref: "#/components/schemas/UploadChatFilesRequest" + $ref: '#/components/schemas/UploadChatFilesRequest' + required: true x-exportParamName: Request responses: "200": @@ -785,7 +1049,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UploadChatFilesResponse" + $ref: '#/components/schemas/UploadChatFilesResponse' "400": description: Invalid request "401": @@ -794,27 +1058,27 @@ paths: description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public x-speakeasy-name-override: uploadFiles x-speakeasy-group: client.chat /rest/api/v1/getchatfiles: post: - tags: - - Chat + operationId: getchatfiles summary: Get files uploaded by a user for Chat description: Get files uploaded by a user for Chat. - operationId: getchatfiles - x-visibility: Public + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/GetChatFilesRequest" + $ref: '#/components/schemas/GetChatFilesRequest' + required: true x-exportParamName: Request responses: "200": @@ -822,7 +1086,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetChatFilesResponse" + $ref: '#/components/schemas/GetChatFilesResponse' "400": description: Invalid request "401": @@ -831,27 +1095,27 @@ paths: description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public x-speakeasy-name-override: retrieveFiles x-speakeasy-group: client.chat /rest/api/v1/deletechatfiles: post: - tags: - - Chat + operationId: deletechatfiles summary: Delete files uploaded by a user for chat description: Delete files uploaded by a user for Chat. - operationId: deletechatfiles - x-visibility: Public + tags: + - Chat + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/DeleteChatFilesRequest" + $ref: '#/components/schemas/DeleteChatFilesRequest' + required: true responses: "200": description: OK @@ -863,31 +1127,31 @@ paths: description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public x-speakeasy-name-override: deleteFiles x-speakeasy-group: client.chat /rest/api/v1/chat-files/{fileId}: get: - tags: - - Chat + operationId: getChatFile summary: Download a chat file description: | Download the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type. - operationId: getChatFile - x-visibility: Public + tags: + - Chat + security: + - APIToken: [] parameters: - name: fileId in: path - required: true description: Identifier of the chat file to download. + required: true schema: type: string - name: preview in: query - required: false description: | When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment. + required: false schema: type: boolean responses: @@ -908,32 +1172,34 @@ paths: description: File not found. "500": description: Internal server error. - security: - - APIToken: [] + x-visibility: Public + x-speakeasy-name-override: retrieveFile + x-speakeasy-group: client.chat /rest/api/v1/agents: post: - tags: - - Agents + operationId: createAgent summary: Create an agent description: Create an agent. - operationId: createAgent - x-visibility: Preview + tags: + - Agents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/CreateWorkflowRequest" + $ref: '#/components/schemas/CreateWorkflowRequest' + required: true responses: "200": description: Success content: application/json: schema: - $ref: "#/components/schemas/CreateWorkflowResponse" + $ref: '#/components/schemas/CreateWorkflowResponse' "400": description: Bad request "401": @@ -942,34 +1208,36 @@ paths: description: Forbidden "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview + x-speakeasy-group: client.agents + x-speakeasy-name-override: create /rest/api/v1/agents/{agent_id}: get: - tags: - - Agents + operationId: getAgent summary: Retrieve an agent description: Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. - operationId: getAgent - x-visibility: Preview + tags: + - Agents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" - - description: The ID of the agent. + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' + - name: agent_id + in: path + description: The ID of the agent. required: true schema: type: string title: Agent ID description: The ID of the agent. - name: agent_id - in: path responses: "200": description: Success content: application/json: schema: - $ref: "#/components/schemas/Agent" + $ref: '#/components/schemas/Agent' "400": description: Bad request "403": @@ -979,37 +1247,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-group: client.agents x-speakeasy-name-override: retrieve post: - tags: - - Agents + operationId: editAgent summary: Edit an agent description: Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and publish modes are supported. - operationId: editAgent - x-visibility: Preview + tags: + - Agents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" - - description: The ID of the agent. + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' + - name: agent_id + in: path + description: The ID of the agent. required: true schema: type: string title: Agent ID description: The ID of the agent. - name: agent_id - in: path requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/EditWorkflowRequest" + $ref: '#/components/schemas/EditWorkflowRequest' + required: true responses: "200": description: Success @@ -1024,37 +1292,39 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview + x-speakeasy-group: client.agents + x-speakeasy-name-override: update /rest/api/v1/agents/{agent_id}/schemas: get: - tags: - - Agents + operationId: getAgentSchemas summary: List an agent's schemas description: Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. - operationId: getAgentSchemas - x-visibility: Preview + tags: + - Agents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" - - $ref: "#/components/parameters/timezoneOffset" - - description: The ID of the agent. + - $ref: '#/components/parameters/locale' + - $ref: '#/components/parameters/timezoneOffset' + - name: agent_id + in: path + description: The ID of the agent. required: true schema: type: string title: Agent Id description: The ID of the agent. - name: agent_id - in: path responses: "200": description: Success content: application/json: schema: - $ref: "#/components/schemas/AgentSchemas" + $ref: '#/components/schemas/AgentSchemas' "400": description: Bad request "403": @@ -1064,40 +1334,40 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "422": description: Validation Error content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-group: client.agents x-speakeasy-name-override: retrieveSchemas /rest/api/v1/agents/search: post: - tags: - - Agents + operationId: searchAgents summary: Search agents description: Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. - operationId: searchAgents - x-visibility: Preview + tags: + - Agents + security: + - APIToken: [] requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/SearchAgentsRequest" + $ref: '#/components/schemas/SearchAgentsRequest' + required: true responses: "200": description: Success content: application/json: schema: - $ref: "#/components/schemas/SearchAgentsResponse" + $ref: '#/components/schemas/SearchAgentsResponse' "400": description: Bad request "403": @@ -1107,32 +1377,32 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "422": description: Validation Error content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-group: client.agents x-speakeasy-name-override: list /rest/api/v1/agents/runs/stream: post: + operationId: createAndStreamRun + summary: Create an agent run and stream the response + description: 'Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object.' tags: - Agents - summary: Create an agent run and stream the response - description: "Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object." - operationId: createAndStreamRun - x-visibility: Preview + security: + - APIToken: [] requestBody: content: application/json: schema: - $ref: "#/components/schemas/AgentRunCreate" + $ref: '#/components/schemas/AgentRunCreate' required: true responses: "200": @@ -1167,38 +1437,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "409": description: Conflict content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "422": description: Validation Error content: application/json: schema: - $ref: "#/components/schemas/ErrorResponse" + $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-group: client.agents x-speakeasy-name-override: runStream /rest/api/v1/agents/runs/wait: post: + operationId: createAndWaitRun + summary: Create an agent run and wait for the response + description: 'Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object.' tags: - Agents - summary: Create an agent run and wait for the response - description: "Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object." - operationId: createAndWaitRun - x-visibility: Preview + security: + - APIToken: [] requestBody: content: application/json: schema: - $ref: "#/components/schemas/AgentRunCreate" + $ref: '#/components/schemas/AgentRunCreate' required: true responses: "200": @@ -1206,7 +1476,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AgentRunWaitResponse" + $ref: '#/components/schemas/AgentRunWaitResponse' "400": description: Bad request "403": @@ -1219,27 +1489,26 @@ paths: description: Validation Error "500": description: Internal server error - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-group: client.agents x-speakeasy-name-override: run /rest/api/v1/addcollectionitems: post: - tags: - - Collections + operationId: addcollectionitems summary: Add Collection item description: Add items to a Collection. - operationId: addcollectionitems - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Data describing the add operation. content: application/json: schema: - $ref: "#/components/schemas/AddCollectionItemsRequest" - description: Data describing the add operation. + $ref: '#/components/schemas/AddCollectionItemsRequest' required: true x-exportParamName: Request responses: @@ -1248,34 +1517,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AddCollectionItemsResponse" + $ref: '#/components/schemas/AddCollectionItemsResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: addItems x-speakeasy-group: client.collections /rest/api/v1/createcollection: post: - tags: - - Collections + operationId: createcollection summary: Create Collection description: Create a publicly visible (empty) Collection of documents. - operationId: createcollection - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Collection content plus any additional metadata for the request. content: application/json: schema: - $ref: "#/components/schemas/CreateCollectionRequest" - description: Collection content plus any additional metadata for the request. + $ref: '#/components/schemas/CreateCollectionRequest' required: true x-exportParamName: Request responses: @@ -1284,7 +1553,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateCollectionResponse" + $ref: '#/components/schemas/CreateCollectionResponse' "400": description: Invalid request "401": @@ -1294,30 +1563,30 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CollectionError" + $ref: '#/components/schemas/CollectionError' "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.collections x-speakeasy-name-override: create /rest/api/v1/deletecollection: post: - tags: - - Collections + operationId: deletecollection summary: Delete Collection description: Delete a Collection given the Collection's ID. - operationId: deletecollection - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: DeleteCollection request content: application/json: schema: - $ref: "#/components/schemas/DeleteCollectionRequest" - description: DeleteCollection request + $ref: '#/components/schemas/DeleteCollectionRequest' required: true x-exportParamName: Request responses: @@ -1332,30 +1601,30 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CollectionError" + $ref: '#/components/schemas/CollectionError' "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: delete x-speakeasy-group: client.collections /rest/api/v1/deletecollectionitem: post: - tags: - - Collections + operationId: deletecollectionitem summary: Delete Collection item description: Delete a single item from a Collection. - operationId: deletecollectionitem - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Data describing the delete operation. content: application/json: schema: - $ref: "#/components/schemas/DeleteCollectionItemRequest" - description: Data describing the delete operation. + $ref: '#/components/schemas/DeleteCollectionItemRequest' required: true x-exportParamName: Request responses: @@ -1364,7 +1633,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteCollectionItemResponse" + $ref: '#/components/schemas/DeleteCollectionItemResponse' "400": description: Invalid request "401": @@ -1373,27 +1642,27 @@ paths: description: Failed to save deletion "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: deleteItem x-speakeasy-group: client.collections /rest/api/v1/editcollection: post: - tags: - - Collections + operationId: editcollection summary: Update Collection description: Update the properties of an existing Collection. - operationId: editcollection - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Collection content plus any additional metadata for the request. content: application/json: schema: - $ref: "#/components/schemas/EditCollectionRequest" - description: Collection content plus any additional metadata for the request. + $ref: '#/components/schemas/EditCollectionRequest' required: true x-exportParamName: Request responses: @@ -1402,7 +1671,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/EditCollectionResponse" + $ref: '#/components/schemas/EditCollectionResponse' "400": description: Invalid request "401": @@ -1412,30 +1681,30 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CollectionError" + $ref: '#/components/schemas/CollectionError' "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: update x-speakeasy-group: client.collections /rest/api/v1/editcollectionitem: post: - tags: - - Collections + operationId: editcollectionitem summary: Update Collection item description: Update the URL, Glean Document ID, description of an item within a Collection given its ID. - operationId: editcollectionitem - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Edit Collection Items request content: application/json: schema: - $ref: "#/components/schemas/EditCollectionItemRequest" - description: Edit Collection Items request + $ref: '#/components/schemas/EditCollectionItemRequest' required: true x-exportParamName: Request responses: @@ -1444,34 +1713,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/EditCollectionItemResponse" + $ref: '#/components/schemas/EditCollectionItemResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: updateItem x-speakeasy-group: client.collections /rest/api/v1/getcollection: post: - tags: - - Collections + operationId: getcollection summary: Read Collection description: Read the details of a Collection given its ID. Does not fetch items in this Collection. - operationId: getcollection - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: GetCollection request content: application/json: schema: - $ref: "#/components/schemas/GetCollectionRequest" - description: GetCollection request + $ref: '#/components/schemas/GetCollectionRequest' required: true x-exportParamName: Request responses: @@ -1480,34 +1749,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetCollectionResponse" + $ref: '#/components/schemas/GetCollectionResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.collections /rest/api/v1/listcollections: post: - tags: - - Collections + operationId: listcollections summary: List Collections description: List all existing Collections. - operationId: listcollections - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Collections + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: ListCollections request content: application/json: schema: - $ref: "#/components/schemas/ListCollectionsRequest" - description: ListCollections request + $ref: '#/components/schemas/ListCollectionsRequest' required: true x-exportParamName: Request responses: @@ -1516,34 +1785,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListCollectionsResponse" + $ref: '#/components/schemas/ListCollectionsResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: list x-speakeasy-group: client.collections /rest/api/v1/getdocpermissions: post: - tags: - - Documents + operationId: getdocpermissions summary: Read document permissions description: Read the emails of all users who have access to the given document. - operationId: getdocpermissions - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Documents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Document permissions request content: application/json: schema: - $ref: "#/components/schemas/GetDocPermissionsRequest" - description: Document permissions request + $ref: '#/components/schemas/GetDocPermissionsRequest' required: true x-exportParamName: Request responses: @@ -1552,7 +1821,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocPermissionsResponse" + $ref: '#/components/schemas/GetDocPermissionsResponse' "400": description: Invalid request "401": @@ -1561,34 +1830,34 @@ paths: description: Forbidden "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-name-override: retrievePermissions x-speakeasy-group: client.documents /rest/api/v1/getdocuments: post: - tags: - - Documents + operationId: getdocuments summary: Read documents description: Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) for the given list of Glean Document IDs or URLs specified in the request. - operationId: getdocuments - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Documents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Information about documents requested. content: application/json: schema: - $ref: "#/components/schemas/GetDocumentsRequest" - description: Information about documents requested. + $ref: '#/components/schemas/GetDocumentsRequest' responses: "200": description: OK content: application/json: schema: - $ref: "#/components/schemas/GetDocumentsResponse" + $ref: '#/components/schemas/GetDocumentsResponse' "400": description: Invalid request "401": @@ -1597,34 +1866,34 @@ paths: description: Documents does not exist, or user cannot access documents. "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.documents /rest/api/v1/getdocumentsbyfacets: post: - tags: - - Documents + operationId: getdocumentsbyfacets summary: Read documents by facets description: Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. - operationId: getdocumentsbyfacets - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Documents + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Information about facet conditions for documents to be retrieved. content: application/json: schema: - $ref: "#/components/schemas/GetDocumentsByFacetsRequest" - description: Information about facet conditions for documents to be retrieved. + $ref: '#/components/schemas/GetDocumentsByFacetsRequest' responses: "200": description: OK content: application/json: schema: - $ref: "#/components/schemas/GetDocumentsByFacetsResponse" + $ref: '#/components/schemas/GetDocumentsByFacetsResponse' "400": description: Invalid request "401": @@ -1633,27 +1902,27 @@ paths: description: Not Found "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieveByFacets x-speakeasy-group: client.documents /rest/api/v1/insights: post: - tags: - - Insights + operationId: insights summary: Get insights description: Gets the aggregate usage insights data displayed in the Insights Dashboards. - operationId: insights - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Insights + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Includes request parameters for insights requests. content: application/json: schema: - $ref: "#/components/schemas/InsightsRequest" - description: Includes request parameters for insights requests. + $ref: '#/components/schemas/InsightsRequest' required: true x-exportParamName: InsightsRequest responses: @@ -1662,34 +1931,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/InsightsResponse" + $ref: '#/components/schemas/InsightsResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.insights /rest/api/v1/messages: post: - tags: - - Messages + operationId: messages summary: Read messages description: Retrieves list of messages from messaging/chat datasources (e.g. Slack, Teams). - operationId: messages - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Messages + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Includes request params such as the id for channel/message and direction. content: application/json: schema: - $ref: "#/components/schemas/MessagesRequest" - description: Includes request params such as the id for channel/message and direction. + $ref: '#/components/schemas/MessagesRequest' required: true x-exportParamName: MessagesRequest responses: @@ -1698,34 +1967,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/MessagesResponse" + $ref: '#/components/schemas/MessagesResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.messages /rest/api/v1/editpin: post: - tags: - - Pins + operationId: editpin summary: Update pin description: Update an existing user-generated pin. - operationId: editpin - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Pins + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Edit pins request content: application/json: schema: - $ref: "#/components/schemas/EditPinRequest" - description: Edit pins request + $ref: '#/components/schemas/EditPinRequest' required: true x-exportParamName: Request responses: @@ -1734,34 +2003,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PinDocument" + $ref: '#/components/schemas/PinDocument' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: update x-speakeasy-group: client.pins /rest/api/v1/getpin: post: - tags: - - Pins + operationId: getpin summary: Read pin description: Read pin details given its ID. - operationId: getpin - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Pins + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Get pin request content: application/json: schema: - $ref: "#/components/schemas/GetPinRequest" - description: Get pin request + $ref: '#/components/schemas/GetPinRequest' required: true x-exportParamName: Request responses: @@ -1770,34 +2039,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetPinResponse" + $ref: '#/components/schemas/GetPinResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieve x-speakeasy-group: client.pins /rest/api/v1/listpins: post: - tags: - - Pins + operationId: listpins summary: List pins description: Lists all pins. - operationId: listpins - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Pins + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: List pins request content: application/json: schema: type: object - description: List pins request required: true x-exportParamName: Request responses: @@ -1806,34 +2075,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListPinsResponse" + $ref: '#/components/schemas/ListPinsResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: list x-speakeasy-group: client.pins /rest/api/v1/pin: post: - tags: - - Pins + operationId: pin summary: Create pin description: Pin a document as a result for a given search query.Pin results that are known to be a good match. - operationId: pin - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Pins + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Details about the document and query for the pin. content: application/json: schema: - $ref: "#/components/schemas/PinRequest" - description: Details about the document and query for the pin. + $ref: '#/components/schemas/PinRequest' required: true x-exportParamName: PinDocument responses: @@ -1842,34 +2111,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PinDocument" + $ref: '#/components/schemas/PinDocument' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: create x-speakeasy-group: client.pins /rest/api/v1/unpin: post: - tags: - - Pins + operationId: unpin summary: Delete pin description: Unpin a previously pinned result. - operationId: unpin - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Pins + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Details about the pin being unpinned. content: application/json: schema: - $ref: "#/components/schemas/Unpin" - description: Details about the pin being unpinned. + $ref: '#/components/schemas/Unpin' required: true x-exportParamName: Unpin responses: @@ -1883,27 +2152,27 @@ paths: description: Forbidden from unpinning someone else's pin "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: remove x-speakeasy-group: client.pins /rest/api/v1/adminsearch: post: - tags: - - Search + operationId: adminsearch summary: Search the index (admin) description: Retrieves results for search query without respect for permissions. This is available only to privileged users. - operationId: adminsearch - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Search + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Admin search request content: application/json: schema: - $ref: "#/components/schemas/SearchRequest" - description: Admin search request + $ref: '#/components/schemas/SearchRequest' required: true x-exportParamName: Request responses: @@ -1912,7 +2181,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SearchResponse" + $ref: '#/components/schemas/SearchResponse' "400": description: Invalid request "401": @@ -1922,36 +2191,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorInfo" + $ref: '#/components/schemas/ErrorInfo' "422": description: Invalid Query content: application/json: schema: - $ref: "#/components/schemas/ErrorInfo" + $ref: '#/components/schemas/ErrorInfo' "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-group: client.search x-speakeasy-name-override: queryAsAdmin /rest/api/v1/autocomplete: post: - tags: - - Search + operationId: autocomplete summary: Autocomplete description: Retrieve query suggestions, operators and documents for the given partially typed query. - operationId: autocomplete - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Search + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Autocomplete request content: application/json: schema: - $ref: "#/components/schemas/AutocompleteRequest" - description: Autocomplete request + $ref: '#/components/schemas/AutocompleteRequest' required: true x-exportParamName: Request responses: @@ -1960,34 +2229,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AutocompleteResponse" + $ref: '#/components/schemas/AutocompleteResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.search x-speakeasy-name-override: autocomplete /rest/api/v1/feed: post: - tags: - - Search + operationId: feed summary: Feed of documents and events description: The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. - operationId: feed - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Search + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Includes request params, client data and more for making user's feed. content: application/json: schema: - $ref: "#/components/schemas/FeedRequest" - description: Includes request params, client data and more for making user's feed. + $ref: '#/components/schemas/FeedRequest' required: true x-exportParamName: FeedRequest responses: @@ -1996,7 +2265,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/FeedResponse" + $ref: '#/components/schemas/FeedResponse' "400": description: Invalid request "401": @@ -2005,27 +2274,27 @@ paths: description: Request Timeout "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: retrieveFeed x-speakeasy-group: client.search /rest/api/v1/recommendations: post: - tags: - - Search + operationId: recommendations summary: Recommend documents description: Retrieve recommended documents for the given URL or Glean Document ID. - operationId: recommendations - x-visibility: Preview - x-codegen-request-body-name: payload + tags: + - Search + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Recommendations request content: application/json: schema: - $ref: "#/components/schemas/RecommendationsRequest" - description: Recommendations request + $ref: '#/components/schemas/RecommendationsRequest' required: true x-exportParamName: Request responses: @@ -2034,7 +2303,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RecommendationsResponse" + $ref: '#/components/schemas/RecommendationsResponse' "202": description: Accepted. The Retry-After header has a hint about when the response will be available "204": @@ -2047,27 +2316,27 @@ paths: description: Document does not exist or user cannot access document "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-codegen-request-body-name: payload x-speakeasy-group: client.search x-speakeasy-name-override: recommendations /rest/api/v1/search: post: - tags: - - Search + operationId: search summary: Search description: Retrieve results from the index for the given query and filters. - operationId: search - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Search + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Search request content: application/json: schema: - $ref: "#/components/schemas/SearchRequest" - description: Search request + $ref: '#/components/schemas/SearchRequest' required: true x-exportParamName: Request responses: @@ -2076,7 +2345,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SearchResponse" + $ref: '#/components/schemas/SearchResponse' "400": description: Invalid request "401": @@ -2086,7 +2355,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorInfo" + $ref: '#/components/schemas/ErrorInfo' "408": description: Request Timeout "422": @@ -2094,30 +2363,30 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ErrorInfo" + $ref: '#/components/schemas/ErrorInfo' "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.search x-speakeasy-name-override: query /rest/api/v1/listentities: post: - tags: - - Entities + operationId: listentities summary: List entities description: List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. - operationId: listentities - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Entities + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: List people request content: application/json: schema: - $ref: "#/components/schemas/ListEntitiesRequest" - description: List people request + $ref: '#/components/schemas/ListEntitiesRequest' required: true x-exportParamName: Request responses: @@ -2126,34 +2395,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListEntitiesResponse" + $ref: '#/components/schemas/ListEntitiesResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.entities x-speakeasy-name-override: list /rest/api/v1/people: post: - tags: - - Entities + operationId: people summary: Read people description: Read people details for the given IDs. - operationId: people - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Entities + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: People request content: application/json: schema: - $ref: "#/components/schemas/PeopleRequest" - description: People request + $ref: '#/components/schemas/PeopleRequest' required: true x-exportParamName: Request responses: @@ -2162,38 +2431,39 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PeopleResponse" + $ref: '#/components/schemas/PeopleResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: readPeople x-speakeasy-group: client.entities /rest/api/v1/people/{person_id}/photo: get: - tags: - - Entities + operationId: getPersonPhoto summary: Get person photo description: | Returns the profile photo bytes for a person whose photo is stored in Glean (crawled from an identity source or user-uploaded via admin console). Photos hosted externally (e.g. Slack CDN) are not served by this endpoint; callers should follow the photoUrl from /people or /listentities directly. Responses include a Cache-Control header (max-age=3600) to reduce redundant fetches. - operationId: getPersonPhoto - x-visibility: Public + tags: + - Entities + security: + - APIToken: [] parameters: - name: person_id in: path - required: true description: The obfuscated ID of the person whose photo to retrieve. + required: true schema: type: string - name: ds in: query - required: false description: | Optional datasource override for crawled photos (e.g. AZURE, GDRIVE, OKTA). When omitted, the datasource is derived from the person's stored photo URL or the deployment's primary person datasource. + required: false schema: type: string responses: @@ -2223,25 +2493,26 @@ paths: Person not found, person has no photo, or photo is not hosted by Glean (follow photoUrl from /people or /listentities directly). "429": description: Too Many Requests. - security: - - APIToken: [] + x-visibility: Public + x-speakeasy-name-override: retrievePersonPhoto + x-speakeasy-group: client.entities /rest/api/v1/createshortcut: post: - tags: - - Shortcuts + operationId: createshortcut summary: Create shortcut description: Create a user-generated shortcut that contains an alias and destination URL. - operationId: createshortcut - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Shortcuts + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: CreateShortcut request content: application/json: schema: - $ref: "#/components/schemas/CreateShortcutRequest" - description: CreateShortcut request + $ref: '#/components/schemas/CreateShortcutRequest' required: true x-exportParamName: Request responses: @@ -2250,34 +2521,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateShortcutResponse" + $ref: '#/components/schemas/CreateShortcutResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: create x-speakeasy-group: client.shortcuts /rest/api/v1/deleteshortcut: post: - tags: - - Shortcuts + operationId: deleteshortcut summary: Delete shortcut description: Delete an existing user-generated shortcut. - operationId: deleteshortcut - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Shortcuts + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: DeleteShortcut request content: application/json: schema: - $ref: "#/components/schemas/DeleteShortcutRequest" - description: DeleteShortcut request + $ref: '#/components/schemas/DeleteShortcutRequest' required: true x-exportParamName: Request responses: @@ -2289,27 +2560,27 @@ paths: description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: delete x-speakeasy-group: client.shortcuts /rest/api/v1/getshortcut: post: - tags: - - Shortcuts + operationId: getshortcut summary: Read shortcut description: Read a particular shortcut's details given its ID. - operationId: getshortcut - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Shortcuts + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: GetShortcut request content: application/json: schema: - $ref: "#/components/schemas/GetShortcutRequest" - description: GetShortcut request + $ref: '#/components/schemas/GetShortcutRequest' required: true x-exportParamName: Request responses: @@ -2318,34 +2589,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetShortcutResponse" + $ref: '#/components/schemas/GetShortcutResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.shortcuts x-speakeasy-name-override: retrieve /rest/api/v1/listshortcuts: post: - tags: - - Shortcuts + operationId: listshortcuts summary: List shortcuts description: List shortcuts editable/owned by the currently authenticated user. - operationId: listshortcuts - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Shortcuts + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Filters, sorters, paging params required for pagination content: application/json: schema: - $ref: "#/components/schemas/ListShortcutsPaginatedRequest" - description: Filters, sorters, paging params required for pagination + $ref: '#/components/schemas/ListShortcutsPaginatedRequest' required: true x-exportParamName: Request responses: @@ -2354,34 +2625,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListShortcutsPaginatedResponse" + $ref: '#/components/schemas/ListShortcutsPaginatedResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.shortcuts x-speakeasy-name-override: list /rest/api/v1/updateshortcut: post: - tags: - - Shortcuts + operationId: updateshortcut summary: Update shortcut description: Updates the shortcut with the given ID. - operationId: updateshortcut - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Shortcuts + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Shortcut content. Id need to be specified for the shortcut. content: application/json: schema: - $ref: "#/components/schemas/UpdateShortcutRequest" - description: Shortcut content. Id need to be specified for the shortcut. + $ref: '#/components/schemas/UpdateShortcutRequest' required: true x-exportParamName: Request responses: @@ -2390,34 +2661,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateShortcutResponse" + $ref: '#/components/schemas/UpdateShortcutResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-group: client.shortcuts x-speakeasy-name-override: update /rest/api/v1/summarize: post: - tags: - - Summarize + operationId: summarize summary: Summarize documents description: Generate an AI summary of the requested documents. - operationId: summarize - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Summarize + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Includes request params such as the query and specs of the documents to summarize. content: application/json: schema: - $ref: "#/components/schemas/SummarizeRequest" - description: Includes request params such as the query and specs of the documents to summarize. + $ref: '#/components/schemas/SummarizeRequest' required: true x-exportParamName: Request responses: @@ -2426,34 +2697,34 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SummarizeResponse" + $ref: '#/components/schemas/SummarizeResponse' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: summarize x-speakeasy-group: client.documents /rest/api/v1/addverificationreminder: post: - tags: - - Verification + operationId: addverificationreminder summary: Create verification description: Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. - operationId: addverificationreminder - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Verification + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Details about the reminder. content: application/json: schema: - $ref: "#/components/schemas/ReminderRequest" - description: Details about the reminder. + $ref: '#/components/schemas/ReminderRequest' required: true x-exportParamName: ReminderRequest responses: @@ -2462,7 +2733,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Verification" + $ref: '#/components/schemas/Verification' "400": description: Invalid request "401": @@ -2471,61 +2742,61 @@ paths: description: Document does not exist, does not support verification or user cannot access document "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: addReminder x-speakeasy-group: client.verification /rest/api/v1/listverifications: post: - tags: - - Verification + operationId: listverifications summary: List verifications description: Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. - operationId: listverifications - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Verification + security: + - APIToken: [] parameters: - - in: query - name: count + - name: count + in: query description: Maximum number of documents to return required: false schema: type: integer - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' responses: "200": description: OK content: application/json: schema: - $ref: "#/components/schemas/VerificationFeed" + $ref: '#/components/schemas/VerificationFeed' "400": description: Invalid request "401": description: Not Authorized "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: list x-speakeasy-group: client.verification /rest/api/v1/verify: post: - tags: - - Verification + operationId: verify summary: Update verification description: Verify documents to keep the knowledge up to date within customer corpus. - operationId: verify - x-visibility: Public - x-codegen-request-body-name: payload + tags: + - Verification + security: + - APIToken: [] parameters: - - $ref: "#/components/parameters/locale" + - $ref: '#/components/parameters/locale' requestBody: + description: Details about the verification request. content: application/json: schema: - $ref: "#/components/schemas/VerifyRequest" - description: Details about the verification request. + $ref: '#/components/schemas/VerifyRequest' required: true x-exportParamName: VerifyRequest responses: @@ -2534,7 +2805,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/Verification" + $ref: '#/components/schemas/Verification' "400": description: Invalid request "401": @@ -2543,36 +2814,37 @@ paths: description: Document does not exist, does not support verification or user cannot access document "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Public + x-codegen-request-body-name: payload x-speakeasy-name-override: verify x-speakeasy-group: client.verification /rest/api/v1/tools/list: get: + summary: List available tools + description: Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. tags: - Tools - Tools - summary: List available tools - description: Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. - x-visibility: Preview + security: + - APIToken: [] parameters: - - in: query - name: toolNames + - name: toolNames + in: query description: Optional array of tool names to filter by required: false + style: form + explode: false schema: type: array items: type: string - style: form - explode: false responses: "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/ToolsListResponse" + $ref: '#/components/schemas/ToolsListResponse' "400": description: Bad Request "401": @@ -2581,31 +2853,31 @@ paths: description: Not Found "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-name-override: list x-speakeasy-group: client.tools /rest/api/v1/tools/call: post: + summary: Execute the specified tool + description: Execute the specified tool with provided parameters tags: - Tools - Tools - summary: Execute the specified tool - description: Execute the specified tool with provided parameters - x-visibility: Preview + security: + - APIToken: [] requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/ToolsCallRequest" + $ref: '#/components/schemas/ToolsCallRequest' + required: true responses: "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/ToolsCallResponse" + $ref: '#/components/schemas/ToolsCallResponse' "400": description: Bad Request "401": @@ -2614,35 +2886,28 @@ paths: description: Not Found "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview x-speakeasy-name-override: run x-speakeasy-group: client.tools /rest/api/v1/actions/actionpack/{actionPackId}/auth: - parameters: - - in: path - name: actionPackId - required: true - description: ID of the action pack to query or authorize. - schema: - type: string get: - tags: - - Tools + operationId: getActionPackAuthStatus summary: Get end-user authentication status for an action pack. description: | Reports whether the calling user is already authenticated against the third-party tool backing the specified action pack. Intended for headless / server-driven clients that render an "Authorize" prompt when the user has not yet consented to the tool. - operationId: getActionPackAuthStatus - x-visibility: Preview + tags: + - Tools + security: + - APIToken: [] responses: "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/ActionPackAuthStatusResponse" + $ref: '#/components/schemas/ActionPackAuthStatusResponse' "400": description: Bad Request "401": @@ -2651,11 +2916,11 @@ paths: description: Action pack not found "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-speakeasy-name-override: retrieveActionPackAuthStatus + x-speakeasy-group: client.tools post: - tags: - - Tools + operationId: authorizeActionPack summary: Start the OAuth authorization flow for an action pack. description: | Starts the third-party OAuth flow for the specified action pack and returns the @@ -2665,21 +2930,23 @@ paths: `returnUrl` must match the tenant's configured return URL allowlist; otherwise the request is rejected with 400. - operationId: authorizeActionPack - x-visibility: Preview + tags: + - Tools + security: + - APIToken: [] requestBody: - required: true content: application/json: schema: - $ref: "#/components/schemas/AuthorizeActionPackRequest" + $ref: '#/components/schemas/AuthorizeActionPackRequest' + required: true responses: "200": description: Successful operation content: application/json: schema: - $ref: "#/components/schemas/AuthorizeActionPackResponse" + $ref: '#/components/schemas/AuthorizeActionPackResponse' "400": description: Invalid request (e.g. returnUrl not in allowlist, unsupported auth type) "401": @@ -2690,8 +2957,16 @@ paths: description: Action pack not found "429": description: Too Many Requests - security: - - APIToken: [] + x-visibility: Preview + x-speakeasy-name-override: authorizeActionPack + x-speakeasy-group: client.tools + parameters: + - name: actionPackId + in: path + description: ID of the action pack to query or authorize. + required: true + schema: + type: string /api/index/v1/indexdocument: post: summary: Index document @@ -3811,6 +4086,8 @@ paths: "429": description: Too Many Requests x-beta: true + x-speakeasy-group: indexing.documents + x-speakeasy-name-override: debugEvents /rest/api/index/document/{docId}/custom-metadata/{groupName}: put: summary: Add or update custom metadata @@ -4319,6 +4596,8 @@ paths: "500": description: Internal error x-visibility: Public + x-speakeasy-group: client.governance.data.findings + x-speakeasy-name-override: create get: operationId: listfindingsexports summary: Lists findings exports @@ -4339,6 +4618,8 @@ paths: "500": description: Internal error x-visibility: Public + x-speakeasy-group: client.governance.data.findings + x-speakeasy-name-override: list /rest/api/v1/governance/data/findings/exports/{id}: get: operationId: downloadfindingsexport @@ -4368,6 +4649,8 @@ paths: "500": description: Internal error x-visibility: Public + x-speakeasy-group: client.governance.data.findings + x-speakeasy-name-override: download delete: operationId: deletefindingsexport summary: Deletes findings export @@ -4392,6 +4675,8 @@ paths: "500": description: Internal error x-visibility: Public + x-speakeasy-group: client.governance.data.findings + x-speakeasy-name-override: delete /rest/api/v1/configure/datasources/{datasourceId}/instances/{instanceId}: get: operationId: getDatasourceInstanceConfiguration @@ -4433,6 +4718,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' x-visibility: Preview + x-speakeasy-group: client.datasources + x-speakeasy-name-override: retrieveConfiguration patch: operationId: updateDatasourceInstanceConfiguration summary: Update datasource instance configuration @@ -4479,6 +4766,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' x-visibility: Preview + x-speakeasy-group: client.datasources + x-speakeasy-name-override: updateConfiguration /rest/api/v1/datasource/{datasourceInstanceId}/credentialstatus: get: operationId: getDatasourceCredentialStatus @@ -4519,6 +4808,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' x-visibility: Preview + x-speakeasy-group: client.datasources + x-speakeasy-name-override: retrieveCredentialStatus /rest/api/v1/datasource/{datasourceInstanceId}/credentials: post: operationId: rotateDatasourceCredentials @@ -4566,6 +4857,8 @@ paths: schema: $ref: '#/components/schemas/ErrorResponse' x-visibility: Preview + x-speakeasy-group: client.datasources + x-speakeasy-name-override: rotateCredentials /rest/api/v1/chat#stream: post: tags: @@ -4707,16 +5000,521 @@ paths: components: securitySchemes: APIToken: - scheme: bearer type: http + scheme: bearer description: >- HTTP bearer token. Accepts a Glean-issued API token, an OAuth access token from the Glean OAuth Authorization Server (including Dynamic Client Registration clients), or an OAuth access token issued by an external identity provider. External-IdP OAuth tokens must also include the `X-Glean-Auth-Type: OAUTH` request header. OAuth is supported on the Client API only; the Indexing API requires a Glean-issued token. schemas: + PlatformAgentsSearchRequest: + type: object + additionalProperties: false + properties: + name: + type: string + description: Case-insensitive substring to match against agent names. If omitted or empty, no name filter is applied. + example: HR Policy Agent + PlatformAgentCapabilities: + type: object + additionalProperties: true + properties: + ap.io.messages: + type: boolean + description: Whether the agent supports messages as input. + ap.io.streaming: + type: boolean + description: Whether the agent supports streaming output. + PlatformAgent: + type: object + required: + - agent_id + - name + - capabilities + properties: + agent_id: + type: string + description: ID of the agent. + example: mho4lwzylcozgoc2 + name: + type: string + description: Name of the agent. + example: HR Policy Agent + description: + type: string + description: Description of the agent. + metadata: + type: object + description: Agent metadata. + additionalProperties: true + capabilities: + $ref: "#/components/schemas/PlatformAgentCapabilities" + PlatformAgentsSearchResponse: + type: object + required: + - agents + - request_id + properties: + agents: + type: array + description: Agents matching the search request. + items: + $ref: "#/components/schemas/PlatformAgent" + request_id: + type: string + description: Platform-generated request ID for support correlation. + PlatformProblemDetailCode: + type: string + description: Stable machine-readable error code. + enum: + - invalid_request + - missing_required_field + - invalid_parameter + - invalid_cursor + - expired_cursor + - invalid_filter + - invalid_datasource + - authentication_required + - token_expired + - insufficient_permissions + - resource_not_found + - method_not_allowed + - request_timeout + - conflict + - gone + - unprocessable_query + - rate_limit_exceeded + - internal_error + - service_unavailable + example: invalid_cursor + PlatformProblemDetailError: + type: object + required: + - pointer + - detail + description: Field-level validation problem for a single offending field. + properties: + pointer: + type: string + description: RFC 6901 JSON Pointer to the offending field. + example: /messages/0/role + detail: + type: string + description: Human-readable explanation for this field. + example: "Must be one of: USER, GLEAN_AI." + code: + $ref: "#/components/schemas/PlatformProblemDetailCode" + PlatformProblemDetail: + type: object + required: + - type + - title + - status + - detail + - code + - request_id + description: | + Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. + properties: + type: + type: string + format: uri + description: URI identifying the error type. + example: https://developer.glean.com/errors/invalid-cursor + title: + type: string + description: Short, human-readable summary of the error. + example: Invalid Pagination Cursor + status: + type: integer + description: HTTP status code mirrored from the response. + example: 400 + detail: + type: string + description: Human-readable explanation specific to this occurrence. + example: | + The provided cursor has expired. Start a new search to get a fresh cursor. + code: + $ref: "#/components/schemas/PlatformProblemDetailCode" + documentation_url: + type: string + format: uri + description: Direct URL to documentation for this error code. + example: https://developer.glean.com/errors/invalid-cursor + request_id: + type: string + description: Platform-generated request ID for support correlation. + example: req_7f8a9b0c1d2e + errors: + type: array + description: Field-level validation problems, one entry per offending field. + items: + $ref: "#/components/schemas/PlatformProblemDetailError" + PlatformAgentGetResponse: + type: object + required: + - agent + - request_id + properties: + agent: + $ref: "#/components/schemas/PlatformAgent" + request_id: + type: string + description: Platform-generated request ID for support correlation. + PlatformActionSummary: + type: object + required: + - tool_id + - display_name + properties: + tool_id: + type: string + description: Unique identifier of the action. + display_name: + type: string + description: Display name of the action. + type: + type: string + description: Tool type. + auth_type: + type: string + description: Authentication type required by the action. + write_action_type: + type: string + description: Write-action execution type. + is_setup_finished: + type: boolean + description: Whether this action has been fully configured. + data_source: + type: string + description: Kind of knowledge the action accesses or modifies. + PlatformAgentSchemasResponse: + type: object + required: + - agent_id + - input_schema + - output_schema + - request_id + properties: + agent_id: + type: string + description: ID of the agent. + name: + type: string + description: Name of the agent. + input_schema: + type: object + description: Agent input schema in JSON Schema format. + additionalProperties: true + output_schema: + type: object + description: Agent output schema in JSON Schema format. + additionalProperties: true + tools: + type: array + description: Tools that the agent can invoke, when requested. + items: + $ref: "#/components/schemas/PlatformActionSummary" + request_id: + type: string + description: Platform-generated request ID for support correlation. + PlatformMessageRole: + type: string + description: Role of the message author. + example: USER + enum: + - USER + - GLEAN_AI + PlatformContentType: + type: string + enum: + - text + PlatformMessageTextBlock: + type: object + required: + - text + - type + properties: + text: + type: string + description: Text content. + type: + $ref: "#/components/schemas/PlatformContentType" + PlatformMessage: + type: object + required: + - role + - content + properties: + role: + $ref: "#/components/schemas/PlatformMessageRole" + content: + type: array + description: Content blocks in the message. + items: + $ref: "#/components/schemas/PlatformMessageTextBlock" + PlatformAgentRunCreateRequest: + type: object + additionalProperties: false + description: | + Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + properties: + input: + type: object + description: Input fields for an input-form triggered agent. + additionalProperties: true + messages: + type: array + minItems: 1 + description: | + Messages to pass to the agent. When provided, the array MUST contain at least one message and each message MUST specify a valid `role` and non-empty `content`. + items: + $ref: "#/components/schemas/PlatformMessage" + metadata: + type: object + description: Metadata to pass to the agent. + additionalProperties: true + stream: + type: boolean + description: Whether to stream the run response as server-sent events. + default: false + PlatformAgentRunCreate: + type: object + required: + - agent_id + properties: + agent_id: + type: string + description: ID of the agent being run. + input: + type: object + description: Input fields for an input-form triggered agent. + additionalProperties: true + messages: + type: array + description: Messages passed to the agent. + items: + $ref: "#/components/schemas/PlatformMessage" + metadata: + type: object + description: Metadata passed to the agent. + additionalProperties: true + PlatformAgentExecutionStatus: + type: string + description: Status of the agent run. + enum: + - error + - success + PlatformAgentRun: + allOf: + - $ref: "#/components/schemas/PlatformAgentRunCreate" + - type: object + required: + - status + properties: + status: + $ref: "#/components/schemas/PlatformAgentExecutionStatus" + PlatformAgentRunWaitResponse: + type: object + required: + - request_id + properties: + run: + $ref: "#/components/schemas/PlatformAgentRun" + messages: + type: array + description: Messages returned by the completed run. + items: + $ref: "#/components/schemas/PlatformMessage" + request_id: + type: string + description: Platform-generated request ID for support correlation. + PlatformFilterOperator: + type: string + description: Supported filter operator. + enum: + - EQUALS + - NOT_EQUALS + - GT + - GTE + - LT + - LTE + PlatformFilter: + type: object + required: + - field + - values + description: | + A single filter criterion. For `EQUALS`, multiple values within a filter are OR'd. For `NOT_EQUALS`, multiple values exclude all listed values. Filters are AND'd with each other and with any inline query operators. + properties: + field: + type: string + description: | + The field to filter on. Accepts built-in filter field names such as `type`, `owner`, `from`, `author`, `channel`, `status`, `assignee`, `reporter`, `component`, `mentions`, and `collection`, plus custom datasource property names. + example: type + values: + type: array + minItems: 1 + items: + type: string + description: One or more values to match. + example: + - spreadsheet + - presentation + operator: + allOf: + - $ref: "#/components/schemas/PlatformFilterOperator" + description: | + Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` range operators require exactly one value; express bounded ranges with multiple filters on the same field. + PlatformTimeRange: + type: object + description: Filter results to those last updated within this range. + properties: + start: + type: string + format: date-time + description: Inclusive lower bound in ISO 8601 format. + end: + type: string + format: date-time + description: Exclusive upper bound in ISO 8601 format. + PlatformSearchRequest: + type: object + additionalProperties: false + required: + - query + properties: + query: + type: string + description: | + The search query string. Supports inline operators such as `from:jane type:document app:confluence`. Inline operators are AND'd with structured `filters`. + example: quarterly planning 2026 + page_size: + type: integer + minimum: 1 + maximum: 100 + default: 10 + description: Number of results to return per page. + cursor: + type: string + nullable: true + description: | + Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + datasources: + type: array + items: + type: string + description: | + Restrict results to specific datasources. Requests must not specify both `datasources` and `datasource_instances`. + example: + - confluence + - google_drive + datasource_instances: + type: array + items: + type: string + description: | + Restrict results to specific datasource instances. Values are datasource instance identifiers returned by `GET /api/search/filters`. Requests must not specify both `datasources` and `datasource_instances`. + example: + - slack_acme + - slack_eu + filters: + type: array + items: + $ref: "#/components/schemas/PlatformFilter" + description: | + Structured filters applied to search results. Equality operators OR multiple values within a filter. Multiple filters are AND'd together, including range filters on the same field. Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty result set. + time_range: + $ref: "#/components/schemas/PlatformTimeRange" + PlatformPersonReference: + type: object + description: A lightweight reference to a person, used where a payload merely points at someone. + required: + - name + properties: + id: + type: string + description: Opaque Glean person ID. + name: + type: string + description: Display name. + PlatformResult: + type: object + required: + - url + - title + - datasource + properties: + url: + type: string + format: uri + description: Canonical URL of the result. + example: https://company.atlassian.net/wiki/spaces/ENG/pages/12345 + title: + type: string + description: Result title. + example: Q2 2026 Platform Roadmap + snippets: + type: array + items: + type: string + description: Query-relevant plain-text excerpts from the result body. + example: + - The platform team will focus on API stability and... + datasource: + type: string + description: The datasource this result originates from. + example: confluence + datasource_instance: + type: string + nullable: true + description: The datasource instance this result originates from, if known. + example: confluence_acme + document_type: + type: string + nullable: true + description: The document type within the datasource. + example: page + creator: + $ref: "#/components/schemas/PlatformPersonReference" + owner: + $ref: "#/components/schemas/PlatformPersonReference" + updated_at: + type: string + format: date-time + nullable: true + description: When the result was last modified. + created_at: + type: string + format: date-time + nullable: true + description: When the result was created. + PlatformSearchResponse: + type: object + required: + - results + - has_more + - next_cursor + - request_id + properties: + results: + type: array + items: + $ref: "#/components/schemas/PlatformResult" + description: Ordered list of search results. + has_more: + type: boolean + description: Indicates whether additional pages of results are available. + next_cursor: + type: string + nullable: true + description: Opaque token to pass as `cursor` in the next request. + request_id: + type: string + description: Platform-generated request ID for support correlation. ActivityEventParams: properties: bodyContent: - description: The HTML content of the page body. type: string + description: The HTML content of the page body. datasourceInstance: type: string description: The full datasource instance name inferred from the URL of the event @@ -4727,32 +5525,35 @@ components: type: string description: The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event duration: - description: Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. type: integer + description: Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. query: - description: The user's search query associated with a SEARCH. type: string + description: The user's search query associated with a SEARCH. referrer: - description: The referring URL of the VIEW or SEARCH. type: string + description: The referring URL of the VIEW or SEARCH. title: - description: The page title associated with the URL of the event type: string + description: The page title associated with the URL of the event truncated: - description: Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. type: boolean + description: Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. ActivityEvent: - required: - - action - - source - - timestamp - - url properties: id: type: string description: Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. action: type: string + enum: + - VIEW + - EDIT + - SEARCH + - COMMENT + - CRAWL + - HISTORICAL_SEARCH + - HISTORICAL_VIEW description: The type of activity this represents. x-enumDescriptions: VIEW: Represents a visit to the given `url`. @@ -4762,14 +5563,6 @@ components: CRAWL: Represents an explicit request to index the given `url` along with associated attributes in this payload. HISTORICAL_SEARCH: Represents a search performed at the given `url` as indicated by the user's history. HISTORICAL_VIEW: Represents a visit to the given `url` as indicated by the user's history. - enum: - - VIEW - - EDIT - - SEARCH - - COMMENT - - CRAWL - - HISTORICAL_SEARCH - - HISTORICAL_VIEW x-speakeasy-enum-descriptions: VIEW: Represents a visit to the given `url`. EDIT: Represents an edit of the document represented by the `url`. @@ -4779,22 +5572,27 @@ components: HISTORICAL_SEARCH: Represents a search performed at the given `url` as indicated by the user's history. HISTORICAL_VIEW: Represents a visit to the given `url` as indicated by the user's history. params: - $ref: "#/components/schemas/ActivityEventParams" + $ref: '#/components/schemas/ActivityEventParams' timestamp: type: string - description: The ISO 8601 timestamp when the activity began. format: date-time + description: The ISO 8601 timestamp when the activity began. url: - description: The URL of the activity. type: string - Activity: + description: The URL of the activity. required: - - events + - action + - source + - timestamp + - url + Activity: properties: events: type: array items: - $ref: "#/components/schemas/ActivityEvent" + $ref: '#/components/schemas/ActivityEvent' + required: + - events example: events: - url: https://example.com/ @@ -4829,11 +5627,11 @@ components: User: properties: userID: - description: An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). type: string + description: An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). origID: - description: An opaque user ID for the authenticated user (ignores actas). type: string + description: An opaque user ID for the authenticated user (ignores actas). FeedbackChatExchange: properties: timestamp: @@ -4851,13 +5649,13 @@ components: description: Search query performed by the agent. resultDocuments: type: array - description: List of documents read by the agent. items: properties: title: type: string url: type: string + description: List of documents read by the agent. response: type: string ManualFeedbackInfo: @@ -4868,7 +5666,6 @@ components: deprecated: true source: type: string - description: The source associated with the Feedback.event.MANUAL_FEEDBACK event. enum: - AUTOCOMPLETE - CALENDAR @@ -4892,13 +5689,13 @@ components: - SUMMARY - TASKS - TASK_EXECUTION + description: The source associated with the Feedback.event.MANUAL_FEEDBACK event. issue: type: string description: The issue the user indicated in the feedback. deprecated: true issues: type: array - description: The issue(s) the user indicated in the feedback. items: type: string enum: @@ -4917,6 +5714,7 @@ components: - RESULTS_HELPFUL - RESULTS_POOR_ORDER - TOO_MUCH_ONE_KIND + description: The issue(s) the user indicated in the feedback. imageUrls: type: array items: @@ -4947,17 +5745,17 @@ components: chatTranscript: type: array items: - $ref: "#/components/schemas/FeedbackChatExchange" + $ref: '#/components/schemas/FeedbackChatExchange' description: Array of previous request/response exchanges, ordered by oldest to newest. numQueriesFromFirstRun: type: integer description: How many times this query has been run in the past. vote: type: string - description: The vote associated with the Feedback.event.MANUAL_FEEDBACK event. enum: - UPVOTE - DOWNVOTE + description: The vote associated with the Feedback.event.MANUAL_FEEDBACK event. rating: type: integer description: A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. @@ -4977,15 +5775,14 @@ components: description: Human-readable name for this implementation (e.g., "Variant A", "GPT-4", "Claude"). searchParams: type: object - description: The search/chat parameters used for this implementation. additionalProperties: type: string + description: The search/chat parameters used for this implementation. response: type: string description: The full response generated by this implementation. responseMetadata: type: object - description: Metadata about the response (e.g., latency, token count). properties: latencyMs: type: integer @@ -4996,6 +5793,7 @@ components: modelUsed: type: string description: The specific model version used. + description: Metadata about the response (e.g., latency, token count). ManualFeedbackSideBySideInfo: properties: email: @@ -5003,19 +5801,19 @@ components: description: The email address of the user who submitted the side-by-side feedback. source: type: string - description: The source associated with the side-by-side feedback event. enum: - LIVE_EVAL - CHAT - SEARCH + description: The source associated with the side-by-side feedback event. query: type: string description: The query or prompt that was evaluated across multiple implementations. implementations: type: array - description: Array of implementations that were compared side-by-side. items: - $ref: "#/components/schemas/SideBySideImplementation" + $ref: '#/components/schemas/SideBySideImplementation' + description: Array of implementations that were compared side-by-side. evaluationSessionId: type: string description: Unique identifier for this evaluation session to group related feedback events. @@ -5024,11 +5822,11 @@ components: description: The ID of the implementation this specific feedback event is for. vote: type: string - description: The vote for this specific implementation. enum: - UPVOTE - DOWNVOTE - NEUTRAL + description: The vote for this specific implementation. comments: type: string description: Specific feedback comments for this implementation. @@ -5058,16 +5856,12 @@ components: - HOMEPAGE description: Where the feedback of the workflow originated from Feedback: - required: - - event - - trackingTokens properties: id: type: string description: Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. category: type: string - description: The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. enum: - ANNOUNCEMENT - ANSWERS @@ -5083,46 +5877,14 @@ components: - GENERAL - PRISM - PROMPTS + description: The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. trackingTokens: type: array - description: A list of server-generated trackingTokens to which this event applies. items: type: string + description: A list of server-generated trackingTokens to which this event applies. event: type: string - description: The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. - x-enumDescriptions: - CLICK: The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. - CONTAINER_CLICK: A link to the object's parent container (e.g. the folder in which it's located) was clicked. - COPY_LINK: The user copied a link to the primary link. - CREATE: The user creates a document. - DISMISS: The user dismissed the object such that it was hidden from view. - DOWNVOTE: The user gave feedback that the object was not useful. - EMAIL: The user attempted to send an email. - EXECUTE: The user executed the object (e.g. ran a workflow). - FILTER: The user applied a filter. - FIRST_TOKEN: The first token of a streaming response is received. - FOCUS_IN: The user clicked into an interactive element, e.g. the search box. - LAST_TOKEN: The final token of a streaming response is received. - MANUAL_FEEDBACK: The user submitted textual manual feedback regarding the object. - MANUAL_FEEDBACK_SIDE_BY_SIDE: The user submitted comparative feedback for multiple side-by-side implementations. - FEEDBACK_TIME_SAVED: The user submitted feedback about time saved by an agent or workflow. - MARK_AS_READ: The user explicitly marked the content as read. - MESSAGE: The user attempted to send a message using their default messaing app. - MIDDLE_CLICK: The user middle clicked the object's primary link with the intent to open its full representation in a new tab. - PAGE_BLUR: The user puts a page out of focus but keeps it in the background. - PAGE_FOCUS: The user puts a page in focus, meaning it is the first to receive keyboard events. - PAGE_LEAVE: The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc). - PREVIEW: The user clicked the object's inline preview affordance. - RIGHT_CLICK: The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. - SECTION_CLICK: The user clicked a link to a subsection of the primary object. - SEEN: The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). - SELECT: The user explicitly selected something, eg. a chat response variant they prefer. - SHARE: The user shared the object with another user. - SHOW_MORE: The user clicked the object's show more affordance. - UPVOTE: The user gave feedback that the object was useful. - VIEW: The object was visible within the user's viewport. - VISIBLE: The object was visible within the user's viewport. enum: - CLICK - CONTAINER_CLICK @@ -5156,6 +5918,39 @@ components: - UPVOTE - VIEW - VISIBLE + description: The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + x-enumDescriptions: + CLICK: The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. + CONTAINER_CLICK: A link to the object's parent container (e.g. the folder in which it's located) was clicked. + COPY_LINK: The user copied a link to the primary link. + CREATE: The user creates a document. + DISMISS: The user dismissed the object such that it was hidden from view. + DOWNVOTE: The user gave feedback that the object was not useful. + EMAIL: The user attempted to send an email. + EXECUTE: The user executed the object (e.g. ran a workflow). + FILTER: The user applied a filter. + FIRST_TOKEN: The first token of a streaming response is received. + FOCUS_IN: The user clicked into an interactive element, e.g. the search box. + LAST_TOKEN: The final token of a streaming response is received. + MANUAL_FEEDBACK: The user submitted textual manual feedback regarding the object. + MANUAL_FEEDBACK_SIDE_BY_SIDE: The user submitted comparative feedback for multiple side-by-side implementations. + FEEDBACK_TIME_SAVED: The user submitted feedback about time saved by an agent or workflow. + MARK_AS_READ: The user explicitly marked the content as read. + MESSAGE: The user attempted to send a message using their default messaing app. + MIDDLE_CLICK: The user middle clicked the object's primary link with the intent to open its full representation in a new tab. + PAGE_BLUR: The user puts a page out of focus but keeps it in the background. + PAGE_FOCUS: The user puts a page in focus, meaning it is the first to receive keyboard events. + PAGE_LEAVE: The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc). + PREVIEW: The user clicked the object's inline preview affordance. + RIGHT_CLICK: The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. + SECTION_CLICK: The user clicked a link to a subsection of the primary object. + SEEN: The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). + SELECT: The user explicitly selected something, eg. a chat response variant they prefer. + SHARE: The user shared the object with another user. + SHOW_MORE: The user clicked the object's show more affordance. + UPVOTE: The user gave feedback that the object was useful. + VIEW: The object was visible within the user's viewport. + VISIBLE: The object was visible within the user's viewport. x-speakeasy-enum-descriptions: CLICK: The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. CONTAINER_CLICK: A link to the object's parent container (e.g. the folder in which it's located) was clicked. @@ -5195,65 +5990,67 @@ components: type: string description: For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. sessionInfo: - $ref: "#/components/schemas/SessionInfo" + $ref: '#/components/schemas/SessionInfo' timestamp: type: string - description: The ISO 8601 timestamp when the event occured. format: date-time + description: The ISO 8601 timestamp when the event occured. user: - $ref: "#/components/schemas/User" + $ref: '#/components/schemas/User' pathname: type: string description: The path the client was at when the feedback event triggered. channels: type: array - description: Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. items: type: string enum: - COMPANY - GLEAN + description: Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. url: type: string description: The URL the client was at when the feedback event triggered. uiTree: - description: The UI element tree associated with the event, if any. + type: array items: type: string - type: array + description: The UI element tree associated with the event, if any. uiElement: type: string description: The UI element associated with the event, if any. manualFeedbackInfo: - $ref: "#/components/schemas/ManualFeedbackInfo" + $ref: '#/components/schemas/ManualFeedbackInfo' manualFeedbackSideBySideInfo: - $ref: "#/components/schemas/ManualFeedbackSideBySideInfo" + $ref: '#/components/schemas/ManualFeedbackSideBySideInfo' seenFeedbackInfo: - $ref: "#/components/schemas/SeenFeedbackInfo" + $ref: '#/components/schemas/SeenFeedbackInfo' userViewInfo: - $ref: "#/components/schemas/UserViewInfo" + $ref: '#/components/schemas/UserViewInfo' workflowFeedbackInfo: - $ref: "#/components/schemas/WorkflowFeedbackInfo" + $ref: '#/components/schemas/WorkflowFeedbackInfo' applicationId: type: string description: The application ID of the client that sent the feedback event. agentId: type: string description: The agent ID of the client that sent the feedback event. + required: + - event + - trackingTokens example: trackingTokens: - trackingTokens event: VIEW StructuredTextMutableProperties: - required: - - text properties: text: type: string example: From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light. + required: + - text ConnectorType: type: string - description: The source from which document content was pulled, e.g. an API crawl or browser history enum: - API_CRAWL - BROWSER_CRAWL @@ -5263,6 +6060,7 @@ components: - PUSH_API - WEB_CRAWL - NATIVE_HISTORY + description: The source from which document content was pulled, e.g. an API crawl or browser history DocumentContent: properties: fullTextList: @@ -5279,16 +6077,16 @@ components: type: string description: The app or other repository type from which the document was extracted connectorType: - $ref: "#/components/schemas/ConnectorType" + $ref: '#/components/schemas/ConnectorType' docType: type: string description: The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). content: - $ref: "#/components/schemas/DocumentContent" + $ref: '#/components/schemas/DocumentContent' containerDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' parentDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' title: type: string description: The title of the document. @@ -5296,12 +6094,12 @@ components: type: string description: A permalink for the document. metadata: - $ref: "#/components/schemas/DocumentMetadata" + $ref: '#/components/schemas/DocumentMetadata' sections: type: array - description: A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. items: - $ref: "#/components/schemas/DocumentSection" + $ref: '#/components/schemas/DocumentSection' + description: A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. SearchProviderInfo: properties: name: @@ -5344,13 +6142,13 @@ components: - LT - GT - NOT_EQUALS + example: EQUALS x-enumDescriptions: EQUALS: The value is equal to the specified value. ID_EQUALS: The value is equal to the specified ID. LT: The value is less than the specified value. GT: The value is greater than the specified value. NOT_EQUALS: The value is not equal to the specified value. - example: EQUALS x-speakeasy-enum-descriptions: EQUALS: The value is equal to the specified value. ID_EQUALS: The value is equal to the specified ID. @@ -5359,8 +6157,8 @@ components: NOT_EQUALS: The value is not equal to the specified value. isNegated: type: boolean - deprecated: true description: DEPRECATED - please use relationType instead + deprecated: true x-glean-deprecated: id: 75a48c79-b36a-4171-a0a0-4af7189da66e introduced: "2026-02-05" @@ -5375,12 +6173,12 @@ components: values: type: array items: - $ref: "#/components/schemas/FacetFilterValue" + $ref: '#/components/schemas/FacetFilterValue' description: Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. groupName: type: string - example: Spreadsheet description: Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + example: Spreadsheet example: fieldName: type values: @@ -5393,7 +6191,7 @@ components: filters: type: array items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' description: Within a single FacetFilterSet, the filters are treated as AND. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. FacetBucketFilter: properties: @@ -5404,9 +6202,6 @@ components: type: string description: The per-term prefix that facet buckets should be filtered on. AuthToken: - required: - - accessToken - - datasource properties: accessToken: type: string @@ -5417,12 +6212,15 @@ components: tokenType: type: string authUser: - description: Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. type: string + description: Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. expiration: - description: Unix timestamp when this token expires (in seconds since epoch UTC). type: integer format: int64 + description: Unix timestamp when this token expires (in seconds since epoch UTC). + required: + - accessToken + - datasource example: accessToken: 123abc datasource: gmail @@ -5430,28 +6228,24 @@ components: tokenType: Bearer authUser: "1" DocumentSpec: - x-multiple-discriminators: true oneOf: - type: object - required: - - url properties: url: type: string - x-discriminator: true description: The URL of the document. - - type: object + x-discriminator: true required: - - id + - url + - type: object properties: id: type: string - x-discriminator: true description: The ID of the document. - - type: object + x-discriminator: true required: - - contentId - - ugcType + - id + - type: object properties: ugcType: type: string @@ -5464,15 +6258,15 @@ components: description: The type of the user generated content (UGC datasource). contentId: type: integer - x-discriminator: true description: The numeric id for user generated content. Used for ANNOUNCEMENTS, ANSWERS, COLLECTIONS, SHORTCUTS. + x-discriminator: true docType: type: string description: The specific type of the user generated content type. - - type: object required: + - contentId - ugcType - - ugcId + - type: object properties: ugcType: type: string @@ -5486,21 +6280,23 @@ components: description: The type of the user generated content (UGC datasource). ugcId: type: string - x-discriminator: true description: The string id for user generated content. Used for CHATS. + x-discriminator: true docType: type: string description: The specific type of the user generated content type. + required: + - ugcType + - ugcId + x-multiple-discriminators: true RestrictionFilters: properties: containerSpecs: - description: "Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections." type: array items: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' + description: 'Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections.' SearchRequestOptions: - required: - - facetBucketSize properties: datasourceFilter: type: string @@ -5516,15 +6312,15 @@ components: facetFilters: type: array items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' description: A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. facetFilterSets: type: array items: - $ref: "#/components/schemas/FacetFilterSet" + $ref: '#/components/schemas/FacetFilterSet' description: A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. facetBucketFilter: - $ref: "#/components/schemas/FacetBucketFilter" + $ref: '#/components/schemas/FacetBucketFilter' facetBucketSize: type: integer description: The maximum number of FacetBuckets to return in each FacetResult. @@ -5535,17 +6331,22 @@ components: description: Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. authTokens: type: array - description: Auth tokens which may be used for non-indexed, federated results (e.g. Gmail). items: - $ref: "#/components/schemas/AuthToken" + $ref: '#/components/schemas/AuthToken' + description: Auth tokens which may be used for non-indexed, federated results (e.g. Gmail). fetchAllDatasourceCounts: type: boolean description: Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter responseHints: type: array - description: Array of hints containing which fields should be populated in the response. items: type: string + enum: + - ALL_RESULT_COUNTS + - FACET_RESULTS + - QUERY_METADATA + - RESULTS + - SPELLCHECK_METADATA description: Hints for the response content. x-enumDescriptions: ALL_RESULT_COUNTS: Return result counts for each result set which has non-zero results, even when the request itself is limited to a subset. @@ -5553,18 +6354,13 @@ components: QUERY_METADATA: Returns result counts for each result set which has non-zero results, as well as other information about the search such as suggested spelling corrections. RESULTS: Return search result documents. SPELLCHECK_METADATA: Return metadata pertaining to spellcheck results. - enum: - - ALL_RESULT_COUNTS - - FACET_RESULTS - - QUERY_METADATA - - RESULTS - - SPELLCHECK_METADATA x-speakeasy-enum-descriptions: ALL_RESULT_COUNTS: Return result counts for each result set which has non-zero results, even when the request itself is limited to a subset. FACET_RESULTS: Return only facet results. QUERY_METADATA: Returns result counts for each result set which has non-zero results, as well as other information about the search such as suggested spelling corrections. RESULTS: Return search result documents. SPELLCHECK_METADATA: Return metadata pertaining to spellcheck results. + description: Array of hints containing which fields should be populated in the response. timezoneOffset: type: integer description: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. @@ -5578,11 +6374,13 @@ components: type: boolean description: Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. inclusions: - $ref: "#/components/schemas/RestrictionFilters" + $ref: '#/components/schemas/RestrictionFilters' description: A list of filters which restrict the search results to only the specified content. exclusions: - $ref: "#/components/schemas/RestrictionFilters" + $ref: '#/components/schemas/RestrictionFilters' description: A list of filters specifying content to avoid getting search results from. Exclusions take precendence over inclusions and other query parameters, such as search operators and search facets. + required: + - facetBucketSize example: datasourceFilter: JIRA datasourcesFilter: @@ -5598,9 +6396,6 @@ components: - fieldValues - fieldValues TextRange: - required: - - startIndex - description: A subsection of a given string to which some special formatting should be applied. properties: startIndex: type: integer @@ -5619,8 +6414,11 @@ components: type: string description: The URL associated with the range, if applicable. For example, the linked URL for a LINK range. document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: A document corresponding to the range, if applicable. For example, the cited document for a CITATION range. + required: + - startIndex + description: A subsection of a given string to which some special formatting should be applied. SearchRequestInputDetails: properties: hasCopyPaste: @@ -5629,8 +6427,6 @@ components: example: hasCopyPaste: true QuerySuggestion: - required: - - query properties: missingTerm: type: string @@ -5639,7 +6435,7 @@ components: type: string description: The query being suggested (e.g. enforcing the missing term from the original query). searchProviderInfo: - $ref: "#/components/schemas/SearchProviderInfo" + $ref: '#/components/schemas/SearchProviderInfo' description: Information about the search provider that generated this suggestion. label: type: string @@ -5648,25 +6444,24 @@ components: type: string description: The datasource associated with the suggestion. resultTab: - $ref: "#/components/schemas/ResultTab" + $ref: '#/components/schemas/ResultTab' description: The result tab associated with the suggestion. requestOptions: - $ref: "#/components/schemas/SearchRequestOptions" + $ref: '#/components/schemas/SearchRequestOptions' ranges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: The bolded ranges within the query of the QuerySuggestion. inputDetails: - $ref: "#/components/schemas/SearchRequestInputDetails" + $ref: '#/components/schemas/SearchRequestInputDetails' + required: + - query example: query: app:github type:pull author:mortimer label: Mortimer's PRs datasource: github Person: - required: - - name - - obfuscatedId properties: name: type: string @@ -5677,16 +6472,17 @@ components: relatedDocuments: type: array items: - $ref: "#/components/schemas/RelatedDocuments" + $ref: '#/components/schemas/RelatedDocuments' description: A list of documents related to this person. metadata: - $ref: "#/components/schemas/PersonMetadata" + $ref: '#/components/schemas/PersonMetadata' + required: + - name + - obfuscatedId example: name: George Clooney obfuscatedId: abc123 Company: - required: - - name properties: name: type: string @@ -5696,9 +6492,9 @@ components: description: Link to internal company company profile. websiteUrls: type: array - description: Link to company's associated websites. items: type: string + description: Link to company's associated websites. logoUrl: type: string description: The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). @@ -5735,11 +6531,13 @@ components: type: string description: User facing description of company. example: Financial, software, data, and media company headquartered in Midtown Manhattan, New York City + required: + - name DocumentCounts: type: object - description: A map of {string, int} pairs representing counts of each document type associated with this customer. additionalProperties: type: integer + description: A map of {string, int} pairs representing counts of each document type associated with this customer. CustomDataValue: properties: displayLabel: @@ -5748,54 +6546,51 @@ components: type: string stringListValue: type: array - description: list of strings for multi-value properties items: type: string + description: list of strings for multi-value properties numberValue: type: number booleanValue: type: boolean CustomData: type: object - description: Custom fields specific to individual datasources additionalProperties: - $ref: "#/components/schemas/CustomDataValue" + $ref: '#/components/schemas/CustomDataValue' + description: Custom fields specific to individual datasources CustomerMetadata: properties: datasourceId: type: string description: The user visible id of the salesforce customer account. customData: - $ref: "#/components/schemas/CustomData" + $ref: '#/components/schemas/CustomData' Customer: - required: - - id - - company properties: id: type: string description: Unique identifier. domains: type: array - description: Link to company's associated website domains. items: type: string + description: Link to company's associated website domains. company: - $ref: "#/components/schemas/Company" + $ref: '#/components/schemas/Company' documentCounts: - $ref: "#/components/schemas/DocumentCounts" + $ref: '#/components/schemas/DocumentCounts' poc: type: array - description: A list of POC for company. items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' + description: A list of POC for company. metadata: - $ref: "#/components/schemas/CustomerMetadata" + $ref: '#/components/schemas/CustomerMetadata' mergedCustomers: type: array - description: A list of Customers. items: - $ref: "#/components/schemas/Customer" + $ref: '#/components/schemas/Customer' + description: A list of Customers. startDate: type: string format: date @@ -5808,44 +6603,46 @@ components: type: string description: User facing (potentially generated) notes about company. example: CIO is interested in trying out the product. - RelatedObject: required: - id + - company + RelatedObject: properties: id: type: string description: The ID of the related object metadata: type: object - description: Some metadata of the object which can be displayed, while not having the actual object. properties: name: type: string description: Placeholder name of the object, not the relationship. + description: Some metadata of the object which can be displayed, while not having the actual object. + required: + - id RelatedObjectEdge: properties: objects: type: array items: - $ref: "#/components/schemas/RelatedObject" + $ref: '#/components/schemas/RelatedObject' RelatedObjects: properties: relatedObjects: type: object - description: A list of objects related to a source object. additionalProperties: - $ref: "#/components/schemas/RelatedObjectEdge" + $ref: '#/components/schemas/RelatedObjectEdge' + description: A list of objects related to a source object. ScopeType: type: string - description: Describes the scope for a ReadPermission, WritePermission, or GrantPermission object enum: - GLOBAL - OWN + description: Describes the scope for a ReadPermission, WritePermission, or GrantPermission object WritePermission: - description: Describes the write permissions levels that a user has for a specific feature properties: scopeType: - $ref: "#/components/schemas/ScopeType" + $ref: '#/components/schemas/ScopeType' create: type: boolean description: True if user has create permission for this feature and scope @@ -5855,33 +6652,31 @@ components: delete: type: boolean description: True if user has delete permission for this feature and scope + description: Describes the write permissions levels that a user has for a specific feature ObjectPermissions: properties: write: - $ref: "#/components/schemas/WritePermission" + $ref: '#/components/schemas/WritePermission' PermissionedObject: properties: permissions: - $ref: "#/components/schemas/ObjectPermissions" + $ref: '#/components/schemas/ObjectPermissions' description: The permissions the current viewer has with respect to a particular object. PersonToTeamRelationship: - required: - - person type: object - description: Metadata about the relationship of a person to a team. properties: person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' relationship: type: string - description: The team member's relationship to the team. This defaults to MEMBER if not set. - default: MEMBER enum: - MEMBER - MANAGER - LEAD - POINT_OF_CONTACT - OTHER + description: The team member's relationship to the team. This defaults to MEMBER if not set. + default: MEMBER customRelationshipStr: type: string description: Displayed name for the relationship if relationship is set to `OTHER`. @@ -5889,7 +6684,11 @@ components: type: string format: date-time description: The team member's start date + required: + - person + description: Metadata about the relationship of a person to a team. TeamEmail: + type: object properties: email: type: string @@ -5897,9 +6696,8 @@ components: description: An email address type: type: string - default: OTHER description: An enum of `PRIMARY`, `SECONDARY`, `ONCALL`, `OTHER` - type: object + default: OTHER required: - email - type @@ -5920,17 +6718,13 @@ components: CustomFieldValuePerson: properties: person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' CustomFieldValue: oneOf: - - $ref: "#/components/schemas/CustomFieldValueStr" - - $ref: "#/components/schemas/CustomFieldValueHyperlink" - - $ref: "#/components/schemas/CustomFieldValuePerson" + - $ref: '#/components/schemas/CustomFieldValueStr' + - $ref: '#/components/schemas/CustomFieldValueHyperlink' + - $ref: '#/components/schemas/CustomFieldValuePerson' CustomFieldData: - required: - - label - - values - - displayable properties: label: type: string @@ -5938,20 +6732,21 @@ components: values: type: array items: - $ref: "#/components/schemas/CustomFieldValue" + $ref: '#/components/schemas/CustomFieldValue' displayable: type: boolean description: Determines whether the client should display this custom field default: true - DatasourceProfile: required: - - datasource - - handle + - label + - values + - displayable + DatasourceProfile: properties: datasource: type: string - example: github description: The datasource the profile is of. + example: github handle: type: string description: The display name of the entity in the given datasource. @@ -5964,14 +6759,14 @@ components: isUserGenerated: type: boolean description: For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + required: + - datasource + - handle Team: allOf: - - $ref: "#/components/schemas/RelatedObjects" - - $ref: "#/components/schemas/PermissionedObject" + - $ref: '#/components/schemas/RelatedObjects' + - $ref: '#/components/schemas/PermissionedObject' - type: object - required: - - id - - name properties: id: type: string @@ -6002,27 +6797,27 @@ components: description: Link to a team page on the internet or your company's intranet members: type: array - description: The members on this team items: - $ref: "#/components/schemas/PersonToTeamRelationship" + $ref: '#/components/schemas/PersonToTeamRelationship' + description: The members on this team memberCount: type: integer description: Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) emails: type: array - description: The emails for this team items: - $ref: "#/components/schemas/TeamEmail" + $ref: '#/components/schemas/TeamEmail' + description: The emails for this team customFields: type: array - description: Customizable fields for additional team information. items: - $ref: "#/components/schemas/CustomFieldData" + $ref: '#/components/schemas/CustomFieldData' + description: Customizable fields for additional team information. datasourceProfiles: type: array - description: The datasource profiles of the team items: - $ref: "#/components/schemas/DatasourceProfile" + $ref: '#/components/schemas/DatasourceProfile' + description: The datasource profiles of the team datasource: type: string description: the data source of the team, e.g. GDRIVE @@ -6035,12 +6830,12 @@ components: description: when this team was last updated. status: type: string - description: whether this team is fully processed or there are still unprocessed operations that'll affect it - default: PROCESSED enum: - PROCESSED - QUEUED_FOR_CREATION - QUEUED_FOR_DELETION + description: whether this team is fully processed or there are still unprocessed operations that'll affect it + default: PROCESSED canBeDeleted: type: boolean description: can this team be deleted. Some manually ingested teams like GCS_CSV or PUSH_API cannot @@ -6048,15 +6843,15 @@ components: loggingId: type: string description: The logging id of the team used in scrubbed logs, client analytics, and metrics. + required: + - id + - name CustomEntityMetadata: properties: customData: - $ref: "#/components/schemas/CustomData" + $ref: '#/components/schemas/CustomData' GroupType: type: string - description: The type of user group - x-enumDescriptions: - COLLECTION_AUDIENCE: Refers to any viewers of the Collection. enum: - DEPARTMENT - ALL @@ -6067,15 +6862,15 @@ components: - REGION - EXTERNAL_GROUP - COLLECTION_AUDIENCE + description: The type of user group + x-enumDescriptions: + COLLECTION_AUDIENCE: Refers to any viewers of the Collection. x-speakeasy-enum-descriptions: COLLECTION_AUDIENCE: Refers to any viewers of the Collection. Group: - required: - - type - - id properties: type: - $ref: "#/components/schemas/GroupType" + $ref: '#/components/schemas/GroupType' id: type: string description: A unique identifier for the group. May be the same as name. @@ -6088,31 +6883,34 @@ components: provisioningId: type: string description: identifier for greenlist provisioning, aka sciokey + required: + - type + - id UserRole: type: string - description: A user's role with respect to a specific document. enum: - OWNER - VIEWER - ANSWER_MODERATOR - EDITOR - VERIFIER + description: A user's role with respect to a specific document. UserRoleSpecification: - required: - - role properties: sourceDocumentSpec: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' description: The document spec of the object this role originates from. The object this role is included with will usually have the same information as this document spec, but if the role is inherited, then the document spec refers to the parent document that the role came from. person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' group: - $ref: "#/components/schemas/Group" + $ref: '#/components/schemas/Group' role: - $ref: "#/components/schemas/UserRole" + $ref: '#/components/schemas/UserRole' + required: + - role CustomEntity: allOf: - - $ref: "#/components/schemas/PermissionedObject" + - $ref: '#/components/schemas/PermissionedObject' - type: object properties: id: @@ -6128,12 +6926,12 @@ components: type: string description: The type of the entity. Interpretation is specific to each datasource metadata: - $ref: "#/components/schemas/CustomEntityMetadata" + $ref: '#/components/schemas/CustomEntityMetadata' roles: type: array - description: A list of user roles for the custom entity explicitly granted by the owner. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles for the custom entity explicitly granted by the owner. AnswerId: properties: id: @@ -6153,9 +6951,9 @@ components: example: Why is the sky blue? questionVariations: type: array - description: Additional ways of phrasing this question. items: type: string + description: Additional ways of phrasing this question. bodyText: type: string description: The plain text answer to the question. @@ -6172,26 +6970,26 @@ components: x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported" audienceFilters: type: array - description: Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' + description: Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. addedRoles: type: array - description: A list of user roles for the answer added by the owner. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles for the answer added by the owner. removedRoles: type: array - description: A list of user roles for the answer removed by the owner. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles for the answer removed by the owner. roles: type: array - description: A list of roles for this answer explicitly granted by an owner, editor, or admin. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of roles for this answer explicitly granted by an owner, editor, or admin. sourceDocumentSpec: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' sourceType: type: string enum: @@ -6205,47 +7003,44 @@ components: description: An opaque token that represents this particular UGC. To be used for `/feedback` reporting. StructuredText: allOf: - - $ref: "#/components/schemas/StructuredTextMutableProperties" + - $ref: '#/components/schemas/StructuredTextMutableProperties' - type: object properties: structuredList: type: array items: - $ref: "#/components/schemas/StructuredTextItem" + $ref: '#/components/schemas/StructuredTextItem' description: An array of objects each of which contains either a string or a link which optionally corresponds to a document. AnswerLike: properties: user: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTime: type: string format: date-time description: The time the user liked the answer in ISO format (ISO 8601). AnswerLikes: - required: - - likedBy - - likedByUser - - numLikes properties: likedBy: type: array items: - $ref: "#/components/schemas/AnswerLike" + $ref: '#/components/schemas/AnswerLike' likedByUser: type: boolean description: Whether the user in context liked the answer. numLikes: type: integer description: The total number of likes for the answer. - Reminder: required: - - assignee - - remindAt + - likedBy + - likedByUser + - numLikes + Reminder: properties: assignee: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' requestor: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' remindAt: type: integer description: Unix timestamp for when the reminder should trigger (in seconds since epoch UTC). @@ -6255,6 +7050,9 @@ components: reason: type: string description: An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + required: + - assignee + - remindAt TimePoint: properties: epochSeconds: @@ -6274,27 +7072,25 @@ components: description: DEPRECATED - The number of days from now in the past to define lower boundary of time period. deprecated: true start: - $ref: "#/components/schemas/TimePoint" + $ref: '#/components/schemas/TimePoint' end: - $ref: "#/components/schemas/TimePoint" + $ref: '#/components/schemas/TimePoint' CountInfo: - required: - - count properties: count: type: integer description: The counter value period: - $ref: "#/components/schemas/Period" + $ref: '#/components/schemas/Period' org: type: string description: The unit of organization over which we did the count aggregation, e.g. org (department) or company - VerificationMetadata: required: - - documentId + - count + VerificationMetadata: properties: lastVerifier: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' lastVerificationTs: type: integer description: The unix timestamp of the verification (in seconds since epoch UTC). @@ -6302,27 +7098,27 @@ components: type: integer description: The unix timestamp of the verification expiration if applicable (in seconds since epoch UTC). document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' reminders: type: array items: - $ref: "#/components/schemas/Reminder" + $ref: '#/components/schemas/Reminder' description: Info about all outstanding verification reminders for the document if exists. lastReminder: - $ref: "#/components/schemas/Reminder" + $ref: '#/components/schemas/Reminder' visitorCount: type: array items: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' description: Number of visitors to the document during included time periods. candidateVerifiers: type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' description: List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. - Verification: required: - - state + - documentId + Verification: properties: state: type: string @@ -6332,10 +7128,10 @@ components: - DEPRECATED description: The verification state for the document. metadata: - $ref: "#/components/schemas/VerificationMetadata" - CollectionBaseMutableProperties: + $ref: '#/components/schemas/VerificationMetadata' required: - - name + - state + CollectionBaseMutableProperties: properties: name: type: string @@ -6345,19 +7141,21 @@ components: description: A brief summary of the Collection's contents. addedRoles: type: array - description: A list of added user roles for the Collection. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of added user roles for the Collection. removedRoles: type: array - description: A list of removed user roles for the Collection. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of removed user roles for the Collection. audienceFilters: type: array items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' description: Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + required: + - name Thumbnail: properties: photoId: @@ -6368,10 +7166,8 @@ components: description: Thumbnail URL. This can be user provided image and/or from downloaded images hosted by Glean. CollectionMutableProperties: allOf: - - $ref: "#/components/schemas/CollectionBaseMutableProperties" + - $ref: '#/components/schemas/CollectionBaseMutableProperties' - type: object - required: - - name properties: icon: type: string @@ -6383,10 +7179,12 @@ components: type: integer description: The parent of this Collection, or 0 if it's a top-level Collection. thumbnail: - $ref: "#/components/schemas/Thumbnail" + $ref: '#/components/schemas/Thumbnail' allowedDatasource: type: string description: The datasource type this Collection can hold. + required: + - name CollectionItemMutableProperties: properties: name: @@ -6425,30 +7223,30 @@ components: description: For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. addedRoles: type: array - description: A list of user roles added for the Shortcut. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles added for the Shortcut. removedRoles: type: array - description: A list of user roles removed for the Shortcut. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles removed for the Shortcut. ShortcutMetadata: properties: createdBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTime: type: string format: date-time description: The time the shortcut was created in ISO format (ISO 8601). updatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' updateTime: type: string format: date-time description: The time the shortcut was updated in ISO format (ISO 8601). destinationDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: Document that corresponds to the destination URL, if applicable. intermediateUrl: type: string @@ -6464,13 +7262,11 @@ components: description: The URL using which the user can access the edit page of the shortcut. Shortcut: allOf: - - $ref: "#/components/schemas/UserGeneratedContentId" - - $ref: "#/components/schemas/ShortcutMutableProperties" - - $ref: "#/components/schemas/PermissionedObject" - - $ref: "#/components/schemas/ShortcutMetadata" + - $ref: '#/components/schemas/UserGeneratedContentId' + - $ref: '#/components/schemas/ShortcutMutableProperties' + - $ref: '#/components/schemas/PermissionedObject' + - $ref: '#/components/schemas/ShortcutMetadata' - type: object - required: - - inputAlias properties: alias: type: string @@ -6480,18 +7276,17 @@ components: description: Title for the Go Link roles: type: array - description: A list of user roles for the Go Link. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles for the Go Link. + required: + - inputAlias Collection: allOf: - - $ref: "#/components/schemas/CollectionMutableProperties" - - $ref: "#/components/schemas/PermissionedObject" - - $ref: "#/components/schemas/UgcTrackingSignals" + - $ref: '#/components/schemas/CollectionMutableProperties' + - $ref: '#/components/schemas/PermissionedObject' + - $ref: '#/components/schemas/UgcTrackingSignals' - type: object - required: - - id - - description properties: id: type: integer @@ -6503,9 +7298,9 @@ components: type: string format: date-time creator: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' updatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' itemCount: type: integer description: The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. @@ -6515,10 +7310,10 @@ components: items: type: array items: - $ref: "#/components/schemas/CollectionItem" + $ref: '#/components/schemas/CollectionItem' description: The items in this Collection. pinMetadata: - $ref: "#/components/schemas/CollectionPinnedMetadata" + $ref: '#/components/schemas/CollectionPinnedMetadata' description: Metadata having what categories this Collection is pinned to and the eligible categories to pin to shortcuts: type: array @@ -6528,20 +7323,20 @@ components: children: type: array items: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' description: The children Collections of this Collection. roles: type: array - description: A list of user roles for the Collection. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of user roles for the Collection. + required: + - id + - description CollectionItem: allOf: - - $ref: "#/components/schemas/CollectionItemMutableProperties" + - $ref: '#/components/schemas/CollectionItemMutableProperties' - type: object - required: - - collectionId - - itemType properties: collectionId: type: integer @@ -6556,20 +7351,20 @@ components: type: string description: Unique identifier for the item within the Collection it belongs to. createdBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' description: The person who added this Collection item. createdAt: type: string format: date-time description: Unix timestamp for when the item was first added (in seconds since epoch UTC). document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: The Document this CollectionItem corresponds to (omitted if item is a non-indexed URL). shortcut: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' description: The Shortcut this CollectionItem corresponds to (only included if item URL is for a Go Link). collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' description: The Collection this CollectionItem corresponds to (only included if item type is COLLECTION). itemType: type: string @@ -6578,69 +7373,70 @@ components: - TEXT - URL - COLLECTION + required: + - collectionId + - itemType CollectionPinnableCategories: type: string - description: Categories a Collection can be pinned to. enum: - COMPANY_RESOURCE - DEPARTMENT_RESOURCE - TEAM_RESOURCE + description: Categories a Collection can be pinned to. CollectionPinnableTargets: type: string - description: What targets can a Collection be pinned to. enum: - RESOURCE_CARD - TEAM_PROFILE_PAGE + description: What targets can a Collection be pinned to. CollectionPinTarget: - required: - - category properties: category: - $ref: "#/components/schemas/CollectionPinnableCategories" + $ref: '#/components/schemas/CollectionPinnableCategories' value: type: string description: Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. target: - $ref: "#/components/schemas/CollectionPinnableTargets" - CollectionPinMetadata: + $ref: '#/components/schemas/CollectionPinnableTargets' required: - - id - - target + - category + CollectionPinMetadata: properties: id: type: integer description: The ID of the Collection. target: - $ref: "#/components/schemas/CollectionPinTarget" + $ref: '#/components/schemas/CollectionPinTarget' + required: + - id + - target CollectionPinnedMetadata: properties: existingPins: type: array items: - $ref: "#/components/schemas/CollectionPinTarget" + $ref: '#/components/schemas/CollectionPinTarget' description: List of targets this Collection is pinned to. eligiblePins: type: array items: - $ref: "#/components/schemas/CollectionPinMetadata" + $ref: '#/components/schemas/CollectionPinMetadata' description: List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. Answer: allOf: - - $ref: "#/components/schemas/AnswerId" - - $ref: "#/components/schemas/AnswerDocId" - - $ref: "#/components/schemas/AnswerMutableProperties" - - $ref: "#/components/schemas/PermissionedObject" - - $ref: "#/components/schemas/UgcTrackingSignals" + - $ref: '#/components/schemas/AnswerId' + - $ref: '#/components/schemas/AnswerDocId' + - $ref: '#/components/schemas/AnswerMutableProperties' + - $ref: '#/components/schemas/PermissionedObject' + - $ref: '#/components/schemas/UgcTrackingSignals' - type: object - required: - - id properties: combinedAnswerText: - $ref: "#/components/schemas/StructuredText" + $ref: '#/components/schemas/StructuredText' likes: - $ref: "#/components/schemas/AnswerLikes" + $ref: '#/components/schemas/AnswerLikes' author: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTime: type: string format: date-time @@ -6650,21 +7446,22 @@ components: format: date-time description: The time the answer was last updated in ISO format (ISO 8601). updatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' verification: - $ref: "#/components/schemas/Verification" + $ref: '#/components/schemas/Verification' collections: type: array - description: The collections to which the answer belongs. items: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' + description: The collections to which the answer belongs. documentCategory: type: string description: The document's document_category(.proto). sourceDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' + required: + - id FollowupAction: - description: A follow-up action that can be invoked by the user after a response. The action parameters are not included and need to be predicted/filled separately. properties: actionRunId: type: string @@ -6677,9 +7474,9 @@ components: description: The ID of the associated action. parameters: type: object - description: Map of assistant predicted parameters and their corresponding values. additionalProperties: type: string + description: Map of assistant predicted parameters and their corresponding values. recommendationText: type: string description: Text to be displayed to the user when recommending the action instance. @@ -6689,6 +7486,7 @@ components: userConfirmationRequired: type: boolean description: Whether user confirmation is needed before executing this action instance. + description: A follow-up action that can be invoked by the user after a response. The action parameters are not included and need to be predicted/filled separately. GeneratedQna: properties: question: @@ -6703,14 +7501,14 @@ components: type: string description: List of all follow-up prompts generated for the given query or the generated question. followupActions: - description: List of follow-up actions generated for the given query or the generated question. type: array items: - $ref: "#/components/schemas/FollowupAction" + $ref: '#/components/schemas/FollowupAction' + description: List of follow-up actions generated for the given query or the generated question. ranges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: Answer subsections to mark with special formatting (citations, bolding etc) status: type: string @@ -6731,14 +7529,12 @@ components: type: string description: An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. SearchResult: - required: - - url allOf: - - $ref: "#/components/schemas/Result" + - $ref: '#/components/schemas/Result' - type: object properties: document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' title: type: string url: @@ -6749,60 +7545,62 @@ components: snippets: type: array items: - $ref: "#/components/schemas/SearchResultSnippet" + $ref: '#/components/schemas/SearchResultSnippet' description: Text content from the result document which contains search query terms, if available. fullText: type: string description: The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). fullTextList: type: array - description: The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). items: type: string + description: The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). relatedResults: type: array items: - $ref: "#/components/schemas/RelatedDocuments" + $ref: '#/components/schemas/RelatedDocuments' description: A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. clusteredResults: type: array - description: A list of results that should be displayed as associated with this result. items: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' + description: A list of results that should be displayed as associated with this result. allClusteredResults: type: array - description: A list of results that should be displayed as associated with this result. items: - $ref: "#/components/schemas/ClusterGroup" + $ref: '#/components/schemas/ClusterGroup' + description: A list of results that should be displayed as associated with this result. attachmentCount: type: integer description: The total number of attachments. attachments: type: array - description: A (potentially partial) list of results representing documents attached to the main result document. items: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' + description: A (potentially partial) list of results representing documents attached to the main result document. backlinkResults: type: array - description: A list of results that should be displayed as backlinks of this result in reverse chronological order. items: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' + description: A list of results that should be displayed as backlinks of this result in reverse chronological order. clusterType: - $ref: "#/components/schemas/ClusterTypeEnum" + $ref: '#/components/schemas/ClusterTypeEnum' mustIncludeSuggestions: - $ref: "#/components/schemas/QuerySuggestionList" + $ref: '#/components/schemas/QuerySuggestionList' querySuggestion: - $ref: "#/components/schemas/QuerySuggestion" + $ref: '#/components/schemas/QuerySuggestion' prominence: - $ref: "#/components/schemas/SearchResultProminenceEnum" + $ref: '#/components/schemas/SearchResultProminenceEnum' attachmentContext: type: string description: Additional context for the relationship between the result and the document it's attached to. pins: type: array - description: A list of pins associated with this search result. items: - $ref: "#/components/schemas/PinDocument" + $ref: '#/components/schemas/PinDocument' + description: A list of pins associated with this search result. + required: + - url example: snippets: - snippet: snippet @@ -6832,10 +7630,8 @@ components: type: string description: Question text that was matched to produce this result. questionResult: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' CalendarAttendee: - required: - - person properties: isOrganizer: type: boolean @@ -6844,12 +7640,12 @@ components: type: boolean description: Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' groupAttendees: type: array - description: If this attendee is a group, represents the list of individual attendees in the group. items: - $ref: "#/components/schemas/CalendarAttendee" + $ref: '#/components/schemas/CalendarAttendee' + description: If this attendee is a group, represents the list of individual attendees in the group. responseStatus: type: string enum: @@ -6857,12 +7653,14 @@ components: - DECLINED - NO_RESPONSE - TENTATIVE + required: + - person CalendarAttendees: properties: people: type: array items: - $ref: "#/components/schemas/CalendarAttendee" + $ref: '#/components/schemas/CalendarAttendee' description: Full details of some of the attendees of this event isLimit: type: boolean @@ -6899,7 +7697,7 @@ components: type: string format: date-time attendees: - $ref: "#/components/schemas/CalendarAttendees" + $ref: '#/components/schemas/CalendarAttendees' description: The attendee list, including their response status isCancelled: type: boolean @@ -6917,8 +7715,6 @@ components: type: string description: The conference provider (e.g., "Microsoft Teams", "Zoom") AppResult: - required: - - datasource properties: datasource: type: string @@ -6932,6 +7728,8 @@ components: iconUrl: type: string description: If there is available icon URL. + required: + - datasource CodeLine: properties: lineNumber: @@ -6941,7 +7739,7 @@ components: ranges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: Index ranges depicting matched sections of the line Code: properties: @@ -6954,7 +7752,7 @@ components: lines: type: array items: - $ref: "#/components/schemas/CodeLine" + $ref: '#/components/schemas/CodeLine' isLastMatch: type: boolean description: Last file match for a repo @@ -6980,11 +7778,10 @@ components: suggestions: type: array items: - $ref: "#/components/schemas/QuerySuggestion" + $ref: '#/components/schemas/QuerySuggestion' person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' IconConfig: - description: Defines how to render an icon properties: generatedBackgroundColorKey: type: string @@ -7018,13 +7815,13 @@ components: url: type: string description: The URL to an image to be displayed if applicable, e.g. the URL for `iconType.URL` icons. + description: Defines how to render an icon example: color: "#343CED" key: person_icon iconType: GLYPH name: user ChatMetadata: - description: Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. properties: id: type: string @@ -7033,7 +7830,7 @@ components: type: integer description: Server Unix timestamp of the creation time (in seconds since epoch UTC). createdBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' description: The user who created this Chat. updateTime: type: integer @@ -7048,12 +7845,12 @@ components: type: string description: The display name of the AI App that this Chat is associated to. icon: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' + description: Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. RelatedDocuments: properties: relation: type: string - description: How this document relates to the including entity. enum: - ATTACHMENT - CANONICAL @@ -7071,6 +7868,7 @@ components: - TICKET - TRANSCRIPT - WITH + description: How this document relates to the including entity. x-enum-varnames: - ATTACHMENT - CANONICAL @@ -7096,11 +7894,11 @@ components: type: string description: Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) querySuggestion: - $ref: "#/components/schemas/QuerySuggestion" + $ref: '#/components/schemas/QuerySuggestion' documents: type: array items: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: A truncated list of documents with this relation. TO BE DEPRECATED. deprecated: true x-glean-deprecated: @@ -7112,7 +7910,7 @@ components: results: type: array items: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' description: A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. RelatedQuestion: properties: @@ -7125,19 +7923,18 @@ components: ranges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: Subsections of the answer string to which some special formatting should be applied (eg. bold) EntityType: type: string - description: The type of entity. - x-include-enum-class-prefix: true enum: - PERSON - PROJECT - CUSTOMER + description: The type of entity. + x-include-enum-class-prefix: true Disambiguation: type: object - description: A disambiguation between multiple entities with the same name properties: name: type: string @@ -7146,7 +7943,8 @@ components: type: string description: The unique id of the entity in the knowledge graph type: - $ref: "#/components/schemas/EntityType" + $ref: '#/components/schemas/EntityType' + description: A disambiguation between multiple entities with the same name SearchResultSnippet: properties: mimeType: @@ -7161,15 +7959,15 @@ components: ranges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: The bolded ranges within text. url: type: string description: A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. snippet: type: string - deprecated: true description: A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. + deprecated: true x-glean-deprecated: id: e55ddf30-7c47-43a5-b775-d78f8b29411a introduced: "2026-02-05" @@ -7181,91 +7979,90 @@ components: snippet: snippet mimeType: mimeType StructuredResult: - description: A single object that can support any object in the work graph. Only a single object will be populated. properties: document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' customer: - $ref: "#/components/schemas/Customer" + $ref: '#/components/schemas/Customer' team: - $ref: "#/components/schemas/Team" + $ref: '#/components/schemas/Team' customEntity: - $ref: "#/components/schemas/CustomEntity" + $ref: '#/components/schemas/CustomEntity' answer: - $ref: "#/components/schemas/Answer" + $ref: '#/components/schemas/Answer' generatedQna: - $ref: "#/components/schemas/GeneratedQna" + $ref: '#/components/schemas/GeneratedQna' extractedQnA: - $ref: "#/components/schemas/ExtractedQnA" + $ref: '#/components/schemas/ExtractedQnA' meeting: - $ref: "#/components/schemas/Meeting" + $ref: '#/components/schemas/Meeting' app: - $ref: "#/components/schemas/AppResult" + $ref: '#/components/schemas/AppResult' collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' code: - $ref: "#/components/schemas/Code" + $ref: '#/components/schemas/Code' shortcut: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' querySuggestions: - $ref: "#/components/schemas/QuerySuggestionList" + $ref: '#/components/schemas/QuerySuggestionList' chat: - $ref: "#/components/schemas/ChatMetadata" + $ref: '#/components/schemas/ChatMetadata' relatedDocuments: type: array items: - $ref: "#/components/schemas/RelatedDocuments" + $ref: '#/components/schemas/RelatedDocuments' description: A list of documents related to this structured result. relatedQuestion: - $ref: "#/components/schemas/RelatedQuestion" + $ref: '#/components/schemas/RelatedQuestion' disambiguation: - $ref: "#/components/schemas/Disambiguation" + $ref: '#/components/schemas/Disambiguation' snippets: - description: Any snippets associated to the populated object. type: array items: - $ref: "#/components/schemas/SearchResultSnippet" + $ref: '#/components/schemas/SearchResultSnippet' + description: Any snippets associated to the populated object. trackingToken: type: string description: An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. prominence: type: string + enum: + - HERO + - PROMOTED + - STANDARD description: The level of visual distinction that should be given to a result. x-enumDescriptions: HERO: A high-confidence result that should feature prominently on the page. PROMOTED: May not be the best result but should be given additional visual distinction. STANDARD: Should not be distinct from any other results. - enum: - - HERO - - PROMOTED - - STANDARD x-speakeasy-enum-descriptions: HERO: A high-confidence result that should feature prominently on the page. PROMOTED: May not be the best result but should be given additional visual distinction. STANDARD: Should not be distinct from any other results. source: type: string - description: Source context for this result. Possible values depend on the result type. enum: - EXPERT_DETECTION - ENTITY_NLQ - CALENDAR_EVENT - AGENT + description: Source context for this result. Possible values depend on the result type. + description: A single object that can support any object in the work graph. Only a single object will be populated. Result: properties: structuredResults: type: array - description: An array of entities in the work graph retrieved via a data request. items: - $ref: "#/components/schemas/StructuredResult" + $ref: '#/components/schemas/StructuredResult' + description: An array of entities in the work graph retrieved via a data request. trackingToken: type: string description: An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. ClusterTypeEnum: type: string - description: The reason for inclusion of clusteredResults. enum: - SIMILAR - FRESHNESS @@ -7278,32 +8075,33 @@ components: - SUFFIX - AUTHOR_PREFIX - AUTHOR_SUFFIX + description: The reason for inclusion of clusteredResults. ClusterGroup: - required: - - visibleCountHint properties: clusteredResults: type: array - description: A list of results that should be displayed as associated with this result. items: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' + description: A list of results that should be displayed as associated with this result. clusterType: - $ref: "#/components/schemas/ClusterTypeEnum" + $ref: '#/components/schemas/ClusterTypeEnum' visibleCountHint: type: integer description: The default number of results to display before truncating and showing a "see more" link + required: + - visibleCountHint SearchResultProminenceEnum: type: string + enum: + - HERO + - PROMOTED + - STANDARD description: | The level of visual distinction that should be given to a result. x-enumDescriptions: HERO: A high-confidence result that should feature prominently on the page. PROMOTED: May not be the best result but should be given additional visual distinction. STANDARD: Should not be distinct from any other results. - enum: - - HERO - - PROMOTED - - STANDARD x-speakeasy-enum-descriptions: HERO: A high-confidence result that should feature prominently on the page. PROMOTED: May not be the best result but should be given additional visual distinction. @@ -7312,20 +8110,18 @@ components: properties: queries: type: array - description: The query strings for which the pinned result will show. items: type: string + description: The query strings for which the pinned result will show. audienceFilters: type: array - description: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' + description: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. PinDocument: allOf: - - $ref: "#/components/schemas/PinDocumentMutableProperties" + - $ref: '#/components/schemas/PinDocumentMutableProperties' - type: object - required: - - documentId properties: id: type: string @@ -7335,21 +8131,22 @@ components: description: The document which should be a pinned result. audienceFilters: type: array - description: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' + description: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. attribution: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' updatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTime: type: string format: date-time updateTime: type: string format: date-time + required: + - documentId PersonTeam: - description: Use `id` if you index teams via Glean, and use `name` and `externalLink` if you want to use your own team pages properties: id: type: string @@ -7363,21 +8160,21 @@ components: description: Link to a team page on the internet or your company's intranet relationship: type: string - description: The team member's relationship to the team. This defaults to MEMBER if not set. - default: MEMBER enum: - MEMBER - MANAGER - LEAD - POINT_OF_CONTACT - OTHER + description: The team member's relationship to the team. This defaults to MEMBER if not set. + default: MEMBER joinDate: type: string format: date-time description: The team member's start date + description: Use `id` if you index teams via Glean, and use `name` and `externalLink` if you want to use your own team pages StructuredLocation: type: object - description: Detailed location with information about country, state, city etc. properties: deskLocation: type: string @@ -7406,10 +8203,8 @@ components: countryCode: type: string description: Alpha-2 or Alpha-3 ISO 3166 country code, e.g. US or USA. + description: Detailed location with information about country, state, city etc. SocialNetwork: - required: - - name - - profileUrl properties: name: type: string @@ -7421,11 +8216,10 @@ components: type: string format: url description: Link to profile. - PersonDistance: required: - name - - obfuscatedId - - distance + - profileUrl + PersonDistance: properties: name: type: string @@ -7437,23 +8231,26 @@ components: type: number format: float description: Distance to person, refer to PeopleDistance pipeline on interpretation of the value. + required: + - name + - obfuscatedId + - distance CommunicationChannel: type: string enum: - COMMUNICATION_CHANNEL_EMAIL - COMMUNICATION_CHANNEL_SLACK ChannelInviteInfo: - description: Information regarding the invite status of a person for a particular channel. properties: channel: + $ref: '#/components/schemas/CommunicationChannel' description: Channel through which the invite was sent - $ref: "#/components/schemas/CommunicationChannel" isAutoInvite: - description: Bit that tracks if this invite was automatically sent or user-sent type: boolean + description: Bit that tracks if this invite was automatically sent or user-sent inviter: + $ref: '#/components/schemas/Person' description: The person that invited this person. - $ref: "#/components/schemas/Person" inviteTime: type: string format: date-time @@ -7462,8 +8259,8 @@ components: type: string format: date-time description: The time this person was reminded in ISO format (ISO 8601) if a reminder was sent. + description: Information regarding the invite status of a person for a particular channel. InviteInfo: - description: Information regarding the invite status of a person. properties: signUpTime: type: string @@ -7472,12 +8269,12 @@ components: invites: type: array items: - $ref: "#/components/schemas/ChannelInviteInfo" + $ref: '#/components/schemas/ChannelInviteInfo' description: Latest invites received by the user for each channel inviter: - deprecated: true + $ref: '#/components/schemas/Person' description: The person that invited this person. - $ref: "#/components/schemas/Person" + deprecated: true x-glean-deprecated: id: 1d3cd23f-9085-4378-b466-9bdc2e344a71 introduced: "2026-02-05" @@ -7485,10 +8282,10 @@ components: removal: "2026-10-15" x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use ChannelInviteInfo instead" inviteTime: - deprecated: true type: string format: date-time description: The time this person was invited in ISO format (ISO 8601). + deprecated: true x-glean-deprecated: id: 2dc3f572-cded-483d-af07-fc9fc7fd0ae4 introduced: "2026-02-05" @@ -7496,51 +8293,49 @@ components: removal: "2026-10-15" x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use ChannelInviteInfo instead" reminderTime: - deprecated: true type: string format: date-time description: The time this person was reminded in ISO format (ISO 8601) if a reminder was sent. + deprecated: true x-glean-deprecated: id: d02d58cf-eb90-45d0-ab90-f7a9d707ae3c introduced: "2026-02-05" message: Use ChannelInviteInfo instead removal: "2026-10-15" x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use ChannelInviteInfo instead" + description: Information regarding the invite status of a person. ReadPermission: - description: Describes the read permission level that a user has for a specific feature properties: scopeType: - $ref: "#/components/schemas/ScopeType" + $ref: '#/components/schemas/ScopeType' + description: Describes the read permission level that a user has for a specific feature ReadPermissions: - description: Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject additionalProperties: type: array - description: List of read permissions (for different scopes but same feature) items: - $ref: "#/components/schemas/ReadPermission" + $ref: '#/components/schemas/ReadPermission' + description: List of read permissions (for different scopes but same feature) + description: Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject WritePermissions: - description: Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject additionalProperties: type: array - description: List of write permissions (for different scopes but same feature) items: - $ref: "#/components/schemas/WritePermission" + $ref: '#/components/schemas/WritePermission' + description: List of write permissions (for different scopes but same feature) + description: Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject GrantPermission: - description: Describes the grant permission level that a user has for a specific feature properties: scopeType: - $ref: "#/components/schemas/ScopeType" + $ref: '#/components/schemas/ScopeType' + description: Describes the grant permission level that a user has for a specific feature GrantPermissions: - description: Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject additionalProperties: type: array - description: List of grant permissions (for different scopes but same feature) items: - $ref: "#/components/schemas/GrantPermission" + $ref: '#/components/schemas/GrantPermission' + description: List of grant permissions (for different scopes but same feature) + description: Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject Permissions: - description: |- - Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. properties: canAdminSearch: type: boolean @@ -7552,23 +8347,23 @@ components: type: boolean description: TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features read: - $ref: "#/components/schemas/ReadPermissions" + $ref: '#/components/schemas/ReadPermissions' write: - $ref: "#/components/schemas/WritePermissions" + $ref: '#/components/schemas/WritePermissions' grant: - $ref: "#/components/schemas/GrantPermissions" + $ref: '#/components/schemas/GrantPermissions' role: type: string description: The roleId of the canonical role a user has. The displayName is equal to the roleId. roles: type: array - description: The roleIds of the roles a user has. items: type: string + description: The roleIds of the roles a user has. + description: |- + Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. + When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. TimeInterval: - required: - - start - - end properties: start: type: string @@ -7576,21 +8371,23 @@ components: end: type: string description: The RFC3339 timestamp formatted end time of this event. + required: + - start + - end AnonymousEvent: - description: A generic, light-weight calendar event. type: object properties: time: - $ref: "#/components/schemas/TimeInterval" + $ref: '#/components/schemas/TimeInterval' eventType: - description: The nature of the event, for example "out of office". type: string enum: - DEFAULT - OUT_OF_OFFICE + description: The nature of the event, for example "out of office". + description: A generic, light-weight calendar event. Badge: type: object - description: Displays a user's accomplishment or milestone properties: key: type: string @@ -7599,10 +8396,11 @@ components: type: string description: The badge name displayed to users iconConfig: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' pinned: type: boolean description: The badge should be shown on the PersonAttribution + description: Displays a user's accomplishment or milestone example: key: deployment_name_new_hire displayName: New hire @@ -7615,17 +8413,17 @@ components: properties: type: type: string - x-enumDescriptions: - FULL_TIME: The person is a current full-time employee of the company. - CONTRACTOR: The person is a current contractor of the company. - NON_EMPLOYEE: The person object represents a non-human actor such as a service or admin account. - FORMER_EMPLOYEE: The person is a previous employee of the company. enum: - FULL_TIME - CONTRACTOR - NON_EMPLOYEE - FORMER_EMPLOYEE example: FULL_TIME + x-enumDescriptions: + FULL_TIME: The person is a current full-time employee of the company. + CONTRACTOR: The person is a current contractor of the company. + NON_EMPLOYEE: The person object represents a non-human actor such as a service or admin account. + FORMER_EMPLOYEE: The person is a previous employee of the company. x-speakeasy-enum-descriptions: FULL_TIME: The person is a current full-time employee of the company. CONTRACTOR: The person is a current contractor of the company. @@ -7647,10 +8445,10 @@ components: type: string description: An organizational unit where everyone has a similar task, e.g. `Engineering`. teams: - description: Info about the employee's team(s). type: array items: - $ref: "#/components/schemas/PersonTeam" + $ref: '#/components/schemas/PersonTeam' + description: Info about the employee's team(s). departmentCount: type: integer description: The number of people in this person's department. @@ -7659,24 +8457,24 @@ components: description: The user's primary email address aliasEmails: type: array - description: Additional email addresses of this user beyond the primary, if any. items: type: string + description: Additional email addresses of this user beyond the primary, if any. location: type: string description: User facing string representing the person's location. structuredLocation: - $ref: "#/components/schemas/StructuredLocation" + $ref: '#/components/schemas/StructuredLocation' externalProfileLink: type: string description: Link to a customer's internal profile page. This is set to '#' when no link is desired. manager: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' managementChain: - description: The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' + description: The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. phone: type: string description: Phone number as a number string. @@ -7705,11 +8503,11 @@ components: reports: type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' startDate: type: string - description: The date when the employee started. format: date + description: The date when the employee started. endDate: type: string format: date @@ -7730,24 +8528,24 @@ components: type: string description: The preferred name of the person, or a nickname. socialNetwork: - description: List of social network profiles. type: array items: - $ref: "#/components/schemas/SocialNetwork" + $ref: '#/components/schemas/SocialNetwork' + description: List of social network profiles. datasourceProfile: type: array - description: List of profiles this user has in different datasources / tools that they use. items: - $ref: "#/components/schemas/DatasourceProfile" + $ref: '#/components/schemas/DatasourceProfile' + description: List of profiles this user has in different datasources / tools that they use. querySuggestions: - $ref: "#/components/schemas/QuerySuggestionList" + $ref: '#/components/schemas/QuerySuggestionList' peopleDistance: type: array items: - $ref: "#/components/schemas/PersonDistance" + $ref: '#/components/schemas/PersonDistance' description: List of people and distances to those people from this person. Optionally with metadata. inviteInfo: - $ref: "#/components/schemas/InviteInfo" + $ref: '#/components/schemas/InviteInfo' isSignedUp: type: boolean description: Whether the user has signed into Glean at least once. @@ -7756,12 +8554,12 @@ components: format: date-time description: The last time the user has used the Glean extension in ISO 8601 format. permissions: - $ref: "#/components/schemas/Permissions" + $ref: '#/components/schemas/Permissions' customFields: type: array - description: User customizable fields for additional people information. items: - $ref: "#/components/schemas/CustomFieldData" + $ref: '#/components/schemas/CustomFieldData' + description: User customizable fields for additional people information. loggingId: type: string description: The logging id of the person used in scrubbed logs, tracking GA metrics. @@ -7772,7 +8570,7 @@ components: busyEvents: type: array items: - $ref: "#/components/schemas/AnonymousEvent" + $ref: '#/components/schemas/AnonymousEvent' description: Intervals of busy time for this person, along with the type of event they're busy with. profileBoolSettings: type: object @@ -7782,7 +8580,7 @@ components: badges: type: array items: - $ref: "#/components/schemas/Badge" + $ref: '#/components/schemas/Badge' description: The badges that a user has earned over their lifetime. isOrgRoot: type: boolean @@ -7797,6 +8595,13 @@ components: title: Actor DocumentVisibility: type: string + enum: + - PRIVATE + - SPECIFIC_PEOPLE_AND_GROUPS + - DOMAIN_LINK + - DOMAIN_VISIBLE + - PUBLIC_LINK + - PUBLIC_VISIBLE description: The level of visibility of the document as understood by our system. x-enumDescriptions: PRIVATE: Only one person is able to see the document. @@ -7805,13 +8610,6 @@ components: DOMAIN_VISIBLE: Anyone in the domain can search for the document. PUBLIC_LINK: Anyone with the link can see the document. PUBLIC_VISIBLE: Anyone on the internet can search for the document. - enum: - - PRIVATE - - SPECIFIC_PEOPLE_AND_GROUPS - - DOMAIN_LINK - - DOMAIN_VISIBLE - - PUBLIC_LINK - - PUBLIC_VISIBLE x-speakeasy-enum-descriptions: PRIVATE: Only one person is able to see the document. SPECIFIC_PEOPLE_AND_GROUPS: Only specific people and/or groups can see the document. @@ -7829,22 +8627,22 @@ components: reactors: type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' reactedByViewer: type: boolean description: Whether the user in context reacted with this type to the document. Share: - description: Search endpoint will only fill out numDays ago since that's all we need to display shared badge; docmetadata endpoint will fill out all the fields so that we can display shared badge tooltip - required: - - numDaysAgo properties: numDaysAgo: type: integer description: The number of days that has passed since the share happened sharer: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' sharingDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' + required: + - numDaysAgo + description: Search endpoint will only fill out numDays ago since that's all we need to display shared badge; docmetadata endpoint will fill out all the fields so that we can display shared badge tooltip DocumentInteractions: properties: numComments: @@ -7855,10 +8653,10 @@ components: description: The count of reactions on the document. reactions: type: array - description: To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. - deprecated: true items: type: string + description: To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + deprecated: true x-glean-deprecated: id: cd754845-6eec-480f-b395-c93478aff563 introduced: "2026-02-05" @@ -7868,14 +8666,14 @@ components: reacts: type: array items: - $ref: "#/components/schemas/Reaction" + $ref: '#/components/schemas/Reaction' shares: type: array items: - $ref: "#/components/schemas/Share" + $ref: '#/components/schemas/Share' description: Describes instances of someone posting a link to this document in one of our indexed datasources. visitorCount: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' ViewerInfo: properties: role: @@ -7899,13 +8697,13 @@ components: IndexStatus: properties: lastCrawledTime: - description: When the document was last crawled type: string format: date-time + description: When the document was last crawled lastIndexedTime: - description: When the document was last indexed type: string format: date-time + description: When the document was last indexed DocumentMetadata: properties: datasource: @@ -7946,21 +8744,21 @@ components: type: string format: date-time author: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' owner: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' mentionedPeople: type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' description: A list of people mentioned in the document. visibility: - $ref: "#/components/schemas/DocumentVisibility" + $ref: '#/components/schemas/DocumentVisibility' components: type: array - description: A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) items: type: string + description: A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) status: type: string description: The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). @@ -7969,64 +8767,64 @@ components: description: The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. pins: type: array - description: A list of stars associated with this result. "Pin" is an older name. items: - $ref: "#/components/schemas/PinDocument" + $ref: '#/components/schemas/PinDocument' + description: A list of stars associated with this result. "Pin" is an older name. priority: type: string description: The document priority. Interpretation is datasource specific. assignedTo: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' updatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' labels: type: array - description: A list of tags for the document. Interpretation is datasource specific. items: type: string + description: A list of tags for the document. Interpretation is datasource specific. collections: type: array - description: A list of collections that the document belongs to. items: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' + description: A list of collections that the document belongs to. datasourceId: type: string description: The user-visible datasource specific id (e.g. Salesforce case number for example, GitHub PR number). interactions: - $ref: "#/components/schemas/DocumentInteractions" + $ref: '#/components/schemas/DocumentInteractions' verification: - $ref: "#/components/schemas/Verification" + $ref: '#/components/schemas/Verification' viewerInfo: - $ref: "#/components/schemas/ViewerInfo" + $ref: '#/components/schemas/ViewerInfo' permissions: - $ref: "#/components/schemas/ObjectPermissions" + $ref: '#/components/schemas/ObjectPermissions' visitCount: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' shortcuts: type: array - description: A list of shortcuts of which destination URL is for the document. items: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' + description: A list of shortcuts of which destination URL is for the document. path: type: string description: For file datasources like onedrive/github etc this has the path to the file customData: - $ref: "#/components/schemas/CustomData" + $ref: '#/components/schemas/CustomData' documentCategory: type: string description: The document's document_category(.proto). contactPerson: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' thumbnail: - $ref: "#/components/schemas/Thumbnail" + $ref: '#/components/schemas/Thumbnail' description: A thumbnail image representing this document. indexStatus: - $ref: "#/components/schemas/IndexStatus" + $ref: '#/components/schemas/IndexStatus' ancestors: type: array - description: A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. items: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' + description: A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. example: container: container parentId: JIRA_EN-1337 @@ -8060,14 +8858,14 @@ components: type: string example: https://en.wikipedia.org/wiki/Diffuse_sky_radiation document: - deprecated: true + $ref: '#/components/schemas/Document' description: Deprecated. To be gradually migrated to structuredResult. - $ref: "#/components/schemas/Document" + deprecated: true text: type: string example: Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue. structuredResult: - $ref: "#/components/schemas/StructuredResult" + $ref: '#/components/schemas/StructuredResult' AnnouncementMutableProperties: properties: startTime: @@ -8082,20 +8880,20 @@ components: type: string description: The headline of the announcement. body: - $ref: "#/components/schemas/StructuredText" + $ref: '#/components/schemas/StructuredText' emoji: type: string description: An emoji used to indicate the nature of the announcement. thumbnail: - $ref: "#/components/schemas/Thumbnail" + $ref: '#/components/schemas/Thumbnail' banner: - $ref: "#/components/schemas/Thumbnail" + $ref: '#/components/schemas/Thumbnail' description: Optional variant of thumbnail cropped for header background. audienceFilters: type: array - description: Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' + description: Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. sourceDocumentId: type: string description: The Glean Document ID of the source document this Announcement was created from (e.g. Slack thread). @@ -8122,7 +8920,7 @@ components: description: URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". CreateAnnouncementRequest: allOf: - - $ref: "#/components/schemas/AnnouncementMutableProperties" + - $ref: '#/components/schemas/AnnouncementMutableProperties' - type: object required: - title @@ -8137,17 +8935,17 @@ components: draftId: 342 Announcement: allOf: - - $ref: "#/components/schemas/AnnouncementMutableProperties" - - $ref: "#/components/schemas/DraftProperties" - - $ref: "#/components/schemas/PermissionedObject" - - $ref: "#/components/schemas/UgcTrackingSignals" + - $ref: '#/components/schemas/AnnouncementMutableProperties' + - $ref: '#/components/schemas/DraftProperties' + - $ref: '#/components/schemas/PermissionedObject' + - $ref: '#/components/schemas/UgcTrackingSignals' - type: object properties: id: type: integer description: The opaque id of the announcement. author: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTimestamp: type: integer description: Server Unix timestamp of the creation time (in seconds since epoch UTC). @@ -8155,7 +8953,7 @@ components: type: integer description: Server Unix timestamp of the last update time (in seconds since epoch UTC). updatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' viewerInfo: type: object properties: @@ -8166,31 +8964,31 @@ components: type: boolean description: Whether the viewer has read the announcement. sourceDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: The source document if the announcement is created from one. isPublished: type: boolean description: Whether or not the announcement is published. DeleteAnnouncementRequest: - required: - - id properties: id: type: integer description: The opaque id of the announcement to be deleted. + required: + - id UpdateAnnouncementRequest: allOf: - - $ref: "#/components/schemas/AnnouncementMutableProperties" + - $ref: '#/components/schemas/AnnouncementMutableProperties' - type: object + properties: + id: + type: integer + description: The opaque id of the announcement. required: - id - title - startTime - endTime - properties: - id: - type: integer - description: The opaque id of the announcement. AddedCollections: properties: addedCollections: @@ -8200,22 +8998,22 @@ components: description: IDs of Collections to which a document is added. AnswerCreationData: allOf: - - $ref: "#/components/schemas/AnswerMutableProperties" - - $ref: "#/components/schemas/AddedCollections" + - $ref: '#/components/schemas/AnswerMutableProperties' + - $ref: '#/components/schemas/AddedCollections' - type: object properties: combinedAnswerText: - $ref: "#/components/schemas/StructuredTextMutableProperties" + $ref: '#/components/schemas/StructuredTextMutableProperties' CreateAnswerRequest: - required: - - data properties: data: - $ref: "#/components/schemas/AnswerCreationData" + $ref: '#/components/schemas/AnswerCreationData' + required: + - data DeleteAnswerRequest: allOf: - - $ref: "#/components/schemas/AnswerId" - - $ref: "#/components/schemas/AnswerDocId" + - $ref: '#/components/schemas/AnswerId' + - $ref: '#/components/schemas/AnswerDocId' - type: object required: - id @@ -8228,27 +9026,25 @@ components: description: IDs of Collections from which a document is removed. EditAnswerRequest: allOf: - - $ref: "#/components/schemas/AnswerId" - - $ref: "#/components/schemas/AnswerDocId" - - $ref: "#/components/schemas/AnswerMutableProperties" - - $ref: "#/components/schemas/AddedCollections" - - $ref: "#/components/schemas/RemovedCollections" + - $ref: '#/components/schemas/AnswerId' + - $ref: '#/components/schemas/AnswerDocId' + - $ref: '#/components/schemas/AnswerMutableProperties' + - $ref: '#/components/schemas/AddedCollections' + - $ref: '#/components/schemas/RemovedCollections' - type: object - required: - - id properties: combinedAnswerText: - $ref: "#/components/schemas/StructuredTextMutableProperties" + $ref: '#/components/schemas/StructuredTextMutableProperties' + required: + - id GetAnswerRequest: allOf: - - $ref: "#/components/schemas/AnswerId" - - $ref: "#/components/schemas/AnswerDocId" + - $ref: '#/components/schemas/AnswerId' + - $ref: '#/components/schemas/AnswerDocId' AnswerResult: - required: - - answer properties: answer: - $ref: "#/components/schemas/Answer" + $ref: '#/components/schemas/Answer' trackingToken: type: string description: Use `answer.trackingToken` instead. @@ -8259,6 +9055,8 @@ components: message: Use `answer.trackingToken` instead. removal: "2027-01-15" x-speakeasy-deprecation-message: "Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead." + required: + - answer GetAnswerError: properties: errorType: @@ -8267,37 +9065,37 @@ components: - NO_PERMISSION - INVALID_ID answerAuthor: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' GetAnswerResponse: properties: answerResult: - $ref: "#/components/schemas/AnswerResult" + $ref: '#/components/schemas/AnswerResult' error: - $ref: "#/components/schemas/GetAnswerError" + $ref: '#/components/schemas/GetAnswerError' ListAnswersRequest: properties: boardId: type: integer description: The Answer Board Id to list answers on. ListAnswersResponse: - required: - - answers - - answerResults properties: answerResults: type: array items: - $ref: "#/components/schemas/AnswerResult" + $ref: '#/components/schemas/AnswerResult' description: List of answers with tracking tokens. + required: + - answers + - answerResults AuthStatus: type: string - description: The per-user authorization status for a datasource. enum: - DISABLED - AWAITING_AUTH - AUTHORIZED - STALE_OAUTH - SEG_MIGRATION + description: The per-user authorization status for a datasource. x-enum-varnames: - AUTH_STATUS_DISABLED - AUTH_STATUS_AWAITING_AUTH @@ -8305,8 +9103,6 @@ components: - AUTH_STATUS_STALE_OAUTH - AUTH_STATUS_SEG_MIGRATION UnauthorizedDatasourceInstance: - description: | - A datasource instance that could not return results for this request because the user has not completed or has expired per-user OAuth. properties: datasourceInstance: type: string @@ -8318,48 +9114,56 @@ components: description: Human-readable name of the datasource instance for display. example: Slack authStatus: - $ref: "#/components/schemas/AuthStatus" + $ref: '#/components/schemas/AuthStatus' authUrlRelativePath: type: string description: | Relative path to initiate or resume OAuth for the current user and instance, including a one-time authentication token as a query parameter. Clients should prepend their configured Glean backend base URL. + description: | + A datasource instance that could not return results for this request because the user has not completed or has expired per-user OAuth. CheckDatasourceAuthResponse: - required: - - unauthorizedDatasourceInstances properties: unauthorizedDatasourceInstances: type: array + items: + $ref: '#/components/schemas/UnauthorizedDatasourceInstance' description: | Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized. - items: - $ref: "#/components/schemas/UnauthorizedDatasourceInstance" - CreateAuthTokenResponse: required: - - token - - expirationTime + - unauthorizedDatasourceInstances + CreateAuthTokenResponse: properties: token: type: string description: An authentication token that can be passed to any endpoint via Bearer Authentication expirationTime: - description: Unix timestamp for when this token expires (in seconds since epoch UTC). type: integer format: int64 + description: Unix timestamp for when this token expires (in seconds since epoch UTC). + required: + - token + - expirationTime ToolSets: type: object - description: The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values properties: enableWebSearch: type: boolean - description: "Whether the agent is allowed to use web search (default: true)." + description: 'Whether the agent is allowed to use web search (default: true).' enableCompanyTools: type: boolean - description: "Whether the agent is allowed to search internal company resources (default: true)." + description: 'Whether the agent is allowed to search internal company resources (default: true).' + description: The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values AgentConfig: - description: Describes the agent that executes the request. properties: agent: type: string + enum: + - DEFAULT + - GPT + - UNIVERSAL + - FAST + - ADVANCED + - AUTO description: Name of the agent. x-enumDescriptions: DEFAULT: Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values @@ -8368,13 +9172,6 @@ components: FAST: Uses an agent powered by the agentic engine that responds faster but may have lower quality results. Requires the agentic engine to be enabled in the deployment. ADVANCED: Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment. AUTO: Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. - enum: - - DEFAULT - - GPT - - UNIVERSAL - - FAST - - ADVANCED - - AUTO x-speakeasy-enum-descriptions: DEFAULT: Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values GPT: Communicates directly with the LLM. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values @@ -8383,36 +9180,35 @@ components: ADVANCED: Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment. AUTO: Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. toolSets: - $ref: "#/components/schemas/ToolSets" + $ref: '#/components/schemas/ToolSets' mode: type: string + enum: + - DEFAULT + - QUICK description: Top level modes to run GleanChat in. x-enumDescriptions: DEFAULT: Used if no mode supplied. QUICK: Deprecated. - enum: - - DEFAULT - - QUICK x-speakeasy-enum-descriptions: DEFAULT: Used if no mode supplied. QUICK: Deprecated. useImageGeneration: type: boolean description: Whether the agent should create an image. + description: Describes the agent that executes the request. ChatFileStatus: type: string - description: Current status of the file. - x-include-enum-class-prefix: true enum: - PROCESSING - PROCESSED - PARTIALLY_PROCESSED - FAILED - DELETED + description: Current status of the file. + x-include-enum-class-prefix: true ChatFileFailureReason: type: string - description: Reason for failed status. - x-include-enum-class-prefix: true enum: - PARSE_FAILED - AV_SCAN_FAILED @@ -8425,12 +9221,13 @@ components: - URL_FETCH_FAILED - EMPTY_CONTENT - AUTH_REQUIRED + description: Reason for failed status. + x-include-enum-class-prefix: true ChatFileMetadata: type: object - description: Metadata of a file uploaded by a user for Chat. properties: status: - $ref: "#/components/schemas/ChatFileStatus" + $ref: '#/components/schemas/ChatFileStatus' uploadTime: type: integer format: int64 @@ -8440,13 +9237,13 @@ components: format: int64 description: Size of the processed file in bytes. failureReason: - $ref: "#/components/schemas/ChatFileFailureReason" + $ref: '#/components/schemas/ChatFileFailureReason' mimeType: - description: MIME type of the file. type: string + description: MIME type of the file. + description: Metadata of a file uploaded by a user for Chat. ChatFile: type: object - description: Structure for file uploaded by a user for Chat. properties: id: type: string @@ -8461,38 +9258,39 @@ components: description: Name of the uploaded file. example: sample.pdf metadata: - $ref: "#/components/schemas/ChatFileMetadata" + $ref: '#/components/schemas/ChatFileMetadata' + description: Structure for file uploaded by a user for Chat. ReferenceRange: - description: Each text range from the response can correspond to an array of snippets from the citation source. properties: textRange: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' snippets: type: array items: - $ref: "#/components/schemas/SearchResultSnippet" + $ref: '#/components/schemas/SearchResultSnippet' + description: Each text range from the response can correspond to an array of snippets from the citation source. ChatMessageCitation: - description: Information about the source for a ChatMessage. properties: trackingToken: type: string description: An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. sourceDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' sourceFile: - $ref: "#/components/schemas/ChatFile" + $ref: '#/components/schemas/ChatFile' sourcePerson: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' sourceCustomEntity: - $ref: "#/components/schemas/CustomEntity" + $ref: '#/components/schemas/CustomEntity' referenceRanges: - description: Each reference range and its corresponding snippets type: array items: - $ref: "#/components/schemas/ReferenceRange" + $ref: '#/components/schemas/ReferenceRange' + description: Each reference range and its corresponding snippets + description: Information about the source for a ChatMessage. displayName: - description: Human understandable name of the tool. Max 50 characters. type: string + description: Human understandable name of the tool. Max 50 characters. logoUrl: type: string description: URL used to fetch the logo. @@ -8504,9 +9302,6 @@ components: - Email - Chat message PersonObject: - required: - - name - - obfuscatedId properties: name: type: string @@ -8514,8 +9309,10 @@ components: obfuscatedId: type: string description: An opaque identifier that can be used to request metadata for a Person. + required: + - name + - obfuscatedId AuthConfig: - description: Config for tool's authentication method. type: object properties: isOnPrem: @@ -8547,11 +9344,11 @@ components: description: The type of grant type being used. status: type: string - description: Auth status of the tool. enum: - AWAITING_AUTH - AUTHORIZED - AUTH_DISABLED + description: Auth status of the tool. client_url: type: string format: url @@ -8585,46 +9382,41 @@ components: type: string format: date-time description: The time the tool was last authorized in ISO format (ISO 8601). + description: Config for tool's authentication method. ToolMetadata: - description: The manifest for a tool that can be used to augment Glean Assistant. - required: - - type - - name - - displayName - - displayDescription properties: type: - description: The type of tool. type: string enum: - RETRIEVAL - ACTION + description: The type of tool. name: - description: Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. type: string + description: Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. displayName: - $ref: "#/components/schemas/displayName" + $ref: '#/components/schemas/displayName' toolId: type: string description: An opaque id which is unique identifier for the tool. displayDescription: - description: Description of the tool meant for a human. type: string + description: Description of the tool meant for a human. logoUrl: - $ref: "#/components/schemas/logoUrl" + $ref: '#/components/schemas/logoUrl' objectName: - $ref: "#/components/schemas/objectName" + $ref: '#/components/schemas/objectName' knowledgeType: type: string - description: Indicates the kind of knowledge a tool would access or modify. enum: - NEUTRAL_KNOWLEDGE - COMPANY_KNOWLEDGE - WORLD_KNOWLEDGE + description: Indicates the kind of knowledge a tool would access or modify. createdBy: - $ref: "#/components/schemas/PersonObject" + $ref: '#/components/schemas/PersonObject' lastUpdatedBy: - $ref: "#/components/schemas/PersonObject" + $ref: '#/components/schemas/PersonObject' createdAt: type: string format: date-time @@ -8635,11 +9427,11 @@ components: description: The time the tool was last updated in ISO format (ISO 8601) writeActionType: type: string - description: Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. MCP - Send a tools/call request to an MCP server to execute the action. enum: - REDIRECT - EXECUTION - MCP + description: Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. MCP - Send a tools/call request to an MCP server to execute the action. authType: type: string enum: @@ -8656,20 +9448,25 @@ components: 'OAUTH_USER' uses individual user tokens for external API calls. 'DWD' refers to domain wide delegation. auth: + $ref: '#/components/schemas/AuthConfig' deprecated: true - $ref: "#/components/schemas/AuthConfig" permissions: + $ref: '#/components/schemas/ObjectPermissions' deprecated: true - $ref: "#/components/schemas/ObjectPermissions" usageInstructions: - description: Usage instructions for the LLM to use this action. type: string + description: Usage instructions for the LLM to use this action. isSetupFinished: type: boolean description: Whether this action has been fully configured and validated. + required: + - type + - name + - displayName + - displayDescription + description: The manifest for a tool that can be used to augment Glean Assistant. PossibleValue: type: object - description: Possible value of a specific parameter properties: value: type: string @@ -8677,17 +9474,18 @@ components: label: type: string description: User-friendly label associated with the value + description: Possible value of a specific parameter WriteActionParameter: type: object properties: type: type: string - description: The type of the value (e.g., integer, string, boolean, etc.) enum: - UNKNOWN - INTEGER - STRING - BOOLEAN + description: The type of the value (e.g., integer, string, boolean, etc.) displayName: type: string description: Human readable display name for the key. @@ -8703,54 +9501,53 @@ components: possibleValues: type: array items: - $ref: "#/components/schemas/PossibleValue" + $ref: '#/components/schemas/PossibleValue' description: Possible values that the parameter can take. ToolInfo: type: object properties: metadata: - $ref: "#/components/schemas/ToolMetadata" + $ref: '#/components/schemas/ToolMetadata' parameters: type: object - description: Parameters supported by the tool. additionalProperties: - $ref: "#/components/schemas/WriteActionParameter" + $ref: '#/components/schemas/WriteActionParameter' + description: Parameters supported by the tool. ChatMessageFragment: - description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. allOf: - - $ref: "#/components/schemas/Result" + - $ref: '#/components/schemas/Result' - type: object properties: text: type: string querySuggestion: + $ref: '#/components/schemas/QuerySuggestion' description: The search queries issued while responding. - $ref: "#/components/schemas/QuerySuggestion" file: + $ref: '#/components/schemas/ChatFile' description: Files referenced in the message fragment. This is used to construct rich-text messages with file references. - $ref: "#/components/schemas/ChatFile" action: + $ref: '#/components/schemas/ToolInfo' description: Basic information about an action. This can be used to construct rich-text messages with action references. - $ref: "#/components/schemas/ToolInfo" citation: + $ref: '#/components/schemas/ChatMessageCitation' description: Inline citation. - $ref: "#/components/schemas/ChatMessageCitation" + description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. ChatMessage: - description: A message that is rendered as one coherent unit with one given sender. properties: agentConfig: - $ref: "#/components/schemas/AgentConfig" + $ref: '#/components/schemas/AgentConfig' description: Describes the agent config that generated this message. Populated on responses and not required on requests. author: - default: USER enum: - USER - GLEAN_AI + default: USER citations: type: array items: - $ref: "#/components/schemas/ChatMessageCitation" - description: "Deprecated: Use inline citations via ChatMessageFragment.citation instead. For detailed reference information, use ChatMessageCitation.referenceRanges. This field is still populated for backward compatibility." + $ref: '#/components/schemas/ChatMessageCitation' + description: 'Deprecated: Use inline citations via ChatMessageFragment.citation instead. For detailed reference information, use ChatMessageCitation.referenceRanges. This field is still populated for backward compatibility.' deprecated: true x-glean-deprecated: id: 6446f85e-c90e-4c00-9717-796f9db3dc61 @@ -8765,9 +9562,9 @@ components: description: IDs of files uploaded in the message that are referenced to generate the answer. fragments: type: array - description: A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. items: - $ref: "#/components/schemas/ChatMessageFragment" + $ref: '#/components/schemas/ChatMessageFragment' + description: A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. ts: type: string description: Response timestamp of the message. @@ -8779,8 +9576,24 @@ components: description: Opaque tracking token generated server-side. messageType: type: string - default: CONTENT + enum: + - UPDATE + - CONTENT + - CONTEXT + - CONTROL + - CONTROL_START + - CONTROL_FINISH + - CONTROL_CANCEL + - CONTROL_RETRY + - CONTROL_UNKNOWN + - DEBUG + - DEBUG_EXTERNAL + - ERROR + - HEADING + - WARNING + - SERVER_TOOL description: Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + default: CONTENT x-enumDescriptions: UPDATE: An intermediate state message for progress updates. CONTENT: A user query or response message. @@ -8797,22 +9610,6 @@ components: HEADING: A heading message used to distinguish different sections of the holistic response. WARNING: A warning message to be shown to the user. SERVER_TOOL: A message used to for server-side tool auth/use, for request and response. - enum: - - UPDATE - - CONTENT - - CONTEXT - - CONTROL - - CONTROL_START - - CONTROL_FINISH - - CONTROL_CANCEL - - CONTROL_RETRY - - CONTROL_UNKNOWN - - DEBUG - - DEBUG_EXTERNAL - - ERROR - - HEADING - - WARNING - - SERVER_TOOL x-speakeasy-enum-descriptions: UPDATE: An intermediate state message for progress updates. CONTENT: A user query or response message. @@ -8830,22 +9627,20 @@ components: WARNING: A warning message to be shown to the user. SERVER_TOOL: A message used to for server-side tool auth/use, for request and response. hasMoreFragments: - deprecated: true type: boolean description: Signals there are additional response fragments incoming. + deprecated: true + description: A message that is rendered as one coherent unit with one given sender. ChatRequestBase: - required: - - messages - description: The minimal set of fields that form a chat request. properties: messages: type: array - description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author. items: - $ref: "#/components/schemas/ChatMessage" + $ref: '#/components/schemas/ChatMessage' + description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author. sessionInfo: + $ref: '#/components/schemas/SessionInfo' description: Optional object for tracking the session used by the client and for debugging purposes. - $ref: "#/components/schemas/SessionInfo" saveChat: type: boolean description: Save the current interaction as a Chat for the user to access and potentially continue later. @@ -8853,31 +9648,34 @@ components: type: string description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. agentConfig: - $ref: "#/components/schemas/AgentConfig" + $ref: '#/components/schemas/AgentConfig' description: Describes the agent that will execute the request. + required: + - messages + description: The minimal set of fields that form a chat request. ChatRestrictionFilters: allOf: - - $ref: "#/components/schemas/RestrictionFilters" + - $ref: '#/components/schemas/RestrictionFilters' - type: object properties: documentSpecs: type: array items: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' datasourceInstances: type: array items: type: string ChatRequest: allOf: - - $ref: "#/components/schemas/ChatRequestBase" + - $ref: '#/components/schemas/ChatRequestBase' - type: object properties: inclusions: - $ref: "#/components/schemas/ChatRestrictionFilters" + $ref: '#/components/schemas/ChatRestrictionFilters' description: A list of filters which only allows chat to access certain content. exclusions: - $ref: "#/components/schemas/ChatRestrictionFilters" + $ref: '#/components/schemas/ChatRestrictionFilters' description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded. timeoutMillis: type: integer @@ -8893,17 +9691,16 @@ components: type: boolean description: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. ChatResponse: - description: A single response from the /chat backend. properties: messages: type: array items: - $ref: "#/components/schemas/ChatMessage" + $ref: '#/components/schemas/ChatMessage' chatId: type: string description: The id of the associated Chat the messages belong to, if one exists. chat: - $ref: "#/components/schemas/ChatMetadata" + $ref: '#/components/schemas/ChatMetadata' followUpPrompts: type: array items: @@ -8917,53 +9714,54 @@ components: chatSessionTrackingToken: type: string description: A token that is used to track the session. + description: A single response from the /chat backend. DeleteChatsRequest: - required: - - ids properties: ids: type: array items: type: string description: A non-empty list of ids of the Chats to be deleted. - GetChatRequest: required: - - id + - ids + GetChatRequest: properties: id: type: string description: The id of the Chat to be retrieved. + required: + - id Chat: - description: A historical representation of a series of chat messages a user had with Glean Assistant. allOf: - - $ref: "#/components/schemas/ChatMetadata" - - $ref: "#/components/schemas/PermissionedObject" + - $ref: '#/components/schemas/ChatMetadata' + - $ref: '#/components/schemas/PermissionedObject' properties: messages: type: array items: - $ref: "#/components/schemas/ChatMessage" + $ref: '#/components/schemas/ChatMessage' description: The chat messages within a Chat. roles: type: array items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' description: A list of roles for this Chat. + description: A historical representation of a series of chat messages a user had with Glean Assistant. ChatResult: properties: chat: - $ref: "#/components/schemas/Chat" + $ref: '#/components/schemas/Chat' trackingToken: type: string description: An opaque token that represents this particular Chat. To be used for `/feedback` reporting. GetChatResponse: properties: chatResult: - $ref: "#/components/schemas/ChatResult" + $ref: '#/components/schemas/ChatResult' ChatMetadataResult: properties: chat: - $ref: "#/components/schemas/ChatMetadata" + $ref: '#/components/schemas/ChatMetadata' trackingToken: type: string description: An opaque token that represents this particular Chat. To be used for `/feedback` reporting. @@ -8972,26 +9770,24 @@ components: chatResults: type: array items: - $ref: "#/components/schemas/ChatMetadataResult" + $ref: '#/components/schemas/ChatMetadataResult' x-includeEmpty: true cursor: type: string description: An opaque cursor for fetching the next page of results. If empty, there are no more results. GetChatApplicationRequest: - required: - - id properties: id: type: string description: The id of the Chat application to be retrieved. + required: + - id ChatApplicationDetails: {} GetChatApplicationResponse: properties: application: - $ref: "#/components/schemas/ChatApplicationDetails" + $ref: '#/components/schemas/ChatApplicationDetails' UploadChatFilesRequest: - required: - - files properties: files: type: array @@ -8999,38 +9795,40 @@ components: type: string format: binary description: Raw files to be uploaded for chat in binary format. + required: + - files UploadChatFilesResponse: properties: files: type: array items: - $ref: "#/components/schemas/ChatFile" + $ref: '#/components/schemas/ChatFile' description: Files uploaded for chat. GetChatFilesRequest: - required: - - fileIds properties: fileIds: type: array items: type: string description: IDs of files to fetch. + required: + - fileIds GetChatFilesResponse: properties: files: - description: A map of file IDs to ChatFile structs. type: object additionalProperties: - $ref: "#/components/schemas/ChatFile" + $ref: '#/components/schemas/ChatFile' + description: A map of file IDs to ChatFile structs. DeleteChatFilesRequest: - required: - - fileIds properties: fileIds: type: array items: type: string description: IDs of files to delete. + required: + - fileIds WorkflowDraftableProperties: properties: name: @@ -9039,11 +9837,11 @@ components: WorkflowMutableProperties: type: object allOf: - - $ref: "#/components/schemas/WorkflowDraftableProperties" + - $ref: '#/components/schemas/WorkflowDraftableProperties' - type: object CreateWorkflowRequest: allOf: - - $ref: "#/components/schemas/WorkflowMutableProperties" + - $ref: '#/components/schemas/WorkflowMutableProperties' - type: object properties: transient: @@ -9057,7 +9855,7 @@ components: - type: object properties: author: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTimestamp: type: integer description: Server Unix timestamp of the creation time. @@ -9068,20 +9866,20 @@ components: type: integer description: Server Unix timestamp of the last time the draft was saved. lastDraftSavedBy: + $ref: '#/components/schemas/Person' description: The person who last saved the draft. - $ref: "#/components/schemas/Person" lastDraftGitAuthorId: type: string description: ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API. lastUpdatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' AttributionProperties: {} Workflow: allOf: - - $ref: "#/components/schemas/PermissionedObject" - - $ref: "#/components/schemas/WorkflowMutableProperties" - - $ref: "#/components/schemas/WorkflowMetadata" - - $ref: "#/components/schemas/AttributionProperties" + - $ref: '#/components/schemas/PermissionedObject' + - $ref: '#/components/schemas/WorkflowMutableProperties' + - $ref: '#/components/schemas/WorkflowMetadata' + - $ref: '#/components/schemas/AttributionProperties' - type: object properties: id: @@ -9089,29 +9887,24 @@ components: description: The ID of the workflow. verified: type: boolean - readOnly: true description: When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits. + readOnly: true showOrganizationAsAuthor: type: boolean - readOnly: true description: When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits. + readOnly: true WorkflowResult: type: object - required: - - workflow properties: workflow: - $ref: "#/components/schemas/Workflow" + $ref: '#/components/schemas/Workflow' + required: + - workflow CreateWorkflowResponse: allOf: - - $ref: "#/components/schemas/WorkflowResult" + - $ref: '#/components/schemas/WorkflowResult' Agent: - title: Agent type: object - required: - - agent_id - - name - - capabilities properties: agent_id: type: string @@ -9134,12 +9927,6 @@ components: description: The agent metadata. Currently not implemented. capabilities: type: object - title: Agent Capabilities - description: |- - Describes features that the agent supports. example: { - "ap.io.messages": true, - "ap.io.streaming": true - } properties: ap.io.messages: type: boolean @@ -9149,17 +9936,28 @@ components: type: boolean title: Streaming description: Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + title: Agent Capabilities additionalProperties: true + description: |- + Describes features that the agent supports. example: { + "ap.io.messages": true, + "ap.io.streaming": true + } + title: Agent + required: + - agent_id + - name + - capabilities ErrorResponse: type: object - description: Error response returned for failed requests properties: message: type: string description: Client-facing error message describing what went wrong + description: Error response returned for failed requests EditWorkflowRequest: allOf: - - $ref: "#/components/schemas/WorkflowMutableProperties" + - $ref: '#/components/schemas/WorkflowMutableProperties' - type: object properties: id: @@ -9167,10 +9965,6 @@ components: description: The workflow ID we want to update. ActionSummary: type: object - description: Represents a minimal summary of an action. - required: - - tool_id - - display_name properties: tool_id: type: string @@ -9203,7 +9997,12 @@ components: Neutral knowledge: - Native tools that don't access or modify content via APIs (e.g., file analyst, think) - Platform read or write tools (creator has to determine their knowledge implications) + required: + - tool_id + - display_name + description: Represents a minimal summary of an action. AgentSchemas: + type: object properties: agent_id: type: string @@ -9225,16 +10024,15 @@ components: description: The schema for the agent output. In JSON Schema format. tools: type: array + items: + $ref: '#/components/schemas/ActionSummary' title: Tools description: List of tools that the agent can invoke. Only included when include_tools query parameter is set to true. - items: - $ref: "#/components/schemas/ActionSummary" - type: object + title: AgentSchemas required: - agent_id - input_schema - output_schema - title: AgentSchemas description: Defines the structure and properties of an agent. SearchAgentsRequest: type: object @@ -9245,12 +10043,12 @@ components: example: HR Policy Agent SearchAgentsResponse: type: object - title: Response Search Agents properties: agents: type: array items: - $ref: "#/components/schemas/Agent" + $ref: '#/components/schemas/Agent' + title: Response Search Agents ContentType: type: string enum: @@ -9264,8 +10062,6 @@ components: description: The role of the message. example: USER content: - title: Content - description: The content of the message. type: array items: type: object @@ -9273,16 +10069,15 @@ components: text: type: string type: - $ref: "#/components/schemas/ContentType" + $ref: '#/components/schemas/ContentType' + title: MessageTextBlock required: - text - type - title: MessageTextBlock + title: Content + description: The content of the message. AgentRunCreate: - description: "Payload for creating a run. **Important**: If the agent uses an input form trigger, the `input` field is required and must include all fields defined in the form schema. Even fields marked as optional in the UI must be included in the request—use an empty string (`\"\"`) for optional fields without values. Omitting required form fields will result in a 500 error." type: object - required: - - agent_id properties: agent_id: type: string @@ -9291,49 +10086,52 @@ components: input: type: object title: Input - description: The input to the agent. Required when the agent uses an input form trigger. additionalProperties: true + description: The input to the agent. Required when the agent uses an input form trigger. messages: type: array items: - $ref: "#/components/schemas/Message" + $ref: '#/components/schemas/Message' title: Messages description: The messages to pass an input to the agent. metadata: type: object title: Metadata - description: The metadata to pass to the agent. additionalProperties: true + description: The metadata to pass to the agent. + required: + - agent_id + description: 'Payload for creating a run. **Important**: If the agent uses an input form trigger, the `input` field is required and must include all fields defined in the form schema. Even fields marked as optional in the UI must be included in the request—use an empty string (`""`) for optional fields without values. Omitting required form fields will result in a 500 error.' AgentExecutionStatus: - description: The status of the run. One of 'error', 'success'. type: string + title: AgentExecutionStatus enum: - error - success - title: AgentExecutionStatus + description: The status of the run. One of 'error', 'success'. AgentRun: allOf: - - $ref: "#/components/schemas/AgentRunCreate" + - $ref: '#/components/schemas/AgentRunCreate' - type: object properties: status: - $ref: "#/components/schemas/AgentExecutionStatus" + $ref: '#/components/schemas/AgentExecutionStatus' AgentRunWaitResponse: type: object properties: run: - $ref: "#/components/schemas/AgentRun" + $ref: '#/components/schemas/AgentRun' title: Run description: The run information. messages: type: array items: - $ref: "#/components/schemas/Message" + $ref: '#/components/schemas/Message' title: Messages description: The messages returned by the run. CollectionItemDescriptor: allOf: - - $ref: "#/components/schemas/CollectionItemMutableProperties" + - $ref: '#/components/schemas/CollectionItemMutableProperties' properties: url: type: string @@ -9351,8 +10149,6 @@ components: - TEXT - URL AddCollectionItemsRequest: - required: - - collectionId properties: collectionId: type: number @@ -9360,8 +10156,10 @@ components: addedCollectionItemDescriptors: type: array items: - $ref: "#/components/schemas/CollectionItemDescriptor" + $ref: '#/components/schemas/CollectionItemDescriptor' description: The CollectionItemDescriptors of the items being added. + required: + - collectionId AddCollectionItemsError: properties: errorType: @@ -9372,21 +10170,19 @@ components: AddCollectionItemsResponse: properties: collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' description: The modified Collection. Only CollectionItemMutableProperties are set for each item. error: - $ref: "#/components/schemas/AddCollectionItemsError" + $ref: '#/components/schemas/AddCollectionItemsError' CreateCollectionRequest: allOf: - - $ref: "#/components/schemas/CollectionMutableProperties" + - $ref: '#/components/schemas/CollectionMutableProperties' - type: object properties: newNextItemId: type: string description: The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. CollectionError: - required: - - errorCode properties: errorCode: type: string @@ -9399,6 +10195,8 @@ components: - WIDTH_VIOLATION - NO_PERMISSIONS - CORRUPT_ITEM + required: + - errorCode CreateCollectionResponse: allOf: - type: object @@ -9409,12 +10207,10 @@ components: - error properties: collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' error: - $ref: "#/components/schemas/CollectionError" + $ref: '#/components/schemas/CollectionError' DeleteCollectionRequest: - required: - - ids properties: ids: type: array @@ -9424,10 +10220,9 @@ components: allowedDatasource: type: string description: The datasource allowed in the Collection to be deleted. - DeleteCollectionItemRequest: required: - - collectionId - - itemId + - ids + DeleteCollectionItemRequest: properties: collectionId: type: number @@ -9438,37 +10233,37 @@ components: documentId: type: string description: The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + required: + - collectionId + - itemId DeleteCollectionItemResponse: properties: collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' description: The modified Collection. Only CollectionItemMutableProperties are set for each item. EditCollectionRequest: allOf: - - $ref: "#/components/schemas/CollectionMutableProperties" + - $ref: '#/components/schemas/CollectionMutableProperties' - type: object - required: - - id properties: id: type: integer description: The ID of the Collection to modify. + required: + - id EditCollectionResponse: allOf: - - $ref: "#/components/schemas/Collection" - - $ref: "#/components/schemas/CollectionError" + - $ref: '#/components/schemas/Collection' + - $ref: '#/components/schemas/CollectionError' - type: object properties: collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' error: - $ref: "#/components/schemas/CollectionError" + $ref: '#/components/schemas/CollectionError' EditCollectionItemRequest: - required: - - collectionId - - itemId allOf: - - $ref: "#/components/schemas/CollectionItemMutableProperties" + - $ref: '#/components/schemas/CollectionItemMutableProperties' - type: object properties: collectionId: @@ -9477,14 +10272,15 @@ components: itemId: type: string description: The ID of the CollectionItem to edit. + required: + - collectionId + - itemId EditCollectionItemResponse: properties: collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' description: The modified Collection. Only CollectionItemMutableProperties are set for each item. GetCollectionRequest: - required: - - id properties: id: type: integer @@ -9498,14 +10294,16 @@ components: allowedDatasource: type: string description: The datasource allowed in the Collection returned. + required: + - id GetCollectionResponse: properties: collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' rootCollection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' error: - $ref: "#/components/schemas/CollectionError" + $ref: '#/components/schemas/CollectionError' trackingToken: type: string description: Use `collection.trackingToken` instead. @@ -9530,14 +10328,14 @@ components: The datasource type this Collection can hold. ANSWERS - for Collections representing answer boards ListCollectionsResponse: - required: - - collections properties: collections: type: array items: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' description: List of all Collections, no Collection items are fetched. + required: + - collections GetDocPermissionsRequest: type: object properties: @@ -9553,16 +10351,13 @@ components: type: string description: A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. GetDocumentsRequest: - required: - - documentSpecs properties: documentSpecs: type: array items: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' description: The specification for the documents to be retrieved. includeFields: - description: List of Document fields to return (that aren't returned by default) type: array items: type: string @@ -9572,28 +10367,29 @@ components: - RECENT_SHARES - DOCUMENT_CONTENT - CUSTOM_METADATA + description: List of Document fields to return (that aren't returned by default) + required: + - documentSpecs DocumentOrError: - x-omit-error-on-success: true oneOf: - - $ref: "#/components/schemas/Document" + - $ref: '#/components/schemas/Document' - type: object - required: - - error properties: error: type: string description: The text for error, reason. x-is-error-field: true + required: + - error + x-omit-error-on-success: true GetDocumentsResponse: properties: documents: type: object additionalProperties: - $ref: "#/components/schemas/DocumentOrError" + $ref: '#/components/schemas/DocumentOrError' description: The document details or the error if document is not found. GetDocumentsByFacetsRequest: - required: - - filterSets properties: datasourcesFilter: type: array @@ -9603,17 +10399,19 @@ components: filterSets: type: array items: - $ref: "#/components/schemas/FacetFilterSet" + $ref: '#/components/schemas/FacetFilterSet' description: A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters in each set. cursor: type: string description: Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + required: + - filterSets GetDocumentsByFacetsResponse: properties: documents: type: array items: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: The document details, ordered by score. hasMoreResults: type: boolean @@ -9634,7 +10432,7 @@ components: type: string description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: - $ref: "#/components/schemas/Period" + $ref: '#/components/schemas/Period' description: Time period for which Insights are requested. InsightsAssistantRequest: properties: @@ -9649,7 +10447,7 @@ components: type: string description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: - $ref: "#/components/schemas/Period" + $ref: '#/components/schemas/Period' description: Time period for which Insights are requested. AgentsInsightsV2Request: properties: @@ -9669,7 +10467,7 @@ components: type: string description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: - $ref: "#/components/schemas/Period" + $ref: '#/components/schemas/Period' description: Time period for which Insights are requested. McpInsightsRequest: properties: @@ -9689,7 +10487,7 @@ components: type: string description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: - $ref: "#/components/schemas/Period" + $ref: '#/components/schemas/Period' description: Time period for which Insights are requested. McpBreakdownInsightsRequest: properties: @@ -9709,7 +10507,7 @@ components: type: string description: Manager emails whose teams should be filtered for. Empty array means no filtering. dayRange: - $ref: "#/components/schemas/Period" + $ref: '#/components/schemas/Period' description: Time period for which Insights are requested. breakdownType: type: string @@ -9737,32 +10535,29 @@ components: InsightsRequest: properties: overviewRequest: - $ref: "#/components/schemas/InsightsOverviewRequest" - x-visibility: Public + $ref: '#/components/schemas/InsightsOverviewRequest' description: If specified, will return data for the Overview section of the Insights Dashboard. - assistantRequest: - $ref: "#/components/schemas/InsightsAssistantRequest" x-visibility: Public + assistantRequest: + $ref: '#/components/schemas/InsightsAssistantRequest' description: If specified, will return data for the Assistant section of the Insights Dashboard. - agentsRequest: - $ref: "#/components/schemas/AgentsInsightsV2Request" x-visibility: Public + agentsRequest: + $ref: '#/components/schemas/AgentsInsightsV2Request' description: If specified, will return data for the Agents section of the Insights Dashboard. + x-visibility: Public mcpRequest: - $ref: "#/components/schemas/McpInsightsRequest" + $ref: '#/components/schemas/McpInsightsRequest' description: If specified, will return data for the MCP section of the Insights Dashboard. mcpBreakdownRequest: - $ref: "#/components/schemas/McpBreakdownInsightsRequest" + $ref: '#/components/schemas/McpBreakdownInsightsRequest' disablePerUserInsights: type: boolean description: If true, suppresses the generation of per-user Insights in the response. Default is false. UserActivityInsight: - required: - - user - - activity properties: user: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' activity: type: string enum: @@ -9773,9 +10568,12 @@ components: type: integer description: Unix timestamp of the last activity (in seconds since epoch UTC). activityCount: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' activeDayCount: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' + required: + - user + - activity GleanAssistInsightsResponse: properties: lastLogTimestamp: @@ -9784,7 +10582,7 @@ components: activityInsights: type: array items: - $ref: "#/components/schemas/UserActivityInsight" + $ref: '#/components/schemas/UserActivityInsight' description: Insights for all active users with respect to set of actions. totalActiveUsers: type: integer @@ -9809,7 +10607,7 @@ components: description: Number of current Weekly Active Users. InsightsSearchSummary: allOf: - - $ref: "#/components/schemas/CurrentActiveUsers" + - $ref: '#/components/schemas/CurrentActiveUsers' - type: object properties: numSearches: @@ -9820,7 +10618,7 @@ components: description: Total number of distinct users who searched over the specified time period. InsightsChatSummary: allOf: - - $ref: "#/components/schemas/CurrentActiveUsers" + - $ref: '#/components/schemas/CurrentActiveUsers' - type: object properties: numChats: @@ -9831,7 +10629,7 @@ components: description: Total number of distinct users who used Chat over the specified time period. InsightsDepartmentsSummary: allOf: - - $ref: "#/components/schemas/CurrentActiveUsers" + - $ref: '#/components/schemas/CurrentActiveUsers' - type: object properties: departments: @@ -9846,28 +10644,26 @@ components: type: integer description: Number of current signed up employees in the specified departments, according to the Org Chart. searchSummary: - $ref: "#/components/schemas/InsightsSearchSummary" + $ref: '#/components/schemas/InsightsSearchSummary' chatSummary: - $ref: "#/components/schemas/InsightsChatSummary" + $ref: '#/components/schemas/InsightsChatSummary' searchActiveUsers: - $ref: "#/components/schemas/CurrentActiveUsers" + $ref: '#/components/schemas/CurrentActiveUsers' description: Search-specific active user counts for the specified departments. assistantActiveUsers: - $ref: "#/components/schemas/CurrentActiveUsers" + $ref: '#/components/schemas/CurrentActiveUsers' description: Assistant-specific active user counts for the specified departments. agentsActiveUsers: - $ref: "#/components/schemas/CurrentActiveUsers" + $ref: '#/components/schemas/CurrentActiveUsers' description: Agents-specific active user counts for the specified departments. mcpActiveUsers: - $ref: "#/components/schemas/CurrentActiveUsers" + $ref: '#/components/schemas/CurrentActiveUsers' description: MCP active user counts for the specified departments. extensionSummary: - $ref: "#/components/schemas/CurrentActiveUsers" + $ref: '#/components/schemas/CurrentActiveUsers' ugcSummary: - $ref: "#/components/schemas/CurrentActiveUsers" + $ref: '#/components/schemas/CurrentActiveUsers' LabeledCountInfo: - required: - - label properties: label: type: string @@ -9875,12 +10671,14 @@ components: countInfo: type: array items: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' description: List of data points for counts for a given date period. + required: + - label PerUserInsight: properties: person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' numSearches: type: integer description: Total number of searches by this user over the specified time period. @@ -9910,7 +10708,7 @@ components: description: Total number of MCP calls for this user over the specified time period. InsightsOverviewResponse: allOf: - - $ref: "#/components/schemas/InsightsDepartmentsSummary" + - $ref: '#/components/schemas/InsightsDepartmentsSummary' - type: object properties: lastUpdatedTs: @@ -9928,43 +10726,43 @@ components: removal: "2027-01-15" x-speakeasy-deprecation-message: "Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives." monthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' weeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' dailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' searchMonthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' searchWeeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' searchDailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' assistantMonthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' assistantWeeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' assistantDailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' agentsMonthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' agentsWeeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' agentsDailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' mcpMonthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' mcpWeeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' mcpDailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' searchesTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' assistantInteractionsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' agentRunsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' mcpCallsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' searchDatasourceCounts: type: object additionalProperties: @@ -9978,12 +10776,12 @@ components: perUserInsights: type: array items: - $ref: "#/components/schemas/PerUserInsight" + $ref: '#/components/schemas/PerUserInsight' description: Per-user insights, over the specified time period in the specified departments. All current users in the organization who have signed into Glean at least once are included. PerUserAssistantInsight: properties: person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' numChatMessages: type: integer description: Total number of chat messages sent by this user over the specified time period. @@ -10001,37 +10799,37 @@ components: description: Total number of days this user was active on the Assistant over the specified time period. AssistantInsightsResponse: allOf: - - $ref: "#/components/schemas/CurrentActiveUsers" + - $ref: '#/components/schemas/CurrentActiveUsers' - type: object properties: lastUpdatedTs: type: integer description: Unix timestamp of the last update for the insights data in the response. monthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' weeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' dailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' totalSignups: type: integer description: Number of current signed up employees in the specified departments, according to the Org Chart. chatMessagesTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' summarizationsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' aiAnswersTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' gleanbotInteractionsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' perUserInsights: type: array items: - $ref: "#/components/schemas/PerUserAssistantInsight" + $ref: '#/components/schemas/PerUserAssistantInsight' upvotesTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' downvotesTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' PerAgentInsight: properties: agentId: @@ -10041,7 +10839,7 @@ components: type: string description: Agent name icon: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' description: Agent icon configuration isDeleted: type: boolean @@ -10059,7 +10857,7 @@ components: type: integer description: Total number of downvotes for this agent over the specified time period. owner: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' description: | The creator/owner of the agent. Absent if agent is deleted or owner is unknown. AgentUseCaseInsight: @@ -10084,7 +10882,7 @@ components: type: string description: Name of the most-used agent for this use case. topAgentIcon: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' description: Icon of the most-used agent for this use case. topAgentIsDeleted: type: boolean @@ -10111,7 +10909,7 @@ components: type: string description: Name of the agent to be shown in the agent column in this department over the specified time period. icon: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' description: Agent icon configuration isDeleted: type: boolean @@ -10119,7 +10917,7 @@ components: AgentUsersInsight: properties: person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' departmentName: type: string description: Department name @@ -10145,7 +10943,7 @@ components: type: string description: Agent name icon: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' description: Agent icon configuration isDeleted: type: boolean @@ -10162,75 +10960,75 @@ components: description: Total number of users who provided feedback on time saved for this agent over the specified time period. AgentsInsightsV2Response: allOf: - - $ref: "#/components/schemas/CurrentActiveUsers" + - $ref: '#/components/schemas/CurrentActiveUsers' - type: object properties: monthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' weeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' dailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' sharedAgentsCount: type: integer description: Total number of shared agents. topAgentsInsights: type: array items: - $ref: "#/components/schemas/PerAgentInsight" + $ref: '#/components/schemas/PerAgentInsight' topUseCasesInsights: type: array items: - $ref: "#/components/schemas/AgentUseCaseInsight" + $ref: '#/components/schemas/AgentUseCaseInsight' agentsUsageByDepartmentInsights: type: array items: - $ref: "#/components/schemas/AgentsUsageByDepartmentInsight" + $ref: '#/components/schemas/AgentsUsageByDepartmentInsight' agentUsersInsights: type: array items: - $ref: "#/components/schemas/AgentUsersInsight" + $ref: '#/components/schemas/AgentUsersInsight' agentsTimeSavedInsights: type: array items: - $ref: "#/components/schemas/AgentsTimeSavedInsight" + $ref: '#/components/schemas/AgentsTimeSavedInsight' description: Insights for agents time saved over the specified time period. dailyAgentRunsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' successfulRunsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' failedRunsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' pausedRunsTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' upvotesTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' downvotesTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' McpInsightsResponse: allOf: - - $ref: "#/components/schemas/CurrentActiveUsers" + - $ref: '#/components/schemas/CurrentActiveUsers' - type: object properties: dailyActiveUsers: type: integer description: Number of current Daily Active Users. monthlyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' weeklyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' dailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' overallDailyActiveUserTimeseries: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' topHostApplicationsActiveUserTimeseries: type: array items: - $ref: "#/components/schemas/LabeledCountInfo" + $ref: '#/components/schemas/LabeledCountInfo' McpUserBreakdown: properties: person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' totalCalls: type: integer description: Total number of MCP calls made by this user in the specified time period. @@ -10297,24 +11095,24 @@ components: usersBreakdown: type: array items: - $ref: "#/components/schemas/McpUserBreakdown" + $ref: '#/components/schemas/McpUserBreakdown' hostApplicationsBreakdown: type: array items: - $ref: "#/components/schemas/McpHostApplicationBreakdown" + $ref: '#/components/schemas/McpHostApplicationBreakdown' toolsBreakdown: type: array items: - $ref: "#/components/schemas/McpToolBreakdown" + $ref: '#/components/schemas/McpToolBreakdown' serversBreakdown: type: array items: - $ref: "#/components/schemas/McpServerBreakdown" + $ref: '#/components/schemas/McpServerBreakdown' InsightsResponse: properties: gleanAssist: + $ref: '#/components/schemas/GleanAssistInsightsResponse' deprecated: true - $ref: "#/components/schemas/GleanAssistInsightsResponse" x-glean-deprecated: id: 15850758-4d95-4d98-8d57-39c50663a796 introduced: "2026-02-05" @@ -10322,20 +11120,16 @@ components: removal: "2026-10-15" x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Field is deprecated" overviewResponse: - $ref: "#/components/schemas/InsightsOverviewResponse" + $ref: '#/components/schemas/InsightsOverviewResponse' assistantResponse: - $ref: "#/components/schemas/AssistantInsightsResponse" + $ref: '#/components/schemas/AssistantInsightsResponse' agentsResponse: - $ref: "#/components/schemas/AgentsInsightsV2Response" + $ref: '#/components/schemas/AgentsInsightsV2Response' mcpResponse: - $ref: "#/components/schemas/McpInsightsResponse" + $ref: '#/components/schemas/McpInsightsResponse' mcpBreakdownResponse: - $ref: "#/components/schemas/McpBreakdownInsightsResponse" + $ref: '#/components/schemas/McpBreakdownInsightsResponse' MessagesRequest: - required: - - id - - idType - - datasource properties: idType: type: string @@ -10375,19 +11169,23 @@ components: datasourceInstanceDisplayName: type: string description: The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + required: + - id + - idType + - datasource InvalidOperatorValueError: properties: key: - description: The operator key that has an invalid value. type: string + description: The operator key that has an invalid value. value: - description: The invalid operator value. type: string + description: The invalid operator value. ErrorMessage: properties: source: - description: The datasource this message relates to. type: string + description: The datasource this message relates to. errorMessage: type: string ErrorInfo: @@ -10400,13 +11198,13 @@ components: description: Indicates the outlook results could not be fetched due to bad token. invalidOperators: type: array - description: Indicates results could not be fetched due to invalid operators in the query. items: - $ref: "#/components/schemas/InvalidOperatorValueError" + $ref: '#/components/schemas/InvalidOperatorValueError' + description: Indicates results could not be fetched due to invalid operators in the query. errorMessages: type: array items: - $ref: "#/components/schemas/ErrorMessage" + $ref: '#/components/schemas/ErrorMessage' federatedSearchRateLimitError: type: boolean description: Indicates the federated search results could not be fetched due to rate limiting. @@ -10417,19 +11215,19 @@ components: type: string description: A token that should be passed for additional requests related to this request (such as more results requests). sessionInfo: - $ref: "#/components/schemas/SessionInfo" + $ref: '#/components/schemas/SessionInfo' results: type: array items: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' structuredResults: type: array items: - $ref: "#/components/schemas/StructuredResult" + $ref: '#/components/schemas/StructuredResult' generatedQnaResult: - $ref: "#/components/schemas/GeneratedQna" + $ref: '#/components/schemas/GeneratedQna' errorInfo: - $ref: "#/components/schemas/ErrorInfo" + $ref: '#/components/schemas/ErrorInfo' requestID: type: string description: A platform-generated request ID to correlate backend logs. @@ -10447,8 +11245,6 @@ components: format: int64 description: List of experiment ids for the corresponding request. SearchWarning: - required: - - warningType properties: warningType: type: string @@ -10472,6 +11268,8 @@ components: items: type: string description: A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + required: + - warningType SearchResponseMetadata: properties: rewrittenQuery: @@ -10487,16 +11285,16 @@ components: searchedQueryRanges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: The bolded ranges within the searched query. originalQuery: type: string description: The query text sent by the client in the request. querySuggestion: - $ref: "#/components/schemas/QuerySuggestion" + $ref: '#/components/schemas/QuerySuggestion' description: An alternative query to the one provided that may give better results, e.g. a spelling suggestion. additionalQuerySuggestions: - $ref: "#/components/schemas/QuerySuggestionList" + $ref: '#/components/schemas/QuerySuggestionList' description: Other alternative queries that may provide better or more specific results than the original query. negatedTerms: type: array @@ -10510,7 +11308,7 @@ components: type: boolean description: No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. searchWarning: - $ref: "#/components/schemas/SearchWarning" + $ref: '#/components/schemas/SearchWarning' triggeredExpertDetection: type: boolean description: Whether the query triggered expert detection results in the People tab. @@ -10521,17 +11319,17 @@ components: properties: stringValue: type: string - example: engineering description: The value that should be set in the FacetFilter when applying this filter to a search request. + example: engineering integerValue: type: integer example: 5 displayLabel: type: string - example: engineering description: An optional user-friendly label to display in place of the facet value. + example: engineering iconConfig: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' FacetBucket: properties: count: @@ -10540,14 +11338,14 @@ components: example: 1 datasource: type: string - example: jira description: The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + example: jira percentage: type: integer description: Estimated percentage of results in this facet. example: 5 value: - $ref: "#/components/schemas/FacetValue" + $ref: '#/components/schemas/FacetValue' FacetResult: properties: sourceName: @@ -10560,9 +11358,9 @@ components: example: SelectMultiple buckets: type: array - description: A list of unique buckets that exist within this result set. items: - $ref: "#/components/schemas/FacetBucket" + $ref: '#/components/schemas/FacetBucket' + description: A list of unique buckets that exist within this result set. hasMoreBuckets: type: boolean description: Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. @@ -10577,24 +11375,24 @@ components: type: string description: Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. iconConfig: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' description: The config for the icon that's displayed with this description SearchResponse: allOf: - - $ref: "#/components/schemas/ResultsResponse" - - $ref: "#/components/schemas/BackendExperimentsContext" + - $ref: '#/components/schemas/ResultsResponse' + - $ref: '#/components/schemas/BackendExperimentsContext' - type: object properties: metadata: - $ref: "#/components/schemas/SearchResponseMetadata" + $ref: '#/components/schemas/SearchResponseMetadata' facetResults: type: array items: - $ref: "#/components/schemas/FacetResult" + $ref: '#/components/schemas/FacetResult' resultTabs: type: array items: - $ref: "#/components/schemas/ResultTab" + $ref: '#/components/schemas/ResultTab' description: All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. resultTabIds: type: array @@ -10602,11 +11400,11 @@ components: type: string description: The unique IDs of the result tabs to which this response belongs. resultsDescription: - $ref: "#/components/schemas/ResultsDescription" + $ref: '#/components/schemas/ResultsDescription' rewrittenFacetFilters: type: array items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' description: The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. cursor: type: string @@ -10696,19 +11494,19 @@ components: - fieldValues - fieldValues MessagesResponse: - required: - - hasMore properties: hasMore: type: boolean description: Whether there are more results for client to continue requesting. searchResponse: - $ref: "#/components/schemas/SearchResponse" + $ref: '#/components/schemas/SearchResponse' rootMessage: - $ref: "#/components/schemas/SearchResult" + $ref: '#/components/schemas/SearchResult' + required: + - hasMore EditPinRequest: allOf: - - $ref: "#/components/schemas/PinDocumentMutableProperties" + - $ref: '#/components/schemas/PinDocumentMutableProperties' - type: object properties: id: @@ -10722,19 +11520,19 @@ components: GetPinResponse: properties: pin: - $ref: "#/components/schemas/PinDocument" + $ref: '#/components/schemas/PinDocument' ListPinsResponse: - required: - - pins properties: pins: type: array items: - $ref: "#/components/schemas/PinDocument" + $ref: '#/components/schemas/PinDocument' description: List of pinned documents. + required: + - pins PinRequest: allOf: - - $ref: "#/components/schemas/PinDocumentMutableProperties" + - $ref: '#/components/schemas/PinDocumentMutableProperties' - type: object properties: documentId: @@ -10749,29 +11547,27 @@ components: properties: timestamp: type: string - description: The ISO 8601 timestamp associated with the client request. format: date-time + description: The ISO 8601 timestamp associated with the client request. trackingToken: type: string description: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. sessionInfo: - $ref: "#/components/schemas/SessionInfo" + $ref: '#/components/schemas/SessionInfo' sourceDocument: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: The document from which the ResultsRequest is issued, if any. pageSize: type: integer - example: 100 description: Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + example: 100 maxSnippetSize: type: integer description: Hint to the server about how many characters long a snippet may be. Server may return less or more. example: 400 SearchRequest: - required: - - query allOf: - - $ref: "#/components/schemas/ResultsRequest" + - $ref: '#/components/schemas/ResultsRequest' - type: object properties: query: @@ -10787,9 +11583,9 @@ components: type: string description: The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. inputDetails: - $ref: "#/components/schemas/SearchRequestInputDetails" + $ref: '#/components/schemas/SearchRequestInputDetails' requestOptions: - $ref: "#/components/schemas/SearchRequestOptions" + $ref: '#/components/schemas/SearchRequestOptions' timeoutMillis: type: integer description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. @@ -10797,6 +11593,8 @@ components: disableSpellcheck: type: boolean description: Whether or not to disable spellcheck. + required: + - query example: trackingToken: trackingToken query: vacation policy @@ -10819,7 +11617,7 @@ components: trackingToken: type: string sessionInfo: - $ref: "#/components/schemas/SessionInfo" + $ref: '#/components/schemas/SessionInfo' query: type: string description: Partially typed query. @@ -10834,7 +11632,6 @@ components: description: Filter to only return results relevant to the given datasource. resultTypes: type: array - description: Filter to only return results of the given type(s). All types may be returned if omitted. items: type: string enum: @@ -10852,6 +11649,7 @@ components: - OPERATOR_VALUE - QUICKLINK - SUGGESTION + description: Filter to only return results of the given type(s). All types may be returned if omitted. resultSize: type: integer description: | @@ -10859,9 +11657,9 @@ components: example: 10 authTokens: type: array - description: Auth tokens which may be used for federated results. items: - $ref: "#/components/schemas/AuthToken" + $ref: '#/components/schemas/AuthToken' + description: Auth tokens which may be used for federated results. example: trackingToken: trackingToken query: what is a que @@ -10874,8 +11672,6 @@ components: docType: type: string OperatorMetadata: - required: - - name properties: name: type: string @@ -10894,13 +11690,15 @@ components: scopes: type: array items: - $ref: "#/components/schemas/OperatorScope" + $ref: '#/components/schemas/OperatorScope' value: type: string description: Raw/canonical value of the operator. Only applies when result is an operator value. displayValue: type: string description: Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + required: + - name example: name: Last Updated operatorType: DATE @@ -10909,7 +11707,6 @@ components: docType: Document - datasource: ZENDESK Quicklink: - description: An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. properties: name: type: string @@ -10921,14 +11718,13 @@ components: type: string description: The URL of the action. iconConfig: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' description: The config for the icon for this quicklink id: type: string description: Unique identifier of this quicklink scopes: type: array - description: The scopes for which this quicklink is applicable items: type: string enum: @@ -10937,10 +11733,9 @@ components: - AUTOCOMPLETE_FUZZY_MATCH - AUTOCOMPLETE_ZERO_QUERY - NEW_TAB_PAGE + description: The scopes for which this quicklink is applicable + description: An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. AutocompleteResult: - required: - - result - - result_type properties: result: type: string @@ -10970,23 +11765,26 @@ components: type: number description: Higher indicates a more confident match. operatorMetadata: - $ref: "#/components/schemas/OperatorMetadata" + $ref: '#/components/schemas/OperatorMetadata' quicklink: - $ref: "#/components/schemas/Quicklink" + $ref: '#/components/schemas/Quicklink' document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' url: type: string structuredResult: - $ref: "#/components/schemas/StructuredResult" + $ref: '#/components/schemas/StructuredResult' trackingToken: type: string description: A token to be passed in /feedback events associated with this autocomplete result. ranges: type: array items: - $ref: "#/components/schemas/TextRange" + $ref: '#/components/schemas/TextRange' description: Subsections of the result string to which some special formatting should be applied (eg. bold) + required: + - result + - result_type example: result: sample result resultType: DOCUMENT @@ -10997,7 +11795,6 @@ components: - datasource: confluence - objectType: page AutocompleteResultGroup: - description: A subsection of the results list from which distinct sections should be created. properties: startIndex: type: integer @@ -11008,27 +11805,28 @@ components: title: type: string description: The title of the result group to be displayed. Empty means no title. + description: A subsection of the results list from which distinct sections should be created. AutocompleteResponse: allOf: - - $ref: "#/components/schemas/BackendExperimentsContext" + - $ref: '#/components/schemas/BackendExperimentsContext' - type: object properties: trackingToken: type: string description: An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. sessionInfo: - $ref: "#/components/schemas/SessionInfo" + $ref: '#/components/schemas/SessionInfo' results: type: array items: - $ref: "#/components/schemas/AutocompleteResult" + $ref: '#/components/schemas/AutocompleteResult' groups: type: array items: - $ref: "#/components/schemas/AutocompleteResultGroup" + $ref: '#/components/schemas/AutocompleteResultGroup' description: Subsections of the results list from which distinct sections should be created. errorInfo: - $ref: "#/components/schemas/ErrorInfo" + $ref: '#/components/schemas/ErrorInfo' backendTimeMillis: type: integer format: int64 @@ -11042,8 +11840,6 @@ components: type: string description: The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. FeedRequestOptions: - required: - - resultSize properties: resultSize: type: integer @@ -11065,10 +11861,10 @@ components: type: string description: Datasources for which content should be included. Empty is for all. chatZeroStateSuggestionOptions: - $ref: "#/components/schemas/ChatZeroStateSuggestionOptions" - FeedRequest: + $ref: '#/components/schemas/ChatZeroStateSuggestionOptions' required: - - refreshType + - resultSize + FeedRequest: properties: categories: type: array @@ -11119,13 +11915,15 @@ components: - OOO_CATCH_UP description: Categories of content requested. An allowlist gives flexibility to request content separately or together. requestOptions: - $ref: "#/components/schemas/FeedRequestOptions" + $ref: '#/components/schemas/FeedRequestOptions' timeoutMillis: type: integer description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. example: 5000 sessionInfo: - $ref: "#/components/schemas/SessionInfo" + $ref: '#/components/schemas/SessionInfo' + required: + - refreshType DisplayableListFormat: properties: format: @@ -11135,15 +11933,12 @@ components: description: defines how to render this particular displayable list card DisplayableListItemUIConfig: type: object - description: UI configurations for each item of the list properties: showNewIndicator: type: boolean description: show a "New" pill next to the item + description: UI configurations for each item of the list ConferenceData: - required: - - provider - - uri properties: provider: type: string @@ -11159,14 +11954,16 @@ components: - NATIVE_CONFERENCE - LOCATION - DESCRIPTION + required: + - provider + - uri EventClassificationName: - description: The name for a generated classification of an event. type: string enum: - External Event + description: The name for a generated classification of an event. EventStrategyName: type: string - description: The name of method used to surface relevant data for a given calendar event. enum: - customerCard - news @@ -11177,17 +11974,17 @@ components: - relevantDocuments - chatFollowUps - conversations + description: The name of method used to surface relevant data for a given calendar event. EventClassification: - description: A generated classification of a given event. properties: name: - $ref: "#/components/schemas/EventClassificationName" + $ref: '#/components/schemas/EventClassificationName' strategies: type: array items: - $ref: "#/components/schemas/EventStrategyName" + $ref: '#/components/schemas/EventStrategyName' + description: A generated classification of a given event. StructuredLink: - description: The display configuration for a link. properties: name: type: string @@ -11196,47 +11993,45 @@ components: type: string description: The URL for the link. iconConfig: - $ref: "#/components/schemas/IconConfig" + $ref: '#/components/schemas/IconConfig' + description: The display configuration for a link. GeneratedAttachmentContent: - description: Content that has been generated or extrapolated from the documents present in the document field. properties: displayHeader: - description: The header describing the generated content. type: string + description: The header describing the generated content. text: - description: The content that has been generated. type: string + description: The content that has been generated. + description: Content that has been generated or extrapolated from the documents present in the document field. example: displayHeader: Action Items content: You said you'd send over the design document after the meeting. GeneratedAttachment: - description: These are attachments that aren't natively present on the event, and have been smartly suggested. properties: strategyName: - $ref: "#/components/schemas/EventStrategyName" + $ref: '#/components/schemas/EventStrategyName' documents: type: array items: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' customer: - $ref: "#/components/schemas/Customer" + $ref: '#/components/schemas/Customer' externalLinks: - description: A list of links to external sources outside of Glean. type: array items: - $ref: "#/components/schemas/StructuredLink" + $ref: '#/components/schemas/StructuredLink' + description: A list of links to external sources outside of Glean. content: type: array items: - $ref: "#/components/schemas/GeneratedAttachmentContent" + $ref: '#/components/schemas/GeneratedAttachmentContent' + description: These are attachments that aren't natively present on the event, and have been smartly suggested. CalendarEvent: - required: - - id - - url allOf: - - $ref: "#/components/schemas/AnonymousEvent" + - $ref: '#/components/schemas/AnonymousEvent' - type: object properties: id: @@ -11246,12 +12041,12 @@ components: type: string description: A permalink for this calendar event attendees: - $ref: "#/components/schemas/CalendarAttendees" + $ref: '#/components/schemas/CalendarAttendees' location: type: string description: The location that this event is taking place at. conferenceData: - $ref: "#/components/schemas/ConferenceData" + $ref: '#/components/schemas/ConferenceData' description: type: string description: The HTML description of the event. @@ -11267,35 +12062,38 @@ components: classifications: type: array items: - $ref: "#/components/schemas/EventClassification" + $ref: '#/components/schemas/EventClassification' generatedAttachments: type: array items: - $ref: "#/components/schemas/GeneratedAttachment" + $ref: '#/components/schemas/GeneratedAttachment' + required: + - id + - url SectionType: type: string + enum: + - CHANNEL + - MENTIONS + - TOPIC description: Type of the section. This defines how the section should be interpreted and rendered in the digest. x-enumDescriptions: CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams). MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all). TOPIC: A section driven by a generic topic, not tied to any specific channel or instance. - enum: - - CHANNEL - - MENTIONS - - TOPIC x-speakeasy-enum-descriptions: CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams). MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all). TOPIC: A section driven by a generic topic, not tied to any specific channel or instance. UpdateType: type: string + enum: + - ACTIONABLE + - INFORMATIVE description: Optional type classification for the update. x-enumDescriptions: ACTIONABLE: Updates that require user attention or action INFORMATIVE: Updates that are purely informational - enum: - - ACTIONABLE - - INFORMATIVE x-speakeasy-enum-descriptions: ACTIONABLE: Updates that require user attention or action INFORMATIVE: Updates that are purely informational @@ -11304,9 +12102,9 @@ components: properties: urls: type: array - description: List of URLs for similar updates that are grouped together and rendered as a single update. items: type: string + description: List of URLs for similar updates that are grouped together and rendered as a single update. url: type: string description: URL link to the content or document. @@ -11320,19 +12118,15 @@ components: type: string description: Brief summary or description of the update content. type: - $ref: "#/components/schemas/UpdateType" + $ref: '#/components/schemas/UpdateType' DigestSection: type: object - required: - - id - - type - - updates properties: id: type: string description: Unique identifier for the digest section. type: - $ref: "#/components/schemas/SectionType" + $ref: '#/components/schemas/SectionType' displayName: type: string description: Human-readable name for the digest section. @@ -11353,8 +12147,12 @@ components: updates: type: array items: - $ref: "#/components/schemas/DigestUpdate" + $ref: '#/components/schemas/DigestUpdate' description: List of updates within this digest section. + required: + - id + - type + - updates Digest: type: object properties: @@ -11372,7 +12170,7 @@ components: sections: type: array items: - $ref: "#/components/schemas/DigestSection" + $ref: '#/components/schemas/DigestSection' description: Array of digest sections from which the podcast was created. ChatSuggestion: properties: @@ -11391,8 +12189,6 @@ components: type: string description: Document IDs that grounded the suggestion. PromptTemplateMutableProperties: - required: - - template properties: name: type: string @@ -11404,30 +12200,32 @@ components: type: string description: The Application Id the prompt template should be created under. Empty for default assistant. inclusions: - $ref: "#/components/schemas/ChatRestrictionFilters" + $ref: '#/components/schemas/ChatRestrictionFilters' description: A list of filters which only allows the prompt template to access certain content. addedRoles: type: array - description: A list of added user roles for the Workflow. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of added user roles for the Workflow. removedRoles: type: array - description: A list of removed user roles for the Workflow. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of removed user roles for the Workflow. + required: + - template PromptTemplate: allOf: - - $ref: "#/components/schemas/PromptTemplateMutableProperties" - - $ref: "#/components/schemas/PermissionedObject" - - $ref: "#/components/schemas/AttributionProperties" + - $ref: '#/components/schemas/PromptTemplateMutableProperties' + - $ref: '#/components/schemas/PermissionedObject' + - $ref: '#/components/schemas/AttributionProperties' - type: object properties: id: type: string description: Opaque id for this prompt template author: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' createTimestamp: type: integer description: Server Unix timestamp of the creation time. @@ -11435,12 +12233,12 @@ components: type: integer description: Server Unix timestamp of the last update time. lastUpdatedBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' roles: type: array - description: A list of roles for this prompt template explicitly granted. items: - $ref: "#/components/schemas/UserRoleSpecification" + $ref: '#/components/schemas/UserRoleSpecification' + description: A list of roles for this prompt template explicitly granted. UgcType: enum: - AGENT_TYPE @@ -11467,34 +12265,34 @@ components: type: object properties: ugcType: - $ref: "#/components/schemas/UgcType" + $ref: '#/components/schemas/UgcType' id: type: string description: Opaque id of the UGC. count: type: integer - x-includeEmpty: true description: Number of users this object has been favorited by. + x-includeEmpty: true favoritedByUser: type: boolean - x-includeEmpty: true description: If the requesting user has favorited this object. + x-includeEmpty: true PromptTemplateResult: properties: promptTemplate: - $ref: "#/components/schemas/PromptTemplate" + $ref: '#/components/schemas/PromptTemplate' trackingToken: type: string description: An opaque token that represents this prompt template favoriteInfo: - $ref: "#/components/schemas/FavoriteInfo" + $ref: '#/components/schemas/FavoriteInfo' runCount: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' description: This tracks how many times this prompt template was run. If user runs a prompt template after modifying the original one, it still counts as a run for the original template. UserActivity: properties: actor: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' timestamp: type: integer description: Unix timestamp of the activity (in seconds since epoch UTC). @@ -11517,10 +12315,8 @@ components: - VIEW description: The action for the activity aggregateVisitCount: - $ref: "#/components/schemas/CountInfo" + $ref: '#/components/schemas/CountInfo' FeedEntry: - required: - - title properties: entryId: type: string @@ -11529,16 +12325,16 @@ components: type: string description: Title for the result. Can be document title, event title and so on. thumbnail: - $ref: "#/components/schemas/Thumbnail" + $ref: '#/components/schemas/Thumbnail' createdBy: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' uiConfig: allOf: - - $ref: "#/components/schemas/DisplayableListFormat" + - $ref: '#/components/schemas/DisplayableListFormat' - type: object properties: additionalFlags: - $ref: "#/components/schemas/DisplayableListItemUIConfig" + $ref: '#/components/schemas/DisplayableListItemUIConfig' justificationType: type: string enum: @@ -11608,38 +12404,37 @@ components: type: string description: View URL for the entry if based on links that are not documents in Glean. document: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' event: - $ref: "#/components/schemas/CalendarEvent" + $ref: '#/components/schemas/CalendarEvent' announcement: - $ref: "#/components/schemas/Announcement" + $ref: '#/components/schemas/Announcement' digest: - $ref: "#/components/schemas/Digest" + $ref: '#/components/schemas/Digest' collection: - $ref: "#/components/schemas/Collection" + $ref: '#/components/schemas/Collection' collectionItem: - $ref: "#/components/schemas/CollectionItem" + $ref: '#/components/schemas/CollectionItem' person: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' app: - $ref: "#/components/schemas/AppResult" + $ref: '#/components/schemas/AppResult' chatSuggestion: - $ref: "#/components/schemas/ChatSuggestion" + $ref: '#/components/schemas/ChatSuggestion' promptTemplate: - $ref: "#/components/schemas/PromptTemplateResult" + $ref: '#/components/schemas/PromptTemplateResult' workflow: - $ref: "#/components/schemas/WorkflowResult" + $ref: '#/components/schemas/WorkflowResult' activities: type: array items: - $ref: "#/components/schemas/UserActivity" + $ref: '#/components/schemas/UserActivity' description: List of activity where each activity has user, action, timestamp. documentVisitorCount: - $ref: "#/components/schemas/CountInfo" - FeedResult: + $ref: '#/components/schemas/CountInfo' required: - - category - - primaryEntry + - title + FeedResult: properties: category: type: string @@ -11688,11 +12483,11 @@ components: - OOO_CATCH_UP description: Category of the result, one of the requested categories in incoming request. primaryEntry: - $ref: "#/components/schemas/FeedEntry" + $ref: '#/components/schemas/FeedEntry' secondaryEntries: type: array items: - $ref: "#/components/schemas/FeedEntry" + $ref: '#/components/schemas/FeedEntry' description: Secondary entries for the result e.g. suggested docs for the calendar, carousel. rank: type: integer @@ -11703,11 +12498,12 @@ components: - ORGANIC - PROMO description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. - FeedResponse: required: - - serverTimestamp + - category + - primaryEntry + FeedResponse: allOf: - - $ref: "#/components/schemas/BackendExperimentsContext" + - $ref: '#/components/schemas/BackendExperimentsContext' - type: object properties: trackingToken: @@ -11719,17 +12515,19 @@ components: results: type: array items: - $ref: "#/components/schemas/FeedResult" + $ref: '#/components/schemas/FeedResult' facetResults: type: object additionalProperties: type: array items: - $ref: "#/components/schemas/FacetResult" + $ref: '#/components/schemas/FacetResult' description: Map from category to the list of facets that can be used to filter the entry's content. mentionsTimeWindowInHours: type: integer description: The time window (in hours) used for generating user mentions. + required: + - serverTimestamp RecommendationsRequestOptions: properties: datasourceFilter: @@ -11743,30 +12541,30 @@ components: facetFilterSets: type: array items: - $ref: "#/components/schemas/FacetFilterSet" + $ref: '#/components/schemas/FacetFilterSet' description: A list of facet filter sets that will be OR'ed together. context: - $ref: "#/components/schemas/Document" + $ref: '#/components/schemas/Document' description: Content for either a new or unindexed document, or additional content for an indexed document, which may be used to generate recommendations. resultProminence: - description: The types of prominence wanted in results returned. Default is any type. type: array items: - $ref: "#/components/schemas/SearchResultProminenceEnum" + $ref: '#/components/schemas/SearchResultProminenceEnum' + description: The types of prominence wanted in results returned. Default is any type. RecommendationsRequest: allOf: - - $ref: "#/components/schemas/ResultsRequest" + - $ref: '#/components/schemas/ResultsRequest' - type: object properties: recommendationDocumentSpec: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' description: Retrieve recommendations for this document. Glean Document ID is preferred over URL. requestOptions: - $ref: "#/components/schemas/RecommendationsRequestOptions" + $ref: '#/components/schemas/RecommendationsRequestOptions' description: Options for adjusting the request for recommendations. RecommendationsResponse: allOf: - - $ref: "#/components/schemas/ResultsResponse" + - $ref: '#/components/schemas/ResultsResponse' SortOptions: type: object properties: @@ -11783,19 +12581,19 @@ components: filter: type: array items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' sort: - description: Use EntitiesSortOrder enum for SortOptions.sortBy type: array items: - $ref: "#/components/schemas/SortOptions" + $ref: '#/components/schemas/SortOptions' + description: Use EntitiesSortOrder enum for SortOptions.sortBy entityType: type: string - default: PEOPLE enum: - PEOPLE - TEAMS - CUSTOM_ENTITIES + default: PEOPLE datasource: type: string description: The datasource associated with the entity type, most commonly used with CUSTOM_ENTITIES @@ -11803,7 +12601,6 @@ components: type: string description: A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. includeFields: - description: List of entity fields to return (that aren't returned by default) type: array items: type: string @@ -11817,10 +12614,11 @@ components: - LAST_EXTENSION_USE - MANAGEMENT_DETAILS - UNPROCESSED_TEAMS + description: List of entity fields to return (that aren't returned by default) pageSize: type: integer - example: 100 description: Hint to the server about how many results to send back. Server may return less. + example: 100 cursor: type: string description: Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. @@ -11829,20 +12627,19 @@ components: description: A string denoting the search surface from which the endpoint is called. requestType: type: string - default: STANDARD + enum: + - STANDARD + - FULL_DIRECTORY description: The type of request being made. + default: STANDARD x-enumDescriptions: STANDARD: Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities. FULL_DIRECTORY: Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations. - enum: - - STANDARD - - FULL_DIRECTORY x-speakeasy-enum-descriptions: STANDARD: Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities. FULL_DIRECTORY: Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations. EntitiesSortOrder: type: string - description: Different ways of sorting entities enum: - ENTITY_NAME - FIRST_NAME @@ -11851,25 +12648,26 @@ components: - START_DATE - TEAM_SIZE - RELEVANCE + description: Different ways of sorting entities ListEntitiesResponse: type: object properties: results: type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' teamResults: type: array items: - $ref: "#/components/schemas/Team" + $ref: '#/components/schemas/Team' customEntityResults: type: array items: - $ref: "#/components/schemas/CustomEntity" + $ref: '#/components/schemas/CustomEntity' facetResults: type: array items: - $ref: "#/components/schemas/FacetResult" + $ref: '#/components/schemas/FacetResult' cursor: type: string description: Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. @@ -11881,14 +12679,14 @@ components: description: Whether or not more entities can be fetched. sortOptions: type: array - description: Sort options from EntitiesSortOrder supported for this response. Default is empty list. items: - $ref: "#/components/schemas/EntitiesSortOrder" + $ref: '#/components/schemas/EntitiesSortOrder' + description: Sort options from EntitiesSortOrder supported for this response. Default is empty list. customFacetNames: type: array - description: list of Person attributes that are custom setup by deployment items: type: string + description: list of Person attributes that are custom setup by deployment PeopleRequest: type: object properties: @@ -11906,7 +12704,6 @@ components: type: string description: The email IDs to retrieve. The result is the deduplicated union of emailIds and obfuscatedIds. includeFields: - description: List of PersonMetadata fields to return (that aren't returned by default) type: array items: type: string @@ -11921,17 +12718,18 @@ components: - MANAGEMENT_DETAILS - PEOPLE_PROFILE_SETTINGS - PEOPLE_WITHOUT_MANAGER + description: List of PersonMetadata fields to return (that aren't returned by default) includeTypes: - description: The types of people entities to include in the response in addition to those returned by default. - x-enumDescriptions: - PEOPLE_WITHOUT_MANAGER: Returns all people without a manager apart from the requested IDs. - INVALID_ENTITIES: Includes invalid entities in the response if any of the requested IDs are invalid. type: array items: type: string enum: - PEOPLE_WITHOUT_MANAGER - INVALID_ENTITIES + description: The types of people entities to include in the response in addition to those returned by default. + x-enumDescriptions: + PEOPLE_WITHOUT_MANAGER: Returns all people without a manager apart from the requested IDs. + INVALID_ENTITIES: Includes invalid entities in the response if any of the requested IDs are invalid. x-speakeasy-enum-descriptions: PEOPLE_WITHOUT_MANAGER: Returns all people without a manager apart from the requested IDs. INVALID_ENTITIES: Includes invalid entities in the response if any of the requested IDs are invalid. @@ -11947,12 +12745,12 @@ components: results: type: array items: - $ref: "#/components/schemas/Person" + $ref: '#/components/schemas/Person' description: A Person for each ID in the request, each with PersonMetadata populated. relatedDocuments: type: array items: - $ref: "#/components/schemas/RelatedDocuments" + $ref: '#/components/schemas/RelatedDocuments' description: A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. errors: type: array @@ -11960,11 +12758,11 @@ components: type: string description: A list of IDs that could not be found. CreateShortcutRequest: - required: - - data properties: data: - $ref: "#/components/schemas/ShortcutMutableProperties" + $ref: '#/components/schemas/ShortcutMutableProperties' + required: + - data ShortcutError: properties: errorType: @@ -11977,44 +12775,42 @@ components: CreateShortcutResponse: properties: shortcut: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' error: - $ref: "#/components/schemas/ShortcutError" + $ref: '#/components/schemas/ShortcutError' DeleteShortcutRequest: allOf: - - $ref: "#/components/schemas/UserGeneratedContentId" + - $ref: '#/components/schemas/UserGeneratedContentId' - type: object required: - id GetShortcutRequest: oneOf: - - $ref: "#/components/schemas/UserGeneratedContentId" + - $ref: '#/components/schemas/UserGeneratedContentId' - type: object - required: - - alias properties: alias: type: string description: The alias for the shortcut, including any arguments for variable shortcuts. + required: + - alias GetShortcutResponse: properties: shortcut: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' description: Shortcut given the input alias with any provided arguments substituted into the destination URL. error: - $ref: "#/components/schemas/ShortcutError" + $ref: '#/components/schemas/ShortcutError' ListShortcutsPaginatedRequest: - required: - - pageSize properties: includeFields: - description: Array of fields/data to be included in response that are not included by default type: array items: type: string enum: - FACETS - PEOPLE_DETAILS + description: Array of fields/data to be included in response that are not included by default pageSize: type: integer example: 10 @@ -12024,14 +12820,16 @@ components: filters: type: array items: - $ref: "#/components/schemas/FacetFilter" + $ref: '#/components/schemas/FacetFilter' description: A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. sort: - $ref: "#/components/schemas/SortOptions" + $ref: '#/components/schemas/SortOptions' description: Specifies fieldname to sort on and order (ASC|DESC) to sort in query: type: string description: Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + required: + - pageSize ShortcutsPaginationMetadata: properties: cursor: @@ -12042,44 +12840,41 @@ components: totalItemCount: type: integer ListShortcutsPaginatedResponse: - required: - - shortcuts - - meta properties: shortcuts: type: array items: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' description: List of all shortcuts accessible to the user facetResults: type: array items: - $ref: "#/components/schemas/FacetResult" + $ref: '#/components/schemas/FacetResult' meta: - $ref: "#/components/schemas/ShortcutsPaginationMetadata" + $ref: '#/components/schemas/ShortcutsPaginationMetadata' description: Contains metadata like total item count and whether next page exists + required: + - shortcuts + - meta UpdateShortcutRequest: allOf: - - $ref: "#/components/schemas/UserGeneratedContentId" - - $ref: "#/components/schemas/ShortcutMutableProperties" + - $ref: '#/components/schemas/UserGeneratedContentId' + - $ref: '#/components/schemas/ShortcutMutableProperties' - type: object required: - id UpdateShortcutResponse: properties: shortcut: - $ref: "#/components/schemas/Shortcut" + $ref: '#/components/schemas/Shortcut' error: - $ref: "#/components/schemas/ShortcutError" + $ref: '#/components/schemas/ShortcutError' SummarizeRequest: - description: Summary of the document - required: - - documentSpecs properties: timestamp: type: string - description: The ISO 8601 timestamp associated with the client request. format: date-time + description: The ISO 8601 timestamp associated with the client request. query: type: string description: Optional query that the summary should be about @@ -12089,11 +12884,14 @@ components: documentSpecs: type: array items: - $ref: "#/components/schemas/DocumentSpec" + $ref: '#/components/schemas/DocumentSpec' description: Specifications of documents to summarize trackingToken: type: string description: An opaque token that represents this particular result. To be used for /feedback reporting. + required: + - documentSpecs + description: Summary of the document Summary: properties: text: @@ -12111,13 +12909,11 @@ components: message: type: string summary: - $ref: "#/components/schemas/Summary" + $ref: '#/components/schemas/Summary' trackingToken: type: string description: An opaque token that represents this summary in this particular query. To be used for /feedback reporting. ReminderRequest: - required: - - documentId properties: documentId: type: string @@ -12131,16 +12927,16 @@ components: reason: type: string description: An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + required: + - documentId VerificationFeed: properties: documents: type: array items: - $ref: "#/components/schemas/Verification" + $ref: '#/components/schemas/Verification' description: List of document infos that include verification related information for them. VerifyRequest: - required: - - documentId properties: documentId: type: string @@ -12152,18 +12948,20 @@ components: - DEPRECATE - UNVERIFY description: The verification action requested. + required: + - documentId ToolParameter: type: object properties: type: type: string - description: Parameter type (string, number, boolean, object, array) enum: - string - number - boolean - object - array + description: Parameter type (string, number, boolean, object, array) name: type: string description: The name of the parameter @@ -12175,27 +12973,27 @@ components: description: Whether the parameter is required possibleValues: type: array - description: The possible values for the parameter. Can contain only primitive values or arrays of primitive values. items: type: string + description: The possible values for the parameter. Can contain only primitive values or arrays of primitive values. items: + $ref: '#/components/schemas/ToolParameter' type: object description: When type is 'array', this describes the structure of the item in the array. - $ref: "#/components/schemas/ToolParameter" properties: type: object - description: When type is 'object', this describes the structure of the object. additionalProperties: - $ref: "#/components/schemas/ToolParameter" + $ref: '#/components/schemas/ToolParameter' + description: When type is 'object', this describes the structure of the object. Tool: type: object properties: type: type: string - description: Type of tool (READ, WRITE) enum: - READ - WRITE + description: Type of tool (READ, WRITE) name: type: string description: Unique identifier for the tool @@ -12207,21 +13005,18 @@ components: description: LLM friendly description of the tool parameters: type: object - description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. additionalProperties: - $ref: "#/components/schemas/ToolParameter" + $ref: '#/components/schemas/ToolParameter' + description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. ToolsListResponse: type: object properties: tools: type: array items: - $ref: "#/components/schemas/Tool" + $ref: '#/components/schemas/Tool' ToolsCallParameter: type: object - required: - - name - - value properties: name: type: string @@ -12231,91 +13026,94 @@ components: description: The value of the parameter (for primitive types) items: type: array - description: The value of the parameter (for array types) items: - $ref: "#/components/schemas/ToolsCallParameter" + $ref: '#/components/schemas/ToolsCallParameter' + description: The value of the parameter (for array types) properties: type: object - description: The value of the parameter (for object types) additionalProperties: - $ref: "#/components/schemas/ToolsCallParameter" - ToolsCallRequest: - type: object + $ref: '#/components/schemas/ToolsCallParameter' + description: The value of the parameter (for object types) required: - name - - parameters + - value + ToolsCallRequest: + type: object properties: name: type: string description: Required name of the tool to execute parameters: type: object - description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. additionalProperties: - $ref: "#/components/schemas/ToolsCallParameter" + $ref: '#/components/schemas/ToolsCallParameter' + description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + required: + - name + - parameters ToolsCallResponse: type: object properties: rawResponse: - additionalProperties: true type: object + additionalProperties: true description: The raw response from the tool error: type: string description: The error message if applicable ActionAuthType: type: string + enum: + - AUTH_USER_OAUTH + - AUTH_ADMIN + - AUTH_NONE description: | Authentication mechanism used by an action pack. - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool. - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually. - `AUTH_NONE`: Action pack requires no authentication. - enum: - - AUTH_USER_OAUTH - - AUTH_ADMIN - - AUTH_NONE ActionPackAuthStatus: type: object - required: - - authenticated - - authType properties: authenticated: type: boolean description: Whether the calling user is already authenticated to the tool backing the action pack. authType: - $ref: "#/components/schemas/ActionAuthType" + $ref: '#/components/schemas/ActionAuthType' + required: + - authenticated + - authType ActionPackAuthStatusResponse: type: object - required: - - actionPack properties: actionPack: - $ref: "#/components/schemas/ActionPackAuthStatus" + $ref: '#/components/schemas/ActionPackAuthStatus' description: | Action-pack-scoped authentication status. Wrapped under `actionPack` so the response shape clearly conveys that the status applies to the whole pack and leaves room to add sibling fields (e.g. per-action status) later without a breaking change. + required: + - actionPack AuthorizeActionPackRequest: type: object - required: - - returnUrl properties: returnUrl: type: string description: | URL on the customer's domain to redirect the end user's browser back to after the third-party OAuth callback completes. Must be present in the tenant's return URL allowlist. + required: + - returnUrl AuthorizeActionPackResponse: type: object - required: - - redirectUrl properties: redirectUrl: type: string description: | URL that the customer UI should navigate the end user to in order to begin the third-party OAuth flow. After the user consents, control returns to `returnUrl` from the request. + required: + - redirectUrl IndexDocumentRequest: type: object properties: @@ -14927,6 +15725,97 @@ components: required: - name - propertyType + responses: + PlatformBadRequest: + description: Invalid request (malformed JSON, invalid parameter values, unknown fields). + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformUnauthorized: + description: Missing or invalid authentication token. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformForbidden: + description: Token valid but lacks permission for the requested operation. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformNotFound: + description: Resource not found. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformRequestTimeout: + description: Backend did not respond within the timeout window. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformTooManyRequests: + description: Rate limit exceeded. Includes Retry-After header. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformInternalServerError: + description: Unexpected server-side failure. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformServiceUnavailable: + description: Backend temporarily unavailable. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + PlatformConflict: + description: Request conflicts with current state of the resource. + content: + application/problem+json: + schema: + $ref: "#/components/schemas/PlatformProblemDetail" + SuccessResponse: + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessResponse' + BadRequestError: + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfoResponse' + UnauthorizedError: + description: Not Authorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfoResponse' + NotFoundError: + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfoResponse' + TooManyRequestsError: + description: Too Many Requests + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfoResponse' + InternalServerError: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorInfoResponse' parameters: locale: name: locale @@ -14965,43 +15854,17 @@ components: schema: type: string example: o365sharepoint_abc123 - responses: - SuccessResponse: - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/SuccessResponse' - BadRequestError: - description: Bad Request - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorInfoResponse' - UnauthorizedError: - description: Not Authorized - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorInfoResponse' - NotFoundError: - description: Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorInfoResponse' - TooManyRequestsError: - description: Too Many Requests - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorInfoResponse' - InternalServerError: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorInfoResponse' +tags: + - name: Datasources + description: Manage datasources. + - name: Documents + description: Index documents from a datasource. + - name: People + description: Index employee people data. + - name: Permissions + description: Manage users, groups and membership. + - name: Authentication + description: Manage indexing API tokens. x-tagGroups: - name: Search & Generative AI tags: @@ -15031,14 +15894,3 @@ x-tagGroups: - Authentication - Insights - User -tags: - - name: Datasources - description: Manage datasources. - - name: Documents - description: Index documents from a datasource. - - name: People - description: Index employee people data. - - name: Permissions - description: Manage users, groups and membership. - - name: Authentication - description: Manage indexing API tokens. diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 56e7a40e..1bc78f39 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.786.1 +speakeasyVersion: 1.788.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:979b3f1b9f64bbb58a59297a1984e17b9a8e6c7eed1d56fc712f5ffc3376c23d - sourceBlobDigest: sha256:d0cf8a3fb62165cb2a1797291d7213dbfab4e80a9d8435d2ac732046c9effb28 + sourceRevisionDigest: sha256:246abdd49c246fce5b73bbb889da02141eaebcb7518c0ec21dbfbb75b3a53294 + sourceBlobDigest: sha256:def1b0c41f5ee4bd90ba40af9ce88738cd00213633e1ca6b261558b6d885ab04 tags: - latest Glean-OAS: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:979b3f1b9f64bbb58a59297a1984e17b9a8e6c7eed1d56fc712f5ffc3376c23d - sourceBlobDigest: sha256:d0cf8a3fb62165cb2a1797291d7213dbfab4e80a9d8435d2ac732046c9effb28 + sourceRevisionDigest: sha256:246abdd49c246fce5b73bbb889da02141eaebcb7518c0ec21dbfbb75b3a53294 + sourceBlobDigest: sha256:def1b0c41f5ee4bd90ba40af9ce88738cd00213633e1ca6b261558b6d885ab04 codeSamplesNamespace: glean-api-specs-java-code-samples - codeSamplesRevisionDigest: sha256:e7986a33af64c6ac98803edc669175023f6a308f7135a730ef2e63c2256d7434 + codeSamplesRevisionDigest: sha256:b1f68e5268e9dabc699b9baaf7954b47e20d08d619891ffbd3f5a8f0a4dffac7 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index c02f261b..789acce9 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.13.2' +implementation 'com.glean.api-client:glean-api-client:0.14.0' ``` Maven: @@ -75,7 +75,7 @@ Maven: com.glean.api-client glean-api-client - 0.13.2 + 0.14.0 ``` @@ -179,10 +179,8 @@ package hello.world; import com.glean.api_client.glean_api_client.AsyncGlean; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.async.ActivityResponse; -import java.time.OffsetDateTime; -import java.util.List; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsSearchResponse; import java.util.concurrent.CompletableFuture; public class Application { @@ -194,37 +192,19 @@ public class Application { .build() .async(); - Activity req = Activity.builder() - .events(List.of( - ActivityEvent.builder() - .action(ActivityEventAction.HISTORICAL_VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.SEARCH) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/search?q=query") - .params(ActivityEventParams.builder() - .query("query") - .build()) - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .params(ActivityEventParams.builder() - .duration(20L) - .referrer("https://example.com/document") - .build()) - .build())) + PlatformAgentsSearchRequest req = PlatformAgentsSearchRequest.builder() + .name("HR Policy Agent") .build(); - CompletableFuture resFut = sdk.client().activity().report() + CompletableFuture resFut = sdk.agents().search() .request(req) .call(); - // handle response + resFut.thenAccept(res -> { + if (res.platformAgentsSearchResponse().isPresent()) { + System.out.println(res.platformAgentsSearchResponse().get()); + } + }); } } ``` @@ -323,51 +303,30 @@ To authenticate with the API the `apiToken` parameter must be set when initializ package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ActivityResponse; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; public class Application { - public static void main(String[] args) throws Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - Activity req = Activity.builder() - .events(List.of( - ActivityEvent.builder() - .action(ActivityEventAction.HISTORICAL_VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.SEARCH) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/search?q=query") - .params(ActivityEventParams.builder() - .query("query") - .build()) - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .params(ActivityEventParams.builder() - .duration(20L) - .referrer("https://example.com/document") - .build()) - .build())) + PlatformAgentsSearchRequest req = PlatformAgentsSearchRequest.builder() + .name("HR Policy Agent") .build(); - ActivityResponse res = sdk.client().activity().report() + PlatformAgentsSearchResponse res = sdk.agents().search() .request(req) .call(); - // handle response + if (res.platformAgentsSearchResponse().isPresent()) { + System.out.println(res.platformAgentsSearchResponse().get()); + } } } ``` @@ -410,16 +369,10 @@ For more information on obtaining the appropriate token type, please contact you ### [Agents](docs/sdks/agents/README.md) -* [createAgent](docs/sdks/agents/README.md#createagent) - Create an agent -* [editAgent](docs/sdks/agents/README.md#editagent) - Edit an agent - -### [Authentication](docs/sdks/authentication/README.md) - -* [checkdatasourceauth](docs/sdks/authentication/README.md#checkdatasourceauth) - Check datasource authorization - -### [Chat](docs/sdks/chat/README.md) - -* [getChatFile](docs/sdks/chat/README.md#getchatfile) - Download a chat file +* [search](docs/sdks/agents/README.md#search) - Search agents +* [get](docs/sdks/agents/README.md#get) - Get agent +* [getSchemas](docs/sdks/agents/README.md#getschemas) - Get agent schemas +* [createRun](docs/sdks/agents/README.md#createrun) - Create agent run ### [Client.Activity](docs/sdks/activity/README.md) @@ -428,7 +381,9 @@ For more information on obtaining the appropriate token type, please contact you ### [Client.Agents](docs/sdks/clientagents/README.md) +* [create](docs/sdks/clientagents/README.md#create) - Create an agent * [retrieve](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent +* [update](docs/sdks/clientagents/README.md#update) - Edit an agent * [retrieveSchemas](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas * [list](docs/sdks/clientagents/README.md#list) - Search agents * [runStream](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response @@ -450,20 +405,22 @@ For more information on obtaining the appropriate token type, please contact you ### [Client.Authentication](docs/sdks/clientauthentication/README.md) +* [checkDatasourceAuth](docs/sdks/clientauthentication/README.md#checkdatasourceauth) - Check datasource authorization * [createToken](docs/sdks/clientauthentication/README.md#createtoken) - Create authentication token -### [Client.Chat](docs/sdks/clientchat/README.md) +### [Client.Chat](docs/sdks/chat/README.md) -* [create](docs/sdks/clientchat/README.md#create) - Chat -* [deleteAll](docs/sdks/clientchat/README.md#deleteall) - Deletes all saved Chats owned by a user -* [delete](docs/sdks/clientchat/README.md#delete) - Deletes saved Chats -* [retrieve](docs/sdks/clientchat/README.md#retrieve) - Retrieves a Chat -* [list](docs/sdks/clientchat/README.md#list) - Retrieves all saved Chats -* [retrieveApplication](docs/sdks/clientchat/README.md#retrieveapplication) - Gets the metadata for a custom Chat application -* [uploadFiles](docs/sdks/clientchat/README.md#uploadfiles) - Upload files for Chat -* [retrieveFiles](docs/sdks/clientchat/README.md#retrievefiles) - Get files uploaded by a user for Chat -* [deleteFiles](docs/sdks/clientchat/README.md#deletefiles) - Delete files uploaded by a user for chat -* [createStream](docs/sdks/clientchat/README.md#createstream) - Chat +* [create](docs/sdks/chat/README.md#create) - Chat +* [deleteAll](docs/sdks/chat/README.md#deleteall) - Deletes all saved Chats owned by a user +* [delete](docs/sdks/chat/README.md#delete) - Deletes saved Chats +* [retrieve](docs/sdks/chat/README.md#retrieve) - Retrieves a Chat +* [list](docs/sdks/chat/README.md#list) - Retrieves all saved Chats +* [retrieveApplication](docs/sdks/chat/README.md#retrieveapplication) - Gets the metadata for a custom Chat application +* [uploadFiles](docs/sdks/chat/README.md#uploadfiles) - Upload files for Chat +* [retrieveFiles](docs/sdks/chat/README.md#retrievefiles) - Get files uploaded by a user for Chat +* [deleteFiles](docs/sdks/chat/README.md#deletefiles) - Delete files uploaded by a user for chat +* [retrieveFile](docs/sdks/chat/README.md#retrievefile) - Download a chat file +* [createStream](docs/sdks/chat/README.md#createstream) - Chat ### [Client.Collections](docs/sdks/collections/README.md) @@ -476,6 +433,13 @@ For more information on obtaining the appropriate token type, please contact you * [retrieve](docs/sdks/collections/README.md#retrieve) - Read Collection * [list](docs/sdks/collections/README.md#list) - List Collections +### [Client.Datasources](docs/sdks/clientdatasources/README.md) + +* [retrieveConfiguration](docs/sdks/clientdatasources/README.md#retrieveconfiguration) - Get datasource instance configuration +* [updateConfiguration](docs/sdks/clientdatasources/README.md#updateconfiguration) - Update datasource instance configuration +* [retrieveCredentialStatus](docs/sdks/clientdatasources/README.md#retrievecredentialstatus) - Get datasource instance credential status +* [rotateCredentials](docs/sdks/clientdatasources/README.md#rotatecredentials) - Rotate datasource instance credentials + ### [Client.Documents](docs/sdks/clientdocuments/README.md) * [retrievePermissions](docs/sdks/clientdocuments/README.md#retrievepermissions) - Read document permissions @@ -483,10 +447,18 @@ For more information on obtaining the appropriate token type, please contact you * [retrieveByFacets](docs/sdks/clientdocuments/README.md#retrievebyfacets) - Read documents by facets * [summarize](docs/sdks/clientdocuments/README.md#summarize) - Summarize documents -### [Client.Entities](docs/sdks/cliententities/README.md) +### [Client.Entities](docs/sdks/entities/README.md) + +* [list](docs/sdks/entities/README.md#list) - List entities +* [readPeople](docs/sdks/entities/README.md#readpeople) - Read people +* [retrievePersonPhoto](docs/sdks/entities/README.md#retrievepersonphoto) - Get person photo + +### [Client.Governance.Data.Findings](docs/sdks/findings/README.md) -* [list](docs/sdks/cliententities/README.md#list) - List entities -* [readPeople](docs/sdks/cliententities/README.md#readpeople) - Read people +* [create](docs/sdks/findings/README.md#create) - Creates findings export +* [list](docs/sdks/findings/README.md#list) - Lists findings exports +* [download](docs/sdks/findings/README.md#download) - Downloads findings export +* [delete](docs/sdks/findings/README.md#delete) - Deletes findings export ### [Client.Governance.Data.Policies](docs/sdks/policies/README.md) @@ -523,13 +495,13 @@ For more information on obtaining the appropriate token type, please contact you * [create](docs/sdks/pins/README.md#create) - Create pin * [remove](docs/sdks/pins/README.md#remove) - Delete pin -### [Client.Search](docs/sdks/search/README.md) +### [Client.Search](docs/sdks/clientsearch/README.md) -* [queryAsAdmin](docs/sdks/search/README.md#queryasadmin) - Search the index (admin) -* [autocomplete](docs/sdks/search/README.md#autocomplete) - Autocomplete -* [retrieveFeed](docs/sdks/search/README.md#retrievefeed) - Feed of documents and events -* [recommendations](docs/sdks/search/README.md#recommendations) - Recommend documents -* [query](docs/sdks/search/README.md#query) - Search +* [queryAsAdmin](docs/sdks/clientsearch/README.md#queryasadmin) - Search the index (admin) +* [autocomplete](docs/sdks/clientsearch/README.md#autocomplete) - Autocomplete +* [retrieveFeed](docs/sdks/clientsearch/README.md#retrievefeed) - Feed of documents and events +* [recommendations](docs/sdks/clientsearch/README.md#recommendations) - Recommend documents +* [query](docs/sdks/clientsearch/README.md#query) - Search ### [Client.Shortcuts](docs/sdks/clientshortcuts/README.md) @@ -539,10 +511,12 @@ For more information on obtaining the appropriate token type, please contact you * [list](docs/sdks/clientshortcuts/README.md#list) - List shortcuts * [update](docs/sdks/clientshortcuts/README.md#update) - Update shortcut -### [Client.Tools](docs/sdks/clienttools/README.md) +### [Client.Tools](docs/sdks/tools/README.md) -* [list](docs/sdks/clienttools/README.md#list) - List available tools -* [run](docs/sdks/clienttools/README.md#run) - Execute the specified tool +* [list](docs/sdks/tools/README.md#list) - List available tools +* [run](docs/sdks/tools/README.md#run) - Execute the specified tool +* [retrieveActionPackAuthStatus](docs/sdks/tools/README.md#retrieveactionpackauthstatus) - Get end-user authentication status for an action pack. +* [authorizeActionPack](docs/sdks/tools/README.md#authorizeactionpack) - Start the OAuth authorization flow for an action pack. ### [Client.Verification](docs/sdks/verification/README.md) @@ -550,24 +524,6 @@ For more information on obtaining the appropriate token type, please contact you * [list](docs/sdks/verification/README.md#list) - List verifications * [verify](docs/sdks/verification/README.md#verify) - Update verification -### [Datasources](docs/sdks/datasources/README.md) - -* [getDatasourceInstanceConfiguration](docs/sdks/datasources/README.md#getdatasourceinstanceconfiguration) - Get datasource instance configuration -* [updateDatasourceInstanceConfiguration](docs/sdks/datasources/README.md#updatedatasourceinstanceconfiguration) - Update datasource instance configuration -* [getDatasourceCredentialStatus](docs/sdks/datasources/README.md#getdatasourcecredentialstatus) - Get datasource instance credential status -* [rotateDatasourceCredentials](docs/sdks/datasources/README.md#rotatedatasourcecredentials) - Rotate datasource instance credentials - -### [Entities](docs/sdks/entities/README.md) - -* [getPersonPhoto](docs/sdks/entities/README.md#getpersonphoto) - Get person photo - -### [Governance](docs/sdks/governance/README.md) - -* [createfindingsexport](docs/sdks/governance/README.md#createfindingsexport) - Creates findings export -* [listfindingsexports](docs/sdks/governance/README.md#listfindingsexports) - Lists findings exports -* [downloadfindingsexport](docs/sdks/governance/README.md#downloadfindingsexport) - Downloads findings export -* [deletefindingsexport](docs/sdks/governance/README.md#deletefindingsexport) - Deletes findings export - ### [Indexing.Authentication](docs/sdks/indexingauthentication/README.md) * [rotateToken](docs/sdks/indexingauthentication/README.md#rotatetoken) - Rotate token @@ -604,6 +560,8 @@ For more information on obtaining the appropriate token type, please contact you * [checkAccess](docs/sdks/indexingdocuments/README.md#checkaccess) - Check document access * [~~status~~](docs/sdks/indexingdocuments/README.md#status) - Get document upload and indexing status :warning: **Deprecated** * [~~count~~](docs/sdks/indexingdocuments/README.md#count) - Get document count :warning: **Deprecated** +* [debugEvents](docs/sdks/indexingdocuments/README.md#debugevents) - Beta: Get document lifecycle events + ### [Indexing.People](docs/sdks/people/README.md) @@ -638,15 +596,9 @@ For more information on obtaining the appropriate token type, please contact you * [bulkIndex](docs/sdks/indexingshortcuts/README.md#bulkindex) - Bulk index external shortcuts * [upload](docs/sdks/indexingshortcuts/README.md#upload) - Upload shortcuts -### [Tools](docs/sdks/tools/README.md) - -* [getActionPackAuthStatus](docs/sdks/tools/README.md#getactionpackauthstatus) - Get end-user authentication status for an action pack. -* [authorizeActionPack](docs/sdks/tools/README.md#authorizeactionpack) - Start the OAuth authorization flow for an action pack. - -### [Troubleshooting](docs/sdks/troubleshooting/README.md) - -* [postApiIndexV1DebugDatasourceDocumentEvents](docs/sdks/troubleshooting/README.md#postapiindexv1debugdatasourcedocumentevents) - Beta: Get document lifecycle events +### [Search](docs/sdks/search/README.md) +* [query](docs/sdks/search/README.md#query) - Search @@ -673,9 +625,10 @@ Handling errors in this SDK should largely match your expectations. All operatio package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.errors.ErrorResponse; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; import com.glean.api_client.glean_api_client.models.errors.GleanError; -import com.glean.api_client.glean_api_client.models.operations.GetAgentResponse; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; import java.io.UncheckedIOException; import java.lang.Exception; import java.lang.String; @@ -683,19 +636,23 @@ import java.util.Optional; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); try { - GetAgentResponse res = sdk.client().agents().retrieve() - .agentId("") + PlatformAgentsSearchRequest req = PlatformAgentsSearchRequest.builder() + .name("HR Policy Agent") + .build(); + + PlatformAgentsSearchResponse res = sdk.agents().search() + .request(req) .call(); - if (res.agent().isPresent()) { - System.out.println(res.agent().get()); + if (res.platformAgentsSearchResponse().isPresent()) { + System.out.println(res.platformAgentsSearchResponse().get()); } } catch (GleanError ex) { // all SDK exceptions inherit from GleanError @@ -712,11 +669,13 @@ public class Application { // different error subclasses may be thrown // depending on the service call - if (ex instanceof ErrorResponse) { - var e = (ErrorResponse) ex; + if (ex instanceof PlatformProblemDetailException) { + var e = (PlatformProblemDetailException) ex; // Check error data fields e.data().ifPresent(payload -> { - Optional message = payload.message(); + String type = payload.type(); + String title = payload.title(); + // ... }); } @@ -736,7 +695,7 @@ public class Application { **Primary error:** * [`GleanError`](./src/main/java/models/errors/GleanError.java): The base class for HTTP error responses. -
Less common errors (10) +
Less common errors (11)
@@ -746,10 +705,11 @@ public class Application { many more subclasses in the JDK platform). **Inherit from [`GleanError`](./src/main/java/models/errors/GleanError.java)**: -* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 9 of 130 methods.* -* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 5 of 130 methods.* -* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 130 methods.* -* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 130 methods.* +* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 9 of 135 methods.* +* [`com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException.java): Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. Applicable to 5 of 135 methods.* +* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 5 of 135 methods.* +* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 135 methods.* +* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 135 methods.*
@@ -774,15 +734,14 @@ The default server `https://{instance}-be.glean.com` contains variables and is s package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ActivityResponse; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; public class Application { - public static void main(String[] args) throws Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .serverIndex(0) @@ -790,37 +749,17 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - Activity req = Activity.builder() - .events(List.of( - ActivityEvent.builder() - .action(ActivityEventAction.HISTORICAL_VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.SEARCH) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/search?q=query") - .params(ActivityEventParams.builder() - .query("query") - .build()) - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .params(ActivityEventParams.builder() - .duration(20L) - .referrer("https://example.com/document") - .build()) - .build())) + PlatformAgentsSearchRequest req = PlatformAgentsSearchRequest.builder() + .name("HR Policy Agent") .build(); - ActivityResponse res = sdk.client().activity().report() + PlatformAgentsSearchResponse res = sdk.agents().search() .request(req) .call(); - // handle response + if (res.platformAgentsSearchResponse().isPresent()) { + System.out.println(res.platformAgentsSearchResponse().get()); + } } } ``` @@ -832,52 +771,31 @@ The default server can be overridden globally using the `.serverURL(String serve package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ActivityResponse; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; public class Application { - public static void main(String[] args) throws Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .serverURL("https://instance-name-be.glean.com") .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - Activity req = Activity.builder() - .events(List.of( - ActivityEvent.builder() - .action(ActivityEventAction.HISTORICAL_VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.SEARCH) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/search?q=query") - .params(ActivityEventParams.builder() - .query("query") - .build()) - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .params(ActivityEventParams.builder() - .duration(20L) - .referrer("https://example.com/document") - .build()) - .build())) + PlatformAgentsSearchRequest req = PlatformAgentsSearchRequest.builder() + .name("HR Policy Agent") .build(); - ActivityResponse res = sdk.client().activity().report() + PlatformAgentsSearchResponse res = sdk.agents().search() .request(req) .call(); - // handle response + if (res.platformAgentsSearchResponse().isPresent()) { + System.out.println(res.platformAgentsSearchResponse().get()); + } } } ``` diff --git a/RELEASES.md b/RELEASES.md index bfa455dc..88098aba 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -758,4 +758,14 @@ Based on: ### Generated - [java v0.13.2] . ### Releases -- [Maven Central v0.13.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.13.2 - . \ No newline at end of file +- [Maven Central v0.13.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.13.2 - . + +## 2026-07-02 17:47:39 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.788.0 (2.915.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.14.0] . +### Releases +- [Maven Central v0.14.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.14.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index c428ed4e..e78cd7df 100644 --- a/build.gradle +++ b/build.gradle @@ -74,10 +74,10 @@ javadocJar { } dependencies { - api 'com.fasterxml.jackson.core:jackson-annotations:2.18.8' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.8' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.8' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.8' + api 'com.fasterxml.jackson.core:jackson-annotations:2.22' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.0' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.0' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.22.0' api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'commons-io:commons-io:2.18.0' implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0' diff --git a/docs/models/components/PlatformActionSummary.md b/docs/models/components/PlatformActionSummary.md new file mode 100644 index 00000000..89b36e08 --- /dev/null +++ b/docs/models/components/PlatformActionSummary.md @@ -0,0 +1,14 @@ +# PlatformActionSummary + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `toolId` | *String* | :heavy_check_mark: | Unique identifier of the action. | +| `displayName` | *String* | :heavy_check_mark: | Display name of the action. | +| `type` | *Optional\* | :heavy_minus_sign: | Tool type. | +| `authType` | *Optional\* | :heavy_minus_sign: | Authentication type required by the action. | +| `writeActionType` | *Optional\* | :heavy_minus_sign: | Write-action execution type. | +| `isSetupFinished` | *Optional\* | :heavy_minus_sign: | Whether this action has been fully configured. | +| `dataSource` | *Optional\* | :heavy_minus_sign: | Kind of knowledge the action accesses or modifies. | \ No newline at end of file diff --git a/docs/models/components/PlatformAgent.md b/docs/models/components/PlatformAgent.md new file mode 100644 index 00000000..822f3577 --- /dev/null +++ b/docs/models/components/PlatformAgent.md @@ -0,0 +1,12 @@ +# PlatformAgent + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent. | mho4lwzylcozgoc2 | +| `name` | *String* | :heavy_check_mark: | Name of the agent. | HR Policy Agent | +| `description` | *Optional\* | :heavy_minus_sign: | Description of the agent. | | +| `metadata` | Map\ | :heavy_minus_sign: | Agent metadata. | | +| `capabilities` | [PlatformAgentCapabilities](../../models/components/PlatformAgentCapabilities.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentCapabilities.md b/docs/models/components/PlatformAgentCapabilities.md new file mode 100644 index 00000000..cd5db8ba --- /dev/null +++ b/docs/models/components/PlatformAgentCapabilities.md @@ -0,0 +1,10 @@ +# PlatformAgentCapabilities + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `apIoMessages` | *Optional\* | :heavy_minus_sign: | Whether the agent supports messages as input. | +| `apIoStreaming` | *Optional\* | :heavy_minus_sign: | Whether the agent supports streaming output. | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentExecutionStatus.md b/docs/models/components/PlatformAgentExecutionStatus.md new file mode 100644 index 00000000..8dd7293d --- /dev/null +++ b/docs/models/components/PlatformAgentExecutionStatus.md @@ -0,0 +1,22 @@ +# PlatformAgentExecutionStatus + +Status of the agent run. + +## Example Usage + +```java +import com.glean.api_client.glean_api_client.models.components.PlatformAgentExecutionStatus; + +PlatformAgentExecutionStatus value = PlatformAgentExecutionStatus.ERROR; + +// Open enum: use .of() to create instances from custom string values +PlatformAgentExecutionStatus custom = PlatformAgentExecutionStatus.of("custom_value"); +``` + + +## Values + +| Name | Value | +| --------- | --------- | +| `ERROR` | error | +| `SUCCESS` | success | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentGetResponse.md b/docs/models/components/PlatformAgentGetResponse.md new file mode 100644 index 00000000..f3f7c952 --- /dev/null +++ b/docs/models/components/PlatformAgentGetResponse.md @@ -0,0 +1,9 @@ +# PlatformAgentGetResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `agent` | [PlatformAgent](../../models/components/PlatformAgent.md) | :heavy_check_mark: | N/A | +| `requestId` | *String* | :heavy_check_mark: | Platform-generated request ID for support correlation. | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentRun.md b/docs/models/components/PlatformAgentRun.md new file mode 100644 index 00000000..7a328523 --- /dev/null +++ b/docs/models/components/PlatformAgentRun.md @@ -0,0 +1,12 @@ +# PlatformAgentRun + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent being run. | +| `input` | Map\ | :heavy_minus_sign: | Input fields for an input-form triggered agent. | +| `messages` | List\<[PlatformMessage](../../models/components/PlatformMessage.md)> | :heavy_minus_sign: | Messages passed to the agent. | +| `metadata` | Map\ | :heavy_minus_sign: | Metadata passed to the agent. | +| `status` | [PlatformAgentExecutionStatus](../../models/components/PlatformAgentExecutionStatus.md) | :heavy_check_mark: | Status of the agent run. | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentRunCreateRequest.md b/docs/models/components/PlatformAgentRunCreateRequest.md new file mode 100644 index 00000000..68cecd95 --- /dev/null +++ b/docs/models/components/PlatformAgentRunCreateRequest.md @@ -0,0 +1,14 @@ +# PlatformAgentRunCreateRequest + +Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `input` | Map\ | :heavy_minus_sign: | Input fields for an input-form triggered agent. | +| `messages` | List\<[PlatformMessage](../../models/components/PlatformMessage.md)> | :heavy_minus_sign: | Messages to pass to the agent. When provided, the array MUST contain at least one message and each message MUST specify a valid `role` and non-empty `content`.
| +| `metadata` | Map\ | :heavy_minus_sign: | Metadata to pass to the agent. | +| `stream` | *Optional\* | :heavy_minus_sign: | Whether to stream the run response as server-sent events. | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentRunWaitResponse.md b/docs/models/components/PlatformAgentRunWaitResponse.md new file mode 100644 index 00000000..3ee8ba70 --- /dev/null +++ b/docs/models/components/PlatformAgentRunWaitResponse.md @@ -0,0 +1,10 @@ +# PlatformAgentRunWaitResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `run` | [Optional\](../../models/components/PlatformAgentRun.md) | :heavy_minus_sign: | N/A | +| `messages` | List\<[PlatformMessage](../../models/components/PlatformMessage.md)> | :heavy_minus_sign: | Messages returned by the completed run. | +| `requestId` | *String* | :heavy_check_mark: | Platform-generated request ID for support correlation. | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentSchemasResponse.md b/docs/models/components/PlatformAgentSchemasResponse.md new file mode 100644 index 00000000..4e898f0c --- /dev/null +++ b/docs/models/components/PlatformAgentSchemasResponse.md @@ -0,0 +1,13 @@ +# PlatformAgentSchemasResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent. | +| `name` | *Optional\* | :heavy_minus_sign: | Name of the agent. | +| `inputSchema` | Map\ | :heavy_check_mark: | Agent input schema in JSON Schema format. | +| `outputSchema` | Map\ | :heavy_check_mark: | Agent output schema in JSON Schema format. | +| `tools` | List\<[PlatformActionSummary](../../models/components/PlatformActionSummary.md)> | :heavy_minus_sign: | Tools that the agent can invoke, when requested. | +| `requestId` | *String* | :heavy_check_mark: | Platform-generated request ID for support correlation. | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentsSearchRequest.md b/docs/models/components/PlatformAgentsSearchRequest.md new file mode 100644 index 00000000..4647646e --- /dev/null +++ b/docs/models/components/PlatformAgentsSearchRequest.md @@ -0,0 +1,8 @@ +# PlatformAgentsSearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | Case-insensitive substring to match against agent names. If omitted or empty, no name filter is applied. | HR Policy Agent | \ No newline at end of file diff --git a/docs/models/components/PlatformAgentsSearchResponse.md b/docs/models/components/PlatformAgentsSearchResponse.md new file mode 100644 index 00000000..d99b7704 --- /dev/null +++ b/docs/models/components/PlatformAgentsSearchResponse.md @@ -0,0 +1,9 @@ +# PlatformAgentsSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `agents` | List\<[PlatformAgent](../../models/components/PlatformAgent.md)> | :heavy_check_mark: | Agents matching the search request. | +| `requestId` | *String* | :heavy_check_mark: | Platform-generated request ID for support correlation. | \ No newline at end of file diff --git a/docs/models/components/PlatformContentType.md b/docs/models/components/PlatformContentType.md new file mode 100644 index 00000000..b14d42cc --- /dev/null +++ b/docs/models/components/PlatformContentType.md @@ -0,0 +1,16 @@ +# PlatformContentType + +## Example Usage + +```java +import com.glean.api_client.glean_api_client.models.components.PlatformContentType; + +PlatformContentType value = PlatformContentType.TEXT; +``` + + +## Values + +| Name | Value | +| ------ | ------ | +| `TEXT` | text | \ No newline at end of file diff --git a/docs/models/components/PlatformFilter.md b/docs/models/components/PlatformFilter.md new file mode 100644 index 00000000..9b4b83c1 --- /dev/null +++ b/docs/models/components/PlatformFilter.md @@ -0,0 +1,13 @@ +# PlatformFilter + +A single filter criterion. For `EQUALS`, multiple values within a filter are OR'd. For `NOT_EQUALS`, multiple values exclude all listed values. Filters are AND'd with each other and with any inline query operators. + + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `field` | *String* | :heavy_check_mark: | The field to filter on. Accepts built-in filter field names such as `type`, `owner`, `from`, `author`, `channel`, `status`, `assignee`, `reporter`, `component`, `mentions`, and `collection`, plus custom datasource property names.
| type | +| `values` | List\<*String*> | :heavy_check_mark: | One or more values to match. | [
"spreadsheet",
"presentation"
] | +| `operator` | [Optional\](../../models/components/PlatformFilterOperator.md) | :heavy_minus_sign: | Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` range operators require exactly one value; express bounded ranges with multiple filters on the same field.
| | \ No newline at end of file diff --git a/docs/models/components/PlatformFilterOperator.md b/docs/models/components/PlatformFilterOperator.md new file mode 100644 index 00000000..8104e06f --- /dev/null +++ b/docs/models/components/PlatformFilterOperator.md @@ -0,0 +1,23 @@ +# PlatformFilterOperator + +Supported filter operator. + +## Example Usage + +```java +import com.glean.api_client.glean_api_client.models.components.PlatformFilterOperator; + +PlatformFilterOperator value = PlatformFilterOperator.EQUALS; +``` + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `EQUALS` | EQUALS | +| `NOT_EQUALS` | NOT_EQUALS | +| `GT` | GT | +| `GTE` | GTE | +| `LT` | LT | +| `LTE` | LTE | \ No newline at end of file diff --git a/docs/models/components/PlatformMessage.md b/docs/models/components/PlatformMessage.md new file mode 100644 index 00000000..5e11fc68 --- /dev/null +++ b/docs/models/components/PlatformMessage.md @@ -0,0 +1,9 @@ +# PlatformMessage + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `role` | [PlatformMessageRole](../../models/components/PlatformMessageRole.md) | :heavy_check_mark: | Role of the message author. | USER | +| `content` | List\<[PlatformMessageTextBlock](../../models/components/PlatformMessageTextBlock.md)> | :heavy_check_mark: | Content blocks in the message. | | \ No newline at end of file diff --git a/docs/models/components/PlatformMessageRole.md b/docs/models/components/PlatformMessageRole.md new file mode 100644 index 00000000..1e374ffa --- /dev/null +++ b/docs/models/components/PlatformMessageRole.md @@ -0,0 +1,22 @@ +# PlatformMessageRole + +Role of the message author. + +## Example Usage + +```java +import com.glean.api_client.glean_api_client.models.components.PlatformMessageRole; + +PlatformMessageRole value = PlatformMessageRole.USER; + +// Open enum: use .of() to create instances from custom string values +PlatformMessageRole custom = PlatformMessageRole.of("custom_value"); +``` + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `USER` | USER | +| `GLEAN_AI` | GLEAN_AI | \ No newline at end of file diff --git a/docs/models/components/PlatformMessageTextBlock.md b/docs/models/components/PlatformMessageTextBlock.md new file mode 100644 index 00000000..0e3bc639 --- /dev/null +++ b/docs/models/components/PlatformMessageTextBlock.md @@ -0,0 +1,9 @@ +# PlatformMessageTextBlock + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `text` | *String* | :heavy_check_mark: | Text content. | +| `type` | [PlatformContentType](../../models/components/PlatformContentType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/PlatformPersonReference.md b/docs/models/components/PlatformPersonReference.md new file mode 100644 index 00000000..8106cb5e --- /dev/null +++ b/docs/models/components/PlatformPersonReference.md @@ -0,0 +1,11 @@ +# PlatformPersonReference + +A lightweight reference to a person, used where a payload merely points at someone. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `id` | *Optional\* | :heavy_minus_sign: | Opaque Glean person ID. | +| `name` | *String* | :heavy_check_mark: | Display name. | \ No newline at end of file diff --git a/docs/models/components/PlatformProblemDetailCode.md b/docs/models/components/PlatformProblemDetailCode.md new file mode 100644 index 00000000..39ba23fd --- /dev/null +++ b/docs/models/components/PlatformProblemDetailCode.md @@ -0,0 +1,39 @@ +# PlatformProblemDetailCode + +Stable machine-readable error code. + +## Example Usage + +```java +import com.glean.api_client.glean_api_client.models.components.PlatformProblemDetailCode; + +PlatformProblemDetailCode value = PlatformProblemDetailCode.INVALID_REQUEST; + +// Open enum: use .of() to create instances from custom string values +PlatformProblemDetailCode custom = PlatformProblemDetailCode.of("custom_value"); +``` + + +## Values + +| Name | Value | +| -------------------------- | -------------------------- | +| `INVALID_REQUEST` | invalid_request | +| `MISSING_REQUIRED_FIELD` | missing_required_field | +| `INVALID_PARAMETER` | invalid_parameter | +| `INVALID_CURSOR` | invalid_cursor | +| `EXPIRED_CURSOR` | expired_cursor | +| `INVALID_FILTER` | invalid_filter | +| `INVALID_DATASOURCE` | invalid_datasource | +| `AUTHENTICATION_REQUIRED` | authentication_required | +| `TOKEN_EXPIRED` | token_expired | +| `INSUFFICIENT_PERMISSIONS` | insufficient_permissions | +| `RESOURCE_NOT_FOUND` | resource_not_found | +| `METHOD_NOT_ALLOWED` | method_not_allowed | +| `REQUEST_TIMEOUT` | request_timeout | +| `CONFLICT` | conflict | +| `GONE` | gone | +| `UNPROCESSABLE_QUERY` | unprocessable_query | +| `RATE_LIMIT_EXCEEDED` | rate_limit_exceeded | +| `INTERNAL_ERROR` | internal_error | +| `SERVICE_UNAVAILABLE` | service_unavailable | \ No newline at end of file diff --git a/docs/models/components/PlatformProblemDetailError.md b/docs/models/components/PlatformProblemDetailError.md new file mode 100644 index 00000000..3f6de73e --- /dev/null +++ b/docs/models/components/PlatformProblemDetailError.md @@ -0,0 +1,12 @@ +# PlatformProblemDetailError + +Field-level validation problem for a single offending field. + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `pointer` | *String* | :heavy_check_mark: | RFC 6901 JSON Pointer to the offending field. | /messages/0/role | +| `detail` | *String* | :heavy_check_mark: | Human-readable explanation for this field. | Must be one of: USER, GLEAN_AI. | +| `code` | [Optional\](../../models/components/PlatformProblemDetailCode.md) | :heavy_minus_sign: | Stable machine-readable error code. | invalid_cursor | \ No newline at end of file diff --git a/docs/models/components/PlatformResult.md b/docs/models/components/PlatformResult.md new file mode 100644 index 00000000..c1f2481b --- /dev/null +++ b/docs/models/components/PlatformResult.md @@ -0,0 +1,17 @@ +# PlatformResult + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `url` | *String* | :heavy_check_mark: | Canonical URL of the result. | https://company.atlassian.net/wiki/spaces/ENG/pages/12345 | +| `title` | *String* | :heavy_check_mark: | Result title. | Q2 2026 Platform Roadmap | +| `snippets` | List\<*String*> | :heavy_minus_sign: | Query-relevant plain-text excerpts from the result body. | [
"The platform team will focus on API stability and..."
] | +| `datasource` | *String* | :heavy_check_mark: | The datasource this result originates from. | confluence | +| `datasourceInstance` | *JsonNullable\* | :heavy_minus_sign: | The datasource instance this result originates from, if known. | confluence_acme | +| `documentType` | *JsonNullable\* | :heavy_minus_sign: | The document type within the datasource. | page | +| `creator` | [Optional\](../../models/components/PlatformPersonReference.md) | :heavy_minus_sign: | A lightweight reference to a person, used where a payload merely points at someone. | | +| `owner` | [Optional\](../../models/components/PlatformPersonReference.md) | :heavy_minus_sign: | A lightweight reference to a person, used where a payload merely points at someone. | | +| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | When the result was last modified. | | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | When the result was created. | | \ No newline at end of file diff --git a/docs/models/components/PlatformSearchRequest.md b/docs/models/components/PlatformSearchRequest.md new file mode 100644 index 00000000..fb3eaf39 --- /dev/null +++ b/docs/models/components/PlatformSearchRequest.md @@ -0,0 +1,14 @@ +# PlatformSearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `query` | *String* | :heavy_check_mark: | The search query string. Supports inline operators such as `from:jane type:document app:confluence`. Inline operators are AND'd with structured `filters`.
| quarterly planning 2026 | +| `pageSize` | *Optional\* | :heavy_minus_sign: | Number of results to return per page. | | +| `cursor` | *JsonNullable\* | :heavy_minus_sign: | Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request.
| | +| `datasources` | List\<*String*> | :heavy_minus_sign: | Restrict results to specific datasources. Requests must not specify both `datasources` and `datasource_instances`.
| [
"confluence",
"google_drive"
] | +| `datasourceInstances` | List\<*String*> | :heavy_minus_sign: | Restrict results to specific datasource instances. Values are datasource instance identifiers returned by `GET /api/search/filters`. Requests must not specify both `datasources` and `datasource_instances`.
| [
"slack_acme",
"slack_eu"
] | +| `filters` | List\<[PlatformFilter](../../models/components/PlatformFilter.md)> | :heavy_minus_sign: | Structured filters applied to search results. Equality operators OR multiple values within a filter. Multiple filters are AND'd together, including range filters on the same field. Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty result set.
| | +| `timeRange` | [Optional\](../../models/components/PlatformTimeRange.md) | :heavy_minus_sign: | Filter results to those last updated within this range. | | \ No newline at end of file diff --git a/docs/models/components/PlatformSearchResponse.md b/docs/models/components/PlatformSearchResponse.md new file mode 100644 index 00000000..083cad41 --- /dev/null +++ b/docs/models/components/PlatformSearchResponse.md @@ -0,0 +1,11 @@ +# PlatformSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `results` | List\<[PlatformResult](../../models/components/PlatformResult.md)> | :heavy_check_mark: | Ordered list of search results. | +| `hasMore` | *boolean* | :heavy_check_mark: | Indicates whether additional pages of results are available. | +| `nextCursor` | *Optional\* | :heavy_check_mark: | Opaque token to pass as `cursor` in the next request. | +| `requestId` | *String* | :heavy_check_mark: | Platform-generated request ID for support correlation. | \ No newline at end of file diff --git a/docs/models/components/PlatformTimeRange.md b/docs/models/components/PlatformTimeRange.md new file mode 100644 index 00000000..67c075a6 --- /dev/null +++ b/docs/models/components/PlatformTimeRange.md @@ -0,0 +1,11 @@ +# PlatformTimeRange + +Filter results to those last updated within this range. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `start` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Inclusive lower bound in ISO 8601 format. | +| `end` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | Exclusive upper bound in ISO 8601 format. | \ No newline at end of file diff --git a/docs/models/errors/PlatformProblemDetailException.md b/docs/models/errors/PlatformProblemDetailException.md new file mode 100644 index 00000000..e3133b51 --- /dev/null +++ b/docs/models/errors/PlatformProblemDetailException.md @@ -0,0 +1,18 @@ +# PlatformProblemDetailException + +Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. + + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `type` | *String* | :heavy_check_mark: | URI identifying the error type. | https://developer.glean.com/errors/invalid-cursor | +| `title` | *String* | :heavy_check_mark: | Short, human-readable summary of the error. | Invalid Pagination Cursor | +| `status` | *long* | :heavy_check_mark: | HTTP status code mirrored from the response. | 400 | +| `detail` | *String* | :heavy_check_mark: | Human-readable explanation specific to this occurrence. | The provided cursor has expired. Start a new search to get a fresh cursor.
| +| `code` | [PlatformProblemDetailCode](../../models/components/PlatformProblemDetailCode.md) | :heavy_check_mark: | Stable machine-readable error code. | invalid_cursor | +| `documentationUrl` | *Optional\* | :heavy_minus_sign: | Direct URL to documentation for this error code. | https://developer.glean.com/errors/invalid-cursor | +| `requestId` | *String* | :heavy_check_mark: | Platform-generated request ID for support correlation. | req_7f8a9b0c1d2e | +| `errors` | List\<[PlatformProblemDetailError](../../models/components/PlatformProblemDetailError.md)> | :heavy_minus_sign: | Field-level validation problems, one entry per offending field. | | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsCreateRunRequest.md b/docs/models/operations/PlatformAgentsCreateRunRequest.md new file mode 100644 index 00000000..5824662e --- /dev/null +++ b/docs/models/operations/PlatformAgentsCreateRunRequest.md @@ -0,0 +1,9 @@ +# PlatformAgentsCreateRunRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent to run. | +| `platformAgentRunCreateRequest` | [PlatformAgentRunCreateRequest](../../models/components/PlatformAgentRunCreateRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsCreateRunResponse.md b/docs/models/operations/PlatformAgentsCreateRunResponse.md new file mode 100644 index 00000000..d930b7ed --- /dev/null +++ b/docs/models/operations/PlatformAgentsCreateRunResponse.md @@ -0,0 +1,12 @@ +# PlatformAgentsCreateRunResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `platformAgentRunWaitResponse` | [Optional\](../../models/components/PlatformAgentRunWaitResponse.md) | :heavy_minus_sign: | Successful response. | +| `res` | *Optional\* | :heavy_minus_sign: | Successful response. | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsGetRequest.md b/docs/models/operations/PlatformAgentsGetRequest.md new file mode 100644 index 00000000..f55b2cfb --- /dev/null +++ b/docs/models/operations/PlatformAgentsGetRequest.md @@ -0,0 +1,8 @@ +# PlatformAgentsGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent to retrieve. | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsGetResponse.md b/docs/models/operations/PlatformAgentsGetResponse.md new file mode 100644 index 00000000..bbf6b68c --- /dev/null +++ b/docs/models/operations/PlatformAgentsGetResponse.md @@ -0,0 +1,11 @@ +# PlatformAgentsGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `platformAgentGetResponse` | [Optional\](../../models/components/PlatformAgentGetResponse.md) | :heavy_minus_sign: | Successful response. | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsGetSchemasRequest.md b/docs/models/operations/PlatformAgentsGetSchemasRequest.md new file mode 100644 index 00000000..710fc7b6 --- /dev/null +++ b/docs/models/operations/PlatformAgentsGetSchemasRequest.md @@ -0,0 +1,9 @@ +# PlatformAgentsGetSchemasRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent whose schemas should be retrieved. | +| `includeTools` | *Optional\* | :heavy_minus_sign: | Whether to include tool metadata in the response. | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsGetSchemasResponse.md b/docs/models/operations/PlatformAgentsGetSchemasResponse.md new file mode 100644 index 00000000..ba185290 --- /dev/null +++ b/docs/models/operations/PlatformAgentsGetSchemasResponse.md @@ -0,0 +1,11 @@ +# PlatformAgentsGetSchemasResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `platformAgentSchemasResponse` | [Optional\](../../models/components/PlatformAgentSchemasResponse.md) | :heavy_minus_sign: | Successful response. | \ No newline at end of file diff --git a/docs/models/operations/PlatformAgentsSearchResponse.md b/docs/models/operations/PlatformAgentsSearchResponse.md new file mode 100644 index 00000000..e1d4afd4 --- /dev/null +++ b/docs/models/operations/PlatformAgentsSearchResponse.md @@ -0,0 +1,11 @@ +# PlatformAgentsSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `platformAgentsSearchResponse` | [Optional\](../../models/components/PlatformAgentsSearchResponse.md) | :heavy_minus_sign: | Successful response. | \ No newline at end of file diff --git a/docs/models/operations/PlatformSearchResponse.md b/docs/models/operations/PlatformSearchResponse.md new file mode 100644 index 00000000..10908aea --- /dev/null +++ b/docs/models/operations/PlatformSearchResponse.md @@ -0,0 +1,11 @@ +# PlatformSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `platformSearchResponse` | [Optional\](../../models/components/PlatformSearchResponse.md) | :heavy_minus_sign: | Successful search. | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index 1fe959f7..6377e3c1 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -4,39 +4,46 @@ ### Available Operations -* [createAgent](#createagent) - Create an agent -* [editAgent](#editagent) - Edit an agent +* [search](#search) - Search agents +* [get](#get) - Get agent +* [getSchemas](#getschemas) - Get agent schemas +* [createRun](#createrun) - Create agent run -## createAgent +## search + +Search agents available to the authenticated user by agent name. -Create an agent. ### Example Usage - + ```java package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.CreateWorkflowRequest; -import com.glean.api_client.glean_api_client.models.operations.CreateAgentResponse; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - CreateAgentResponse res = sdk.agents().createAgent() - .createWorkflowRequest(CreateWorkflowRequest.builder() - .build()) + PlatformAgentsSearchRequest req = PlatformAgentsSearchRequest.builder() + .name("HR Policy Agent") + .build(); + + PlatformAgentsSearchResponse res = sdk.agents().search() + .request(req) .call(); - if (res.workflowResult().isPresent()) { - System.out.println(res.workflowResult().get()); + if (res.platformAgentsSearchResponse().isPresent()) { + System.out.println(res.platformAgentsSearchResponse().get()); } } } @@ -44,73 +51,189 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `createWorkflowRequest` | [CreateWorkflowRequest](../../models/components/CreateWorkflowRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [PlatformAgentsSearchRequest](../../models/shared/PlatformAgentsSearchRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[CreateAgentResponse](../../models/operations/CreateAgentResponse.md)** +**[PlatformAgentsSearchResponse](../../models/operations/PlatformAgentsSearchResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | +| models/errors/APIException | 4XX, 5XX | \*/\* | -## editAgent +## get + +Retrieve details for an agent available to the authenticated user. -Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and publish modes are supported. ### Example Usage - + ```java package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.EditWorkflowRequest; -import com.glean.api_client.glean_api_client.models.errors.ErrorResponse; -import com.glean.api_client.glean_api_client.models.operations.EditAgentResponse; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - EditAgentResponse res = sdk.agents().editAgent() + PlatformAgentsGetResponse res = sdk.agents().get() .agentId("") - .editWorkflowRequest(EditWorkflowRequest.builder() + .call(); + + if (res.platformAgentGetResponse().isPresent()) { + System.out.println(res.platformAgentGetResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent to retrieve. | + +### Response + +**[PlatformAgentsGetResponse](../../models/operations/PlatformAgentsGetResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## getSchemas + +Retrieve an agent's input and output JSON schemas. + + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws PlatformProblemDetailException, Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + PlatformAgentsGetSchemasResponse res = sdk.agents().getSchemas() + .agentId("") + .includeTools(false) + .call(); + + if (res.platformAgentSchemasResponse().isPresent()) { + System.out.println(res.platformAgentSchemasResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent whose schemas should be retrieved. | +| `includeTools` | *Optional\* | :heavy_minus_sign: | Whether to include tool metadata in the response. | + +### Response + +**[PlatformAgentsGetSchemasResponse](../../models/operations/PlatformAgentsGetSchemasResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## createRun + +Execute an agent run. Set `stream` to true to receive server-sent events; otherwise the response contains the final agent messages. + + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws PlatformProblemDetailException, Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + PlatformAgentsCreateRunResponse res = sdk.agents().createRun() + .agentId("") + .platformAgentRunCreateRequest(PlatformAgentRunCreateRequest.builder() + .messages(List.of( + PlatformMessage.builder() + .role(PlatformMessageRole.USER) + .content(List.of()) + .build())) .build()) .call(); - // handle response + if (res.platformAgentRunWaitResponse().isPresent()) { + System.out.println(res.platformAgentRunWaitResponse().get()); + } } } ``` ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | -| `editWorkflowRequest` | [EditWorkflowRequest](../../models/components/EditWorkflowRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `agentId` | *String* | :heavy_check_mark: | ID of the agent to run. | +| `platformAgentRunCreateRequest` | [PlatformAgentRunCreateRequest](../../models/components/PlatformAgentRunCreateRequest.md) | :heavy_check_mark: | N/A | ### Response -**[EditAgentResponse](../../models/operations/EditAgentResponse.md)** +**[PlatformAgentsCreateRunResponse](../../models/operations/PlatformAgentsCreateRunResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | 404 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 409, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | +| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/authentication/README.md b/docs/sdks/authentication/README.md deleted file mode 100644 index 3dc2fdb8..00000000 --- a/docs/sdks/authentication/README.md +++ /dev/null @@ -1,58 +0,0 @@ -# Authentication - -## Overview - -Manage indexing API tokens. - -### Available Operations - -* [checkdatasourceauth](#checkdatasourceauth) - Check datasource authorization - -## checkdatasourceauth - -Returns all datasource instances that require per-user OAuth authorization -for the authenticated user, along with a transient auth token that can be -appended to auth URLs to complete OAuth flows. - -Clients construct the full OAuth URL by combining the backend base URL, -the `authUrlRelativePath` from each instance, and the transient auth token: -`/?transient_auth_token=`. - - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.operations.CheckdatasourceauthResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - CheckdatasourceauthResponse res = sdk.authentication().checkdatasourceauth() - .call(); - - if (res.checkDatasourceAuthResponse().isPresent()) { - System.out.println(res.checkDatasourceAuthResponse().get()); - } - } -} -``` - -### Response - -**[CheckdatasourceauthResponse](../../models/operations/CheckdatasourceauthResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index c20a5675..d38cf187 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -1,12 +1,50148 @@ -# Chat +# Client.Chat ## Overview ### Available Operations -* [getChatFile](#getchatfile) - Download a chat file +* [create](#create) - Chat +* [deleteAll](#deleteall) - Deletes all saved Chats owned by a user +* [delete](#delete) - Deletes saved Chats +* [retrieve](#retrieve) - Retrieves a Chat +* [list](#list) - Retrieves all saved Chats +* [retrieveApplication](#retrieveapplication) - Gets the metadata for a custom Chat application +* [uploadFiles](#uploadfiles) - Upload files for Chat +* [retrieveFiles](#retrievefiles) - Get files uploaded by a user for Chat +* [deleteFiles](#deletefiles) - Delete files uploaded by a user for chat +* [retrieveFile](#retrievefile) - Download a chat file +* [createStream](#createstream) - Chat -## getChatFile +## create + +Have a conversation with Glean AI. + +### Example Usage: citationResponse + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatResponse; +import java.lang.Exception; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatResponse res = sdk.client().chat().create() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build(), + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build(), + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build())) + .timeoutMillis(30000L) + .build()) + .call(); + + if (res.chatResponse().isPresent()) { + System.out.println(res.chatResponse().get()); + } + } +} +``` +### Example Usage: defaultExample + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatResponse res = sdk.client().chat().create() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .fragments(List.of( + ChatMessageFragment.builder() + .text("What are the company holidays this year?") + .build())) + .build())) + .build()) + .call(); + + if (res.chatResponse().isPresent()) { + System.out.println(res.chatResponse().get()); + } + } +} +``` +### Example Usage: gptAgentExample + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatResponse res = sdk.client().chat().create() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .fragments(List.of( + ChatMessageFragment.builder() + .text("Who was the first person to land on the moon?") + .build())) + .build())) + .agentConfig(AgentConfig.builder() + .agent(AgentEnum.GPT) + .build()) + .build()) + .call(); + + if (res.chatResponse().isPresent()) { + System.out.println(res.chatResponse().get()); + } + } +} +``` +### Example Usage: streamingExample + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatResponse; +import java.lang.Exception; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatResponse res = sdk.client().chat().create() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build(), + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build(), + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build())) + .timeoutMillis(30000L) + .build()) + .call(); + + if (res.chatResponse().isPresent()) { + System.out.println(res.chatResponse().get()); + } + } +} +``` +### Example Usage: updateResponse + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatResponse; +import java.lang.Exception; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatResponse res = sdk.client().chat().create() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build(), + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build(), + ChatMessage.builder() + .citations(List.of( + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + ChatMessageCitation.builder() + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .sourceFile(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .sourcePerson(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .referenceRanges(List.of( + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build(), + ReferenceRange.builder() + .textRange(TextRange.builder() + .startIndex(260313L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .fragments(List.of( + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build(), + ChatMessageFragment.builder() + .structuredResults(List.of( + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build(), + StructuredResult.builder() + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .customer(Customer.builder() + .id("") + .company(Company.builder() + .name("") + .location("New York City") + .industry("Finances") + .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") + .build()) + .poc(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .notes("CIO is interested in trying out the product.") + .build()) + .team(Team.builder() + .id("") + .name("") + .members(List.of( + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .build()) + .customEntity(CustomEntity.builder() + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .answer(Answer.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .question("Why is the sky blue?") + .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.OWNER) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .combinedAnswerText(StructuredText.builder() + .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") + .structuredList(List.of( + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") + .build())) + .build()) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + AnswerLike.builder() + .user(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .likedByUser(true) + .numLikes(412487L) + .build()) + .author(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .verification(Verification.builder() + .state(State.VERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(587641L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(633695L) + .requestor(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") + .id(345790L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build(), + CollectionItem.builder() + .collectionId(765696L) + .itemType(CollectionItemItemType.URL) + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build())) + .build())) + .sourceDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .extractedQnA(ExtractedQnA.builder() + .questionResult(SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") + .id(444084L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .creator(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .updatedBy(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .destinationDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .build()) + .relatedDocuments(List.of( + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build(), + RelatedDocuments.builder() + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .results(List.of( + SearchResult.builder() + .url("https://example.com/foo/bar") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .mimeType("mimeType") + .snippet("snippet") + .build())) + .build())) + .build())) + .relatedQuestion(RelatedQuestion.builder() + .ranges(List.of( + TextRange.builder() + .startIndex(367849L) + .document(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build())) + .build()) + .build())) + .querySuggestion(QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build()) + .file(ChatFile.builder() + .id("FILE_1234") + .url("www.google.com") + .name("sample.pdf") + .build()) + .action(ToolInfo.builder() + .metadata(ToolMetadata.builder() + .type(ToolMetadataType.RETRIEVAL) + .name("") + .displayName("Avis_Gislason87") + .displayDescription("") + .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") + .build()) + .build()) + .build())) + .build())) + .timeoutMillis(30000L) + .build()) + .call(); + + if (res.chatResponse().isPresent()) { + System.out.println(res.chatResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | + +### Response + +**[ChatResponse](../../models/operations/ChatResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## deleteAll + +Deletes all saved Chats a user has had and all their contained conversational content. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + DeleteallchatsResponse res = sdk.client().chat().deleteAll() + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | + +### Response + +**[DeleteallchatsResponse](../../models/operations/DeleteallchatsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## delete + +Deletes saved Chats and all their contained conversational content. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletechatsResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + DeletechatsResponse res = sdk.client().chat().delete() + .deleteChatsRequest(DeleteChatsRequest.builder() + .ids(List.of()) + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatsRequest` | [DeleteChatsRequest](../../models/components/DeleteChatsRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[DeletechatsResponse](../../models/operations/DeletechatsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieve + +Retrieves the chat history between Glean Assistant and the user for a given Chat. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.GetChatRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + GetchatResponse res = sdk.client().chat().retrieve() + .getChatRequest(GetChatRequest.builder() + .id("") + .build()) + .call(); + + if (res.getChatResponse().isPresent()) { + System.out.println(res.getChatResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatRequest` | [GetChatRequest](../../models/components/GetChatRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[GetchatResponse](../../models/operations/GetchatResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## list + +Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.operations.ListchatsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ListchatsResponse res = sdk.client().chat().list() + .call(); + + if (res.listChatsResponse().isPresent()) { + System.out.println(res.listChatsResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | + +### Response + +**[ListchatsResponse](../../models/operations/ListchatsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieveApplication + +Gets the Chat application details for the specified application ID. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + GetchatapplicationResponse res = sdk.client().chat().retrieveApplication() + .getChatApplicationRequest(GetChatApplicationRequest.builder() + .id("") + .build()) + .call(); + + if (res.getChatApplicationResponse().isPresent()) { + System.out.println(res.getChatApplicationResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatApplicationRequest` | [GetChatApplicationRequest](../../models/components/GetChatApplicationRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[GetchatapplicationResponse](../../models/operations/GetchatapplicationResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## uploadFiles + +Upload files for Chat. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.File; +import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest; +import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesResponse; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.FileInputStream; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + UploadchatfilesResponse res = sdk.client().chat().uploadFiles() + .uploadChatFilesRequest(UploadChatFilesRequest.builder() + .files(List.of( + File.builder() + .fileName("example.file") + .content(Utils.readBytesAndClose(new FileInputStream("example.file"))) + .build())) + .build()) + .call(); + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `uploadChatFilesRequest` | [UploadChatFilesRequest](../../models/components/UploadChatFilesRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[UploadchatfilesResponse](../../models/operations/UploadchatfilesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieveFiles + +Get files uploaded by a user for Chat. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatfilesResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + GetchatfilesResponse res = sdk.client().chat().retrieveFiles() + .getChatFilesRequest(GetChatFilesRequest.builder() + .fileIds(List.of( + "")) + .build()) + .call(); + + if (res.getChatFilesResponse().isPresent()) { + System.out.println(res.getChatFilesResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatFilesRequest` | [GetChatFilesRequest](../../models/components/GetChatFilesRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[GetchatfilesResponse](../../models/operations/GetchatfilesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## deleteFiles + +Delete files uploaded by a user for Chat. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + DeletechatfilesResponse res = sdk.client().chat().deleteFiles() + .deleteChatFilesRequest(DeleteChatFilesRequest.builder() + .fileIds(List.of( + "", + "", + "")) + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatFilesRequest` | [DeleteChatFilesRequest](../../models/components/DeleteChatFilesRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[DeletechatfilesResponse](../../models/operations/DeletechatfilesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieveFile Download the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type. @@ -29,7 +50165,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetChatFileResponse res = sdk.chat().getChatFile() + GetChatFileResponse res = sdk.client().chat().retrieveFile() .fileId("") .call(); @@ -53,6 +50189,206 @@ public class Application { ### Errors +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## createStream + +Have a conversation with Glean AI. + +### Example Usage: citationResponse + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.ChatRequest; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatStreamResponse res = sdk.client().chat().createStream() + .chatRequest(ChatRequest.builder() + .messages(List.of()) + .timeoutMillis(30000L) + .build()) + .call(); + + if (res.chatRequestStream().isPresent()) { + System.out.println(res.chatRequestStream().get()); + } + } +} +``` +### Example Usage: defaultExample + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatStreamResponse res = sdk.client().chat().createStream() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .fragments(List.of( + ChatMessageFragment.builder() + .text("What are the company holidays this year?") + .build())) + .build())) + .build()) + .call(); + + if (res.chatRequestStream().isPresent()) { + System.out.println(res.chatRequestStream().get()); + } + } +} +``` +### Example Usage: gptAgentExample + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatStreamResponse res = sdk.client().chat().createStream() + .chatRequest(ChatRequest.builder() + .messages(List.of( + ChatMessage.builder() + .fragments(List.of( + ChatMessageFragment.builder() + .text("Who was the first person to land on the moon?") + .build())) + .build())) + .agentConfig(AgentConfig.builder() + .agent(AgentEnum.GPT) + .build()) + .build()) + .call(); + + if (res.chatRequestStream().isPresent()) { + System.out.println(res.chatRequestStream().get()); + } + } +} +``` +### Example Usage: streamingExample + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.ChatRequest; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatStreamResponse res = sdk.client().chat().createStream() + .chatRequest(ChatRequest.builder() + .messages(List.of()) + .timeoutMillis(30000L) + .build()) + .call(); + + if (res.chatRequestStream().isPresent()) { + System.out.println(res.chatRequestStream().get()); + } + } +} +``` +### Example Usage: updateResponse + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.ChatRequest; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ChatStreamResponse res = sdk.client().chat().createStream() + .chatRequest(ChatRequest.builder() + .messages(List.of()) + .timeoutMillis(30000L) + .build()) + .call(); + + if (res.chatRequestStream().isPresent()) { + System.out.println(res.chatRequestStream().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | + +### Response + +**[ChatStreamResponse](../../models/operations/ChatStreamResponse.md)** + +### Errors + | Error Type | Status Code | Content Type | | -------------------------- | -------------------------- | -------------------------- | | models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/clientagents/README.md b/docs/sdks/clientagents/README.md index 21e86441..34a21ef0 100644 --- a/docs/sdks/clientagents/README.md +++ b/docs/sdks/clientagents/README.md @@ -4,12 +4,67 @@ ### Available Operations +* [create](#create) - Create an agent * [retrieve](#retrieve) - Retrieve an agent +* [update](#update) - Edit an agent * [retrieveSchemas](#retrieveschemas) - List an agent's schemas * [list](#list) - Search agents * [runStream](#runstream) - Create an agent run and stream the response * [run](#run) - Create an agent run and wait for the response +## create + +Create an agent. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.CreateWorkflowRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateAgentResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + CreateAgentResponse res = sdk.client().agents().create() + .createWorkflowRequest(CreateWorkflowRequest.builder() + .build()) + .call(); + + if (res.workflowResult().isPresent()) { + System.out.println(res.workflowResult().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `createWorkflowRequest` | [CreateWorkflowRequest](../../models/components/CreateWorkflowRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[CreateAgentResponse](../../models/operations/CreateAgentResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + ## retrieve Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. @@ -63,6 +118,61 @@ public class Application { | models/errors/ErrorResponse | 404 | application/json | | models/errors/APIException | 4XX, 5XX | \*/\* | +## update + +Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and publish modes are supported. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.EditWorkflowRequest; +import com.glean.api_client.glean_api_client.models.errors.ErrorResponse; +import com.glean.api_client.glean_api_client.models.operations.EditAgentResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ErrorResponse, Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + EditAgentResponse res = sdk.client().agents().update() + .agentId("") + .editWorkflowRequest(EditWorkflowRequest.builder() + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | +| `editWorkflowRequest` | [EditWorkflowRequest](../../models/components/EditWorkflowRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[EditAgentResponse](../../models/operations/EditAgentResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | 404 | application/json | +| models/errors/APIException | 4XX, 5XX | \*/\* | + ## retrieveSchemas Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. diff --git a/docs/sdks/clientauthentication/README.md b/docs/sdks/clientauthentication/README.md index 4a0e88ee..401ff982 100644 --- a/docs/sdks/clientauthentication/README.md +++ b/docs/sdks/clientauthentication/README.md @@ -4,8 +4,58 @@ ### Available Operations +* [checkDatasourceAuth](#checkdatasourceauth) - Check datasource authorization * [createToken](#createtoken) - Create authentication token +## checkDatasourceAuth + +Returns all datasource instances that require per-user OAuth authorization +for the authenticated user, along with a transient auth token that can be +appended to auth URLs to complete OAuth flows. + +Clients construct the full OAuth URL by combining the backend base URL, +the `authUrlRelativePath` from each instance, and the transient auth token: +`/?transient_auth_token=`. + + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.operations.CheckdatasourceauthResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + CheckdatasourceauthResponse res = sdk.client().authentication().checkDatasourceAuth() + .call(); + + if (res.checkDatasourceAuthResponse().isPresent()) { + System.out.println(res.checkDatasourceAuthResponse().get()); + } + } +} +``` + +### Response + +**[CheckdatasourceauthResponse](../../models/operations/CheckdatasourceauthResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + ## createToken Creates an authentication token for the authenticated user. These are diff --git a/docs/sdks/clientchat/README.md b/docs/sdks/clientchat/README.md deleted file mode 100644 index 25e8121d..00000000 --- a/docs/sdks/clientchat/README.md +++ /dev/null @@ -1,50342 +0,0 @@ -# Client.Chat - -## Overview - -### Available Operations - -* [create](#create) - Chat -* [deleteAll](#deleteall) - Deletes all saved Chats owned by a user -* [delete](#delete) - Deletes saved Chats -* [retrieve](#retrieve) - Retrieves a Chat -* [list](#list) - Retrieves all saved Chats -* [retrieveApplication](#retrieveapplication) - Gets the metadata for a custom Chat application -* [uploadFiles](#uploadfiles) - Upload files for Chat -* [retrieveFiles](#retrievefiles) - Get files uploaded by a user for Chat -* [deleteFiles](#deletefiles) - Delete files uploaded by a user for chat -* [createStream](#createstream) - Chat - -## create - -Have a conversation with Glean AI. - -### Example Usage: citationResponse - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatResponse; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatResponse res = sdk.client().chat().create() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build())) - .timeoutMillis(30000L) - .build()) - .call(); - - if (res.chatResponse().isPresent()) { - System.out.println(res.chatResponse().get()); - } - } -} -``` -### Example Usage: defaultExample - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatResponse res = sdk.client().chat().create() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .fragments(List.of( - ChatMessageFragment.builder() - .text("What are the company holidays this year?") - .build())) - .build())) - .build()) - .call(); - - if (res.chatResponse().isPresent()) { - System.out.println(res.chatResponse().get()); - } - } -} -``` -### Example Usage: gptAgentExample - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatResponse res = sdk.client().chat().create() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .fragments(List.of( - ChatMessageFragment.builder() - .text("Who was the first person to land on the moon?") - .build())) - .build())) - .agentConfig(AgentConfig.builder() - .agent(AgentEnum.GPT) - .build()) - .build()) - .call(); - - if (res.chatResponse().isPresent()) { - System.out.println(res.chatResponse().get()); - } - } -} -``` -### Example Usage: streamingExample - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatResponse; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatResponse res = sdk.client().chat().create() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build())) - .timeoutMillis(30000L) - .build()) - .call(); - - if (res.chatResponse().isPresent()) { - System.out.println(res.chatResponse().get()); - } - } -} -``` -### Example Usage: updateResponse - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatResponse; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatResponse res = sdk.client().chat().create() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(260313L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .question("Why is the sky blue?") - .bodyText("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .text("From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.") - .structuredList(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(true) - .numLikes(412487L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(587641L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(633695L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("vicinity officially eek fondly hmph clinking um ah circa well-groomed") - .id(345790L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(765696L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("governance poetry alb supposing quarrelsomely boohoo squirm bah fooey fooey") - .id(444084L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .mimeType("mimeType") - .snippet("snippet") - .build())) - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(367849L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Avis_Gislason87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build())) - .timeoutMillis(30000L) - .build()) - .call(); - - if (res.chatResponse().isPresent()) { - System.out.println(res.chatResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | - -### Response - -**[ChatResponse](../../models/operations/ChatResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## deleteAll - -Deletes all saved Chats a user has had and all their contained conversational content. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - DeleteallchatsResponse res = sdk.client().chat().deleteAll() - .call(); - - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | - -### Response - -**[DeleteallchatsResponse](../../models/operations/DeleteallchatsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Deletes saved Chats and all their contained conversational content. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletechatsResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - DeletechatsResponse res = sdk.client().chat().delete() - .deleteChatsRequest(DeleteChatsRequest.builder() - .ids(List.of()) - .build()) - .call(); - - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatsRequest` | [DeleteChatsRequest](../../models/components/DeleteChatsRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[DeletechatsResponse](../../models/operations/DeletechatsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## retrieve - -Retrieves the chat history between Glean Assistant and the user for a given Chat. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.GetChatRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - GetchatResponse res = sdk.client().chat().retrieve() - .getChatRequest(GetChatRequest.builder() - .id("") - .build()) - .call(); - - if (res.getChatResponse().isPresent()) { - System.out.println(res.getChatResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatRequest` | [GetChatRequest](../../models/components/GetChatRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[GetchatResponse](../../models/operations/GetchatResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## list - -Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.operations.ListchatsResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ListchatsResponse res = sdk.client().chat().list() - .call(); - - if (res.listChatsResponse().isPresent()) { - System.out.println(res.listChatsResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | - -### Response - -**[ListchatsResponse](../../models/operations/ListchatsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## retrieveApplication - -Gets the Chat application details for the specified application ID. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - GetchatapplicationResponse res = sdk.client().chat().retrieveApplication() - .getChatApplicationRequest(GetChatApplicationRequest.builder() - .id("") - .build()) - .call(); - - if (res.getChatApplicationResponse().isPresent()) { - System.out.println(res.getChatApplicationResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatApplicationRequest` | [GetChatApplicationRequest](../../models/components/GetChatApplicationRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[GetchatapplicationResponse](../../models/operations/GetchatapplicationResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## uploadFiles - -Upload files for Chat. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.File; -import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest; -import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.io.FileInputStream; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - UploadchatfilesResponse res = sdk.client().chat().uploadFiles() - .uploadChatFilesRequest(UploadChatFilesRequest.builder() - .files(List.of( - File.builder() - .fileName("example.file") - .content(Utils.readBytesAndClose(new FileInputStream("example.file"))) - .build())) - .build()) - .call(); - - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `uploadChatFilesRequest` | [UploadChatFilesRequest](../../models/components/UploadChatFilesRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[UploadchatfilesResponse](../../models/operations/UploadchatfilesResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## retrieveFiles - -Get files uploaded by a user for Chat. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatfilesResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - GetchatfilesResponse res = sdk.client().chat().retrieveFiles() - .getChatFilesRequest(GetChatFilesRequest.builder() - .fileIds(List.of( - "")) - .build()) - .call(); - - if (res.getChatFilesResponse().isPresent()) { - System.out.println(res.getChatFilesResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatFilesRequest` | [GetChatFilesRequest](../../models/components/GetChatFilesRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[GetchatfilesResponse](../../models/operations/GetchatfilesResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## deleteFiles - -Delete files uploaded by a user for Chat. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - DeletechatfilesResponse res = sdk.client().chat().deleteFiles() - .deleteChatFilesRequest(DeleteChatFilesRequest.builder() - .fileIds(List.of( - "", - "", - "")) - .build()) - .call(); - - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatFilesRequest` | [DeleteChatFilesRequest](../../models/components/DeleteChatFilesRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[DeletechatfilesResponse](../../models/operations/DeletechatfilesResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## createStream - -Have a conversation with Glean AI. - -### Example Usage: citationResponse - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.ChatRequest; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of()) - .timeoutMillis(30000L) - .build()) - .call(); - - if (res.chatRequestStream().isPresent()) { - System.out.println(res.chatRequestStream().get()); - } - } -} -``` -### Example Usage: defaultExample - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .fragments(List.of( - ChatMessageFragment.builder() - .text("What are the company holidays this year?") - .build())) - .build())) - .build()) - .call(); - - if (res.chatRequestStream().isPresent()) { - System.out.println(res.chatRequestStream().get()); - } - } -} -``` -### Example Usage: gptAgentExample - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .fragments(List.of( - ChatMessageFragment.builder() - .text("Who was the first person to land on the moon?") - .build())) - .build())) - .agentConfig(AgentConfig.builder() - .agent(AgentEnum.GPT) - .build()) - .build()) - .call(); - - if (res.chatRequestStream().isPresent()) { - System.out.println(res.chatRequestStream().get()); - } - } -} -``` -### Example Usage: streamingExample - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.ChatRequest; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of()) - .timeoutMillis(30000L) - .build()) - .call(); - - if (res.chatRequestStream().isPresent()) { - System.out.println(res.chatRequestStream().get()); - } - } -} -``` -### Example Usage: updateResponse - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.ChatRequest; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of()) - .timeoutMillis(30000L) - .build()) - .call(); - - if (res.chatRequestStream().isPresent()) { - System.out.println(res.chatRequestStream().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | - -### Response - -**[ChatStreamResponse](../../models/operations/ChatStreamResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/datasources/README.md b/docs/sdks/clientdatasources/README.md similarity index 93% rename from docs/sdks/datasources/README.md rename to docs/sdks/clientdatasources/README.md index c00393df..872b2781 100644 --- a/docs/sdks/datasources/README.md +++ b/docs/sdks/clientdatasources/README.md @@ -1,17 +1,15 @@ -# Datasources +# Client.Datasources ## Overview -Manage datasources. - ### Available Operations -* [getDatasourceInstanceConfiguration](#getdatasourceinstanceconfiguration) - Get datasource instance configuration -* [updateDatasourceInstanceConfiguration](#updatedatasourceinstanceconfiguration) - Update datasource instance configuration -* [getDatasourceCredentialStatus](#getdatasourcecredentialstatus) - Get datasource instance credential status -* [rotateDatasourceCredentials](#rotatedatasourcecredentials) - Rotate datasource instance credentials +* [retrieveConfiguration](#retrieveconfiguration) - Get datasource instance configuration +* [updateConfiguration](#updateconfiguration) - Update datasource instance configuration +* [retrieveCredentialStatus](#retrievecredentialstatus) - Get datasource instance credential status +* [rotateCredentials](#rotatecredentials) - Rotate datasource instance credentials -## getDatasourceInstanceConfiguration +## retrieveConfiguration Gets the greenlisted configuration values for a datasource instance. Returns only configuration keys that are exposed via the public API greenlist. @@ -35,7 +33,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetDatasourceInstanceConfigurationResponse res = sdk.datasources().getDatasourceInstanceConfiguration() + GetDatasourceInstanceConfigurationResponse res = sdk.client().datasources().retrieveConfiguration() .datasourceId("o365sharepoint") .instanceId("o365sharepoint_abc123") .call(); @@ -65,7 +63,7 @@ public class Application { | models/errors/ErrorResponse | 400, 403, 404 | application/json | | models/errors/APIException | 4XX, 5XX | \*/\* | -## updateDatasourceInstanceConfiguration +## updateConfiguration Updates the greenlisted configuration values for a datasource instance. Only configuration keys that are exposed via the public API greenlist may be set. Returns the full greenlisted configuration after the update is applied. @@ -92,7 +90,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - UpdateDatasourceInstanceConfigurationResponse res = sdk.datasources().updateDatasourceInstanceConfiguration() + UpdateDatasourceInstanceConfigurationResponse res = sdk.client().datasources().updateConfiguration() .datasourceId("o365sharepoint") .instanceId("o365sharepoint_abc123") .updateDatasourceConfigurationRequest(UpdateDatasourceConfigurationRequest.builder() @@ -129,7 +127,7 @@ public class Application { | models/errors/ErrorResponse | 400, 403, 404 | application/json | | models/errors/APIException | 4XX, 5XX | \*/\* | -## getDatasourceCredentialStatus +## retrieveCredentialStatus Returns the current credential status for a datasource instance. Access is limited to callers with the ADMIN scope; the handler enforces this check. @@ -153,7 +151,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetDatasourceCredentialStatusResponse res = sdk.datasources().getDatasourceCredentialStatus() + GetDatasourceCredentialStatusResponse res = sdk.client().datasources().retrieveCredentialStatus() .datasourceInstanceId("o365sharepoint_abc123") .call(); @@ -181,7 +179,7 @@ public class Application { | models/errors/ErrorResponse | 400, 403, 404 | application/json | | models/errors/APIException | 4XX, 5XX | \*/\* | -## rotateDatasourceCredentials +## rotateCredentials Rotates the credentials that a datasource instance uses to connect to its upstream system. Replaces the active credential material with the supplied values and returns the credential status after rotation. Access is limited to callers with the ADMIN scope; the handler enforces this check. Only keys recognized as credential material for the datasource type may be set in `credentials.values` (e.g. `clientSecret`, `apiToken`, `privateKey`, depending on the configured auth method). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; other instance configuration must be updated via PATCH /configure/datasources/{datasourceId}/instances/{instanceId}. @@ -208,7 +206,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - RotateDatasourceCredentialsResponse res = sdk.datasources().rotateDatasourceCredentials() + RotateDatasourceCredentialsResponse res = sdk.client().datasources().rotateCredentials() .datasourceInstanceId("o365sharepoint_abc123") .rotateDatasourceCredentialsRequest(RotateDatasourceCredentialsRequest.builder() .credentials(DatasourceInstanceConfiguration.builder() diff --git a/docs/sdks/cliententities/README.md b/docs/sdks/cliententities/README.md deleted file mode 100644 index f097864a..00000000 --- a/docs/sdks/cliententities/README.md +++ /dev/null @@ -1,131 +0,0 @@ -# Client.Entities - -## Overview - -### Available Operations - -* [list](#list) - List entities -* [readPeople](#readpeople) - Read people - -## list - -List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ListentitiesResponse res = sdk.client().entities().list() - .listEntitiesRequest(ListEntitiesRequest.builder() - .filter(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .pageSize(100L) - .build()) - .call(); - - if (res.listEntitiesResponse().isPresent()) { - System.out.println(res.listEntitiesResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `listEntitiesRequest` | [ListEntitiesRequest](../../models/components/ListEntitiesRequest.md) | :heavy_check_mark: | List people request | - -### Response - -**[ListentitiesResponse](../../models/operations/ListentitiesResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## readPeople - -Read people details for the given IDs. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.PeopleRequest; -import com.glean.api_client.glean_api_client.models.operations.PeopleResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - PeopleResponse res = sdk.client().entities().readPeople() - .peopleRequest(PeopleRequest.builder() - .obfuscatedIds(List.of( - "abc123", - "abc456")) - .build()) - .call(); - - if (res.peopleResponse().isPresent()) { - System.out.println(res.peopleResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | -| `peopleRequest` | [PeopleRequest](../../models/components/PeopleRequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | - -### Response - -**[PeopleResponse](../../models/operations/PeopleResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/clientsearch/README.md b/docs/sdks/clientsearch/README.md new file mode 100644 index 00000000..fdc2008b --- /dev/null +++ b/docs/sdks/clientsearch/README.md @@ -0,0 +1,527 @@ +# Client.Search + +## Overview + +### Available Operations + +* [queryAsAdmin](#queryasadmin) - Search the index (admin) +* [autocomplete](#autocomplete) - Autocomplete +* [retrieveFeed](#retrievefeed) - Feed of documents and events +* [recommendations](#recommendations) - Recommend documents +* [query](#query) - Search + +## queryAsAdmin + +Retrieves results for search query without respect for permissions. This is available only to privileged users. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.errors.GleanDataError; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws GleanDataError, Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + AdminsearchResponse res = sdk.client().search().queryAsAdmin() + .searchRequest(SearchRequest.builder() + .query("vacation policy") + .trackingToken("trackingToken") + .pageSize(10L) + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(421489L) + .facetFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("article") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("document") + .relationType(RelationType.EQUALS) + .build())) + .build(), + FacetFilter.builder() + .fieldName("department") + .values(List.of( + FacetFilterValue.builder() + .value("engineering") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .build()) + .build()) + .call(); + + if (res.searchResponse().isPresent()) { + System.out.println(res.searchResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Admin search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | + +### Response + +**[AdminsearchResponse](../../models/operations/AdminsearchResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| models/errors/GleanDataError | 403, 422 | application/json | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## autocomplete + +Retrieve query suggestions, operators and documents for the given partially typed query. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; +import com.glean.api_client.glean_api_client.models.operations.AutocompleteResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + AutocompleteResponse res = sdk.client().search().autocomplete() + .autocompleteRequest(AutocompleteRequest.builder() + .trackingToken("trackingToken") + .query("what is a que") + .datasource("GDRIVE") + .resultSize(10L) + .build()) + .call(); + + if (res.autocompleteResponse().isPresent()) { + System.out.println(res.autocompleteResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `autocompleteRequest` | [AutocompleteRequest](../../models/components/AutocompleteRequest.md) | :heavy_check_mark: | Autocomplete request | {
"trackingToken": "trackingToken",
"query": "what is a que",
"datasource": "GDRIVE",
"resultSize": 10
} | + +### Response + +**[AutocompleteResponse](../../models/operations/AutocompleteResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieveFeed + +The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.FeedRequest; +import com.glean.api_client.glean_api_client.models.operations.FeedResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + FeedResponse res = sdk.client().search().retrieveFeed() + .feedRequest(FeedRequest.builder() + .timeoutMillis(5000L) + .build()) + .call(); + + if (res.feedResponse().isPresent()) { + System.out.println(res.feedResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `feedRequest` | [FeedRequest](../../models/components/FeedRequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | + +### Response + +**[FeedResponse](../../models/operations/FeedResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## recommendations + +Retrieve recommended documents for the given URL or Glean Document ID. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse; +import java.lang.Exception; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + RecommendationsResponse res = sdk.client().search().recommendations() + .recommendationsRequest(RecommendationsRequest.builder() + .sourceDocument(Document.builder() + .containerDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .parentDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("abc123") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .pageSize(100L) + .maxSnippetSize(400L) + .requestOptions(RecommendationsRequestOptions.builder() + .facetFilterSets(List.of( + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .build())) + .context(Document.builder() + .containerDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .parentDocument(Document.builder() + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .metadata(DocumentMetadata.builder() + .datasource("datasource") + .objectType("Feature Request") + .container("container") + .parentId("JIRA_EN-1337") + .mimeType("mimeType") + .documentId("documentId") + .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) + .author(Person.builder() + .name("name") + .obfuscatedId("abc123") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) + .build()) + .call(); + + if (res.resultsResponse().isPresent()) { + System.out.println(res.resultsResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `recommendationsRequest` | [RecommendationsRequest](../../models/components/RecommendationsRequest.md) | :heavy_check_mark: | Recommendations request | + +### Response + +**[RecommendationsResponse](../../models/operations/RecommendationsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## query + +Retrieve results from the index for the given query and filters. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.errors.GleanDataError; +import com.glean.api_client.glean_api_client.models.operations.SearchResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws GleanDataError, Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + SearchResponse res = sdk.client().search().query() + .searchRequest(SearchRequest.builder() + .query("vacation policy") + .trackingToken("trackingToken") + .pageSize(10L) + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(400611L) + .facetFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("article") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("document") + .relationType(RelationType.EQUALS) + .build())) + .build(), + FacetFilter.builder() + .fieldName("department") + .values(List.of( + FacetFilterValue.builder() + .value("engineering") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .build()) + .build()) + .call(); + + if (res.searchResponse().isPresent()) { + System.out.println(res.searchResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | + +### Response + +**[SearchResponse](../../models/operations/SearchResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| models/errors/GleanDataError | 403, 422 | application/json | +| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/clienttools/README.md b/docs/sdks/clienttools/README.md deleted file mode 100644 index 1401dc0c..00000000 --- a/docs/sdks/clienttools/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# Client.Tools - -## Overview - -### Available Operations - -* [list](#list) - List available tools -* [run](#run) - Execute the specified tool - -## list - -Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - GetRestApiV1ToolsListResponse res = sdk.client().tools().list() - .call(); - - if (res.toolsListResponse().isPresent()) { - System.out.println(res.toolsListResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `toolNames` | List\<*String*> | :heavy_minus_sign: | Optional array of tool names to filter by | - -### Response - -**[GetRestApiV1ToolsListResponse](../../models/operations/GetRestApiV1ToolsListResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## run - -Execute the specified tool with provided parameters - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.ToolsCallParameter; -import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; -import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallResponse; -import java.lang.Exception; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - ToolsCallRequest req = ToolsCallRequest.builder() - .name("") - .parameters(Map.ofEntries( - Map.entry("key", ToolsCallParameter.builder() - .name("") - .value("") - .build()))) - .build(); - - PostRestApiV1ToolsCallResponse res = sdk.client().tools().run() - .request(req) - .call(); - - if (res.toolsCallResponse().isPresent()) { - System.out.println(res.toolsCallResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `request` | [ToolsCallRequest](../../models/shared/ToolsCallRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PostRestApiV1ToolsCallResponse](../../models/operations/PostRestApiV1ToolsCallResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/entities/README.md b/docs/sdks/entities/README.md index 96837684..4aaef976 100644 --- a/docs/sdks/entities/README.md +++ b/docs/sdks/entities/README.md @@ -1,12 +1,137 @@ -# Entities +# Client.Entities ## Overview ### Available Operations -* [getPersonPhoto](#getpersonphoto) - Get person photo +* [list](#list) - List entities +* [readPeople](#readpeople) - Read people +* [retrievePersonPhoto](#retrievepersonphoto) - Get person photo -## getPersonPhoto +## list + +List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ListentitiesResponse res = sdk.client().entities().list() + .listEntitiesRequest(ListEntitiesRequest.builder() + .filter(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) + .build())) + .pageSize(100L) + .build()) + .call(); + + if (res.listEntitiesResponse().isPresent()) { + System.out.println(res.listEntitiesResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listEntitiesRequest` | [ListEntitiesRequest](../../models/components/ListEntitiesRequest.md) | :heavy_check_mark: | List people request | + +### Response + +**[ListentitiesResponse](../../models/operations/ListentitiesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## readPeople + +Read people details for the given IDs. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.PeopleRequest; +import com.glean.api_client.glean_api_client.models.operations.PeopleResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + PeopleResponse res = sdk.client().entities().readPeople() + .peopleRequest(PeopleRequest.builder() + .obfuscatedIds(List.of( + "abc123", + "abc456")) + .build()) + .call(); + + if (res.peopleResponse().isPresent()) { + System.out.println(res.peopleResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `peopleRequest` | [PeopleRequest](../../models/components/PeopleRequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | + +### Response + +**[PeopleResponse](../../models/operations/PeopleResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrievePersonPhoto Returns the profile photo bytes for a person whose photo is stored in Glean (crawled from an identity source or user-uploaded via admin console). Photos hosted externally (e.g. Slack CDN) are not served by this endpoint; callers should follow the photoUrl from /people or /listentities directly. Responses include a Cache-Control header (max-age=3600) to reduce redundant fetches. @@ -29,7 +154,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetPersonPhotoResponse res = sdk.entities().getPersonPhoto() + GetPersonPhotoResponse res = sdk.client().entities().retrievePersonPhoto() .personId("") .call(); diff --git a/docs/sdks/governance/README.md b/docs/sdks/findings/README.md similarity index 90% rename from docs/sdks/governance/README.md rename to docs/sdks/findings/README.md index 8f7b5d54..2f6991e5 100644 --- a/docs/sdks/governance/README.md +++ b/docs/sdks/findings/README.md @@ -1,15 +1,15 @@ -# Governance +# Client.Governance.Data.Findings ## Overview ### Available Operations -* [createfindingsexport](#createfindingsexport) - Creates findings export -* [listfindingsexports](#listfindingsexports) - Lists findings exports -* [downloadfindingsexport](#downloadfindingsexport) - Downloads findings export -* [deletefindingsexport](#deletefindingsexport) - Deletes findings export +* [create](#create) - Creates findings export +* [list](#list) - Lists findings exports +* [download](#download) - Downloads findings export +* [delete](#delete) - Deletes findings export -## createfindingsexport +## create Creates a new DLP findings export job. @@ -35,7 +35,7 @@ public class Application { DlpExportFindingsRequest req = DlpExportFindingsRequest.builder() .build(); - CreatefindingsexportResponse res = sdk.governance().createfindingsexport() + CreatefindingsexportResponse res = sdk.client().governance().data().findings().create() .request(req) .call(); @@ -62,7 +62,7 @@ public class Application { | -------------------------- | -------------------------- | -------------------------- | | models/errors/APIException | 4XX, 5XX | \*/\* | -## listfindingsexports +## list Lists all DLP findings exports. @@ -84,7 +84,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - ListfindingsexportsResponse res = sdk.governance().listfindingsexports() + ListfindingsexportsResponse res = sdk.client().governance().data().findings().list() .call(); if (res.listDlpFindingsExportsResponse().isPresent()) { @@ -104,7 +104,7 @@ public class Application { | -------------------------- | -------------------------- | -------------------------- | | models/errors/APIException | 4XX, 5XX | \*/\* | -## downloadfindingsexport +## download Downloads a DLP findings export as a CSV file. @@ -126,7 +126,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - DownloadfindingsexportResponse res = sdk.governance().downloadfindingsexport() + DownloadfindingsexportResponse res = sdk.client().governance().data().findings().download() .id("") .call(); @@ -153,7 +153,7 @@ public class Application { | -------------------------- | -------------------------- | -------------------------- | | models/errors/APIException | 4XX, 5XX | \*/\* | -## deletefindingsexport +## delete Deletes a DLP findings export. @@ -175,7 +175,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - DeletefindingsexportResponse res = sdk.governance().deletefindingsexport() + DeletefindingsexportResponse res = sdk.client().governance().data().findings().delete() .id(741945L) .call(); diff --git a/docs/sdks/indexingdocuments/README.md b/docs/sdks/indexingdocuments/README.md index ebb2d364..1be33a29 100644 --- a/docs/sdks/indexingdocuments/README.md +++ b/docs/sdks/indexingdocuments/README.md @@ -16,6 +16,8 @@ * [checkAccess](#checkaccess) - Check document access * [~~status~~](#status) - Get document upload and indexing status :warning: **Deprecated** * [~~count~~](#count) - Get document count :warning: **Deprecated** +* [debugEvents](#debugevents) - Beta: Get document lifecycle events + ## addOrUpdate @@ -589,6 +591,64 @@ public class Application { ### Errors +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## debugEvents + +Retrieves lifecycle events for a specific document including upload time, index times and deletions. Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking changes without prior notice. + + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.DebugDocumentLifecycleRequest; +import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + PostApiIndexV1DebugDatasourceDocumentEventsResponse res = sdk.indexing().documents().debugEvents() + .datasource("") + .debugDocumentLifecycleRequest(DebugDocumentLifecycleRequest.builder() + .objectType("Article") + .docId("art123") + .startDate("2025-05-01") + .maxEvents(50L) + .build()) + .call(); + + if (res.debugDocumentLifecycleResponse().isPresent()) { + System.out.println(res.debugDocumentLifecycleResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `datasource` | *String* | :heavy_check_mark: | The datasource to which the document belongs | +| `debugDocumentLifecycleRequest` | [DebugDocumentLifecycleRequest](../../models/components/DebugDocumentLifecycleRequest.md) | :heavy_check_mark: | N/A | + +### Response + +**[PostApiIndexV1DebugDatasourceDocumentEventsResponse](../../models/operations/PostApiIndexV1DebugDatasourceDocumentEventsResponse.md)** + +### Errors + | Error Type | Status Code | Content Type | | -------------------------- | -------------------------- | -------------------------- | | models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index fdc2008b..056a49a7 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -1,508 +1,61 @@ -# Client.Search +# Search ## Overview ### Available Operations -* [queryAsAdmin](#queryasadmin) - Search the index (admin) -* [autocomplete](#autocomplete) - Autocomplete -* [retrieveFeed](#retrievefeed) - Feed of documents and events -* [recommendations](#recommendations) - Recommend documents * [query](#query) - Search -## queryAsAdmin - -Retrieves results for search query without respect for permissions. This is available only to privileged users. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.errors.GleanDataError; -import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws GleanDataError, Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - AdminsearchResponse res = sdk.client().search().queryAsAdmin() - .searchRequest(SearchRequest.builder() - .query("vacation policy") - .trackingToken("trackingToken") - .pageSize(10L) - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(421489L) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("article") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("document") - .relationType(RelationType.EQUALS) - .build())) - .build(), - FacetFilter.builder() - .fieldName("department") - .values(List.of( - FacetFilterValue.builder() - .value("engineering") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build()) - .build()) - .call(); - - if (res.searchResponse().isPresent()) { - System.out.println(res.searchResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | -| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Admin search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | - -### Response - -**[AdminsearchResponse](../../models/operations/AdminsearchResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ---------------------------- | ---------------------------- | ---------------------------- | -| models/errors/GleanDataError | 403, 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## autocomplete - -Retrieve query suggestions, operators and documents for the given partially typed query. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; -import com.glean.api_client.glean_api_client.models.operations.AutocompleteResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - AutocompleteResponse res = sdk.client().search().autocomplete() - .autocompleteRequest(AutocompleteRequest.builder() - .trackingToken("trackingToken") - .query("what is a que") - .datasource("GDRIVE") - .resultSize(10L) - .build()) - .call(); - - if (res.autocompleteResponse().isPresent()) { - System.out.println(res.autocompleteResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | -| `autocompleteRequest` | [AutocompleteRequest](../../models/components/AutocompleteRequest.md) | :heavy_check_mark: | Autocomplete request | {
"trackingToken": "trackingToken",
"query": "what is a que",
"datasource": "GDRIVE",
"resultSize": 10
} | - -### Response - -**[AutocompleteResponse](../../models/operations/AutocompleteResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## retrieveFeed - -The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.FeedRequest; -import com.glean.api_client.glean_api_client.models.operations.FeedResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - FeedResponse res = sdk.client().search().retrieveFeed() - .feedRequest(FeedRequest.builder() - .timeoutMillis(5000L) - .build()) - .call(); - - if (res.feedResponse().isPresent()) { - System.out.println(res.feedResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `feedRequest` | [FeedRequest](../../models/components/FeedRequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | - -### Response - -**[FeedResponse](../../models/operations/FeedResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## recommendations - -Retrieve recommended documents for the given URL or Glean Document ID. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - RecommendationsResponse res = sdk.client().search().recommendations() - .recommendationsRequest(RecommendationsRequest.builder() - .sourceDocument(Document.builder() - .containerDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .parentDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("abc123") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .pageSize(100L) - .maxSnippetSize(400L) - .requestOptions(RecommendationsRequestOptions.builder() - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .context(Document.builder() - .containerDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .parentDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("abc123") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build()) - .call(); - - if (res.resultsResponse().isPresent()) { - System.out.println(res.resultsResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | -| `recommendationsRequest` | [RecommendationsRequest](../../models/components/RecommendationsRequest.md) | :heavy_check_mark: | Recommendations request | - -### Response - -**[RecommendationsResponse](../../models/operations/RecommendationsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - ## query -Retrieve results from the index for the given query and filters. +Execute a search query and retrieve ranked results. This is the data retrieval variant of the search API and returns only results and pagination state. + ### Example Usage - + ```java package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.errors.GleanDataError; -import com.glean.api_client.glean_api_client.models.operations.SearchResponse; +import com.glean.api_client.glean_api_client.models.components.PlatformFilter; +import com.glean.api_client.glean_api_client.models.components.PlatformSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformSearchResponse; import java.lang.Exception; import java.util.List; public class Application { - public static void main(String[] args) throws GleanDataError, Exception { + public static void main(String[] args) throws PlatformProblemDetailException, Exception { Glean sdk = Glean.builder() .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - SearchResponse res = sdk.client().search().query() - .searchRequest(SearchRequest.builder() - .query("vacation policy") - .trackingToken("trackingToken") - .pageSize(10L) - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(400611L) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("article") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("document") - .relationType(RelationType.EQUALS) - .build())) - .build(), - FacetFilter.builder() - .fieldName("department") - .values(List.of( - FacetFilterValue.builder() - .value("engineering") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build()) - .build()) + PlatformSearchRequest req = PlatformSearchRequest.builder() + .query("quarterly planning 2026") + .datasources(List.of( + "confluence", + "google_drive")) + .datasourceInstances(List.of( + "slack_acme", + "slack_eu")) + .filters(List.of( + PlatformFilter.builder() + .field("type") + .values(List.of( + "spreadsheet", + "presentation")) + .build())) + .build(); + + PlatformSearchResponse res = sdk.search().query() + .request(req) .call(); - if (res.searchResponse().isPresent()) { - System.out.println(res.searchResponse().get()); + if (res.platformSearchResponse().isPresent()) { + System.out.println(res.platformSearchResponse().get()); } } } @@ -510,18 +63,18 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | -| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `request` | [PlatformSearchRequest](../../models/shared/PlatformSearchRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[SearchResponse](../../models/operations/SearchResponse.md)** +**[PlatformSearchResponse](../../models/operations/PlatformSearchResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------- | ---------------------------- | ---------------------------- | -| models/errors/GleanDataError | 403, 422 | application/json | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | +| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/tools/README.md b/docs/sdks/tools/README.md index c4c23f4c..aac7edaa 100644 --- a/docs/sdks/tools/README.md +++ b/docs/sdks/tools/README.md @@ -1,13 +1,124 @@ -# Tools +# Client.Tools ## Overview ### Available Operations -* [getActionPackAuthStatus](#getactionpackauthstatus) - Get end-user authentication status for an action pack. +* [list](#list) - List available tools +* [run](#run) - Execute the specified tool +* [retrieveActionPackAuthStatus](#retrieveactionpackauthstatus) - Get end-user authentication status for an action pack. * [authorizeActionPack](#authorizeactionpack) - Start the OAuth authorization flow for an action pack. -## getActionPackAuthStatus +## list + +Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + GetRestApiV1ToolsListResponse res = sdk.client().tools().list() + .call(); + + if (res.toolsListResponse().isPresent()) { + System.out.println(res.toolsListResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `toolNames` | List\<*String*> | :heavy_minus_sign: | Optional array of tool names to filter by | + +### Response + +**[GetRestApiV1ToolsListResponse](../../models/operations/GetRestApiV1ToolsListResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## run + +Execute the specified tool with provided parameters + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.ToolsCallParameter; +import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; +import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallResponse; +import java.lang.Exception; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ToolsCallRequest req = ToolsCallRequest.builder() + .name("") + .parameters(Map.ofEntries( + Map.entry("key", ToolsCallParameter.builder() + .name("") + .value("") + .build()))) + .build(); + + PostRestApiV1ToolsCallResponse res = sdk.client().tools().run() + .request(req) + .call(); + + if (res.toolsCallResponse().isPresent()) { + System.out.println(res.toolsCallResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `request` | [ToolsCallRequest](../../models/shared/ToolsCallRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[PostRestApiV1ToolsCallResponse](../../models/operations/PostRestApiV1ToolsCallResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieveActionPackAuthStatus Reports whether the calling user is already authenticated against the third-party tool backing the specified action pack. Intended for headless / server-driven clients @@ -32,7 +143,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetActionPackAuthStatusResponse res = sdk.tools().getActionPackAuthStatus() + GetActionPackAuthStatusResponse res = sdk.client().tools().retrieveActionPackAuthStatus() .actionPackId("") .call(); @@ -89,7 +200,7 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - AuthorizeActionPackResponse res = sdk.tools().authorizeActionPack() + AuthorizeActionPackResponse res = sdk.client().tools().authorizeActionPack() .actionPackId("") .authorizeActionPackRequest(AuthorizeActionPackRequest.builder() .returnUrl("https://merry-allocation.org/") diff --git a/docs/sdks/troubleshooting/README.md b/docs/sdks/troubleshooting/README.md deleted file mode 100644 index b77f0ef6..00000000 --- a/docs/sdks/troubleshooting/README.md +++ /dev/null @@ -1,66 +0,0 @@ -# Troubleshooting - -## Overview - -### Available Operations - -* [postApiIndexV1DebugDatasourceDocumentEvents](#postapiindexv1debugdatasourcedocumentevents) - Beta: Get document lifecycle events - - -## postApiIndexV1DebugDatasourceDocumentEvents - -Retrieves lifecycle events for a specific document including upload time, index times and deletions. Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking changes without prior notice. - - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.DebugDocumentLifecycleRequest; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - PostApiIndexV1DebugDatasourceDocumentEventsResponse res = sdk.troubleshooting().postApiIndexV1DebugDatasourceDocumentEvents() - .datasource("") - .debugDocumentLifecycleRequest(DebugDocumentLifecycleRequest.builder() - .objectType("Article") - .docId("art123") - .startDate("2025-05-01") - .maxEvents(50L) - .build()) - .call(); - - if (res.debugDocumentLifecycleResponse().isPresent()) { - System.out.println(res.debugDocumentLifecycleResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `datasource` | *String* | :heavy_check_mark: | The datasource to which the document belongs | -| `debugDocumentLifecycleRequest` | [DebugDocumentLifecycleRequest](../../models/components/DebugDocumentLifecycleRequest.md) | :heavy_check_mark: | N/A | - -### Response - -**[PostApiIndexV1DebugDatasourceDocumentEventsResponse](../../models/operations/PostApiIndexV1DebugDatasourceDocumentEventsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 0b215eeb..3005c215 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.13.2 +version=0.14.0 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/glean/api_client/glean_api_client/Agents.java b/src/main/java/com/glean/api_client/glean_api_client/Agents.java index bc56c524..4e1b4489 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Agents.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Agents.java @@ -6,18 +6,25 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; -import com.glean.api_client.glean_api_client.models.components.CreateWorkflowRequest; -import com.glean.api_client.glean_api_client.models.components.EditWorkflowRequest; -import com.glean.api_client.glean_api_client.models.operations.CreateAgentRequest; -import com.glean.api_client.glean_api_client.models.operations.CreateAgentRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.CreateAgentResponse; -import com.glean.api_client.glean_api_client.models.operations.EditAgentRequest; -import com.glean.api_client.glean_api_client.models.operations.EditAgentRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.EditAgentResponse; -import com.glean.api_client.glean_api_client.operations.CreateAgent; -import com.glean.api_client.glean_api_client.operations.EditAgent; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunCreateRequest; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunResponse; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetResponse; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasResponse; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsCreateRun; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGet; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGetSchemas; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsSearch; import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.Long; +import java.lang.Boolean; import java.lang.String; import java.util.Optional; @@ -42,112 +49,141 @@ public AsyncAgents async() { } /** - * Create an agent + * Search agents * - *

Create an agent. + *

Search agents available to the authenticated user by agent name. * * @return The call builder */ - public CreateAgentRequestBuilder createAgent() { - return new CreateAgentRequestBuilder(sdkConfiguration); + public PlatformAgentsSearchRequestBuilder search() { + return new PlatformAgentsSearchRequestBuilder(sdkConfiguration); } /** - * Create an agent + * Search agents * - *

Create an agent. + *

Search agents available to the authenticated user by agent name. * - * @param createWorkflowRequest + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateAgentResponse createAgent(CreateWorkflowRequest createWorkflowRequest) { - return createAgent(Optional.empty(), Optional.empty(), createWorkflowRequest); + public PlatformAgentsSearchResponse search(PlatformAgentsSearchRequest request) { + RequestOperation operation + = new PlatformAgentsSearch.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Get agent + * + *

Retrieve details for an agent available to the authenticated user. + * + * @return The call builder + */ + public PlatformAgentsGetRequestBuilder get() { + return new PlatformAgentsGetRequestBuilder(sdkConfiguration); } /** - * Create an agent + * Get agent * - *

Create an agent. + *

Retrieve details for an agent available to the authenticated user. * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param createWorkflowRequest + * @param agentId ID of the agent to retrieve. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateAgentResponse createAgent( - Optional locale, Optional timezoneOffset, - CreateWorkflowRequest createWorkflowRequest) { - CreateAgentRequest request = - CreateAgentRequest + public PlatformAgentsGetResponse get(String agentId) { + PlatformAgentsGetRequest request = + PlatformAgentsGetRequest .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .createWorkflowRequest(createWorkflowRequest) + .agentId(agentId) .build(); - RequestOperation operation - = new CreateAgent.Sync(sdkConfiguration, _headers); + RequestOperation operation + = new PlatformAgentsGet.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } /** - * Edit an agent + * Get agent schemas * - *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use - * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and - * publish modes are supported. + *

Retrieve an agent's input and output JSON schemas. * * @return The call builder */ - public EditAgentRequestBuilder editAgent() { - return new EditAgentRequestBuilder(sdkConfiguration); + public PlatformAgentsGetSchemasRequestBuilder getSchemas() { + return new PlatformAgentsGetSchemasRequestBuilder(sdkConfiguration); + } + + /** + * Get agent schemas + * + *

Retrieve an agent's input and output JSON schemas. + * + * @param agentId ID of the agent whose schemas should be retrieved. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PlatformAgentsGetSchemasResponse getSchemas(String agentId) { + return getSchemas(agentId, Optional.empty()); } /** - * Edit an agent + * Get agent schemas * - *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use - * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and - * publish modes are supported. + *

Retrieve an agent's input and output JSON schemas. * - * @param agentId The ID of the agent. - * @param editWorkflowRequest + * @param agentId ID of the agent whose schemas should be retrieved. + * @param includeTools Whether to include tool metadata in the response. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public EditAgentResponse editAgent(String agentId, EditWorkflowRequest editWorkflowRequest) { - return editAgent(Optional.empty(), Optional.empty(), agentId, - editWorkflowRequest); + public PlatformAgentsGetSchemasResponse getSchemas(String agentId, Optional includeTools) { + PlatformAgentsGetSchemasRequest request = + PlatformAgentsGetSchemasRequest + .builder() + .agentId(agentId) + .includeTools(includeTools) + .build(); + RequestOperation operation + = new PlatformAgentsGetSchemas.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Create agent run + * + *

Execute an agent run. Set `stream` to true to receive server-sent events; otherwise the response + * contains the final agent messages. + * + * @return The call builder + */ + public PlatformAgentsCreateRunRequestBuilder createRun() { + return new PlatformAgentsCreateRunRequestBuilder(sdkConfiguration); } /** - * Edit an agent + * Create agent run * - *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use - * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and - * publish modes are supported. + *

Execute an agent run. Set `stream` to true to receive server-sent events; otherwise the response + * contains the final agent messages. * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param agentId The ID of the agent. - * @param editWorkflowRequest + * @param agentId ID of the agent to run. + * @param platformAgentRunCreateRequest Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + * * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public EditAgentResponse editAgent( - Optional locale, Optional timezoneOffset, - String agentId, EditWorkflowRequest editWorkflowRequest) { - EditAgentRequest request = - EditAgentRequest + public PlatformAgentsCreateRunResponse createRun(String agentId, PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + PlatformAgentsCreateRunRequest request = + PlatformAgentsCreateRunRequest .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) .agentId(agentId) - .editWorkflowRequest(editWorkflowRequest) + .platformAgentRunCreateRequest(platformAgentRunCreateRequest) .build(); - RequestOperation operation - = new EditAgent.Sync(sdkConfiguration, _headers); + RequestOperation operation + = new PlatformAgentsCreateRun.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java index fa11a40b..3c6ac1b2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java @@ -6,18 +6,25 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; -import com.glean.api_client.glean_api_client.models.components.CreateWorkflowRequest; -import com.glean.api_client.glean_api_client.models.components.EditWorkflowRequest; -import com.glean.api_client.glean_api_client.models.operations.CreateAgentRequest; -import com.glean.api_client.glean_api_client.models.operations.EditAgentRequest; -import com.glean.api_client.glean_api_client.models.operations.async.CreateAgentRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.CreateAgentResponse; -import com.glean.api_client.glean_api_client.models.operations.async.EditAgentRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.EditAgentResponse; -import com.glean.api_client.glean_api_client.operations.CreateAgent; -import com.glean.api_client.glean_api_client.operations.EditAgent; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunCreateRequest; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasRequest; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsCreateRunRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsCreateRunResponse; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetResponse; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetSchemasRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetSchemasResponse; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsSearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsSearchResponse; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsCreateRun; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGet; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGetSchemas; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsSearch; import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.Long; +import java.lang.Boolean; import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -44,111 +51,142 @@ public Agents sync() { /** - * Create an agent + * Search agents * - *

Create an agent. + *

Search agents available to the authenticated user by agent name. * * @return The async call builder */ - public CreateAgentRequestBuilder createAgent() { - return new CreateAgentRequestBuilder(sdkConfiguration); + public PlatformAgentsSearchRequestBuilder search() { + return new PlatformAgentsSearchRequestBuilder(sdkConfiguration); } /** - * Create an agent + * Search agents * - *

Create an agent. + *

Search agents available to the authenticated user by agent name. * - * @param createWorkflowRequest - * @return {@code CompletableFuture} - The async response + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response */ - public CompletableFuture createAgent(CreateWorkflowRequest createWorkflowRequest) { - return createAgent(Optional.empty(), Optional.empty(), createWorkflowRequest); + public CompletableFuture search(PlatformAgentsSearchRequest request) { + AsyncRequestOperation operation + = new PlatformAgentsSearch.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); } + /** - * Create an agent + * Get agent * - *

Create an agent. + *

Retrieve details for an agent available to the authenticated user. * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param createWorkflowRequest - * @return {@code CompletableFuture} - The async response + * @return The async call builder */ - public CompletableFuture createAgent( - Optional locale, Optional timezoneOffset, - CreateWorkflowRequest createWorkflowRequest) { - CreateAgentRequest request = - CreateAgentRequest + public PlatformAgentsGetRequestBuilder get() { + return new PlatformAgentsGetRequestBuilder(sdkConfiguration); + } + + /** + * Get agent + * + *

Retrieve details for an agent available to the authenticated user. + * + * @param agentId ID of the agent to retrieve. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture get(String agentId) { + PlatformAgentsGetRequest request = + PlatformAgentsGetRequest .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .createWorkflowRequest(createWorkflowRequest) + .agentId(agentId) .build(); - AsyncRequestOperation operation - = new CreateAgent.Async(sdkConfiguration, _headers); + AsyncRequestOperation operation + = new PlatformAgentsGet.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); } /** - * Edit an agent + * Get agent schemas * - *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use - * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and - * publish modes are supported. + *

Retrieve an agent's input and output JSON schemas. * * @return The async call builder */ - public EditAgentRequestBuilder editAgent() { - return new EditAgentRequestBuilder(sdkConfiguration); + public PlatformAgentsGetSchemasRequestBuilder getSchemas() { + return new PlatformAgentsGetSchemasRequestBuilder(sdkConfiguration); + } + + /** + * Get agent schemas + * + *

Retrieve an agent's input and output JSON schemas. + * + * @param agentId ID of the agent whose schemas should be retrieved. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getSchemas(String agentId) { + return getSchemas(agentId, Optional.empty()); } /** - * Edit an agent + * Get agent schemas * - *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use - * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and - * publish modes are supported. + *

Retrieve an agent's input and output JSON schemas. * - * @param agentId The ID of the agent. - * @param editWorkflowRequest - * @return {@code CompletableFuture} - The async response + * @param agentId ID of the agent whose schemas should be retrieved. + * @param includeTools Whether to include tool metadata in the response. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getSchemas(String agentId, Optional includeTools) { + PlatformAgentsGetSchemasRequest request = + PlatformAgentsGetSchemasRequest + .builder() + .agentId(agentId) + .includeTools(includeTools) + .build(); + AsyncRequestOperation operation + = new PlatformAgentsGetSchemas.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Create agent run + * + *

Execute an agent run. Set `stream` to true to receive server-sent events; otherwise the response + * contains the final agent messages. + * + * @return The async call builder */ - public CompletableFuture editAgent(String agentId, EditWorkflowRequest editWorkflowRequest) { - return editAgent( - Optional.empty(), Optional.empty(), agentId, - editWorkflowRequest); + public PlatformAgentsCreateRunRequestBuilder createRun() { + return new PlatformAgentsCreateRunRequestBuilder(sdkConfiguration); } /** - * Edit an agent + * Create agent run * - *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use - * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and - * publish modes are supported. + *

Execute an agent run. Set `stream` to true to receive server-sent events; otherwise the response + * contains the final agent messages. * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param agentId The ID of the agent. - * @param editWorkflowRequest - * @return {@code CompletableFuture} - The async response + * @param agentId ID of the agent to run. + * @param platformAgentRunCreateRequest Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + * + * @return {@code CompletableFuture} - The async response */ - public CompletableFuture editAgent( - Optional locale, Optional timezoneOffset, - String agentId, EditWorkflowRequest editWorkflowRequest) { - EditAgentRequest request = - EditAgentRequest + public CompletableFuture createRun(String agentId, PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + PlatformAgentsCreateRunRequest request = + PlatformAgentsCreateRunRequest .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) .agentId(agentId) - .editWorkflowRequest(editWorkflowRequest) + .platformAgentRunCreateRequest(platformAgentRunCreateRequest) .build(); - AsyncRequestOperation operation - = new EditAgent.Async(sdkConfiguration, _headers); + AsyncRequestOperation operation + = new PlatformAgentsCreateRun.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncAuthentication.java deleted file mode 100644 index c5f5cd0c..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncAuthentication.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 6e8adea5509a - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestlessOperation; - -import com.glean.api_client.glean_api_client.models.operations.async.CheckdatasourceauthRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.CheckdatasourceauthResponse; -import com.glean.api_client.glean_api_client.operations.Checkdatasourceauth; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.util.concurrent.CompletableFuture; - -/** - * Manage indexing API tokens. - */ -public class AsyncAuthentication { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final Authentication syncSDK; - - AsyncAuthentication(Authentication syncSDK, SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.syncSDK = syncSDK; - } - - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public Authentication sync() { - return syncSDK; - } - - - /** - * Check datasource authorization - * - *

Returns all datasource instances that require per-user OAuth authorization - * for the authenticated user, along with a transient auth token that can be - * appended to auth URLs to complete OAuth flows. - * - *

Clients construct the full OAuth URL by combining the backend base URL, - * the `authUrlRelativePath` from each instance, and the transient auth token: - * `/<authUrlRelativePath>?transient_auth_token=<token>`. - * - * @return The async call builder - */ - public CheckdatasourceauthRequestBuilder checkdatasourceauth() { - return new CheckdatasourceauthRequestBuilder(sdkConfiguration); - } - - /** - * Check datasource authorization - * - *

Returns all datasource instances that require per-user OAuth authorization - * for the authenticated user, along with a transient auth token that can be - * appended to auth URLs to complete OAuth flows. - * - *

Clients construct the full OAuth URL by combining the backend base URL, - * the `authUrlRelativePath` from each instance, and the transient auth token: - * `/<authUrlRelativePath>?transient_auth_token=<token>`. - * - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture checkdatasourceauthDirect() { - AsyncRequestlessOperation operation - = new Checkdatasourceauth.Async(sdkConfiguration, _headers); - return operation.doRequest() - .thenCompose(operation::handleResponse); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java index 06b88476..91c0401d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java @@ -6,12 +6,58 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; +import com.glean.api_client.glean_api_client.models.components.ChatRequest; +import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; +import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; +import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; +import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; +import com.glean.api_client.glean_api_client.models.components.GetChatRequest; +import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletechatsRequest; import com.glean.api_client.glean_api_client.models.operations.GetChatFileRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatfilesRequest; +import com.glean.api_client.glean_api_client.models.operations.ListchatsRequest; +import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesRequest; +import com.glean.api_client.glean_api_client.models.operations.async.ChatRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.ChatResponse; +import com.glean.api_client.glean_api_client.models.operations.async.ChatStreamRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.ChatStreamResponse; +import com.glean.api_client.glean_api_client.models.operations.async.DeleteallchatsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.DeleteallchatsResponse; +import com.glean.api_client.glean_api_client.models.operations.async.DeletechatfilesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.DeletechatfilesResponse; +import com.glean.api_client.glean_api_client.models.operations.async.DeletechatsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.DeletechatsResponse; import com.glean.api_client.glean_api_client.models.operations.async.GetChatFileRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.GetChatFileResponse; +import com.glean.api_client.glean_api_client.models.operations.async.GetchatRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.GetchatResponse; +import com.glean.api_client.glean_api_client.models.operations.async.GetchatapplicationRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.GetchatapplicationResponse; +import com.glean.api_client.glean_api_client.models.operations.async.GetchatfilesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.GetchatfilesResponse; +import com.glean.api_client.glean_api_client.models.operations.async.ListchatsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.ListchatsResponse; +import com.glean.api_client.glean_api_client.models.operations.async.UploadchatfilesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.UploadchatfilesResponse; +import com.glean.api_client.glean_api_client.operations.ChatStream; +import com.glean.api_client.glean_api_client.operations.Deleteallchats; +import com.glean.api_client.glean_api_client.operations.Deletechatfiles; +import com.glean.api_client.glean_api_client.operations.Deletechats; import com.glean.api_client.glean_api_client.operations.GetChatFile; +import com.glean.api_client.glean_api_client.operations.Getchat; +import com.glean.api_client.glean_api_client.operations.Getchatapplication; +import com.glean.api_client.glean_api_client.operations.Getchatfiles; +import com.glean.api_client.glean_api_client.operations.Listchats; +import com.glean.api_client.glean_api_client.operations.Uploadchatfiles; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Boolean; +import java.lang.Long; import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -37,6 +83,449 @@ public Chat sync() { } + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @return The async call builder + */ + public ChatRequestBuilder create() { + return new ChatRequestBuilder(sdkConfiguration); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param chatRequest The minimal set of fields that form a chat request. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(ChatRequest chatRequest) { + return create(Optional.empty(), Optional.empty(), chatRequest); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param chatRequest The minimal set of fields that form a chat request. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create( + Optional locale, Optional timezoneOffset, + ChatRequest chatRequest) { + com.glean.api_client.glean_api_client.models.operations.ChatRequest request = + com.glean.api_client.glean_api_client.models.operations.ChatRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .chatRequest(chatRequest) + .build(); + AsyncRequestOperation operation + = new com.glean.api_client.glean_api_client.operations.Chat.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Deletes all saved Chats owned by a user + * + *

Deletes all saved Chats a user has had and all their contained conversational content. + * + * @return The async call builder + */ + public DeleteallchatsRequestBuilder deleteAll() { + return new DeleteallchatsRequestBuilder(sdkConfiguration); + } + + /** + * Deletes all saved Chats owned by a user + * + *

Deletes all saved Chats a user has had and all their contained conversational content. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteAllDirect() { + return deleteAll(Optional.empty(), Optional.empty()); + } + + /** + * Deletes all saved Chats owned by a user + * + *

Deletes all saved Chats a user has had and all their contained conversational content. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteAll(Optional locale, Optional timezoneOffset) { + DeleteallchatsRequest request = + DeleteallchatsRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .build(); + AsyncRequestOperation operation + = new Deleteallchats.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Deletes saved Chats + * + *

Deletes saved Chats and all their contained conversational content. + * + * @return The async call builder + */ + public DeletechatsRequestBuilder delete() { + return new DeletechatsRequestBuilder(sdkConfiguration); + } + + /** + * Deletes saved Chats + * + *

Deletes saved Chats and all their contained conversational content. + * + * @param deleteChatsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete(DeleteChatsRequest deleteChatsRequest) { + return delete(Optional.empty(), Optional.empty(), deleteChatsRequest); + } + + /** + * Deletes saved Chats + * + *

Deletes saved Chats and all their contained conversational content. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param deleteChatsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete( + Optional locale, Optional timezoneOffset, + DeleteChatsRequest deleteChatsRequest) { + DeletechatsRequest request = + DeletechatsRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .deleteChatsRequest(deleteChatsRequest) + .build(); + AsyncRequestOperation operation + = new Deletechats.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Retrieves a Chat + * + *

Retrieves the chat history between Glean Assistant and the user for a given Chat. + * + * @return The async call builder + */ + public GetchatRequestBuilder retrieve() { + return new GetchatRequestBuilder(sdkConfiguration); + } + + /** + * Retrieves a Chat + * + *

Retrieves the chat history between Glean Assistant and the user for a given Chat. + * + * @param getChatRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(GetChatRequest getChatRequest) { + return retrieve(Optional.empty(), Optional.empty(), getChatRequest); + } + + /** + * Retrieves a Chat + * + *

Retrieves the chat history between Glean Assistant and the user for a given Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param getChatRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve( + Optional locale, Optional timezoneOffset, + GetChatRequest getChatRequest) { + GetchatRequest request = + GetchatRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .getChatRequest(getChatRequest) + .build(); + AsyncRequestOperation operation + = new Getchat.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Retrieves all saved Chats + * + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. + * + * @return The async call builder + */ + public ListchatsRequestBuilder list() { + return new ListchatsRequestBuilder(sdkConfiguration); + } + + /** + * Retrieves all saved Chats + * + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listDirect() { + return list(Optional.empty(), Optional.empty()); + } + + /** + * Retrieves all saved Chats + * + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(Optional locale, Optional timezoneOffset) { + ListchatsRequest request = + ListchatsRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .build(); + AsyncRequestOperation operation + = new Listchats.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Gets the metadata for a custom Chat application + * + *

Gets the Chat application details for the specified application ID. + * + * @return The async call builder + */ + public GetchatapplicationRequestBuilder retrieveApplication() { + return new GetchatapplicationRequestBuilder(sdkConfiguration); + } + + /** + * Gets the metadata for a custom Chat application + * + *

Gets the Chat application details for the specified application ID. + * + * @param getChatApplicationRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { + return retrieveApplication(Optional.empty(), Optional.empty(), getChatApplicationRequest); + } + + /** + * Gets the metadata for a custom Chat application + * + *

Gets the Chat application details for the specified application ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param getChatApplicationRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveApplication( + Optional locale, Optional timezoneOffset, + GetChatApplicationRequest getChatApplicationRequest) { + GetchatapplicationRequest request = + GetchatapplicationRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .getChatApplicationRequest(getChatApplicationRequest) + .build(); + AsyncRequestOperation operation + = new Getchatapplication.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Upload files for Chat + * + *

Upload files for Chat. + * + * @return The async call builder + */ + public UploadchatfilesRequestBuilder uploadFiles() { + return new UploadchatfilesRequestBuilder(sdkConfiguration); + } + + /** + * Upload files for Chat + * + *

Upload files for Chat. + * + * @param uploadChatFilesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { + return uploadFiles(Optional.empty(), Optional.empty(), uploadChatFilesRequest); + } + + /** + * Upload files for Chat + * + *

Upload files for Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param uploadChatFilesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture uploadFiles( + Optional locale, Optional timezoneOffset, + UploadChatFilesRequest uploadChatFilesRequest) { + UploadchatfilesRequest request = + UploadchatfilesRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .uploadChatFilesRequest(uploadChatFilesRequest) + .build(); + AsyncRequestOperation operation + = new Uploadchatfiles.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get files uploaded by a user for Chat + * + *

Get files uploaded by a user for Chat. + * + * @return The async call builder + */ + public GetchatfilesRequestBuilder retrieveFiles() { + return new GetchatfilesRequestBuilder(sdkConfiguration); + } + + /** + * Get files uploaded by a user for Chat + * + *

Get files uploaded by a user for Chat. + * + * @param getChatFilesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveFiles(GetChatFilesRequest getChatFilesRequest) { + return retrieveFiles(Optional.empty(), Optional.empty(), getChatFilesRequest); + } + + /** + * Get files uploaded by a user for Chat + * + *

Get files uploaded by a user for Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param getChatFilesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveFiles( + Optional locale, Optional timezoneOffset, + GetChatFilesRequest getChatFilesRequest) { + GetchatfilesRequest request = + GetchatfilesRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .getChatFilesRequest(getChatFilesRequest) + .build(); + AsyncRequestOperation operation + = new Getchatfiles.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete files uploaded by a user for chat + * + *

Delete files uploaded by a user for Chat. + * + * @return The async call builder + */ + public DeletechatfilesRequestBuilder deleteFiles() { + return new DeletechatfilesRequestBuilder(sdkConfiguration); + } + + /** + * Delete files uploaded by a user for chat + * + *

Delete files uploaded by a user for Chat. + * + * @param deleteChatFilesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { + return deleteFiles(Optional.empty(), Optional.empty(), deleteChatFilesRequest); + } + + /** + * Delete files uploaded by a user for chat + * + *

Delete files uploaded by a user for Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param deleteChatFilesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteFiles( + Optional locale, Optional timezoneOffset, + DeleteChatFilesRequest deleteChatFilesRequest) { + DeletechatfilesRequest request = + DeletechatfilesRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .deleteChatFilesRequest(deleteChatFilesRequest) + .build(); + AsyncRequestOperation operation + = new Deletechatfiles.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + /** * Download a chat file * @@ -46,7 +535,7 @@ public Chat sync() { * * @return The async call builder */ - public GetChatFileRequestBuilder getChatFile() { + public GetChatFileRequestBuilder retrieveFile() { return new GetChatFileRequestBuilder(sdkConfiguration); } @@ -60,8 +549,8 @@ public GetChatFileRequestBuilder getChatFile() { * @param fileId Identifier of the chat file to download. * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getChatFile(String fileId) { - return getChatFile(fileId, Optional.empty()); + public CompletableFuture retrieveFile(String fileId) { + return retrieveFile(fileId, Optional.empty()); } /** @@ -76,7 +565,7 @@ public CompletableFuture getChatFile(String fileId) { * * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getChatFile(String fileId, Optional preview) { + public CompletableFuture retrieveFile(String fileId, Optional preview) { GetChatFileRequest request = GetChatFileRequest .builder() @@ -89,4 +578,50 @@ public CompletableFuture getChatFile(String fileId, Optiona .thenCompose(operation::handleResponse); } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @return The async call builder + */ + public ChatStreamRequestBuilder createStream() { + return new ChatStreamRequestBuilder(sdkConfiguration); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param chatRequest The minimal set of fields that form a chat request. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createStream(ChatRequest chatRequest) { + return createStream(Optional.empty(), chatRequest); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param chatRequest The minimal set of fields that form a chat request. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createStream(Optional timezoneOffset, ChatRequest chatRequest) { + ChatStreamRequest request = + ChatStreamRequest + .builder() + .timezoneOffset(timezoneOffset) + .chatRequest(chatRequest) + .build(); + AsyncRequestOperation operation + = new ChatStream.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + } diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClient.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClient.java index 169a6b74..7f9bffca 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClient.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClient.java @@ -14,19 +14,20 @@ public class AsyncClient { private final AsyncAnnouncements announcements; private final AsyncAnswers answers; private final AsyncClientAuthentication authentication; - private final AsyncClientChat chat; + private final AsyncChat chat; private final AsyncClientAgents agents; private final AsyncCollections collections; private final AsyncClientDocuments documents; private final AsyncInsights insights; private final AsyncMessages messages; private final AsyncPins pins; - private final AsyncSearch search; - private final AsyncClientEntities entities; + private final AsyncClientSearch search; + private final AsyncEntities entities; private final AsyncClientShortcuts shortcuts; private final AsyncVerification verification; - private final AsyncClientTools tools; - private final AsyncClientGovernance governance; + private final AsyncTools tools; + private final AsyncGovernance governance; + private final AsyncClientDatasources datasources; private final Client syncSDK; AsyncClient(Client syncSDK, SDKConfiguration sdkConfiguration) { @@ -35,19 +36,20 @@ public class AsyncClient { this.announcements = new AsyncAnnouncements(syncSDK.announcements(), this.sdkConfiguration); this.answers = new AsyncAnswers(syncSDK.answers(), this.sdkConfiguration); this.authentication = new AsyncClientAuthentication(syncSDK.authentication(), this.sdkConfiguration); - this.chat = new AsyncClientChat(syncSDK.chat(), this.sdkConfiguration); + this.chat = new AsyncChat(syncSDK.chat(), this.sdkConfiguration); this.agents = new AsyncClientAgents(syncSDK.agents(), this.sdkConfiguration); this.collections = new AsyncCollections(syncSDK.collections(), this.sdkConfiguration); this.documents = new AsyncClientDocuments(syncSDK.documents(), this.sdkConfiguration); this.insights = new AsyncInsights(syncSDK.insights(), this.sdkConfiguration); this.messages = new AsyncMessages(syncSDK.messages(), this.sdkConfiguration); this.pins = new AsyncPins(syncSDK.pins(), this.sdkConfiguration); - this.search = new AsyncSearch(syncSDK.search(), this.sdkConfiguration); - this.entities = new AsyncClientEntities(syncSDK.entities(), this.sdkConfiguration); + this.search = new AsyncClientSearch(syncSDK.search(), this.sdkConfiguration); + this.entities = new AsyncEntities(syncSDK.entities(), this.sdkConfiguration); this.shortcuts = new AsyncClientShortcuts(syncSDK.shortcuts(), this.sdkConfiguration); this.verification = new AsyncVerification(syncSDK.verification(), this.sdkConfiguration); - this.tools = new AsyncClientTools(syncSDK.tools(), this.sdkConfiguration); - this.governance = new AsyncClientGovernance(syncSDK.governance(), this.sdkConfiguration); + this.tools = new AsyncTools(syncSDK.tools(), this.sdkConfiguration); + this.governance = new AsyncGovernance(syncSDK.governance(), this.sdkConfiguration); + this.datasources = new AsyncClientDatasources(syncSDK.datasources(), this.sdkConfiguration); this.syncSDK = syncSDK; } @@ -67,7 +69,7 @@ public final AsyncClientAuthentication authentication() { return authentication; } - public final AsyncClientChat chat() { + public final AsyncChat chat() { return chat; } @@ -95,11 +97,11 @@ public final AsyncPins pins() { return pins; } - public final AsyncSearch search() { + public final AsyncClientSearch search() { return search; } - public final AsyncClientEntities entities() { + public final AsyncEntities entities() { return entities; } @@ -111,14 +113,18 @@ public final AsyncVerification verification() { return verification; } - public final AsyncClientTools tools() { + public final AsyncTools tools() { return tools; } - public final AsyncClientGovernance governance() { + public final AsyncGovernance governance() { return governance; } + public final AsyncClientDatasources datasources() { + return datasources; + } + /** * Switches to the sync SDK. * diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAgents.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAgents.java index 48147776..db0ba6fb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAgents.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAgents.java @@ -7,21 +7,31 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; import com.glean.api_client.glean_api_client.models.components.AgentRunCreate; +import com.glean.api_client.glean_api_client.models.components.CreateWorkflowRequest; +import com.glean.api_client.glean_api_client.models.components.EditWorkflowRequest; import com.glean.api_client.glean_api_client.models.components.SearchAgentsRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateAgentRequest; +import com.glean.api_client.glean_api_client.models.operations.EditAgentRequest; import com.glean.api_client.glean_api_client.models.operations.GetAgentRequest; import com.glean.api_client.glean_api_client.models.operations.GetAgentSchemasRequest; +import com.glean.api_client.glean_api_client.models.operations.async.CreateAgentRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.CreateAgentResponse; import com.glean.api_client.glean_api_client.models.operations.async.CreateAndStreamRunRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.CreateAndStreamRunResponse; import com.glean.api_client.glean_api_client.models.operations.async.CreateAndWaitRunRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.CreateAndWaitRunResponse; +import com.glean.api_client.glean_api_client.models.operations.async.EditAgentRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.EditAgentResponse; import com.glean.api_client.glean_api_client.models.operations.async.GetAgentRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.GetAgentResponse; import com.glean.api_client.glean_api_client.models.operations.async.GetAgentSchemasRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.GetAgentSchemasResponse; import com.glean.api_client.glean_api_client.models.operations.async.SearchAgentsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.SearchAgentsResponse; +import com.glean.api_client.glean_api_client.operations.CreateAgent; import com.glean.api_client.glean_api_client.operations.CreateAndStreamRun; import com.glean.api_client.glean_api_client.operations.CreateAndWaitRun; +import com.glean.api_client.glean_api_client.operations.EditAgent; import com.glean.api_client.glean_api_client.operations.GetAgent; import com.glean.api_client.glean_api_client.operations.GetAgentSchemas; import com.glean.api_client.glean_api_client.operations.SearchAgents; @@ -52,6 +62,56 @@ public ClientAgents sync() { } + /** + * Create an agent + * + *

Create an agent. + * + * @return The async call builder + */ + public CreateAgentRequestBuilder create() { + return new CreateAgentRequestBuilder(sdkConfiguration); + } + + /** + * Create an agent + * + *

Create an agent. + * + * @param createWorkflowRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(CreateWorkflowRequest createWorkflowRequest) { + return create(Optional.empty(), Optional.empty(), createWorkflowRequest); + } + + /** + * Create an agent + * + *

Create an agent. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param createWorkflowRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create( + Optional locale, Optional timezoneOffset, + CreateWorkflowRequest createWorkflowRequest) { + CreateAgentRequest request = + CreateAgentRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .createWorkflowRequest(createWorkflowRequest) + .build(); + AsyncRequestOperation operation + = new CreateAgent.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + /** * Retrieve an agent * @@ -105,6 +165,67 @@ public CompletableFuture retrieve( } + /** + * Edit an agent + * + *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use + * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and + * publish modes are supported. + * + * @return The async call builder + */ + public EditAgentRequestBuilder update() { + return new EditAgentRequestBuilder(sdkConfiguration); + } + + /** + * Edit an agent + * + *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use + * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and + * publish modes are supported. + * + * @param agentId The ID of the agent. + * @param editWorkflowRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update(String agentId, EditWorkflowRequest editWorkflowRequest) { + return update( + Optional.empty(), Optional.empty(), agentId, + editWorkflowRequest); + } + + /** + * Edit an agent + * + *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use + * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and + * publish modes are supported. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param agentId The ID of the agent. + * @param editWorkflowRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update( + Optional locale, Optional timezoneOffset, + String agentId, EditWorkflowRequest editWorkflowRequest) { + EditAgentRequest request = + EditAgentRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .agentId(agentId) + .editWorkflowRequest(editWorkflowRequest) + .build(); + AsyncRequestOperation operation + = new EditAgent.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + /** * List an agent's schemas * diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java index d40eca1b..6d309a2f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java @@ -6,8 +6,11 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestlessOperation; +import com.glean.api_client.glean_api_client.models.operations.async.CheckdatasourceauthRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.CheckdatasourceauthResponse; import com.glean.api_client.glean_api_client.models.operations.async.CreateauthtokenRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.CreateauthtokenResponse; +import com.glean.api_client.glean_api_client.operations.Checkdatasourceauth; import com.glean.api_client.glean_api_client.operations.Createauthtoken; import com.glean.api_client.glean_api_client.utils.Headers; import java.util.concurrent.CompletableFuture; @@ -33,6 +36,44 @@ public ClientAuthentication sync() { } + /** + * Check datasource authorization + * + *

Returns all datasource instances that require per-user OAuth authorization + * for the authenticated user, along with a transient auth token that can be + * appended to auth URLs to complete OAuth flows. + * + *

Clients construct the full OAuth URL by combining the backend base URL, + * the `authUrlRelativePath` from each instance, and the transient auth token: + * `/<authUrlRelativePath>?transient_auth_token=<token>`. + * + * @return The async call builder + */ + public CheckdatasourceauthRequestBuilder checkDatasourceAuth() { + return new CheckdatasourceauthRequestBuilder(sdkConfiguration); + } + + /** + * Check datasource authorization + * + *

Returns all datasource instances that require per-user OAuth authorization + * for the authenticated user, along with a transient auth token that can be + * appended to auth URLs to complete OAuth flows. + * + *

Clients construct the full OAuth URL by combining the backend base URL, + * the `authUrlRelativePath` from each instance, and the transient auth token: + * `/<authUrlRelativePath>?transient_auth_token=<token>`. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture checkDatasourceAuthDirect() { + AsyncRequestlessOperation operation + = new Checkdatasourceauth.Async(sdkConfiguration, _headers); + return operation.doRequest() + .thenCompose(operation::handleResponse); + } + + /** * Create authentication token * diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientChat.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientChat.java deleted file mode 100644 index b3122d16..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientChat.java +++ /dev/null @@ -1,570 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 4576354be4d8 - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; - -import com.glean.api_client.glean_api_client.models.components.ChatRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatRequest; -import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamRequest; -import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletechatsRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatfilesRequest; -import com.glean.api_client.glean_api_client.models.operations.ListchatsRequest; -import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesRequest; -import com.glean.api_client.glean_api_client.models.operations.async.ChatRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.ChatResponse; -import com.glean.api_client.glean_api_client.models.operations.async.ChatStreamRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.ChatStreamResponse; -import com.glean.api_client.glean_api_client.models.operations.async.DeleteallchatsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.DeleteallchatsResponse; -import com.glean.api_client.glean_api_client.models.operations.async.DeletechatfilesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.DeletechatfilesResponse; -import com.glean.api_client.glean_api_client.models.operations.async.DeletechatsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.DeletechatsResponse; -import com.glean.api_client.glean_api_client.models.operations.async.GetchatRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.GetchatResponse; -import com.glean.api_client.glean_api_client.models.operations.async.GetchatapplicationRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.GetchatapplicationResponse; -import com.glean.api_client.glean_api_client.models.operations.async.GetchatfilesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.GetchatfilesResponse; -import com.glean.api_client.glean_api_client.models.operations.async.ListchatsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.ListchatsResponse; -import com.glean.api_client.glean_api_client.models.operations.async.UploadchatfilesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.UploadchatfilesResponse; -import com.glean.api_client.glean_api_client.operations.Chat; -import com.glean.api_client.glean_api_client.operations.ChatStream; -import com.glean.api_client.glean_api_client.operations.Deleteallchats; -import com.glean.api_client.glean_api_client.operations.Deletechatfiles; -import com.glean.api_client.glean_api_client.operations.Deletechats; -import com.glean.api_client.glean_api_client.operations.Getchat; -import com.glean.api_client.glean_api_client.operations.Getchatapplication; -import com.glean.api_client.glean_api_client.operations.Getchatfiles; -import com.glean.api_client.glean_api_client.operations.Listchats; -import com.glean.api_client.glean_api_client.operations.Uploadchatfiles; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.Long; -import java.lang.String; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; - - -public class AsyncClientChat { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final ClientChat syncSDK; - - AsyncClientChat(ClientChat syncSDK, SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.syncSDK = syncSDK; - } - - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public ClientChat sync() { - return syncSDK; - } - - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @return The async call builder - */ - public ChatRequestBuilder create() { - return new ChatRequestBuilder(sdkConfiguration); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param chatRequest The minimal set of fields that form a chat request. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture create(ChatRequest chatRequest) { - return create(Optional.empty(), Optional.empty(), chatRequest); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param chatRequest The minimal set of fields that form a chat request. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture create( - Optional locale, Optional timezoneOffset, - ChatRequest chatRequest) { - com.glean.api_client.glean_api_client.models.operations.ChatRequest request = - com.glean.api_client.glean_api_client.models.operations.ChatRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .chatRequest(chatRequest) - .build(); - AsyncRequestOperation operation - = new Chat.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Deletes all saved Chats owned by a user - * - *

Deletes all saved Chats a user has had and all their contained conversational content. - * - * @return The async call builder - */ - public DeleteallchatsRequestBuilder deleteAll() { - return new DeleteallchatsRequestBuilder(sdkConfiguration); - } - - /** - * Deletes all saved Chats owned by a user - * - *

Deletes all saved Chats a user has had and all their contained conversational content. - * - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture deleteAllDirect() { - return deleteAll(Optional.empty(), Optional.empty()); - } - - /** - * Deletes all saved Chats owned by a user - * - *

Deletes all saved Chats a user has had and all their contained conversational content. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture deleteAll(Optional locale, Optional timezoneOffset) { - DeleteallchatsRequest request = - DeleteallchatsRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .build(); - AsyncRequestOperation operation - = new Deleteallchats.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Deletes saved Chats - * - *

Deletes saved Chats and all their contained conversational content. - * - * @return The async call builder - */ - public DeletechatsRequestBuilder delete() { - return new DeletechatsRequestBuilder(sdkConfiguration); - } - - /** - * Deletes saved Chats - * - *

Deletes saved Chats and all their contained conversational content. - * - * @param deleteChatsRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture delete(DeleteChatsRequest deleteChatsRequest) { - return delete(Optional.empty(), Optional.empty(), deleteChatsRequest); - } - - /** - * Deletes saved Chats - * - *

Deletes saved Chats and all their contained conversational content. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param deleteChatsRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture delete( - Optional locale, Optional timezoneOffset, - DeleteChatsRequest deleteChatsRequest) { - DeletechatsRequest request = - DeletechatsRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .deleteChatsRequest(deleteChatsRequest) - .build(); - AsyncRequestOperation operation - = new Deletechats.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Retrieves a Chat - * - *

Retrieves the chat history between Glean Assistant and the user for a given Chat. - * - * @return The async call builder - */ - public GetchatRequestBuilder retrieve() { - return new GetchatRequestBuilder(sdkConfiguration); - } - - /** - * Retrieves a Chat - * - *

Retrieves the chat history between Glean Assistant and the user for a given Chat. - * - * @param getChatRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieve(GetChatRequest getChatRequest) { - return retrieve(Optional.empty(), Optional.empty(), getChatRequest); - } - - /** - * Retrieves a Chat - * - *

Retrieves the chat history between Glean Assistant and the user for a given Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param getChatRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieve( - Optional locale, Optional timezoneOffset, - GetChatRequest getChatRequest) { - GetchatRequest request = - GetchatRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .getChatRequest(getChatRequest) - .build(); - AsyncRequestOperation operation - = new Getchat.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Retrieves all saved Chats - * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only - * metadata and no conversational content. - * - * @return The async call builder - */ - public ListchatsRequestBuilder list() { - return new ListchatsRequestBuilder(sdkConfiguration); - } - - /** - * Retrieves all saved Chats - * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only - * metadata and no conversational content. - * - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture listDirect() { - return list(Optional.empty(), Optional.empty()); - } - - /** - * Retrieves all saved Chats - * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only - * metadata and no conversational content. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture list(Optional locale, Optional timezoneOffset) { - ListchatsRequest request = - ListchatsRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .build(); - AsyncRequestOperation operation - = new Listchats.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Gets the metadata for a custom Chat application - * - *

Gets the Chat application details for the specified application ID. - * - * @return The async call builder - */ - public GetchatapplicationRequestBuilder retrieveApplication() { - return new GetchatapplicationRequestBuilder(sdkConfiguration); - } - - /** - * Gets the metadata for a custom Chat application - * - *

Gets the Chat application details for the specified application ID. - * - * @param getChatApplicationRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { - return retrieveApplication(Optional.empty(), Optional.empty(), getChatApplicationRequest); - } - - /** - * Gets the metadata for a custom Chat application - * - *

Gets the Chat application details for the specified application ID. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param getChatApplicationRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieveApplication( - Optional locale, Optional timezoneOffset, - GetChatApplicationRequest getChatApplicationRequest) { - GetchatapplicationRequest request = - GetchatapplicationRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .getChatApplicationRequest(getChatApplicationRequest) - .build(); - AsyncRequestOperation operation - = new Getchatapplication.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Upload files for Chat - * - *

Upload files for Chat. - * - * @return The async call builder - */ - public UploadchatfilesRequestBuilder uploadFiles() { - return new UploadchatfilesRequestBuilder(sdkConfiguration); - } - - /** - * Upload files for Chat - * - *

Upload files for Chat. - * - * @param uploadChatFilesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { - return uploadFiles(Optional.empty(), Optional.empty(), uploadChatFilesRequest); - } - - /** - * Upload files for Chat - * - *

Upload files for Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param uploadChatFilesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture uploadFiles( - Optional locale, Optional timezoneOffset, - UploadChatFilesRequest uploadChatFilesRequest) { - UploadchatfilesRequest request = - UploadchatfilesRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .uploadChatFilesRequest(uploadChatFilesRequest) - .build(); - AsyncRequestOperation operation - = new Uploadchatfiles.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Get files uploaded by a user for Chat - * - *

Get files uploaded by a user for Chat. - * - * @return The async call builder - */ - public GetchatfilesRequestBuilder retrieveFiles() { - return new GetchatfilesRequestBuilder(sdkConfiguration); - } - - /** - * Get files uploaded by a user for Chat - * - *

Get files uploaded by a user for Chat. - * - * @param getChatFilesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieveFiles(GetChatFilesRequest getChatFilesRequest) { - return retrieveFiles(Optional.empty(), Optional.empty(), getChatFilesRequest); - } - - /** - * Get files uploaded by a user for Chat - * - *

Get files uploaded by a user for Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param getChatFilesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieveFiles( - Optional locale, Optional timezoneOffset, - GetChatFilesRequest getChatFilesRequest) { - GetchatfilesRequest request = - GetchatfilesRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .getChatFilesRequest(getChatFilesRequest) - .build(); - AsyncRequestOperation operation - = new Getchatfiles.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Delete files uploaded by a user for chat - * - *

Delete files uploaded by a user for Chat. - * - * @return The async call builder - */ - public DeletechatfilesRequestBuilder deleteFiles() { - return new DeletechatfilesRequestBuilder(sdkConfiguration); - } - - /** - * Delete files uploaded by a user for chat - * - *

Delete files uploaded by a user for Chat. - * - * @param deleteChatFilesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { - return deleteFiles(Optional.empty(), Optional.empty(), deleteChatFilesRequest); - } - - /** - * Delete files uploaded by a user for chat - * - *

Delete files uploaded by a user for Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param deleteChatFilesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture deleteFiles( - Optional locale, Optional timezoneOffset, - DeleteChatFilesRequest deleteChatFilesRequest) { - DeletechatfilesRequest request = - DeletechatfilesRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .deleteChatFilesRequest(deleteChatFilesRequest) - .build(); - AsyncRequestOperation operation - = new Deletechatfiles.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @return The async call builder - */ - public ChatStreamRequestBuilder createStream() { - return new ChatStreamRequestBuilder(sdkConfiguration); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param chatRequest The minimal set of fields that form a chat request. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture createStream(ChatRequest chatRequest) { - return createStream(Optional.empty(), chatRequest); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param chatRequest The minimal set of fields that form a chat request. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture createStream(Optional timezoneOffset, ChatRequest chatRequest) { - ChatStreamRequest request = - ChatStreamRequest - .builder() - .timezoneOffset(timezoneOffset) - .chatRequest(chatRequest) - .build(); - AsyncRequestOperation operation - = new ChatStream.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientDatasources.java similarity index 92% rename from src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java rename to src/main/java/com/glean/api_client/glean_api_client/AsyncClientDatasources.java index 52bde479..ade0e331 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientDatasources.java @@ -1,6 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 3c173ec01fbb + * @generated-id: a823c73e3290 */ package com.glean.api_client.glean_api_client; @@ -27,15 +27,13 @@ import java.lang.String; import java.util.concurrent.CompletableFuture; -/** - * Manage datasources. - */ -public class AsyncDatasources { + +public class AsyncClientDatasources { private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; - private final Datasources syncSDK; + private final ClientDatasources syncSDK; - AsyncDatasources(Datasources syncSDK, SDKConfiguration sdkConfiguration) { + AsyncClientDatasources(ClientDatasources syncSDK, SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; this.syncSDK = syncSDK; } @@ -45,7 +43,7 @@ public class AsyncDatasources { * * @return The sync SDK */ - public Datasources sync() { + public ClientDatasources sync() { return syncSDK; } @@ -58,7 +56,7 @@ public Datasources sync() { * * @return The async call builder */ - public GetDatasourceInstanceConfigurationRequestBuilder getDatasourceInstanceConfiguration() { + public GetDatasourceInstanceConfigurationRequestBuilder retrieveConfiguration() { return new GetDatasourceInstanceConfigurationRequestBuilder(sdkConfiguration); } @@ -72,7 +70,7 @@ public GetDatasourceInstanceConfigurationRequestBuilder getDatasourceInstanceCon * @param instanceId The datasource instance identifier * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getDatasourceInstanceConfiguration(String datasourceId, String instanceId) { + public CompletableFuture retrieveConfiguration(String datasourceId, String instanceId) { GetDatasourceInstanceConfigurationRequest request = GetDatasourceInstanceConfigurationRequest .builder() @@ -95,7 +93,7 @@ public CompletableFuture getDatasour * * @return The async call builder */ - public UpdateDatasourceInstanceConfigurationRequestBuilder updateDatasourceInstanceConfiguration() { + public UpdateDatasourceInstanceConfigurationRequestBuilder updateConfiguration() { return new UpdateDatasourceInstanceConfigurationRequestBuilder(sdkConfiguration); } @@ -112,7 +110,7 @@ public UpdateDatasourceInstanceConfigurationRequestBuilder updateDatasourceInsta * * @return {@code CompletableFuture} - The async response */ - public CompletableFuture updateDatasourceInstanceConfiguration( + public CompletableFuture updateConfiguration( String datasourceId, String instanceId, UpdateDatasourceConfigurationRequest updateDatasourceConfigurationRequest) { UpdateDatasourceInstanceConfigurationRequest request = @@ -137,7 +135,7 @@ public CompletableFuture updateDa * * @return The async call builder */ - public GetDatasourceCredentialStatusRequestBuilder getDatasourceCredentialStatus() { + public GetDatasourceCredentialStatusRequestBuilder retrieveCredentialStatus() { return new GetDatasourceCredentialStatusRequestBuilder(sdkConfiguration); } @@ -150,7 +148,7 @@ public GetDatasourceCredentialStatusRequestBuilder getDatasourceCredentialStatus * @param datasourceInstanceId The full datasource instance identifier (e.g. o365sharepoint_abc123) * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getDatasourceCredentialStatus(String datasourceInstanceId) { + public CompletableFuture retrieveCredentialStatus(String datasourceInstanceId) { GetDatasourceCredentialStatusRequest request = GetDatasourceCredentialStatusRequest .builder() @@ -177,7 +175,7 @@ public CompletableFuture getDatasourceCre * * @return The async call builder */ - public RotateDatasourceCredentialsRequestBuilder rotateDatasourceCredentials() { + public RotateDatasourceCredentialsRequestBuilder rotateCredentials() { return new RotateDatasourceCredentialsRequestBuilder(sdkConfiguration); } @@ -199,7 +197,7 @@ public RotateDatasourceCredentialsRequestBuilder rotateDatasourceCredentials() { * * @return {@code CompletableFuture} - The async response */ - public CompletableFuture rotateDatasourceCredentials(String datasourceInstanceId, RotateDatasourceCredentialsRequest rotateDatasourceCredentialsRequest) { + public CompletableFuture rotateCredentials(String datasourceInstanceId, RotateDatasourceCredentialsRequest rotateDatasourceCredentialsRequest) { com.glean.api_client.glean_api_client.models.operations.RotateDatasourceCredentialsRequest request = com.glean.api_client.glean_api_client.models.operations.RotateDatasourceCredentialsRequest .builder() diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientEntities.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientEntities.java deleted file mode 100644 index f0ce3694..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientEntities.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 379d1a5a3ee9 - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; - -import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; -import com.glean.api_client.glean_api_client.models.components.PeopleRequest; -import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; -import com.glean.api_client.glean_api_client.models.operations.async.ListentitiesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.ListentitiesResponse; -import com.glean.api_client.glean_api_client.models.operations.async.PeopleRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.PeopleResponse; -import com.glean.api_client.glean_api_client.operations.Listentities; -import com.glean.api_client.glean_api_client.operations.People; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; - - -public class AsyncClientEntities { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final ClientEntities syncSDK; - - AsyncClientEntities(ClientEntities syncSDK, SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.syncSDK = syncSDK; - } - - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public ClientEntities sync() { - return syncSDK; - } - - - /** - * List entities - * - *

List some set of details for all entities that fit the given criteria and return in the requested - * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 - * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for - * people entities. - * - * @return The async call builder - */ - public ListentitiesRequestBuilder list() { - return new ListentitiesRequestBuilder(sdkConfiguration); - } - - /** - * List entities - * - *

List some set of details for all entities that fit the given criteria and return in the requested - * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 - * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for - * people entities. - * - * @param listEntitiesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture list(ListEntitiesRequest listEntitiesRequest) { - return list(Optional.empty(), listEntitiesRequest); - } - - /** - * List entities - * - *

List some set of details for all entities that fit the given criteria and return in the requested - * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 - * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for - * people entities. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param listEntitiesRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture list(Optional locale, ListEntitiesRequest listEntitiesRequest) { - ListentitiesRequest request = - ListentitiesRequest - .builder() - .locale(locale) - .listEntitiesRequest(listEntitiesRequest) - .build(); - AsyncRequestOperation operation - = new Listentities.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Read people - * - *

Read people details for the given IDs. - * - * @return The async call builder - */ - public PeopleRequestBuilder readPeople() { - return new PeopleRequestBuilder(sdkConfiguration); - } - - /** - * Read people - * - *

Read people details for the given IDs. - * - * @param peopleRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture readPeople(PeopleRequest peopleRequest) { - return readPeople(Optional.empty(), peopleRequest); - } - - /** - * Read people - * - *

Read people details for the given IDs. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param peopleRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture readPeople(Optional locale, PeopleRequest peopleRequest) { - com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = - com.glean.api_client.glean_api_client.models.operations.PeopleRequest - .builder() - .locale(locale) - .peopleRequest(peopleRequest) - .build(); - AsyncRequestOperation operation - = new People.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientGovernance.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientGovernance.java deleted file mode 100644 index b43b53d3..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientGovernance.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 2c29466c8c9d - */ -package com.glean.api_client.glean_api_client; - -import com.glean.api_client.glean_api_client.utils.Headers; - - -public class AsyncClientGovernance { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncData data; - private final AsyncGovernanceDocuments documents; - private final ClientGovernance syncSDK; - - AsyncClientGovernance(ClientGovernance syncSDK, SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.data = new AsyncData(syncSDK.data(), this.sdkConfiguration); - this.documents = new AsyncGovernanceDocuments(syncSDK.documents(), this.sdkConfiguration); - this.syncSDK = syncSDK; - } - - public final AsyncData data() { - return data; - } - - public final AsyncGovernanceDocuments documents() { - return documents; - } - - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public ClientGovernance sync() { - return syncSDK; - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientSearch.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientSearch.java new file mode 100644 index 00000000..826e5b9d --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientSearch.java @@ -0,0 +1,290 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: d57bf2325db3 + */ +package com.glean.api_client.glean_api_client; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; +import com.glean.api_client.glean_api_client.models.components.FeedRequest; +import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; +import com.glean.api_client.glean_api_client.models.components.SearchRequest; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; +import com.glean.api_client.glean_api_client.models.operations.async.AdminsearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.AdminsearchResponse; +import com.glean.api_client.glean_api_client.models.operations.async.AutocompleteRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.AutocompleteResponse; +import com.glean.api_client.glean_api_client.models.operations.async.FeedRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.FeedResponse; +import com.glean.api_client.glean_api_client.models.operations.async.RecommendationsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.RecommendationsResponse; +import com.glean.api_client.glean_api_client.models.operations.async.SearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.SearchResponse; +import com.glean.api_client.glean_api_client.operations.Adminsearch; +import com.glean.api_client.glean_api_client.operations.Autocomplete; +import com.glean.api_client.glean_api_client.operations.Feed; +import com.glean.api_client.glean_api_client.operations.Recommendations; +import com.glean.api_client.glean_api_client.operations.Search; +import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + + +public class AsyncClientSearch { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final ClientSearch syncSDK; + + AsyncClientSearch(ClientSearch syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public ClientSearch sync() { + return syncSDK; + } + + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @return The async call builder + */ + public AdminsearchRequestBuilder queryAsAdmin() { + return new AdminsearchRequestBuilder(sdkConfiguration); + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @param searchRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture queryAsAdmin(SearchRequest searchRequest) { + return queryAsAdmin(Optional.empty(), searchRequest); + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture queryAsAdmin(Optional locale, SearchRequest searchRequest) { + AdminsearchRequest request = + AdminsearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + AsyncRequestOperation operation + = new Adminsearch.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @return The async call builder + */ + public AutocompleteRequestBuilder autocomplete() { + return new AutocompleteRequestBuilder(sdkConfiguration); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @param autocompleteRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture autocomplete(AutocompleteRequest autocompleteRequest) { + return autocomplete(Optional.empty(), autocompleteRequest); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param autocompleteRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture autocomplete(Optional locale, AutocompleteRequest autocompleteRequest) { + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest + .builder() + .locale(locale) + .autocompleteRequest(autocompleteRequest) + .build(); + AsyncRequestOperation operation + = new Autocomplete.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @return The async call builder + */ + public FeedRequestBuilder retrieveFeed() { + return new FeedRequestBuilder(sdkConfiguration); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @param feedRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveFeed(FeedRequest feedRequest) { + return retrieveFeed(Optional.empty(), feedRequest); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param feedRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveFeed(Optional locale, FeedRequest feedRequest) { + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = + com.glean.api_client.glean_api_client.models.operations.FeedRequest + .builder() + .locale(locale) + .feedRequest(feedRequest) + .build(); + AsyncRequestOperation operation + = new Feed.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @return The async call builder + */ + public RecommendationsRequestBuilder recommendations() { + return new RecommendationsRequestBuilder(sdkConfiguration); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @param recommendationsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture recommendations(RecommendationsRequest recommendationsRequest) { + return recommendations(Optional.empty(), recommendationsRequest); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param recommendationsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture recommendations(Optional locale, RecommendationsRequest recommendationsRequest) { + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest + .builder() + .locale(locale) + .recommendationsRequest(recommendationsRequest) + .build(); + AsyncRequestOperation operation + = new Recommendations.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @return The async call builder + */ + public SearchRequestBuilder query() { + return new SearchRequestBuilder(sdkConfiguration); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @param searchRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture query(SearchRequest searchRequest) { + return query(Optional.empty(), searchRequest); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture query(Optional locale, SearchRequest searchRequest) { + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = + com.glean.api_client.glean_api_client.models.operations.SearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + AsyncRequestOperation operation + = new Search.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientTools.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientTools.java deleted file mode 100644 index 1a6353ba..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientTools.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: eeb89c7cb08c - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; - -import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; -import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListRequest; -import com.glean.api_client.glean_api_client.models.operations.async.GetRestApiV1ToolsListRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.GetRestApiV1ToolsListResponse; -import com.glean.api_client.glean_api_client.models.operations.async.PostRestApiV1ToolsCallRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.PostRestApiV1ToolsCallResponse; -import com.glean.api_client.glean_api_client.operations.GetRestApiV1ToolsList; -import com.glean.api_client.glean_api_client.operations.PostRestApiV1ToolsCall; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.List; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; - - -public class AsyncClientTools { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final ClientTools syncSDK; - - AsyncClientTools(ClientTools syncSDK, SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.syncSDK = syncSDK; - } - - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public ClientTools sync() { - return syncSDK; - } - - - /** - * List available tools - * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are - * provided, all available tools are returned. - * - * @return The async call builder - */ - public GetRestApiV1ToolsListRequestBuilder list() { - return new GetRestApiV1ToolsListRequestBuilder(sdkConfiguration); - } - - /** - * List available tools - * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are - * provided, all available tools are returned. - * - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture listDirect() { - return list(Optional.empty()); - } - - /** - * List available tools - * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are - * provided, all available tools are returned. - * - * @param toolNames Optional array of tool names to filter by - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture list(Optional> toolNames) { - GetRestApiV1ToolsListRequest request = - GetRestApiV1ToolsListRequest - .builder() - .toolNames(toolNames) - .build(); - AsyncRequestOperation operation - = new GetRestApiV1ToolsList.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Execute the specified tool - * - *

Execute the specified tool with provided parameters - * - * @return The async call builder - */ - public PostRestApiV1ToolsCallRequestBuilder run() { - return new PostRestApiV1ToolsCallRequestBuilder(sdkConfiguration); - } - - /** - * Execute the specified tool - * - *

Execute the specified tool with provided parameters - * - * @param request The request object containing all the parameters for the API call. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture run(ToolsCallRequest request) { - AsyncRequestOperation operation - = new PostRestApiV1ToolsCall.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncData.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncData.java index e5c2e985..f8b07ee3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncData.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncData.java @@ -12,12 +12,14 @@ public class AsyncData { private final SDKConfiguration sdkConfiguration; private final AsyncPolicies policies; private final AsyncReports reports; + private final AsyncFindings findings; private final Data syncSDK; AsyncData(Data syncSDK, SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; this.policies = new AsyncPolicies(syncSDK.policies(), this.sdkConfiguration); this.reports = new AsyncReports(syncSDK.reports(), this.sdkConfiguration); + this.findings = new AsyncFindings(syncSDK.findings(), this.sdkConfiguration); this.syncSDK = syncSDK; } @@ -29,6 +31,10 @@ public final AsyncReports reports() { return reports; } + public final AsyncFindings findings() { + return findings; + } + /** * Switches to the sync SDK. * diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java index a822d7e4..41a369b6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java @@ -6,10 +6,19 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; +import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; +import com.glean.api_client.glean_api_client.models.components.PeopleRequest; import com.glean.api_client.glean_api_client.models.operations.GetPersonPhotoRequest; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; import com.glean.api_client.glean_api_client.models.operations.async.GetPersonPhotoRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.GetPersonPhotoResponse; +import com.glean.api_client.glean_api_client.models.operations.async.ListentitiesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.ListentitiesResponse; +import com.glean.api_client.glean_api_client.models.operations.async.PeopleRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PeopleResponse; import com.glean.api_client.glean_api_client.operations.GetPersonPhoto; +import com.glean.api_client.glean_api_client.operations.Listentities; +import com.glean.api_client.glean_api_client.operations.People; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.String; import java.util.Optional; @@ -36,6 +45,107 @@ public Entities sync() { } + /** + * List entities + * + *

List some set of details for all entities that fit the given criteria and return in the requested + * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 + * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for + * people entities. + * + * @return The async call builder + */ + public ListentitiesRequestBuilder list() { + return new ListentitiesRequestBuilder(sdkConfiguration); + } + + /** + * List entities + * + *

List some set of details for all entities that fit the given criteria and return in the requested + * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 + * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for + * people entities. + * + * @param listEntitiesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(ListEntitiesRequest listEntitiesRequest) { + return list(Optional.empty(), listEntitiesRequest); + } + + /** + * List entities + * + *

List some set of details for all entities that fit the given criteria and return in the requested + * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 + * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for + * people entities. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listEntitiesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(Optional locale, ListEntitiesRequest listEntitiesRequest) { + ListentitiesRequest request = + ListentitiesRequest + .builder() + .locale(locale) + .listEntitiesRequest(listEntitiesRequest) + .build(); + AsyncRequestOperation operation + = new Listentities.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @return The async call builder + */ + public PeopleRequestBuilder readPeople() { + return new PeopleRequestBuilder(sdkConfiguration); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @param peopleRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture readPeople(PeopleRequest peopleRequest) { + return readPeople(Optional.empty(), peopleRequest); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param peopleRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture readPeople(Optional locale, PeopleRequest peopleRequest) { + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = + com.glean.api_client.glean_api_client.models.operations.PeopleRequest + .builder() + .locale(locale) + .peopleRequest(peopleRequest) + .build(); + AsyncRequestOperation operation + = new People.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + /** * Get person photo * @@ -48,7 +158,7 @@ public Entities sync() { * * @return The async call builder */ - public GetPersonPhotoRequestBuilder getPersonPhoto() { + public GetPersonPhotoRequestBuilder retrievePersonPhoto() { return new GetPersonPhotoRequestBuilder(sdkConfiguration); } @@ -65,8 +175,8 @@ public GetPersonPhotoRequestBuilder getPersonPhoto() { * @param personId The obfuscated ID of the person whose photo to retrieve. * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getPersonPhoto(String personId) { - return getPersonPhoto(personId, Optional.empty()); + public CompletableFuture retrievePersonPhoto(String personId) { + return retrievePersonPhoto(personId, Optional.empty()); } /** @@ -84,7 +194,7 @@ public CompletableFuture getPersonPhoto(String personId) * * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getPersonPhoto(String personId, Optional ds) { + public CompletableFuture retrievePersonPhoto(String personId, Optional ds) { GetPersonPhotoRequest request = GetPersonPhotoRequest .builder() diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncFindings.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncFindings.java new file mode 100644 index 00000000..b688538c --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncFindings.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 7f1c2e5b0c11 + */ +package com.glean.api_client.glean_api_client; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestlessOperation; + +import com.glean.api_client.glean_api_client.models.components.DlpExportFindingsRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportRequest; +import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportRequest; +import com.glean.api_client.glean_api_client.models.operations.async.CreatefindingsexportRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.CreatefindingsexportResponse; +import com.glean.api_client.glean_api_client.models.operations.async.DeletefindingsexportRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.DeletefindingsexportResponse; +import com.glean.api_client.glean_api_client.models.operations.async.DownloadfindingsexportRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.DownloadfindingsexportResponse; +import com.glean.api_client.glean_api_client.models.operations.async.ListfindingsexportsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.ListfindingsexportsResponse; +import com.glean.api_client.glean_api_client.operations.Createfindingsexport; +import com.glean.api_client.glean_api_client.operations.Deletefindingsexport; +import com.glean.api_client.glean_api_client.operations.Downloadfindingsexport; +import com.glean.api_client.glean_api_client.operations.Listfindingsexports; +import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.concurrent.CompletableFuture; + + +public class AsyncFindings { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Findings syncSDK; + + AsyncFindings(Findings syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Findings sync() { + return syncSDK; + } + + + /** + * Creates findings export + * + *

Creates a new DLP findings export job. + * + * @return The async call builder + */ + public CreatefindingsexportRequestBuilder create() { + return new CreatefindingsexportRequestBuilder(sdkConfiguration); + } + + /** + * Creates findings export + * + *

Creates a new DLP findings export job. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(DlpExportFindingsRequest request) { + AsyncRequestOperation operation + = new Createfindingsexport.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Lists findings exports + * + *

Lists all DLP findings exports. + * + * @return The async call builder + */ + public ListfindingsexportsRequestBuilder list() { + return new ListfindingsexportsRequestBuilder(sdkConfiguration); + } + + /** + * Lists findings exports + * + *

Lists all DLP findings exports. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listDirect() { + AsyncRequestlessOperation operation + = new Listfindingsexports.Async(sdkConfiguration, _headers); + return operation.doRequest() + .thenCompose(operation::handleResponse); + } + + + /** + * Downloads findings export + * + *

Downloads a DLP findings export as a CSV file. + * + * @return The async call builder + */ + public DownloadfindingsexportRequestBuilder download() { + return new DownloadfindingsexportRequestBuilder(sdkConfiguration); + } + + /** + * Downloads findings export + * + *

Downloads a DLP findings export as a CSV file. + * + * @param id The ID of the export to download. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture download(String id) { + DownloadfindingsexportRequest request = + DownloadfindingsexportRequest + .builder() + .id(id) + .build(); + AsyncRequestOperation operation + = new Downloadfindingsexport.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Deletes findings export + * + *

Deletes a DLP findings export. + * + * @return The async call builder + */ + public DeletefindingsexportRequestBuilder delete() { + return new DeletefindingsexportRequestBuilder(sdkConfiguration); + } + + /** + * Deletes findings export + * + *

Deletes a DLP findings export. + * + * @param id The ID of the export to delete. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete(long id) { + DeletefindingsexportRequest request = + DeletefindingsexportRequest + .builder() + .id(id) + .build(); + AsyncRequestOperation operation + = new Deletefindingsexport.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java index 3ef8fd2e..043e1a83 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java @@ -34,90 +34,40 @@ public class AsyncGlean { private static final Headers _headers = Headers.EMPTY; - private final AsyncClient client; - /** - * Manage indexing API tokens. - */ - private final AsyncAuthentication authentication; - - private final AsyncChat chat; - private final AsyncAgents agents; - private final AsyncEntities entities; + private final AsyncSearch search; - private final AsyncTools tools; + private final AsyncClient client; private final AsyncIndexing indexing; - private final AsyncTroubleshooting troubleshooting; - - private final AsyncGovernance governance; - /** - * Manage datasources. - */ - private final AsyncDatasources datasources; - - public AsyncClient client() { - return client; - } - /** - * Manage indexing API tokens. - */ - public AsyncAuthentication authentication() { - return authentication; - } - - public AsyncChat chat() { - return chat; - } - public AsyncAgents agents() { return agents; } - public AsyncEntities entities() { - return entities; + public AsyncSearch search() { + return search; } - public AsyncTools tools() { - return tools; + public AsyncClient client() { + return client; } public AsyncIndexing indexing() { return indexing; } - public AsyncTroubleshooting troubleshooting() { - return troubleshooting; - } - - public AsyncGovernance governance() { - return governance; - } - /** - * Manage datasources. - */ - public AsyncDatasources datasources() { - return datasources; - } - private final SDKConfiguration sdkConfiguration; private final Glean syncSDK; AsyncGlean(Glean syncSDK, SDKConfiguration sdkConfiguration) { this.syncSDK = syncSDK; this.sdkConfiguration = sdkConfiguration; - this.client = new AsyncClient(syncSDK.client(), sdkConfiguration); - this.authentication = new AsyncAuthentication(syncSDK.authentication(), sdkConfiguration); - this.chat = new AsyncChat(syncSDK.chat(), sdkConfiguration); this.agents = new AsyncAgents(syncSDK.agents(), sdkConfiguration); - this.entities = new AsyncEntities(syncSDK.entities(), sdkConfiguration); - this.tools = new AsyncTools(syncSDK.tools(), sdkConfiguration); + this.search = new AsyncSearch(syncSDK.search(), sdkConfiguration); + this.client = new AsyncClient(syncSDK.client(), sdkConfiguration); this.indexing = new AsyncIndexing(syncSDK.indexing(), sdkConfiguration); - this.troubleshooting = new AsyncTroubleshooting(syncSDK.troubleshooting(), sdkConfiguration); - this.governance = new AsyncGovernance(syncSDK.governance(), sdkConfiguration); - this.datasources = new AsyncDatasources(syncSDK.datasources(), sdkConfiguration); } /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncGovernance.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncGovernance.java index 0cf57b7e..c2096cd5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncGovernance.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncGovernance.java @@ -4,163 +4,38 @@ */ package com.glean.api_client.glean_api_client; -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestlessOperation; - -import com.glean.api_client.glean_api_client.models.components.DlpExportFindingsRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportRequest; -import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportRequest; -import com.glean.api_client.glean_api_client.models.operations.async.CreatefindingsexportRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.CreatefindingsexportResponse; -import com.glean.api_client.glean_api_client.models.operations.async.DeletefindingsexportRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.DeletefindingsexportResponse; -import com.glean.api_client.glean_api_client.models.operations.async.DownloadfindingsexportRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.DownloadfindingsexportResponse; -import com.glean.api_client.glean_api_client.models.operations.async.ListfindingsexportsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.ListfindingsexportsResponse; -import com.glean.api_client.glean_api_client.operations.Createfindingsexport; -import com.glean.api_client.glean_api_client.operations.Deletefindingsexport; -import com.glean.api_client.glean_api_client.operations.Downloadfindingsexport; -import com.glean.api_client.glean_api_client.operations.Listfindingsexports; import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.concurrent.CompletableFuture; public class AsyncGovernance { private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncData data; + private final AsyncGovernanceDocuments documents; private final Governance syncSDK; AsyncGovernance(Governance syncSDK, SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.data = new AsyncData(syncSDK.data(), this.sdkConfiguration); + this.documents = new AsyncGovernanceDocuments(syncSDK.documents(), this.sdkConfiguration); this.syncSDK = syncSDK; } - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public Governance sync() { - return syncSDK; + public final AsyncData data() { + return data; } - - /** - * Creates findings export - * - *

Creates a new DLP findings export job. - * - * @return The async call builder - */ - public CreatefindingsexportRequestBuilder createfindingsexport() { - return new CreatefindingsexportRequestBuilder(sdkConfiguration); + public final AsyncGovernanceDocuments documents() { + return documents; } /** - * Creates findings export - * - *

Creates a new DLP findings export job. - * - * @param request The request object containing all the parameters for the API call. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture createfindingsexport(DlpExportFindingsRequest request) { - AsyncRequestOperation operation - = new Createfindingsexport.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Lists findings exports - * - *

Lists all DLP findings exports. - * - * @return The async call builder - */ - public ListfindingsexportsRequestBuilder listfindingsexports() { - return new ListfindingsexportsRequestBuilder(sdkConfiguration); - } - - /** - * Lists findings exports - * - *

Lists all DLP findings exports. - * - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture listfindingsexportsDirect() { - AsyncRequestlessOperation operation - = new Listfindingsexports.Async(sdkConfiguration, _headers); - return operation.doRequest() - .thenCompose(operation::handleResponse); - } - - - /** - * Downloads findings export - * - *

Downloads a DLP findings export as a CSV file. - * - * @return The async call builder - */ - public DownloadfindingsexportRequestBuilder downloadfindingsexport() { - return new DownloadfindingsexportRequestBuilder(sdkConfiguration); - } - - /** - * Downloads findings export - * - *

Downloads a DLP findings export as a CSV file. - * - * @param id The ID of the export to download. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture downloadfindingsexport(String id) { - DownloadfindingsexportRequest request = - DownloadfindingsexportRequest - .builder() - .id(id) - .build(); - AsyncRequestOperation operation - = new Downloadfindingsexport.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Deletes findings export - * - *

Deletes a DLP findings export. - * - * @return The async call builder - */ - public DeletefindingsexportRequestBuilder deletefindingsexport() { - return new DeletefindingsexportRequestBuilder(sdkConfiguration); - } - - /** - * Deletes findings export - * - *

Deletes a DLP findings export. + * Switches to the sync SDK. * - * @param id The ID of the export to delete. - * @return {@code CompletableFuture} - The async response + * @return The sync SDK */ - public CompletableFuture deletefindingsexport(long id) { - DeletefindingsexportRequest request = - DeletefindingsexportRequest - .builder() - .id(id) - .build(); - AsyncRequestOperation operation - = new Deletefindingsexport.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); + public Governance sync() { + return syncSDK; } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java index 85b78529..da19d818 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java @@ -8,6 +8,7 @@ import com.glean.api_client.glean_api_client.models.components.BulkIndexDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.CheckDocumentAccessRequest; +import com.glean.api_client.glean_api_client.models.components.DebugDocumentLifecycleRequest; import com.glean.api_client.glean_api_client.models.components.DebugDocumentRequest; import com.glean.api_client.glean_api_client.models.components.DebugDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.DeleteDocumentRequest; @@ -16,12 +17,15 @@ import com.glean.api_client.glean_api_client.models.components.IndexDocumentRequest; import com.glean.api_client.glean_api_client.models.components.IndexDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.ProcessAllDocumentsRequest; +import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsRequest; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentRequest; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentsRequest; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1BulkindexdocumentsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1BulkindexdocumentsResponse; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1CheckdocumentaccessRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1CheckdocumentaccessResponse; +import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentEventsResponse; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentResponse; import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentsRequestBuilder; @@ -41,6 +45,7 @@ import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexdocuments; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Checkdocumentaccess; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocument; +import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocumentEvents; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocuments; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deletedocument; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Getdocumentcount; @@ -468,4 +473,42 @@ public CompletableFuture count(GetDocume .thenCompose(operation::handleResponse); } + + /** + * Beta: Get document lifecycle events + * + *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. + * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking + * changes without prior notice. + * + * @return The async call builder + */ + public PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder debugEvents() { + return new PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder(sdkConfiguration); + } + + /** + * Beta: Get document lifecycle events + * + *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. + * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking + * changes without prior notice. + * + * @param datasource The datasource to which the document belongs + * @param debugDocumentLifecycleRequest Describes the request body of the /debug/{datasource}/document/events API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture debugEvents(String datasource, DebugDocumentLifecycleRequest debugDocumentLifecycleRequest) { + PostApiIndexV1DebugDatasourceDocumentEventsRequest request = + PostApiIndexV1DebugDatasourceDocumentEventsRequest + .builder() + .datasource(datasource) + .debugDocumentLifecycleRequest(debugDocumentLifecycleRequest) + .build(); + AsyncRequestOperation operation + = new PostApiIndexV1DebugDatasourceDocumentEvents.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + } diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java index 0b36c31f..4a17ff91 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java @@ -6,28 +6,11 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; -import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; -import com.glean.api_client.glean_api_client.models.components.FeedRequest; -import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; -import com.glean.api_client.glean_api_client.models.components.SearchRequest; -import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; -import com.glean.api_client.glean_api_client.models.operations.async.AdminsearchRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.AdminsearchResponse; -import com.glean.api_client.glean_api_client.models.operations.async.AutocompleteRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.AutocompleteResponse; -import com.glean.api_client.glean_api_client.models.operations.async.FeedRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.FeedResponse; -import com.glean.api_client.glean_api_client.models.operations.async.RecommendationsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.RecommendationsResponse; -import com.glean.api_client.glean_api_client.models.operations.async.SearchRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.SearchResponse; -import com.glean.api_client.glean_api_client.operations.Adminsearch; -import com.glean.api_client.glean_api_client.operations.Autocomplete; -import com.glean.api_client.glean_api_client.operations.Feed; -import com.glean.api_client.glean_api_client.operations.Recommendations; +import com.glean.api_client.glean_api_client.models.components.PlatformSearchRequest; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformSearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PlatformSearchResponse; +import com.glean.api_client.glean_api_client.operations.PlatformSearch; import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -51,237 +34,30 @@ public Search sync() { } - /** - * Search the index (admin) - * - *

Retrieves results for search query without respect for permissions. This is available only to - * privileged users. - * - * @return The async call builder - */ - public AdminsearchRequestBuilder queryAsAdmin() { - return new AdminsearchRequestBuilder(sdkConfiguration); - } - - /** - * Search the index (admin) - * - *

Retrieves results for search query without respect for permissions. This is available only to - * privileged users. - * - * @param searchRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture queryAsAdmin(SearchRequest searchRequest) { - return queryAsAdmin(Optional.empty(), searchRequest); - } - - /** - * Search the index (admin) - * - *

Retrieves results for search query without respect for permissions. This is available only to - * privileged users. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param searchRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture queryAsAdmin(Optional locale, SearchRequest searchRequest) { - AdminsearchRequest request = - AdminsearchRequest - .builder() - .locale(locale) - .searchRequest(searchRequest) - .build(); - AsyncRequestOperation operation - = new Adminsearch.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Autocomplete - * - *

Retrieve query suggestions, operators and documents for the given partially typed query. - * - * @return The async call builder - */ - public AutocompleteRequestBuilder autocomplete() { - return new AutocompleteRequestBuilder(sdkConfiguration); - } - - /** - * Autocomplete - * - *

Retrieve query suggestions, operators and documents for the given partially typed query. - * - * @param autocompleteRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture autocomplete(AutocompleteRequest autocompleteRequest) { - return autocomplete(Optional.empty(), autocompleteRequest); - } - - /** - * Autocomplete - * - *

Retrieve query suggestions, operators and documents for the given partially typed query. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param autocompleteRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture autocomplete(Optional locale, AutocompleteRequest autocompleteRequest) { - com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = - com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest - .builder() - .locale(locale) - .autocompleteRequest(autocompleteRequest) - .build(); - AsyncRequestOperation operation - = new Autocomplete.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Feed of documents and events - * - *

The personalized feed/home includes different types of contents including suggestions, recents, - * calendar events and many more. - * - * @return The async call builder - */ - public FeedRequestBuilder retrieveFeed() { - return new FeedRequestBuilder(sdkConfiguration); - } - - /** - * Feed of documents and events - * - *

The personalized feed/home includes different types of contents including suggestions, recents, - * calendar events and many more. - * - * @param feedRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieveFeed(FeedRequest feedRequest) { - return retrieveFeed(Optional.empty(), feedRequest); - } - - /** - * Feed of documents and events - * - *

The personalized feed/home includes different types of contents including suggestions, recents, - * calendar events and many more. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param feedRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture retrieveFeed(Optional locale, FeedRequest feedRequest) { - com.glean.api_client.glean_api_client.models.operations.FeedRequest request = - com.glean.api_client.glean_api_client.models.operations.FeedRequest - .builder() - .locale(locale) - .feedRequest(feedRequest) - .build(); - AsyncRequestOperation operation - = new Feed.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - - /** - * Recommend documents - * - *

Retrieve recommended documents for the given URL or Glean Document ID. - * - * @return The async call builder - */ - public RecommendationsRequestBuilder recommendations() { - return new RecommendationsRequestBuilder(sdkConfiguration); - } - - /** - * Recommend documents - * - *

Retrieve recommended documents for the given URL or Glean Document ID. - * - * @param recommendationsRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture recommendations(RecommendationsRequest recommendationsRequest) { - return recommendations(Optional.empty(), recommendationsRequest); - } - - /** - * Recommend documents - * - *

Retrieve recommended documents for the given URL or Glean Document ID. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param recommendationsRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture recommendations(Optional locale, RecommendationsRequest recommendationsRequest) { - com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = - com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest - .builder() - .locale(locale) - .recommendationsRequest(recommendationsRequest) - .build(); - AsyncRequestOperation operation - = new Recommendations.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - /** * Search * - *

Retrieve results from the index for the given query and filters. + *

Execute a search query and retrieve ranked results. This is the data retrieval variant of the search + * API and returns only results and pagination state. * * @return The async call builder */ - public SearchRequestBuilder query() { - return new SearchRequestBuilder(sdkConfiguration); - } - - /** - * Search - * - *

Retrieve results from the index for the given query and filters. - * - * @param searchRequest - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture query(SearchRequest searchRequest) { - return query(Optional.empty(), searchRequest); + public PlatformSearchRequestBuilder query() { + return new PlatformSearchRequestBuilder(sdkConfiguration); } /** * Search * - *

Retrieve results from the index for the given query and filters. + *

Execute a search query and retrieve ranked results. This is the data retrieval variant of the search + * API and returns only results and pagination state. * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param searchRequest - * @return {@code CompletableFuture} - The async response + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response */ - public CompletableFuture query(Optional locale, SearchRequest searchRequest) { - com.glean.api_client.glean_api_client.models.operations.SearchRequest request = - com.glean.api_client.glean_api_client.models.operations.SearchRequest - .builder() - .locale(locale) - .searchRequest(searchRequest) - .build(); - AsyncRequestOperation operation - = new com.glean.api_client.glean_api_client.operations.Search.Async(sdkConfiguration, _headers); + public CompletableFuture query(PlatformSearchRequest request) { + AsyncRequestOperation operation + = new PlatformSearch.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java index ec19d394..e7c82602 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java @@ -7,15 +7,25 @@ import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; import com.glean.api_client.glean_api_client.models.components.AuthorizeActionPackRequest; +import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; import com.glean.api_client.glean_api_client.models.operations.GetActionPackAuthStatusRequest; +import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListRequest; import com.glean.api_client.glean_api_client.models.operations.async.AuthorizeActionPackRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.AuthorizeActionPackResponse; import com.glean.api_client.glean_api_client.models.operations.async.GetActionPackAuthStatusRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.GetActionPackAuthStatusResponse; +import com.glean.api_client.glean_api_client.models.operations.async.GetRestApiV1ToolsListRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.GetRestApiV1ToolsListResponse; +import com.glean.api_client.glean_api_client.models.operations.async.PostRestApiV1ToolsCallRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.async.PostRestApiV1ToolsCallResponse; import com.glean.api_client.glean_api_client.operations.AuthorizeActionPack; import com.glean.api_client.glean_api_client.operations.GetActionPackAuthStatus; +import com.glean.api_client.glean_api_client.operations.GetRestApiV1ToolsList; +import com.glean.api_client.glean_api_client.operations.PostRestApiV1ToolsCall; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.String; +import java.util.List; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -39,6 +49,79 @@ public Tools sync() { } + /** + * List available tools + * + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. + * + * @return The async call builder + */ + public GetRestApiV1ToolsListRequestBuilder list() { + return new GetRestApiV1ToolsListRequestBuilder(sdkConfiguration); + } + + /** + * List available tools + * + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listDirect() { + return list(Optional.empty()); + } + + /** + * List available tools + * + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. + * + * @param toolNames Optional array of tool names to filter by + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(Optional> toolNames) { + GetRestApiV1ToolsListRequest request = + GetRestApiV1ToolsListRequest + .builder() + .toolNames(toolNames) + .build(); + AsyncRequestOperation operation + = new GetRestApiV1ToolsList.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Execute the specified tool + * + *

Execute the specified tool with provided parameters + * + * @return The async call builder + */ + public PostRestApiV1ToolsCallRequestBuilder run() { + return new PostRestApiV1ToolsCallRequestBuilder(sdkConfiguration); + } + + /** + * Execute the specified tool + * + *

Execute the specified tool with provided parameters + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture run(ToolsCallRequest request) { + AsyncRequestOperation operation + = new PostRestApiV1ToolsCall.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + /** * Get end-user authentication status for an action pack. * @@ -48,7 +131,7 @@ public Tools sync() { * * @return The async call builder */ - public GetActionPackAuthStatusRequestBuilder getActionPackAuthStatus() { + public GetActionPackAuthStatusRequestBuilder retrieveActionPackAuthStatus() { return new GetActionPackAuthStatusRequestBuilder(sdkConfiguration); } @@ -62,7 +145,7 @@ public GetActionPackAuthStatusRequestBuilder getActionPackAuthStatus() { * @param actionPackId ID of the action pack to query or authorize. * @return {@code CompletableFuture} - The async response */ - public CompletableFuture getActionPackAuthStatus(String actionPackId) { + public CompletableFuture retrieveActionPackAuthStatus(String actionPackId) { GetActionPackAuthStatusRequest request = GetActionPackAuthStatusRequest .builder() diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncTroubleshooting.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncTroubleshooting.java deleted file mode 100644 index 1a4f99a5..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncTroubleshooting.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: f2be2d980f25 - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; - -import com.glean.api_client.glean_api_client.models.components.DebugDocumentLifecycleRequest; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsRequest; -import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.async.PostApiIndexV1DebugDatasourceDocumentEventsResponse; -import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocumentEvents; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.concurrent.CompletableFuture; - - -public class AsyncTroubleshooting { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final Troubleshooting syncSDK; - - AsyncTroubleshooting(Troubleshooting syncSDK, SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.syncSDK = syncSDK; - } - - /** - * Switches to the sync SDK. - * - * @return The sync SDK - */ - public Troubleshooting sync() { - return syncSDK; - } - - - /** - * Beta: Get document lifecycle events - * - *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. - * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking - * changes without prior notice. - * - * @return The async call builder - */ - public PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder postApiIndexV1DebugDatasourceDocumentEvents() { - return new PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder(sdkConfiguration); - } - - /** - * Beta: Get document lifecycle events - * - *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. - * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking - * changes without prior notice. - * - * @param datasource The datasource to which the document belongs - * @param debugDocumentLifecycleRequest Describes the request body of the /debug/{datasource}/document/events API call. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture postApiIndexV1DebugDatasourceDocumentEvents(String datasource, DebugDocumentLifecycleRequest debugDocumentLifecycleRequest) { - PostApiIndexV1DebugDatasourceDocumentEventsRequest request = - PostApiIndexV1DebugDatasourceDocumentEventsRequest - .builder() - .datasource(datasource) - .debugDocumentLifecycleRequest(debugDocumentLifecycleRequest) - .build(); - AsyncRequestOperation operation - = new PostApiIndexV1DebugDatasourceDocumentEvents.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/Authentication.java b/src/main/java/com/glean/api_client/glean_api_client/Authentication.java deleted file mode 100644 index a6c45dd9..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/Authentication.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: b1e5a2c1ca8b - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.RequestlessOperation; - -import com.glean.api_client.glean_api_client.models.operations.CheckdatasourceauthRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.CheckdatasourceauthResponse; -import com.glean.api_client.glean_api_client.operations.Checkdatasourceauth; -import com.glean.api_client.glean_api_client.utils.Headers; - -/** - * Manage indexing API tokens. - */ -public class Authentication { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncAuthentication asyncSDK; - - Authentication(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.asyncSDK = new AsyncAuthentication(this, sdkConfiguration); - } - - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncAuthentication async() { - return asyncSDK; - } - - /** - * Check datasource authorization - * - *

Returns all datasource instances that require per-user OAuth authorization - * for the authenticated user, along with a transient auth token that can be - * appended to auth URLs to complete OAuth flows. - * - *

Clients construct the full OAuth URL by combining the backend base URL, - * the `authUrlRelativePath` from each instance, and the transient auth token: - * `/<authUrlRelativePath>?transient_auth_token=<token>`. - * - * @return The call builder - */ - public CheckdatasourceauthRequestBuilder checkdatasourceauth() { - return new CheckdatasourceauthRequestBuilder(sdkConfiguration); - } - - /** - * Check datasource authorization - * - *

Returns all datasource instances that require per-user OAuth authorization - * for the authenticated user, along with a transient auth token that can be - * appended to auth URLs to complete OAuth flows. - * - *

Clients construct the full OAuth URL by combining the backend base URL, - * the `authUrlRelativePath` from each instance, and the transient auth token: - * `/<authUrlRelativePath>?transient_auth_token=<token>`. - * - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public CheckdatasourceauthResponse checkdatasourceauthDirect() { - RequestlessOperation operation - = new Checkdatasourceauth.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/Chat.java b/src/main/java/com/glean/api_client/glean_api_client/Chat.java index 21321088..b5443728 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Chat.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Chat.java @@ -6,12 +6,58 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import com.glean.api_client.glean_api_client.models.components.ChatRequest; +import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; +import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; +import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; +import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; +import com.glean.api_client.glean_api_client.models.components.GetChatRequest; +import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest; +import com.glean.api_client.glean_api_client.models.operations.ChatRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.ChatResponse; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamRequest; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; +import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsResponse; +import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesResponse; +import com.glean.api_client.glean_api_client.models.operations.DeletechatsRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletechatsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.DeletechatsResponse; import com.glean.api_client.glean_api_client.models.operations.GetChatFileRequest; import com.glean.api_client.glean_api_client.models.operations.GetChatFileRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetChatFileResponse; +import com.glean.api_client.glean_api_client.models.operations.GetchatRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.GetchatResponse; +import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationResponse; +import com.glean.api_client.glean_api_client.models.operations.GetchatfilesRequest; +import com.glean.api_client.glean_api_client.models.operations.GetchatfilesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.GetchatfilesResponse; +import com.glean.api_client.glean_api_client.models.operations.ListchatsRequest; +import com.glean.api_client.glean_api_client.models.operations.ListchatsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.ListchatsResponse; +import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesRequest; +import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesResponse; +import com.glean.api_client.glean_api_client.operations.ChatStream; +import com.glean.api_client.glean_api_client.operations.Deleteallchats; +import com.glean.api_client.glean_api_client.operations.Deletechatfiles; +import com.glean.api_client.glean_api_client.operations.Deletechats; import com.glean.api_client.glean_api_client.operations.GetChatFile; +import com.glean.api_client.glean_api_client.operations.Getchat; +import com.glean.api_client.glean_api_client.operations.Getchatapplication; +import com.glean.api_client.glean_api_client.operations.Getchatfiles; +import com.glean.api_client.glean_api_client.operations.Listchats; +import com.glean.api_client.glean_api_client.operations.Uploadchatfiles; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Boolean; +import java.lang.Long; import java.lang.String; import java.util.Optional; @@ -35,6 +81,449 @@ public AsyncChat async() { return asyncSDK; } + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @return The call builder + */ + public ChatRequestBuilder create() { + return new ChatRequestBuilder(sdkConfiguration); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param chatRequest The minimal set of fields that form a chat request. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ChatResponse create(ChatRequest chatRequest) { + return create(Optional.empty(), Optional.empty(), chatRequest); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param chatRequest The minimal set of fields that form a chat request. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ChatResponse create( + Optional locale, Optional timezoneOffset, + ChatRequest chatRequest) { + com.glean.api_client.glean_api_client.models.operations.ChatRequest request = + com.glean.api_client.glean_api_client.models.operations.ChatRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .chatRequest(chatRequest) + .build(); + RequestOperation operation + = new com.glean.api_client.glean_api_client.operations.Chat.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Deletes all saved Chats owned by a user + * + *

Deletes all saved Chats a user has had and all their contained conversational content. + * + * @return The call builder + */ + public DeleteallchatsRequestBuilder deleteAll() { + return new DeleteallchatsRequestBuilder(sdkConfiguration); + } + + /** + * Deletes all saved Chats owned by a user + * + *

Deletes all saved Chats a user has had and all their contained conversational content. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteallchatsResponse deleteAllDirect() { + return deleteAll(Optional.empty(), Optional.empty()); + } + + /** + * Deletes all saved Chats owned by a user + * + *

Deletes all saved Chats a user has had and all their contained conversational content. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteallchatsResponse deleteAll(Optional locale, Optional timezoneOffset) { + DeleteallchatsRequest request = + DeleteallchatsRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .build(); + RequestOperation operation + = new Deleteallchats.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Deletes saved Chats + * + *

Deletes saved Chats and all their contained conversational content. + * + * @return The call builder + */ + public DeletechatsRequestBuilder delete() { + return new DeletechatsRequestBuilder(sdkConfiguration); + } + + /** + * Deletes saved Chats + * + *

Deletes saved Chats and all their contained conversational content. + * + * @param deleteChatsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletechatsResponse delete(DeleteChatsRequest deleteChatsRequest) { + return delete(Optional.empty(), Optional.empty(), deleteChatsRequest); + } + + /** + * Deletes saved Chats + * + *

Deletes saved Chats and all their contained conversational content. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param deleteChatsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletechatsResponse delete( + Optional locale, Optional timezoneOffset, + DeleteChatsRequest deleteChatsRequest) { + DeletechatsRequest request = + DeletechatsRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .deleteChatsRequest(deleteChatsRequest) + .build(); + RequestOperation operation + = new Deletechats.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Retrieves a Chat + * + *

Retrieves the chat history between Glean Assistant and the user for a given Chat. + * + * @return The call builder + */ + public GetchatRequestBuilder retrieve() { + return new GetchatRequestBuilder(sdkConfiguration); + } + + /** + * Retrieves a Chat + * + *

Retrieves the chat history between Glean Assistant and the user for a given Chat. + * + * @param getChatRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetchatResponse retrieve(GetChatRequest getChatRequest) { + return retrieve(Optional.empty(), Optional.empty(), getChatRequest); + } + + /** + * Retrieves a Chat + * + *

Retrieves the chat history between Glean Assistant and the user for a given Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param getChatRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetchatResponse retrieve( + Optional locale, Optional timezoneOffset, + GetChatRequest getChatRequest) { + GetchatRequest request = + GetchatRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .getChatRequest(getChatRequest) + .build(); + RequestOperation operation + = new Getchat.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Retrieves all saved Chats + * + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. + * + * @return The call builder + */ + public ListchatsRequestBuilder list() { + return new ListchatsRequestBuilder(sdkConfiguration); + } + + /** + * Retrieves all saved Chats + * + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListchatsResponse listDirect() { + return list(Optional.empty(), Optional.empty()); + } + + /** + * Retrieves all saved Chats + * + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListchatsResponse list(Optional locale, Optional timezoneOffset) { + ListchatsRequest request = + ListchatsRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .build(); + RequestOperation operation + = new Listchats.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Gets the metadata for a custom Chat application + * + *

Gets the Chat application details for the specified application ID. + * + * @return The call builder + */ + public GetchatapplicationRequestBuilder retrieveApplication() { + return new GetchatapplicationRequestBuilder(sdkConfiguration); + } + + /** + * Gets the metadata for a custom Chat application + * + *

Gets the Chat application details for the specified application ID. + * + * @param getChatApplicationRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetchatapplicationResponse retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { + return retrieveApplication(Optional.empty(), Optional.empty(), getChatApplicationRequest); + } + + /** + * Gets the metadata for a custom Chat application + * + *

Gets the Chat application details for the specified application ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param getChatApplicationRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetchatapplicationResponse retrieveApplication( + Optional locale, Optional timezoneOffset, + GetChatApplicationRequest getChatApplicationRequest) { + GetchatapplicationRequest request = + GetchatapplicationRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .getChatApplicationRequest(getChatApplicationRequest) + .build(); + RequestOperation operation + = new Getchatapplication.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Upload files for Chat + * + *

Upload files for Chat. + * + * @return The call builder + */ + public UploadchatfilesRequestBuilder uploadFiles() { + return new UploadchatfilesRequestBuilder(sdkConfiguration); + } + + /** + * Upload files for Chat + * + *

Upload files for Chat. + * + * @param uploadChatFilesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UploadchatfilesResponse uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { + return uploadFiles(Optional.empty(), Optional.empty(), uploadChatFilesRequest); + } + + /** + * Upload files for Chat + * + *

Upload files for Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param uploadChatFilesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UploadchatfilesResponse uploadFiles( + Optional locale, Optional timezoneOffset, + UploadChatFilesRequest uploadChatFilesRequest) { + UploadchatfilesRequest request = + UploadchatfilesRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .uploadChatFilesRequest(uploadChatFilesRequest) + .build(); + RequestOperation operation + = new Uploadchatfiles.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Get files uploaded by a user for Chat + * + *

Get files uploaded by a user for Chat. + * + * @return The call builder + */ + public GetchatfilesRequestBuilder retrieveFiles() { + return new GetchatfilesRequestBuilder(sdkConfiguration); + } + + /** + * Get files uploaded by a user for Chat + * + *

Get files uploaded by a user for Chat. + * + * @param getChatFilesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetchatfilesResponse retrieveFiles(GetChatFilesRequest getChatFilesRequest) { + return retrieveFiles(Optional.empty(), Optional.empty(), getChatFilesRequest); + } + + /** + * Get files uploaded by a user for Chat + * + *

Get files uploaded by a user for Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param getChatFilesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetchatfilesResponse retrieveFiles( + Optional locale, Optional timezoneOffset, + GetChatFilesRequest getChatFilesRequest) { + GetchatfilesRequest request = + GetchatfilesRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .getChatFilesRequest(getChatFilesRequest) + .build(); + RequestOperation operation + = new Getchatfiles.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Delete files uploaded by a user for chat + * + *

Delete files uploaded by a user for Chat. + * + * @return The call builder + */ + public DeletechatfilesRequestBuilder deleteFiles() { + return new DeletechatfilesRequestBuilder(sdkConfiguration); + } + + /** + * Delete files uploaded by a user for chat + * + *

Delete files uploaded by a user for Chat. + * + * @param deleteChatFilesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletechatfilesResponse deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { + return deleteFiles(Optional.empty(), Optional.empty(), deleteChatFilesRequest); + } + + /** + * Delete files uploaded by a user for chat + * + *

Delete files uploaded by a user for Chat. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param deleteChatFilesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletechatfilesResponse deleteFiles( + Optional locale, Optional timezoneOffset, + DeleteChatFilesRequest deleteChatFilesRequest) { + DeletechatfilesRequest request = + DeletechatfilesRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .deleteChatFilesRequest(deleteChatFilesRequest) + .build(); + RequestOperation operation + = new Deletechatfiles.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Download a chat file * @@ -44,7 +533,7 @@ public AsyncChat async() { * * @return The call builder */ - public GetChatFileRequestBuilder getChatFile() { + public GetChatFileRequestBuilder retrieveFile() { return new GetChatFileRequestBuilder(sdkConfiguration); } @@ -59,8 +548,8 @@ public GetChatFileRequestBuilder getChatFile() { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetChatFileResponse getChatFile(String fileId) { - return getChatFile(fileId, Optional.empty()); + public GetChatFileResponse retrieveFile(String fileId) { + return retrieveFile(fileId, Optional.empty()); } /** @@ -76,7 +565,7 @@ public GetChatFileResponse getChatFile(String fileId) { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetChatFileResponse getChatFile(String fileId, Optional preview) { + public GetChatFileResponse retrieveFile(String fileId, Optional preview) { GetChatFileRequest request = GetChatFileRequest .builder() @@ -88,4 +577,50 @@ public GetChatFileResponse getChatFile(String fileId, Optional preview) return operation.handleResponse(operation.doRequest(request)); } + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @return The call builder + */ + public ChatStreamRequestBuilder createStream() { + return new ChatStreamRequestBuilder(sdkConfiguration); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param chatRequest The minimal set of fields that form a chat request. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ChatStreamResponse createStream(ChatRequest chatRequest) { + return createStream(Optional.empty(), chatRequest); + } + + /** + * Chat + * + *

Have a conversation with Glean AI. + * + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param chatRequest The minimal set of fields that form a chat request. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ChatStreamResponse createStream(Optional timezoneOffset, ChatRequest chatRequest) { + ChatStreamRequest request = + ChatStreamRequest + .builder() + .timezoneOffset(timezoneOffset) + .chatRequest(chatRequest) + .build(); + RequestOperation operation + = new ChatStream.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + } diff --git a/src/main/java/com/glean/api_client/glean_api_client/Client.java b/src/main/java/com/glean/api_client/glean_api_client/Client.java index 3fc2436e..df2bafaf 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Client.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Client.java @@ -15,19 +15,20 @@ public class Client { private final Announcements announcements; private final Answers answers; private final ClientAuthentication authentication; - private final ClientChat chat; + private final Chat chat; private final ClientAgents agents; private final Collections collections; private final ClientDocuments documents; private final Insights insights; private final Messages messages; private final Pins pins; - private final Search search; - private final ClientEntities entities; + private final ClientSearch search; + private final Entities entities; private final ClientShortcuts shortcuts; private final Verification verification; - private final ClientTools tools; - private final ClientGovernance governance; + private final Tools tools; + private final Governance governance; + private final ClientDatasources datasources; Client(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; @@ -35,19 +36,20 @@ public class Client { this.announcements = new Announcements(this.sdkConfiguration); this.answers = new Answers(this.sdkConfiguration); this.authentication = new ClientAuthentication(this.sdkConfiguration); - this.chat = new ClientChat(this.sdkConfiguration); + this.chat = new Chat(this.sdkConfiguration); this.agents = new ClientAgents(this.sdkConfiguration); this.collections = new Collections(this.sdkConfiguration); this.documents = new ClientDocuments(this.sdkConfiguration); this.insights = new Insights(this.sdkConfiguration); this.messages = new Messages(this.sdkConfiguration); this.pins = new Pins(this.sdkConfiguration); - this.search = new Search(this.sdkConfiguration); - this.entities = new ClientEntities(this.sdkConfiguration); + this.search = new ClientSearch(this.sdkConfiguration); + this.entities = new Entities(this.sdkConfiguration); this.shortcuts = new ClientShortcuts(this.sdkConfiguration); this.verification = new Verification(this.sdkConfiguration); - this.tools = new ClientTools(this.sdkConfiguration); - this.governance = new ClientGovernance(this.sdkConfiguration); + this.tools = new Tools(this.sdkConfiguration); + this.governance = new Governance(this.sdkConfiguration); + this.datasources = new ClientDatasources(this.sdkConfiguration); this.asyncSDK = new AsyncClient(this, sdkConfiguration); } @@ -67,7 +69,7 @@ public final ClientAuthentication authentication() { return authentication; } - public final ClientChat chat() { + public final Chat chat() { return chat; } @@ -95,11 +97,11 @@ public final Pins pins() { return pins; } - public final Search search() { + public final ClientSearch search() { return search; } - public final ClientEntities entities() { + public final Entities entities() { return entities; } @@ -111,14 +113,18 @@ public final Verification verification() { return verification; } - public final ClientTools tools() { + public final Tools tools() { return tools; } - public final ClientGovernance governance() { + public final Governance governance() { return governance; } + public final ClientDatasources datasources() { + return datasources; + } + /** * Switches to the async SDK. * diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientAgents.java b/src/main/java/com/glean/api_client/glean_api_client/ClientAgents.java index ce69c692..c11213b5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientAgents.java +++ b/src/main/java/com/glean/api_client/glean_api_client/ClientAgents.java @@ -7,11 +7,19 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; import com.glean.api_client.glean_api_client.models.components.AgentRunCreate; +import com.glean.api_client.glean_api_client.models.components.CreateWorkflowRequest; +import com.glean.api_client.glean_api_client.models.components.EditWorkflowRequest; import com.glean.api_client.glean_api_client.models.components.SearchAgentsRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateAgentRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateAgentRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.CreateAgentResponse; import com.glean.api_client.glean_api_client.models.operations.CreateAndStreamRunRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreateAndStreamRunResponse; import com.glean.api_client.glean_api_client.models.operations.CreateAndWaitRunRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreateAndWaitRunResponse; +import com.glean.api_client.glean_api_client.models.operations.EditAgentRequest; +import com.glean.api_client.glean_api_client.models.operations.EditAgentRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.EditAgentResponse; import com.glean.api_client.glean_api_client.models.operations.GetAgentRequest; import com.glean.api_client.glean_api_client.models.operations.GetAgentRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetAgentResponse; @@ -20,8 +28,10 @@ import com.glean.api_client.glean_api_client.models.operations.GetAgentSchemasResponse; import com.glean.api_client.glean_api_client.models.operations.SearchAgentsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.SearchAgentsResponse; +import com.glean.api_client.glean_api_client.operations.CreateAgent; import com.glean.api_client.glean_api_client.operations.CreateAndStreamRun; import com.glean.api_client.glean_api_client.operations.CreateAndWaitRun; +import com.glean.api_client.glean_api_client.operations.EditAgent; import com.glean.api_client.glean_api_client.operations.GetAgent; import com.glean.api_client.glean_api_client.operations.GetAgentSchemas; import com.glean.api_client.glean_api_client.operations.SearchAgents; @@ -50,6 +60,56 @@ public AsyncClientAgents async() { return asyncSDK; } + /** + * Create an agent + * + *

Create an agent. + * + * @return The call builder + */ + public CreateAgentRequestBuilder create() { + return new CreateAgentRequestBuilder(sdkConfiguration); + } + + /** + * Create an agent + * + *

Create an agent. + * + * @param createWorkflowRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateAgentResponse create(CreateWorkflowRequest createWorkflowRequest) { + return create(Optional.empty(), Optional.empty(), createWorkflowRequest); + } + + /** + * Create an agent + * + *

Create an agent. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param createWorkflowRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateAgentResponse create( + Optional locale, Optional timezoneOffset, + CreateWorkflowRequest createWorkflowRequest) { + CreateAgentRequest request = + CreateAgentRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .createWorkflowRequest(createWorkflowRequest) + .build(); + RequestOperation operation + = new CreateAgent.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Retrieve an agent * @@ -103,6 +163,66 @@ public GetAgentResponse retrieve( return operation.handleResponse(operation.doRequest(request)); } + /** + * Edit an agent + * + *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use + * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and + * publish modes are supported. + * + * @return The call builder + */ + public EditAgentRequestBuilder update() { + return new EditAgentRequestBuilder(sdkConfiguration); + } + + /** + * Edit an agent + * + *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use + * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and + * publish modes are supported. + * + * @param agentId The ID of the agent. + * @param editWorkflowRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public EditAgentResponse update(String agentId, EditWorkflowRequest editWorkflowRequest) { + return update(Optional.empty(), Optional.empty(), agentId, + editWorkflowRequest); + } + + /** + * Edit an agent + * + *

Creates a draft or publishes an [agent](https://developers.glean.com/agents/agents-api). Use + * `isDraft=true` to save a draft, or `isDraft=false` (or omit) to publish immediately. Only draft and + * publish modes are supported. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * @param agentId The ID of the agent. + * @param editWorkflowRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public EditAgentResponse update( + Optional locale, Optional timezoneOffset, + String agentId, EditWorkflowRequest editWorkflowRequest) { + EditAgentRequest request = + EditAgentRequest + .builder() + .locale(locale) + .timezoneOffset(timezoneOffset) + .agentId(agentId) + .editWorkflowRequest(editWorkflowRequest) + .build(); + RequestOperation operation + = new EditAgent.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * List an agent's schemas * diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/ClientAuthentication.java index 40432df7..61e17b68 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientAuthentication.java +++ b/src/main/java/com/glean/api_client/glean_api_client/ClientAuthentication.java @@ -6,8 +6,11 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestlessOperation; +import com.glean.api_client.glean_api_client.models.operations.CheckdatasourceauthRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.CheckdatasourceauthResponse; import com.glean.api_client.glean_api_client.models.operations.CreateauthtokenRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreateauthtokenResponse; +import com.glean.api_client.glean_api_client.operations.Checkdatasourceauth; import com.glean.api_client.glean_api_client.operations.Createauthtoken; import com.glean.api_client.glean_api_client.utils.Headers; @@ -31,6 +34,43 @@ public AsyncClientAuthentication async() { return asyncSDK; } + /** + * Check datasource authorization + * + *

Returns all datasource instances that require per-user OAuth authorization + * for the authenticated user, along with a transient auth token that can be + * appended to auth URLs to complete OAuth flows. + * + *

Clients construct the full OAuth URL by combining the backend base URL, + * the `authUrlRelativePath` from each instance, and the transient auth token: + * `/<authUrlRelativePath>?transient_auth_token=<token>`. + * + * @return The call builder + */ + public CheckdatasourceauthRequestBuilder checkDatasourceAuth() { + return new CheckdatasourceauthRequestBuilder(sdkConfiguration); + } + + /** + * Check datasource authorization + * + *

Returns all datasource instances that require per-user OAuth authorization + * for the authenticated user, along with a transient auth token that can be + * appended to auth URLs to complete OAuth flows. + * + *

Clients construct the full OAuth URL by combining the backend base URL, + * the `authUrlRelativePath` from each instance, and the transient auth token: + * `/<authUrlRelativePath>?transient_auth_token=<token>`. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CheckdatasourceauthResponse checkDatasourceAuthDirect() { + RequestlessOperation operation + = new Checkdatasourceauth.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest()); + } + /** * Create authentication token * diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientChat.java b/src/main/java/com/glean/api_client/glean_api_client/ClientChat.java deleted file mode 100644 index 3b4c166b..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientChat.java +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 22b392d75521 - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; - -import com.glean.api_client.glean_api_client.models.components.ChatRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatRequest; -import com.glean.api_client.glean_api_client.models.components.UploadChatFilesRequest; -import com.glean.api_client.glean_api_client.models.operations.ChatRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.ChatResponse; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamRequest; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsRequest; -import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsResponse; -import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesResponse; -import com.glean.api_client.glean_api_client.models.operations.DeletechatsRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletechatsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.DeletechatsResponse; -import com.glean.api_client.glean_api_client.models.operations.GetchatRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.GetchatResponse; -import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationResponse; -import com.glean.api_client.glean_api_client.models.operations.GetchatfilesRequest; -import com.glean.api_client.glean_api_client.models.operations.GetchatfilesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.GetchatfilesResponse; -import com.glean.api_client.glean_api_client.models.operations.ListchatsRequest; -import com.glean.api_client.glean_api_client.models.operations.ListchatsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.ListchatsResponse; -import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesRequest; -import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.UploadchatfilesResponse; -import com.glean.api_client.glean_api_client.operations.Chat; -import com.glean.api_client.glean_api_client.operations.ChatStream; -import com.glean.api_client.glean_api_client.operations.Deleteallchats; -import com.glean.api_client.glean_api_client.operations.Deletechatfiles; -import com.glean.api_client.glean_api_client.operations.Deletechats; -import com.glean.api_client.glean_api_client.operations.Getchat; -import com.glean.api_client.glean_api_client.operations.Getchatapplication; -import com.glean.api_client.glean_api_client.operations.Getchatfiles; -import com.glean.api_client.glean_api_client.operations.Listchats; -import com.glean.api_client.glean_api_client.operations.Uploadchatfiles; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.Long; -import java.lang.String; -import java.util.Optional; - - -public class ClientChat { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncClientChat asyncSDK; - - ClientChat(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.asyncSDK = new AsyncClientChat(this, sdkConfiguration); - } - - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncClientChat async() { - return asyncSDK; - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @return The call builder - */ - public ChatRequestBuilder create() { - return new ChatRequestBuilder(sdkConfiguration); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param chatRequest The minimal set of fields that form a chat request. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ChatResponse create(ChatRequest chatRequest) { - return create(Optional.empty(), Optional.empty(), chatRequest); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param chatRequest The minimal set of fields that form a chat request. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ChatResponse create( - Optional locale, Optional timezoneOffset, - ChatRequest chatRequest) { - com.glean.api_client.glean_api_client.models.operations.ChatRequest request = - com.glean.api_client.glean_api_client.models.operations.ChatRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .chatRequest(chatRequest) - .build(); - RequestOperation operation - = new Chat.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Deletes all saved Chats owned by a user - * - *

Deletes all saved Chats a user has had and all their contained conversational content. - * - * @return The call builder - */ - public DeleteallchatsRequestBuilder deleteAll() { - return new DeleteallchatsRequestBuilder(sdkConfiguration); - } - - /** - * Deletes all saved Chats owned by a user - * - *

Deletes all saved Chats a user has had and all their contained conversational content. - * - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DeleteallchatsResponse deleteAllDirect() { - return deleteAll(Optional.empty(), Optional.empty()); - } - - /** - * Deletes all saved Chats owned by a user - * - *

Deletes all saved Chats a user has had and all their contained conversational content. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DeleteallchatsResponse deleteAll(Optional locale, Optional timezoneOffset) { - DeleteallchatsRequest request = - DeleteallchatsRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .build(); - RequestOperation operation - = new Deleteallchats.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Deletes saved Chats - * - *

Deletes saved Chats and all their contained conversational content. - * - * @return The call builder - */ - public DeletechatsRequestBuilder delete() { - return new DeletechatsRequestBuilder(sdkConfiguration); - } - - /** - * Deletes saved Chats - * - *

Deletes saved Chats and all their contained conversational content. - * - * @param deleteChatsRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DeletechatsResponse delete(DeleteChatsRequest deleteChatsRequest) { - return delete(Optional.empty(), Optional.empty(), deleteChatsRequest); - } - - /** - * Deletes saved Chats - * - *

Deletes saved Chats and all their contained conversational content. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param deleteChatsRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DeletechatsResponse delete( - Optional locale, Optional timezoneOffset, - DeleteChatsRequest deleteChatsRequest) { - DeletechatsRequest request = - DeletechatsRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .deleteChatsRequest(deleteChatsRequest) - .build(); - RequestOperation operation - = new Deletechats.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Retrieves a Chat - * - *

Retrieves the chat history between Glean Assistant and the user for a given Chat. - * - * @return The call builder - */ - public GetchatRequestBuilder retrieve() { - return new GetchatRequestBuilder(sdkConfiguration); - } - - /** - * Retrieves a Chat - * - *

Retrieves the chat history between Glean Assistant and the user for a given Chat. - * - * @param getChatRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetchatResponse retrieve(GetChatRequest getChatRequest) { - return retrieve(Optional.empty(), Optional.empty(), getChatRequest); - } - - /** - * Retrieves a Chat - * - *

Retrieves the chat history between Glean Assistant and the user for a given Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param getChatRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetchatResponse retrieve( - Optional locale, Optional timezoneOffset, - GetChatRequest getChatRequest) { - GetchatRequest request = - GetchatRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .getChatRequest(getChatRequest) - .build(); - RequestOperation operation - = new Getchat.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Retrieves all saved Chats - * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only - * metadata and no conversational content. - * - * @return The call builder - */ - public ListchatsRequestBuilder list() { - return new ListchatsRequestBuilder(sdkConfiguration); - } - - /** - * Retrieves all saved Chats - * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only - * metadata and no conversational content. - * - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ListchatsResponse listDirect() { - return list(Optional.empty(), Optional.empty()); - } - - /** - * Retrieves all saved Chats - * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only - * metadata and no conversational content. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ListchatsResponse list(Optional locale, Optional timezoneOffset) { - ListchatsRequest request = - ListchatsRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .build(); - RequestOperation operation - = new Listchats.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Gets the metadata for a custom Chat application - * - *

Gets the Chat application details for the specified application ID. - * - * @return The call builder - */ - public GetchatapplicationRequestBuilder retrieveApplication() { - return new GetchatapplicationRequestBuilder(sdkConfiguration); - } - - /** - * Gets the metadata for a custom Chat application - * - *

Gets the Chat application details for the specified application ID. - * - * @param getChatApplicationRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetchatapplicationResponse retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { - return retrieveApplication(Optional.empty(), Optional.empty(), getChatApplicationRequest); - } - - /** - * Gets the metadata for a custom Chat application - * - *

Gets the Chat application details for the specified application ID. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param getChatApplicationRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetchatapplicationResponse retrieveApplication( - Optional locale, Optional timezoneOffset, - GetChatApplicationRequest getChatApplicationRequest) { - GetchatapplicationRequest request = - GetchatapplicationRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .getChatApplicationRequest(getChatApplicationRequest) - .build(); - RequestOperation operation - = new Getchatapplication.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Upload files for Chat - * - *

Upload files for Chat. - * - * @return The call builder - */ - public UploadchatfilesRequestBuilder uploadFiles() { - return new UploadchatfilesRequestBuilder(sdkConfiguration); - } - - /** - * Upload files for Chat - * - *

Upload files for Chat. - * - * @param uploadChatFilesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public UploadchatfilesResponse uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { - return uploadFiles(Optional.empty(), Optional.empty(), uploadChatFilesRequest); - } - - /** - * Upload files for Chat - * - *

Upload files for Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param uploadChatFilesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public UploadchatfilesResponse uploadFiles( - Optional locale, Optional timezoneOffset, - UploadChatFilesRequest uploadChatFilesRequest) { - UploadchatfilesRequest request = - UploadchatfilesRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .uploadChatFilesRequest(uploadChatFilesRequest) - .build(); - RequestOperation operation - = new Uploadchatfiles.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Get files uploaded by a user for Chat - * - *

Get files uploaded by a user for Chat. - * - * @return The call builder - */ - public GetchatfilesRequestBuilder retrieveFiles() { - return new GetchatfilesRequestBuilder(sdkConfiguration); - } - - /** - * Get files uploaded by a user for Chat - * - *

Get files uploaded by a user for Chat. - * - * @param getChatFilesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetchatfilesResponse retrieveFiles(GetChatFilesRequest getChatFilesRequest) { - return retrieveFiles(Optional.empty(), Optional.empty(), getChatFilesRequest); - } - - /** - * Get files uploaded by a user for Chat - * - *

Get files uploaded by a user for Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param getChatFilesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetchatfilesResponse retrieveFiles( - Optional locale, Optional timezoneOffset, - GetChatFilesRequest getChatFilesRequest) { - GetchatfilesRequest request = - GetchatfilesRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .getChatFilesRequest(getChatFilesRequest) - .build(); - RequestOperation operation - = new Getchatfiles.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Delete files uploaded by a user for chat - * - *

Delete files uploaded by a user for Chat. - * - * @return The call builder - */ - public DeletechatfilesRequestBuilder deleteFiles() { - return new DeletechatfilesRequestBuilder(sdkConfiguration); - } - - /** - * Delete files uploaded by a user for chat - * - *

Delete files uploaded by a user for Chat. - * - * @param deleteChatFilesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DeletechatfilesResponse deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { - return deleteFiles(Optional.empty(), Optional.empty(), deleteChatFilesRequest); - } - - /** - * Delete files uploaded by a user for chat - * - *

Delete files uploaded by a user for Chat. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param deleteChatFilesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DeletechatfilesResponse deleteFiles( - Optional locale, Optional timezoneOffset, - DeleteChatFilesRequest deleteChatFilesRequest) { - DeletechatfilesRequest request = - DeletechatfilesRequest - .builder() - .locale(locale) - .timezoneOffset(timezoneOffset) - .deleteChatFilesRequest(deleteChatFilesRequest) - .build(); - RequestOperation operation - = new Deletechatfiles.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @return The call builder - */ - public ChatStreamRequestBuilder createStream() { - return new ChatStreamRequestBuilder(sdkConfiguration); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param chatRequest The minimal set of fields that form a chat request. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ChatStreamResponse createStream(ChatRequest chatRequest) { - return createStream(Optional.empty(), chatRequest); - } - - /** - * Chat - * - *

Have a conversation with Glean AI. - * - * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @param chatRequest The minimal set of fields that form a chat request. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ChatStreamResponse createStream(Optional timezoneOffset, ChatRequest chatRequest) { - ChatStreamRequest request = - ChatStreamRequest - .builder() - .timezoneOffset(timezoneOffset) - .chatRequest(chatRequest) - .build(); - RequestOperation operation - = new ChatStream.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/Datasources.java b/src/main/java/com/glean/api_client/glean_api_client/ClientDatasources.java similarity index 90% rename from src/main/java/com/glean/api_client/glean_api_client/Datasources.java rename to src/main/java/com/glean/api_client/glean_api_client/ClientDatasources.java index 3f6dae5d..978282a3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Datasources.java +++ b/src/main/java/com/glean/api_client/glean_api_client/ClientDatasources.java @@ -1,6 +1,6 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: a5c243202fb9 + * @generated-id: 85d636ad0221 */ package com.glean.api_client.glean_api_client; @@ -26,17 +26,15 @@ import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.String; -/** - * Manage datasources. - */ -public class Datasources { + +public class ClientDatasources { private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; - private final AsyncDatasources asyncSDK; + private final AsyncClientDatasources asyncSDK; - Datasources(SDKConfiguration sdkConfiguration) { + ClientDatasources(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; - this.asyncSDK = new AsyncDatasources(this, sdkConfiguration); + this.asyncSDK = new AsyncClientDatasources(this, sdkConfiguration); } /** @@ -44,7 +42,7 @@ public class Datasources { * * @return The async SDK */ - public AsyncDatasources async() { + public AsyncClientDatasources async() { return asyncSDK; } @@ -56,7 +54,7 @@ public AsyncDatasources async() { * * @return The call builder */ - public GetDatasourceInstanceConfigurationRequestBuilder getDatasourceInstanceConfiguration() { + public GetDatasourceInstanceConfigurationRequestBuilder retrieveConfiguration() { return new GetDatasourceInstanceConfigurationRequestBuilder(sdkConfiguration); } @@ -71,7 +69,7 @@ public GetDatasourceInstanceConfigurationRequestBuilder getDatasourceInstanceCon * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetDatasourceInstanceConfigurationResponse getDatasourceInstanceConfiguration(String datasourceId, String instanceId) { + public GetDatasourceInstanceConfigurationResponse retrieveConfiguration(String datasourceId, String instanceId) { GetDatasourceInstanceConfigurationRequest request = GetDatasourceInstanceConfigurationRequest .builder() @@ -92,7 +90,7 @@ public GetDatasourceInstanceConfigurationResponse getDatasourceInstanceConfigura * * @return The call builder */ - public UpdateDatasourceInstanceConfigurationRequestBuilder updateDatasourceInstanceConfiguration() { + public UpdateDatasourceInstanceConfigurationRequestBuilder updateConfiguration() { return new UpdateDatasourceInstanceConfigurationRequestBuilder(sdkConfiguration); } @@ -110,7 +108,7 @@ public UpdateDatasourceInstanceConfigurationRequestBuilder updateDatasourceInsta * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public UpdateDatasourceInstanceConfigurationResponse updateDatasourceInstanceConfiguration( + public UpdateDatasourceInstanceConfigurationResponse updateConfiguration( String datasourceId, String instanceId, UpdateDatasourceConfigurationRequest updateDatasourceConfigurationRequest) { UpdateDatasourceInstanceConfigurationRequest request = @@ -133,7 +131,7 @@ public UpdateDatasourceInstanceConfigurationResponse updateDatasourceInstanceCon * * @return The call builder */ - public GetDatasourceCredentialStatusRequestBuilder getDatasourceCredentialStatus() { + public GetDatasourceCredentialStatusRequestBuilder retrieveCredentialStatus() { return new GetDatasourceCredentialStatusRequestBuilder(sdkConfiguration); } @@ -147,7 +145,7 @@ public GetDatasourceCredentialStatusRequestBuilder getDatasourceCredentialStatus * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetDatasourceCredentialStatusResponse getDatasourceCredentialStatus(String datasourceInstanceId) { + public GetDatasourceCredentialStatusResponse retrieveCredentialStatus(String datasourceInstanceId) { GetDatasourceCredentialStatusRequest request = GetDatasourceCredentialStatusRequest .builder() @@ -172,7 +170,7 @@ public GetDatasourceCredentialStatusResponse getDatasourceCredentialStatus(Strin * * @return The call builder */ - public RotateDatasourceCredentialsRequestBuilder rotateDatasourceCredentials() { + public RotateDatasourceCredentialsRequestBuilder rotateCredentials() { return new RotateDatasourceCredentialsRequestBuilder(sdkConfiguration); } @@ -195,7 +193,7 @@ public RotateDatasourceCredentialsRequestBuilder rotateDatasourceCredentials() { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public RotateDatasourceCredentialsResponse rotateDatasourceCredentials(String datasourceInstanceId, RotateDatasourceCredentialsRequest rotateDatasourceCredentialsRequest) { + public RotateDatasourceCredentialsResponse rotateCredentials(String datasourceInstanceId, RotateDatasourceCredentialsRequest rotateDatasourceCredentialsRequest) { com.glean.api_client.glean_api_client.models.operations.RotateDatasourceCredentialsRequest request = com.glean.api_client.glean_api_client.models.operations.RotateDatasourceCredentialsRequest .builder() diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientEntities.java b/src/main/java/com/glean/api_client/glean_api_client/ClientEntities.java deleted file mode 100644 index b5a038d1..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientEntities.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 43c5ec4923c3 - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; - -import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; -import com.glean.api_client.glean_api_client.models.components.PeopleRequest; -import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; -import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; -import com.glean.api_client.glean_api_client.models.operations.PeopleRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.PeopleResponse; -import com.glean.api_client.glean_api_client.operations.Listentities; -import com.glean.api_client.glean_api_client.operations.People; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.Optional; - - -public class ClientEntities { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncClientEntities asyncSDK; - - ClientEntities(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.asyncSDK = new AsyncClientEntities(this, sdkConfiguration); - } - - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncClientEntities async() { - return asyncSDK; - } - - /** - * List entities - * - *

List some set of details for all entities that fit the given criteria and return in the requested - * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 - * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for - * people entities. - * - * @return The call builder - */ - public ListentitiesRequestBuilder list() { - return new ListentitiesRequestBuilder(sdkConfiguration); - } - - /** - * List entities - * - *

List some set of details for all entities that fit the given criteria and return in the requested - * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 - * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for - * people entities. - * - * @param listEntitiesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ListentitiesResponse list(ListEntitiesRequest listEntitiesRequest) { - return list(Optional.empty(), listEntitiesRequest); - } - - /** - * List entities - * - *

List some set of details for all entities that fit the given criteria and return in the requested - * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 - * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for - * people entities. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param listEntitiesRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ListentitiesResponse list(Optional locale, ListEntitiesRequest listEntitiesRequest) { - ListentitiesRequest request = - ListentitiesRequest - .builder() - .locale(locale) - .listEntitiesRequest(listEntitiesRequest) - .build(); - RequestOperation operation - = new Listentities.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Read people - * - *

Read people details for the given IDs. - * - * @return The call builder - */ - public PeopleRequestBuilder readPeople() { - return new PeopleRequestBuilder(sdkConfiguration); - } - - /** - * Read people - * - *

Read people details for the given IDs. - * - * @param peopleRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public PeopleResponse readPeople(PeopleRequest peopleRequest) { - return readPeople(Optional.empty(), peopleRequest); - } - - /** - * Read people - * - *

Read people details for the given IDs. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param peopleRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public PeopleResponse readPeople(Optional locale, PeopleRequest peopleRequest) { - com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = - com.glean.api_client.glean_api_client.models.operations.PeopleRequest - .builder() - .locale(locale) - .peopleRequest(peopleRequest) - .build(); - RequestOperation operation - = new People.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientGovernance.java b/src/main/java/com/glean/api_client/glean_api_client/ClientGovernance.java deleted file mode 100644 index f896b0c6..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientGovernance.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 7b367f4bc4b6 - */ -package com.glean.api_client.glean_api_client; - -import com.glean.api_client.glean_api_client.utils.Headers; - - -public class ClientGovernance { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncClientGovernance asyncSDK; - private final Data data; - private final GovernanceDocuments documents; - - ClientGovernance(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.data = new Data(this.sdkConfiguration); - this.documents = new GovernanceDocuments(this.sdkConfiguration); - this.asyncSDK = new AsyncClientGovernance(this, sdkConfiguration); - } - - public final Data data() { - return data; - } - - public final GovernanceDocuments documents() { - return documents; - } - - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncClientGovernance async() { - return asyncSDK; - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientSearch.java b/src/main/java/com/glean/api_client/glean_api_client/ClientSearch.java new file mode 100644 index 00000000..14ce5495 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/ClientSearch.java @@ -0,0 +1,289 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: fef3811c0706 + */ +package com.glean.api_client.glean_api_client; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; + +import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; +import com.glean.api_client.glean_api_client.models.components.FeedRequest; +import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; +import com.glean.api_client.glean_api_client.models.components.SearchRequest; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; +import com.glean.api_client.glean_api_client.models.operations.AutocompleteRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.AutocompleteResponse; +import com.glean.api_client.glean_api_client.models.operations.FeedRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.FeedResponse; +import com.glean.api_client.glean_api_client.models.operations.RecommendationsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse; +import com.glean.api_client.glean_api_client.models.operations.SearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.SearchResponse; +import com.glean.api_client.glean_api_client.operations.Adminsearch; +import com.glean.api_client.glean_api_client.operations.Autocomplete; +import com.glean.api_client.glean_api_client.operations.Feed; +import com.glean.api_client.glean_api_client.operations.Recommendations; +import com.glean.api_client.glean_api_client.operations.Search; +import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; + + +public class ClientSearch { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final AsyncClientSearch asyncSDK; + + ClientSearch(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncClientSearch(this, sdkConfiguration); + } + + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncClientSearch async() { + return asyncSDK; + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @return The call builder + */ + public AdminsearchRequestBuilder queryAsAdmin() { + return new AdminsearchRequestBuilder(sdkConfiguration); + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @param searchRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AdminsearchResponse queryAsAdmin(SearchRequest searchRequest) { + return queryAsAdmin(Optional.empty(), searchRequest); + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AdminsearchResponse queryAsAdmin(Optional locale, SearchRequest searchRequest) { + AdminsearchRequest request = + AdminsearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + RequestOperation operation + = new Adminsearch.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @return The call builder + */ + public AutocompleteRequestBuilder autocomplete() { + return new AutocompleteRequestBuilder(sdkConfiguration); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @param autocompleteRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AutocompleteResponse autocomplete(AutocompleteRequest autocompleteRequest) { + return autocomplete(Optional.empty(), autocompleteRequest); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param autocompleteRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AutocompleteResponse autocomplete(Optional locale, AutocompleteRequest autocompleteRequest) { + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest + .builder() + .locale(locale) + .autocompleteRequest(autocompleteRequest) + .build(); + RequestOperation operation + = new Autocomplete.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @return The call builder + */ + public FeedRequestBuilder retrieveFeed() { + return new FeedRequestBuilder(sdkConfiguration); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @param feedRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public FeedResponse retrieveFeed(FeedRequest feedRequest) { + return retrieveFeed(Optional.empty(), feedRequest); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param feedRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public FeedResponse retrieveFeed(Optional locale, FeedRequest feedRequest) { + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = + com.glean.api_client.glean_api_client.models.operations.FeedRequest + .builder() + .locale(locale) + .feedRequest(feedRequest) + .build(); + RequestOperation operation + = new Feed.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @return The call builder + */ + public RecommendationsRequestBuilder recommendations() { + return new RecommendationsRequestBuilder(sdkConfiguration); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @param recommendationsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RecommendationsResponse recommendations(RecommendationsRequest recommendationsRequest) { + return recommendations(Optional.empty(), recommendationsRequest); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param recommendationsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RecommendationsResponse recommendations(Optional locale, RecommendationsRequest recommendationsRequest) { + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest + .builder() + .locale(locale) + .recommendationsRequest(recommendationsRequest) + .build(); + RequestOperation operation + = new Recommendations.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @return The call builder + */ + public SearchRequestBuilder query() { + return new SearchRequestBuilder(sdkConfiguration); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @param searchRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public SearchResponse query(SearchRequest searchRequest) { + return query(Optional.empty(), searchRequest); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public SearchResponse query(Optional locale, SearchRequest searchRequest) { + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = + com.glean.api_client.glean_api_client.models.operations.SearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + RequestOperation operation + = new Search.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientTools.java b/src/main/java/com/glean/api_client/glean_api_client/ClientTools.java deleted file mode 100644 index 5ca19c6d..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientTools.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 30729233253e - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; - -import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; -import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListRequest; -import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListResponse; -import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallResponse; -import com.glean.api_client.glean_api_client.operations.GetRestApiV1ToolsList; -import com.glean.api_client.glean_api_client.operations.PostRestApiV1ToolsCall; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class ClientTools { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncClientTools asyncSDK; - - ClientTools(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.asyncSDK = new AsyncClientTools(this, sdkConfiguration); - } - - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncClientTools async() { - return asyncSDK; - } - - /** - * List available tools - * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are - * provided, all available tools are returned. - * - * @return The call builder - */ - public GetRestApiV1ToolsListRequestBuilder list() { - return new GetRestApiV1ToolsListRequestBuilder(sdkConfiguration); - } - - /** - * List available tools - * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are - * provided, all available tools are returned. - * - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetRestApiV1ToolsListResponse listDirect() { - return list(Optional.empty()); - } - - /** - * List available tools - * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are - * provided, all available tools are returned. - * - * @param toolNames Optional array of tool names to filter by - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public GetRestApiV1ToolsListResponse list(Optional> toolNames) { - GetRestApiV1ToolsListRequest request = - GetRestApiV1ToolsListRequest - .builder() - .toolNames(toolNames) - .build(); - RequestOperation operation - = new GetRestApiV1ToolsList.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Execute the specified tool - * - *

Execute the specified tool with provided parameters - * - * @return The call builder - */ - public PostRestApiV1ToolsCallRequestBuilder run() { - return new PostRestApiV1ToolsCallRequestBuilder(sdkConfiguration); - } - - /** - * Execute the specified tool - * - *

Execute the specified tool with provided parameters - * - * @param request The request object containing all the parameters for the API call. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public PostRestApiV1ToolsCallResponse run(ToolsCallRequest request) { - RequestOperation operation - = new PostRestApiV1ToolsCall.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/Data.java b/src/main/java/com/glean/api_client/glean_api_client/Data.java index 4b82b738..ef68c080 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Data.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Data.java @@ -13,11 +13,13 @@ public class Data { private final AsyncData asyncSDK; private final Policies policies; private final Reports reports; + private final Findings findings; Data(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; this.policies = new Policies(this.sdkConfiguration); this.reports = new Reports(this.sdkConfiguration); + this.findings = new Findings(this.sdkConfiguration); this.asyncSDK = new AsyncData(this, sdkConfiguration); } @@ -29,6 +31,10 @@ public final Reports reports() { return reports; } + public final Findings findings() { + return findings; + } + /** * Switches to the async SDK. * diff --git a/src/main/java/com/glean/api_client/glean_api_client/Entities.java b/src/main/java/com/glean/api_client/glean_api_client/Entities.java index 5706517d..3159e978 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Entities.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Entities.java @@ -6,10 +6,19 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; +import com.glean.api_client.glean_api_client.models.components.PeopleRequest; import com.glean.api_client.glean_api_client.models.operations.GetPersonPhotoRequest; import com.glean.api_client.glean_api_client.models.operations.GetPersonPhotoRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetPersonPhotoResponse; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; +import com.glean.api_client.glean_api_client.models.operations.PeopleRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PeopleResponse; import com.glean.api_client.glean_api_client.operations.GetPersonPhoto; +import com.glean.api_client.glean_api_client.operations.Listentities; +import com.glean.api_client.glean_api_client.operations.People; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.String; import java.util.Optional; @@ -34,6 +43,107 @@ public AsyncEntities async() { return asyncSDK; } + /** + * List entities + * + *

List some set of details for all entities that fit the given criteria and return in the requested + * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 + * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for + * people entities. + * + * @return The call builder + */ + public ListentitiesRequestBuilder list() { + return new ListentitiesRequestBuilder(sdkConfiguration); + } + + /** + * List entities + * + *

List some set of details for all entities that fit the given criteria and return in the requested + * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 + * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for + * people entities. + * + * @param listEntitiesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListentitiesResponse list(ListEntitiesRequest listEntitiesRequest) { + return list(Optional.empty(), listEntitiesRequest); + } + + /** + * List entities + * + *

List some set of details for all entities that fit the given criteria and return in the requested + * order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 + * entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for + * people entities. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listEntitiesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListentitiesResponse list(Optional locale, ListEntitiesRequest listEntitiesRequest) { + ListentitiesRequest request = + ListentitiesRequest + .builder() + .locale(locale) + .listEntitiesRequest(listEntitiesRequest) + .build(); + RequestOperation operation + = new Listentities.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @return The call builder + */ + public PeopleRequestBuilder readPeople() { + return new PeopleRequestBuilder(sdkConfiguration); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @param peopleRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PeopleResponse readPeople(PeopleRequest peopleRequest) { + return readPeople(Optional.empty(), peopleRequest); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param peopleRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PeopleResponse readPeople(Optional locale, PeopleRequest peopleRequest) { + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = + com.glean.api_client.glean_api_client.models.operations.PeopleRequest + .builder() + .locale(locale) + .peopleRequest(peopleRequest) + .build(); + RequestOperation operation + = new People.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Get person photo * @@ -46,7 +156,7 @@ public AsyncEntities async() { * * @return The call builder */ - public GetPersonPhotoRequestBuilder getPersonPhoto() { + public GetPersonPhotoRequestBuilder retrievePersonPhoto() { return new GetPersonPhotoRequestBuilder(sdkConfiguration); } @@ -64,8 +174,8 @@ public GetPersonPhotoRequestBuilder getPersonPhoto() { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetPersonPhotoResponse getPersonPhoto(String personId) { - return getPersonPhoto(personId, Optional.empty()); + public GetPersonPhotoResponse retrievePersonPhoto(String personId) { + return retrievePersonPhoto(personId, Optional.empty()); } /** @@ -84,7 +194,7 @@ public GetPersonPhotoResponse getPersonPhoto(String personId) { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetPersonPhotoResponse getPersonPhoto(String personId, Optional ds) { + public GetPersonPhotoResponse retrievePersonPhoto(String personId, Optional ds) { GetPersonPhotoRequest request = GetPersonPhotoRequest .builder() diff --git a/src/main/java/com/glean/api_client/glean_api_client/Findings.java b/src/main/java/com/glean/api_client/glean_api_client/Findings.java new file mode 100644 index 00000000..e9ce0228 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/Findings.java @@ -0,0 +1,161 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 1403de9abd9e + */ +package com.glean.api_client.glean_api_client; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import static com.glean.api_client.glean_api_client.operations.Operations.RequestlessOperation; + +import com.glean.api_client.glean_api_client.models.components.DlpExportFindingsRequest; +import com.glean.api_client.glean_api_client.models.operations.CreatefindingsexportRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.CreatefindingsexportResponse; +import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportResponse; +import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportRequest; +import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportResponse; +import com.glean.api_client.glean_api_client.models.operations.ListfindingsexportsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.ListfindingsexportsResponse; +import com.glean.api_client.glean_api_client.operations.Createfindingsexport; +import com.glean.api_client.glean_api_client.operations.Deletefindingsexport; +import com.glean.api_client.glean_api_client.operations.Downloadfindingsexport; +import com.glean.api_client.glean_api_client.operations.Listfindingsexports; +import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; + + +public class Findings { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final AsyncFindings asyncSDK; + + Findings(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncFindings(this, sdkConfiguration); + } + + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncFindings async() { + return asyncSDK; + } + + /** + * Creates findings export + * + *

Creates a new DLP findings export job. + * + * @return The call builder + */ + public CreatefindingsexportRequestBuilder create() { + return new CreatefindingsexportRequestBuilder(sdkConfiguration); + } + + /** + * Creates findings export + * + *

Creates a new DLP findings export job. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreatefindingsexportResponse create(DlpExportFindingsRequest request) { + RequestOperation operation + = new Createfindingsexport.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Lists findings exports + * + *

Lists all DLP findings exports. + * + * @return The call builder + */ + public ListfindingsexportsRequestBuilder list() { + return new ListfindingsexportsRequestBuilder(sdkConfiguration); + } + + /** + * Lists findings exports + * + *

Lists all DLP findings exports. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListfindingsexportsResponse listDirect() { + RequestlessOperation operation + = new Listfindingsexports.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest()); + } + + /** + * Downloads findings export + * + *

Downloads a DLP findings export as a CSV file. + * + * @return The call builder + */ + public DownloadfindingsexportRequestBuilder download() { + return new DownloadfindingsexportRequestBuilder(sdkConfiguration); + } + + /** + * Downloads findings export + * + *

Downloads a DLP findings export as a CSV file. + * + * @param id The ID of the export to download. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DownloadfindingsexportResponse download(String id) { + DownloadfindingsexportRequest request = + DownloadfindingsexportRequest + .builder() + .id(id) + .build(); + RequestOperation operation + = new Downloadfindingsexport.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Deletes findings export + * + *

Deletes a DLP findings export. + * + * @return The call builder + */ + public DeletefindingsexportRequestBuilder delete() { + return new DeletefindingsexportRequestBuilder(sdkConfiguration); + } + + /** + * Deletes findings export + * + *

Deletes a DLP findings export. + * + * @param id The ID of the export to delete. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletefindingsexportResponse delete(long id) { + DeletefindingsexportRequest request = + DeletefindingsexportRequest + .builder() + .id(id) + .build(); + RequestOperation operation + = new Deletefindingsexport.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/Glean.java b/src/main/java/com/glean/api_client/glean_api_client/Glean.java index 6daa8699..3a902376 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Glean.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Glean.java @@ -55,92 +55,36 @@ public class Glean { }; - private final Client client; - - /** - * Manage indexing API tokens. - */ - private final Authentication authentication; - - - private final Chat chat; - - private final Agents agents; - private final Entities entities; + private final Search search; - private final Tools tools; + private final Client client; private final Indexing indexing; - private final Troubleshooting troubleshooting; - - - private final Governance governance; - - /** - * Manage datasources. - */ - private final Datasources datasources; - - - public Client client() { - return client; - } - - /** - * Manage indexing API tokens. - */ - public Authentication authentication() { - return authentication; - } - - - public Chat chat() { - return chat; - } - - public Agents agents() { return agents; } - public Entities entities() { - return entities; + public Search search() { + return search; } - public Tools tools() { - return tools; + public Client client() { + return client; } public Indexing indexing() { return indexing; } - - - public Troubleshooting troubleshooting() { - return troubleshooting; - } - - - public Governance governance() { - return governance; - } - - /** - * Manage datasources. - */ - public Datasources datasources() { - return datasources; - } private final AsyncGlean asyncSDK; /** @@ -307,16 +251,10 @@ public static Builder builder() { private Glean(SDKConfiguration sdkConfiguration) { sdkConfiguration.initialize(); - this.client = new Client(sdkConfiguration); - this.authentication = new Authentication(sdkConfiguration); - this.chat = new Chat(sdkConfiguration); this.agents = new Agents(sdkConfiguration); - this.entities = new Entities(sdkConfiguration); - this.tools = new Tools(sdkConfiguration); + this.search = new Search(sdkConfiguration); + this.client = new Client(sdkConfiguration); this.indexing = new Indexing(sdkConfiguration); - this.troubleshooting = new Troubleshooting(sdkConfiguration); - this.governance = new Governance(sdkConfiguration); - this.datasources = new Datasources(sdkConfiguration); SdkInitData data = sdkConfiguration.hooks().sdkInit( new SdkInitData( sdkConfiguration.resolvedServerUrl(), diff --git a/src/main/java/com/glean/api_client/glean_api_client/Governance.java b/src/main/java/com/glean/api_client/glean_api_client/Governance.java index a1b56412..9cfcbfe1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Governance.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Governance.java @@ -4,158 +4,38 @@ */ package com.glean.api_client.glean_api_client; -import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; -import static com.glean.api_client.glean_api_client.operations.Operations.RequestlessOperation; - -import com.glean.api_client.glean_api_client.models.components.DlpExportFindingsRequest; -import com.glean.api_client.glean_api_client.models.operations.CreatefindingsexportRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.CreatefindingsexportResponse; -import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportRequest; -import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.DeletefindingsexportResponse; -import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportRequest; -import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.DownloadfindingsexportResponse; -import com.glean.api_client.glean_api_client.models.operations.ListfindingsexportsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.ListfindingsexportsResponse; -import com.glean.api_client.glean_api_client.operations.Createfindingsexport; -import com.glean.api_client.glean_api_client.operations.Deletefindingsexport; -import com.glean.api_client.glean_api_client.operations.Downloadfindingsexport; -import com.glean.api_client.glean_api_client.operations.Listfindingsexports; import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; public class Governance { private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; private final AsyncGovernance asyncSDK; + private final Data data; + private final GovernanceDocuments documents; Governance(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.data = new Data(this.sdkConfiguration); + this.documents = new GovernanceDocuments(this.sdkConfiguration); this.asyncSDK = new AsyncGovernance(this, sdkConfiguration); } - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncGovernance async() { - return asyncSDK; + public final Data data() { + return data; } - /** - * Creates findings export - * - *

Creates a new DLP findings export job. - * - * @return The call builder - */ - public CreatefindingsexportRequestBuilder createfindingsexport() { - return new CreatefindingsexportRequestBuilder(sdkConfiguration); + public final GovernanceDocuments documents() { + return documents; } /** - * Creates findings export - * - *

Creates a new DLP findings export job. - * - * @param request The request object containing all the parameters for the API call. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public CreatefindingsexportResponse createfindingsexport(DlpExportFindingsRequest request) { - RequestOperation operation - = new Createfindingsexport.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Lists findings exports - * - *

Lists all DLP findings exports. - * - * @return The call builder - */ - public ListfindingsexportsRequestBuilder listfindingsexports() { - return new ListfindingsexportsRequestBuilder(sdkConfiguration); - } - - /** - * Lists findings exports - * - *

Lists all DLP findings exports. - * - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public ListfindingsexportsResponse listfindingsexportsDirect() { - RequestlessOperation operation - = new Listfindingsexports.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); - } - - /** - * Downloads findings export - * - *

Downloads a DLP findings export as a CSV file. - * - * @return The call builder - */ - public DownloadfindingsexportRequestBuilder downloadfindingsexport() { - return new DownloadfindingsexportRequestBuilder(sdkConfiguration); - } - - /** - * Downloads findings export - * - *

Downloads a DLP findings export as a CSV file. - * - * @param id The ID of the export to download. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public DownloadfindingsexportResponse downloadfindingsexport(String id) { - DownloadfindingsexportRequest request = - DownloadfindingsexportRequest - .builder() - .id(id) - .build(); - RequestOperation operation - = new Downloadfindingsexport.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Deletes findings export - * - *

Deletes a DLP findings export. - * - * @return The call builder - */ - public DeletefindingsexportRequestBuilder deletefindingsexport() { - return new DeletefindingsexportRequestBuilder(sdkConfiguration); - } - - /** - * Deletes findings export - * - *

Deletes a DLP findings export. + * Switches to the async SDK. * - * @param id The ID of the export to delete. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails + * @return The async SDK */ - public DeletefindingsexportResponse deletefindingsexport(long id) { - DeletefindingsexportRequest request = - DeletefindingsexportRequest - .builder() - .id(id) - .build(); - RequestOperation operation - = new Deletefindingsexport.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); + public AsyncGovernance async() { + return asyncSDK; } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java index 7c23c9a5..d5dc4b0e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java @@ -8,6 +8,7 @@ import com.glean.api_client.glean_api_client.models.components.BulkIndexDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.CheckDocumentAccessRequest; +import com.glean.api_client.glean_api_client.models.components.DebugDocumentLifecycleRequest; import com.glean.api_client.glean_api_client.models.components.DebugDocumentRequest; import com.glean.api_client.glean_api_client.models.components.DebugDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.DeleteDocumentRequest; @@ -20,6 +21,9 @@ import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BulkindexdocumentsResponse; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1CheckdocumentaccessRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1CheckdocumentaccessResponse; +import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsRequest; +import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsResponse; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentRequest; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentResponse; @@ -41,6 +45,7 @@ import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexdocuments; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Checkdocumentaccess; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocument; +import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocumentEvents; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocuments; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deletedocument; import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Getdocumentcount; @@ -458,4 +463,41 @@ public PostApiIndexV1GetdocumentcountResponse count(GetDocumentCountRequest requ return operation.handleResponse(operation.doRequest(request)); } + /** + * Beta: Get document lifecycle events + * + *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. + * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking + * changes without prior notice. + * + * @return The call builder + */ + public PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder debugEvents() { + return new PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder(sdkConfiguration); + } + + /** + * Beta: Get document lifecycle events + * + *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. + * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking + * changes without prior notice. + * + * @param datasource The datasource to which the document belongs + * @param debugDocumentLifecycleRequest Describes the request body of the /debug/{datasource}/document/events API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PostApiIndexV1DebugDatasourceDocumentEventsResponse debugEvents(String datasource, DebugDocumentLifecycleRequest debugDocumentLifecycleRequest) { + PostApiIndexV1DebugDatasourceDocumentEventsRequest request = + PostApiIndexV1DebugDatasourceDocumentEventsRequest + .builder() + .datasource(datasource) + .debugDocumentLifecycleRequest(debugDocumentLifecycleRequest) + .build(); + RequestOperation operation + = new PostApiIndexV1DebugDatasourceDocumentEvents.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + } diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java index 2e276c24..a20ce5a3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java +++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java @@ -25,8 +25,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "0.9.0"; - public static final String SDK_VERSION = "0.13.2"; - public static final String GEN_VERSION = "2.913.3"; + public static final String SDK_VERSION = "0.14.0"; + public static final String GEN_VERSION = "2.915.0"; private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/glean/api_client/glean_api_client/Search.java b/src/main/java/com/glean/api_client/glean_api_client/Search.java index b9543324..81cade62 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Search.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Search.java @@ -6,28 +6,11 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; -import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; -import com.glean.api_client.glean_api_client.models.components.FeedRequest; -import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; -import com.glean.api_client.glean_api_client.models.components.SearchRequest; -import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; -import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; -import com.glean.api_client.glean_api_client.models.operations.AutocompleteRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.AutocompleteResponse; -import com.glean.api_client.glean_api_client.models.operations.FeedRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.FeedResponse; -import com.glean.api_client.glean_api_client.models.operations.RecommendationsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse; -import com.glean.api_client.glean_api_client.models.operations.SearchRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.SearchResponse; -import com.glean.api_client.glean_api_client.operations.Adminsearch; -import com.glean.api_client.glean_api_client.operations.Autocomplete; -import com.glean.api_client.glean_api_client.operations.Feed; -import com.glean.api_client.glean_api_client.operations.Recommendations; +import com.glean.api_client.glean_api_client.models.components.PlatformSearchRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformSearchRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PlatformSearchResponse; +import com.glean.api_client.glean_api_client.operations.PlatformSearch; import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; -import java.util.Optional; public class Search { @@ -49,239 +32,31 @@ public AsyncSearch async() { return asyncSDK; } - /** - * Search the index (admin) - * - *

Retrieves results for search query without respect for permissions. This is available only to - * privileged users. - * - * @return The call builder - */ - public AdminsearchRequestBuilder queryAsAdmin() { - return new AdminsearchRequestBuilder(sdkConfiguration); - } - - /** - * Search the index (admin) - * - *

Retrieves results for search query without respect for permissions. This is available only to - * privileged users. - * - * @param searchRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public AdminsearchResponse queryAsAdmin(SearchRequest searchRequest) { - return queryAsAdmin(Optional.empty(), searchRequest); - } - - /** - * Search the index (admin) - * - *

Retrieves results for search query without respect for permissions. This is available only to - * privileged users. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param searchRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public AdminsearchResponse queryAsAdmin(Optional locale, SearchRequest searchRequest) { - AdminsearchRequest request = - AdminsearchRequest - .builder() - .locale(locale) - .searchRequest(searchRequest) - .build(); - RequestOperation operation - = new Adminsearch.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Autocomplete - * - *

Retrieve query suggestions, operators and documents for the given partially typed query. - * - * @return The call builder - */ - public AutocompleteRequestBuilder autocomplete() { - return new AutocompleteRequestBuilder(sdkConfiguration); - } - - /** - * Autocomplete - * - *

Retrieve query suggestions, operators and documents for the given partially typed query. - * - * @param autocompleteRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public AutocompleteResponse autocomplete(AutocompleteRequest autocompleteRequest) { - return autocomplete(Optional.empty(), autocompleteRequest); - } - - /** - * Autocomplete - * - *

Retrieve query suggestions, operators and documents for the given partially typed query. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param autocompleteRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public AutocompleteResponse autocomplete(Optional locale, AutocompleteRequest autocompleteRequest) { - com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = - com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest - .builder() - .locale(locale) - .autocompleteRequest(autocompleteRequest) - .build(); - RequestOperation operation - = new Autocomplete.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Feed of documents and events - * - *

The personalized feed/home includes different types of contents including suggestions, recents, - * calendar events and many more. - * - * @return The call builder - */ - public FeedRequestBuilder retrieveFeed() { - return new FeedRequestBuilder(sdkConfiguration); - } - - /** - * Feed of documents and events - * - *

The personalized feed/home includes different types of contents including suggestions, recents, - * calendar events and many more. - * - * @param feedRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public FeedResponse retrieveFeed(FeedRequest feedRequest) { - return retrieveFeed(Optional.empty(), feedRequest); - } - - /** - * Feed of documents and events - * - *

The personalized feed/home includes different types of contents including suggestions, recents, - * calendar events and many more. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param feedRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public FeedResponse retrieveFeed(Optional locale, FeedRequest feedRequest) { - com.glean.api_client.glean_api_client.models.operations.FeedRequest request = - com.glean.api_client.glean_api_client.models.operations.FeedRequest - .builder() - .locale(locale) - .feedRequest(feedRequest) - .build(); - RequestOperation operation - = new Feed.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Recommend documents - * - *

Retrieve recommended documents for the given URL or Glean Document ID. - * - * @return The call builder - */ - public RecommendationsRequestBuilder recommendations() { - return new RecommendationsRequestBuilder(sdkConfiguration); - } - - /** - * Recommend documents - * - *

Retrieve recommended documents for the given URL or Glean Document ID. - * - * @param recommendationsRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public RecommendationsResponse recommendations(RecommendationsRequest recommendationsRequest) { - return recommendations(Optional.empty(), recommendationsRequest); - } - - /** - * Recommend documents - * - *

Retrieve recommended documents for the given URL or Glean Document ID. - * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param recommendationsRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public RecommendationsResponse recommendations(Optional locale, RecommendationsRequest recommendationsRequest) { - com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = - com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest - .builder() - .locale(locale) - .recommendationsRequest(recommendationsRequest) - .build(); - RequestOperation operation - = new Recommendations.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - /** * Search * - *

Retrieve results from the index for the given query and filters. + *

Execute a search query and retrieve ranked results. This is the data retrieval variant of the search + * API and returns only results and pagination state. * * @return The call builder */ - public SearchRequestBuilder query() { - return new SearchRequestBuilder(sdkConfiguration); - } - - /** - * Search - * - *

Retrieve results from the index for the given query and filters. - * - * @param searchRequest - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public SearchResponse query(SearchRequest searchRequest) { - return query(Optional.empty(), searchRequest); + public PlatformSearchRequestBuilder query() { + return new PlatformSearchRequestBuilder(sdkConfiguration); } /** * Search * - *

Retrieve results from the index for the given query and filters. + *

Execute a search query and retrieve ranked results. This is the data retrieval variant of the search + * API and returns only results and pagination state. * - * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. - * @param searchRequest + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public SearchResponse query(Optional locale, SearchRequest searchRequest) { - com.glean.api_client.glean_api_client.models.operations.SearchRequest request = - com.glean.api_client.glean_api_client.models.operations.SearchRequest - .builder() - .locale(locale) - .searchRequest(searchRequest) - .build(); - RequestOperation operation - = new com.glean.api_client.glean_api_client.operations.Search.Sync(sdkConfiguration, _headers); + public PlatformSearchResponse query(PlatformSearchRequest request) { + RequestOperation operation + = new PlatformSearch.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/Tools.java b/src/main/java/com/glean/api_client/glean_api_client/Tools.java index 42734812..93a74dec 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Tools.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Tools.java @@ -7,15 +7,25 @@ import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; import com.glean.api_client.glean_api_client.models.components.AuthorizeActionPackRequest; +import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; import com.glean.api_client.glean_api_client.models.operations.AuthorizeActionPackRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.AuthorizeActionPackResponse; import com.glean.api_client.glean_api_client.models.operations.GetActionPackAuthStatusRequest; import com.glean.api_client.glean_api_client.models.operations.GetActionPackAuthStatusRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetActionPackAuthStatusResponse; +import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListRequest; +import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListResponse; +import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallRequestBuilder; +import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallResponse; import com.glean.api_client.glean_api_client.operations.AuthorizeActionPack; import com.glean.api_client.glean_api_client.operations.GetActionPackAuthStatus; +import com.glean.api_client.glean_api_client.operations.GetRestApiV1ToolsList; +import com.glean.api_client.glean_api_client.operations.PostRestApiV1ToolsCall; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.String; +import java.util.List; +import java.util.Optional; public class Tools { @@ -37,6 +47,78 @@ public AsyncTools async() { return asyncSDK; } + /** + * List available tools + * + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. + * + * @return The call builder + */ + public GetRestApiV1ToolsListRequestBuilder list() { + return new GetRestApiV1ToolsListRequestBuilder(sdkConfiguration); + } + + /** + * List available tools + * + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetRestApiV1ToolsListResponse listDirect() { + return list(Optional.empty()); + } + + /** + * List available tools + * + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. + * + * @param toolNames Optional array of tool names to filter by + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetRestApiV1ToolsListResponse list(Optional> toolNames) { + GetRestApiV1ToolsListRequest request = + GetRestApiV1ToolsListRequest + .builder() + .toolNames(toolNames) + .build(); + RequestOperation operation + = new GetRestApiV1ToolsList.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Execute the specified tool + * + *

Execute the specified tool with provided parameters + * + * @return The call builder + */ + public PostRestApiV1ToolsCallRequestBuilder run() { + return new PostRestApiV1ToolsCallRequestBuilder(sdkConfiguration); + } + + /** + * Execute the specified tool + * + *

Execute the specified tool with provided parameters + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PostRestApiV1ToolsCallResponse run(ToolsCallRequest request) { + RequestOperation operation + = new PostRestApiV1ToolsCall.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Get end-user authentication status for an action pack. * @@ -46,7 +128,7 @@ public AsyncTools async() { * * @return The call builder */ - public GetActionPackAuthStatusRequestBuilder getActionPackAuthStatus() { + public GetActionPackAuthStatusRequestBuilder retrieveActionPackAuthStatus() { return new GetActionPackAuthStatusRequestBuilder(sdkConfiguration); } @@ -61,7 +143,7 @@ public GetActionPackAuthStatusRequestBuilder getActionPackAuthStatus() { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetActionPackAuthStatusResponse getActionPackAuthStatus(String actionPackId) { + public GetActionPackAuthStatusResponse retrieveActionPackAuthStatus(String actionPackId) { GetActionPackAuthStatusRequest request = GetActionPackAuthStatusRequest .builder() diff --git a/src/main/java/com/glean/api_client/glean_api_client/Troubleshooting.java b/src/main/java/com/glean/api_client/glean_api_client/Troubleshooting.java deleted file mode 100644 index 650fc66c..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/Troubleshooting.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - * @generated-id: 3af293a40941 - */ -package com.glean.api_client.glean_api_client; - -import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; - -import com.glean.api_client.glean_api_client.models.components.DebugDocumentLifecycleRequest; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsRequest; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceDocumentEventsResponse; -import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocumentEvents; -import com.glean.api_client.glean_api_client.utils.Headers; -import java.lang.String; - - -public class Troubleshooting { - private static final Headers _headers = Headers.EMPTY; - private final SDKConfiguration sdkConfiguration; - private final AsyncTroubleshooting asyncSDK; - - Troubleshooting(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.asyncSDK = new AsyncTroubleshooting(this, sdkConfiguration); - } - - /** - * Switches to the async SDK. - * - * @return The async SDK - */ - public AsyncTroubleshooting async() { - return asyncSDK; - } - - /** - * Beta: Get document lifecycle events - * - *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. - * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking - * changes without prior notice. - * - * @return The call builder - */ - public PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder postApiIndexV1DebugDatasourceDocumentEvents() { - return new PostApiIndexV1DebugDatasourceDocumentEventsRequestBuilder(sdkConfiguration); - } - - /** - * Beta: Get document lifecycle events - * - *

Retrieves lifecycle events for a specific document including upload time, index times and deletions. - * Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking - * changes without prior notice. - * - * @param datasource The datasource to which the document belongs - * @param debugDocumentLifecycleRequest Describes the request body of the /debug/{datasource}/document/events API call. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public PostApiIndexV1DebugDatasourceDocumentEventsResponse postApiIndexV1DebugDatasourceDocumentEvents(String datasource, DebugDocumentLifecycleRequest debugDocumentLifecycleRequest) { - PostApiIndexV1DebugDatasourceDocumentEventsRequest request = - PostApiIndexV1DebugDatasourceDocumentEventsRequest - .builder() - .datasource(datasource) - .debugDocumentLifecycleRequest(debugDocumentLifecycleRequest) - .build(); - RequestOperation operation - = new PostApiIndexV1DebugDatasourceDocumentEvents.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformActionSummary.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformActionSummary.java new file mode 100644 index 00000000..0e422d22 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformActionSummary.java @@ -0,0 +1,458 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 334f53c10c78 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class PlatformActionSummary { + /** + * Unique identifier of the action. + */ + @JsonProperty("tool_id") + private String toolId; + + /** + * Display name of the action. + */ + @JsonProperty("display_name") + private String displayName; + + /** + * Tool type. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private Optional type; + + /** + * Authentication type required by the action. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional authType; + + /** + * Write-action execution type. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("write_action_type") + private Optional writeActionType; + + /** + * Whether this action has been fully configured. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("is_setup_finished") + private Optional isSetupFinished; + + /** + * Kind of knowledge the action accesses or modifies. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data_source") + private Optional dataSource; + + @JsonCreator + public PlatformActionSummary( + @JsonProperty("tool_id") String toolId, + @JsonProperty("display_name") String displayName, + @JsonProperty("type") Optional type, + @JsonProperty("auth_type") Optional authType, + @JsonProperty("write_action_type") Optional writeActionType, + @JsonProperty("is_setup_finished") Optional isSetupFinished, + @JsonProperty("data_source") Optional dataSource) { + Utils.checkNotNull(toolId, "toolId"); + Utils.checkNotNull(displayName, "displayName"); + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(authType, "authType"); + Utils.checkNotNull(writeActionType, "writeActionType"); + Utils.checkNotNull(isSetupFinished, "isSetupFinished"); + Utils.checkNotNull(dataSource, "dataSource"); + this.toolId = toolId; + this.displayName = displayName; + this.type = type; + this.authType = authType; + this.writeActionType = writeActionType; + this.isSetupFinished = isSetupFinished; + this.dataSource = dataSource; + } + + public PlatformActionSummary( + String toolId, + String displayName) { + this(toolId, displayName, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); + } + + /** + * Unique identifier of the action. + */ + @JsonIgnore + public String toolId() { + return toolId; + } + + /** + * Display name of the action. + */ + @JsonIgnore + public String displayName() { + return displayName; + } + + /** + * Tool type. + */ + @JsonIgnore + public Optional type() { + return type; + } + + /** + * Authentication type required by the action. + */ + @JsonIgnore + public Optional authType() { + return authType; + } + + /** + * Write-action execution type. + */ + @JsonIgnore + public Optional writeActionType() { + return writeActionType; + } + + /** + * Whether this action has been fully configured. + */ + @JsonIgnore + public Optional isSetupFinished() { + return isSetupFinished; + } + + /** + * Kind of knowledge the action accesses or modifies. + */ + @JsonIgnore + public Optional dataSource() { + return dataSource; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Unique identifier of the action. + */ + public PlatformActionSummary withToolId(String toolId) { + Utils.checkNotNull(toolId, "toolId"); + this.toolId = toolId; + return this; + } + + /** + * Display name of the action. + */ + public PlatformActionSummary withDisplayName(String displayName) { + Utils.checkNotNull(displayName, "displayName"); + this.displayName = displayName; + return this; + } + + /** + * Tool type. + */ + public PlatformActionSummary withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + + /** + * Tool type. + */ + public PlatformActionSummary withType(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + /** + * Authentication type required by the action. + */ + public PlatformActionSummary withAuthType(String authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = Optional.ofNullable(authType); + return this; + } + + + /** + * Authentication type required by the action. + */ + public PlatformActionSummary withAuthType(Optional authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = authType; + return this; + } + + /** + * Write-action execution type. + */ + public PlatformActionSummary withWriteActionType(String writeActionType) { + Utils.checkNotNull(writeActionType, "writeActionType"); + this.writeActionType = Optional.ofNullable(writeActionType); + return this; + } + + + /** + * Write-action execution type. + */ + public PlatformActionSummary withWriteActionType(Optional writeActionType) { + Utils.checkNotNull(writeActionType, "writeActionType"); + this.writeActionType = writeActionType; + return this; + } + + /** + * Whether this action has been fully configured. + */ + public PlatformActionSummary withIsSetupFinished(boolean isSetupFinished) { + Utils.checkNotNull(isSetupFinished, "isSetupFinished"); + this.isSetupFinished = Optional.ofNullable(isSetupFinished); + return this; + } + + + /** + * Whether this action has been fully configured. + */ + public PlatformActionSummary withIsSetupFinished(Optional isSetupFinished) { + Utils.checkNotNull(isSetupFinished, "isSetupFinished"); + this.isSetupFinished = isSetupFinished; + return this; + } + + /** + * Kind of knowledge the action accesses or modifies. + */ + public PlatformActionSummary withDataSource(String dataSource) { + Utils.checkNotNull(dataSource, "dataSource"); + this.dataSource = Optional.ofNullable(dataSource); + return this; + } + + + /** + * Kind of knowledge the action accesses or modifies. + */ + public PlatformActionSummary withDataSource(Optional dataSource) { + Utils.checkNotNull(dataSource, "dataSource"); + this.dataSource = dataSource; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformActionSummary other = (PlatformActionSummary) o; + return + Utils.enhancedDeepEquals(this.toolId, other.toolId) && + Utils.enhancedDeepEquals(this.displayName, other.displayName) && + Utils.enhancedDeepEquals(this.type, other.type) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.writeActionType, other.writeActionType) && + Utils.enhancedDeepEquals(this.isSetupFinished, other.isSetupFinished) && + Utils.enhancedDeepEquals(this.dataSource, other.dataSource); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + toolId, displayName, type, + authType, writeActionType, isSetupFinished, + dataSource); + } + + @Override + public String toString() { + return Utils.toString(PlatformActionSummary.class, + "toolId", toolId, + "displayName", displayName, + "type", type, + "authType", authType, + "writeActionType", writeActionType, + "isSetupFinished", isSetupFinished, + "dataSource", dataSource); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String toolId; + + private String displayName; + + private Optional type = Optional.empty(); + + private Optional authType = Optional.empty(); + + private Optional writeActionType = Optional.empty(); + + private Optional isSetupFinished = Optional.empty(); + + private Optional dataSource = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Unique identifier of the action. + */ + public Builder toolId(String toolId) { + Utils.checkNotNull(toolId, "toolId"); + this.toolId = toolId; + return this; + } + + + /** + * Display name of the action. + */ + public Builder displayName(String displayName) { + Utils.checkNotNull(displayName, "displayName"); + this.displayName = displayName; + return this; + } + + + /** + * Tool type. + */ + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + /** + * Tool type. + */ + public Builder type(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + + /** + * Authentication type required by the action. + */ + public Builder authType(String authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = Optional.ofNullable(authType); + return this; + } + + /** + * Authentication type required by the action. + */ + public Builder authType(Optional authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = authType; + return this; + } + + + /** + * Write-action execution type. + */ + public Builder writeActionType(String writeActionType) { + Utils.checkNotNull(writeActionType, "writeActionType"); + this.writeActionType = Optional.ofNullable(writeActionType); + return this; + } + + /** + * Write-action execution type. + */ + public Builder writeActionType(Optional writeActionType) { + Utils.checkNotNull(writeActionType, "writeActionType"); + this.writeActionType = writeActionType; + return this; + } + + + /** + * Whether this action has been fully configured. + */ + public Builder isSetupFinished(boolean isSetupFinished) { + Utils.checkNotNull(isSetupFinished, "isSetupFinished"); + this.isSetupFinished = Optional.ofNullable(isSetupFinished); + return this; + } + + /** + * Whether this action has been fully configured. + */ + public Builder isSetupFinished(Optional isSetupFinished) { + Utils.checkNotNull(isSetupFinished, "isSetupFinished"); + this.isSetupFinished = isSetupFinished; + return this; + } + + + /** + * Kind of knowledge the action accesses or modifies. + */ + public Builder dataSource(String dataSource) { + Utils.checkNotNull(dataSource, "dataSource"); + this.dataSource = Optional.ofNullable(dataSource); + return this; + } + + /** + * Kind of knowledge the action accesses or modifies. + */ + public Builder dataSource(Optional dataSource) { + Utils.checkNotNull(dataSource, "dataSource"); + this.dataSource = dataSource; + return this; + } + + public PlatformActionSummary build() { + + return new PlatformActionSummary( + toolId, displayName, type, + authType, writeActionType, isSetupFinished, + dataSource); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgent.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgent.java new file mode 100644 index 00000000..613e1862 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgent.java @@ -0,0 +1,308 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 73f278672714 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class PlatformAgent { + /** + * ID of the agent. + */ + @JsonProperty("agent_id") + private String agentId; + + /** + * Name of the agent. + */ + @JsonProperty("name") + private String name; + + /** + * Description of the agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + /** + * Agent metadata. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> metadata; + + + @JsonProperty("capabilities") + private PlatformAgentCapabilities capabilities; + + @JsonCreator + public PlatformAgent( + @JsonProperty("agent_id") String agentId, + @JsonProperty("name") String name, + @JsonProperty("description") Optional description, + @JsonProperty("metadata") Optional> metadata, + @JsonProperty("capabilities") PlatformAgentCapabilities capabilities) { + Utils.checkNotNull(agentId, "agentId"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(capabilities, "capabilities"); + this.agentId = agentId; + this.name = name; + this.description = description; + this.metadata = metadata; + this.capabilities = capabilities; + } + + public PlatformAgent( + String agentId, + String name, + PlatformAgentCapabilities capabilities) { + this(agentId, name, Optional.empty(), + Optional.empty(), capabilities); + } + + /** + * ID of the agent. + */ + @JsonIgnore + public String agentId() { + return agentId; + } + + /** + * Name of the agent. + */ + @JsonIgnore + public String name() { + return name; + } + + /** + * Description of the agent. + */ + @JsonIgnore + public Optional description() { + return description; + } + + /** + * Agent metadata. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + @JsonIgnore + public PlatformAgentCapabilities capabilities() { + return capabilities; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * ID of the agent. + */ + public PlatformAgent withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + /** + * Name of the agent. + */ + public PlatformAgent withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Description of the agent. + */ + public PlatformAgent withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + /** + * Description of the agent. + */ + public PlatformAgent withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + /** + * Agent metadata. + */ + public PlatformAgent withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + /** + * Agent metadata. + */ + public PlatformAgent withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public PlatformAgent withCapabilities(PlatformAgentCapabilities capabilities) { + Utils.checkNotNull(capabilities, "capabilities"); + this.capabilities = capabilities; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgent other = (PlatformAgent) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.capabilities, other.capabilities); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId, name, description, + metadata, capabilities); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgent.class, + "agentId", agentId, + "name", name, + "description", description, + "metadata", metadata, + "capabilities", capabilities); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String agentId; + + private String name; + + private Optional description = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private PlatformAgentCapabilities capabilities; + + private Builder() { + // force use of static builder() method + } + + + /** + * ID of the agent. + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + /** + * Name of the agent. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * Description of the agent. + */ + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + /** + * Description of the agent. + */ + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + /** + * Agent metadata. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + /** + * Agent metadata. + */ + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder capabilities(PlatformAgentCapabilities capabilities) { + Utils.checkNotNull(capabilities, "capabilities"); + this.capabilities = capabilities; + return this; + } + + public PlatformAgent build() { + + return new PlatformAgent( + agentId, name, description, + metadata, capabilities); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentCapabilities.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentCapabilities.java new file mode 100644 index 00000000..874a960a --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentCapabilities.java @@ -0,0 +1,239 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: a83d7a5eee98 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + + +public class PlatformAgentCapabilities { + /** + * Whether the agent supports messages as input. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ap.io.messages") + private Optional apIoMessages; + + /** + * Whether the agent supports streaming output. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ap.io.streaming") + private Optional apIoStreaming; + + + @JsonIgnore + private Map additionalProperties; + + @JsonCreator + public PlatformAgentCapabilities( + @JsonProperty("ap.io.messages") Optional apIoMessages, + @JsonProperty("ap.io.streaming") Optional apIoStreaming) { + Utils.checkNotNull(apIoMessages, "apIoMessages"); + Utils.checkNotNull(apIoStreaming, "apIoStreaming"); + this.apIoMessages = apIoMessages; + this.apIoStreaming = apIoStreaming; + this.additionalProperties = new HashMap<>(); + } + + public PlatformAgentCapabilities() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Whether the agent supports messages as input. + */ + @JsonIgnore + public Optional apIoMessages() { + return apIoMessages; + } + + /** + * Whether the agent supports streaming output. + */ + @JsonIgnore + public Optional apIoStreaming() { + return apIoStreaming; + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Whether the agent supports messages as input. + */ + public PlatformAgentCapabilities withApIoMessages(boolean apIoMessages) { + Utils.checkNotNull(apIoMessages, "apIoMessages"); + this.apIoMessages = Optional.ofNullable(apIoMessages); + return this; + } + + + /** + * Whether the agent supports messages as input. + */ + public PlatformAgentCapabilities withApIoMessages(Optional apIoMessages) { + Utils.checkNotNull(apIoMessages, "apIoMessages"); + this.apIoMessages = apIoMessages; + return this; + } + + /** + * Whether the agent supports streaming output. + */ + public PlatformAgentCapabilities withApIoStreaming(boolean apIoStreaming) { + Utils.checkNotNull(apIoStreaming, "apIoStreaming"); + this.apIoStreaming = Optional.ofNullable(apIoStreaming); + return this; + } + + + /** + * Whether the agent supports streaming output. + */ + public PlatformAgentCapabilities withApIoStreaming(Optional apIoStreaming) { + Utils.checkNotNull(apIoStreaming, "apIoStreaming"); + this.apIoStreaming = apIoStreaming; + return this; + } + + @JsonAnySetter + public PlatformAgentCapabilities withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public PlatformAgentCapabilities withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentCapabilities other = (PlatformAgentCapabilities) o; + return + Utils.enhancedDeepEquals(this.apIoMessages, other.apIoMessages) && + Utils.enhancedDeepEquals(this.apIoStreaming, other.apIoStreaming) && + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apIoMessages, apIoStreaming, additionalProperties); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentCapabilities.class, + "apIoMessages", apIoMessages, + "apIoStreaming", apIoStreaming, + "additionalProperties", additionalProperties); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional apIoMessages = Optional.empty(); + + private Optional apIoStreaming = Optional.empty(); + + private Map additionalProperties = new HashMap<>(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Whether the agent supports messages as input. + */ + public Builder apIoMessages(boolean apIoMessages) { + Utils.checkNotNull(apIoMessages, "apIoMessages"); + this.apIoMessages = Optional.ofNullable(apIoMessages); + return this; + } + + /** + * Whether the agent supports messages as input. + */ + public Builder apIoMessages(Optional apIoMessages) { + Utils.checkNotNull(apIoMessages, "apIoMessages"); + this.apIoMessages = apIoMessages; + return this; + } + + + /** + * Whether the agent supports streaming output. + */ + public Builder apIoStreaming(boolean apIoStreaming) { + Utils.checkNotNull(apIoStreaming, "apIoStreaming"); + this.apIoStreaming = Optional.ofNullable(apIoStreaming); + return this; + } + + /** + * Whether the agent supports streaming output. + */ + public Builder apIoStreaming(Optional apIoStreaming) { + Utils.checkNotNull(apIoStreaming, "apIoStreaming"); + this.apIoStreaming = apIoStreaming; + return this; + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public PlatformAgentCapabilities build() { + + return new PlatformAgentCapabilities( + apIoMessages, apIoStreaming) + .withAdditionalProperties(additionalProperties); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentExecutionStatus.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentExecutionStatus.java new file mode 100644 index 00000000..6380e825 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentExecutionStatus.java @@ -0,0 +1,133 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: f36128e0d392 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Wrapper for an "open" enum that can handle unknown values from API responses + * without runtime errors. Instances are immutable singletons with reference equality. + * Use {@code asEnum()} for switch expressions. + */ +/** + * PlatformAgentExecutionStatus + * + *

Status of the agent run. + */ +public class PlatformAgentExecutionStatus { + + public static final PlatformAgentExecutionStatus ERROR = new PlatformAgentExecutionStatus("error"); + public static final PlatformAgentExecutionStatus SUCCESS = new PlatformAgentExecutionStatus("success"); + + // This map will grow whenever a Color gets created with a new + // unrecognized value (a potential memory leak if the user is not + // careful). Keep this field lower case to avoid clashing with + // generated member names which will always be upper cased (Java + // convention) + private static final Map values = createValuesMap(); + private static final Map enums = createEnumsMap(); + + private final String value; + + private PlatformAgentExecutionStatus(String value) { + this.value = value; + } + + /** + * Returns a PlatformAgentExecutionStatus with the given value. For a specific value the + * returned object will always be a singleton so reference equality + * is satisfied when the values are the same. + * + * @param value value to be wrapped as PlatformAgentExecutionStatus + */ + @JsonCreator + public static PlatformAgentExecutionStatus of(String value) { + synchronized (PlatformAgentExecutionStatus.class) { + return values.computeIfAbsent(value, v -> new PlatformAgentExecutionStatus(v)); + } + } + + @JsonValue + public String value() { + return value; + } + + public Optional asEnum() { + return Optional.ofNullable(enums.getOrDefault(value, null)); + } + + public boolean isKnown() { + return asEnum().isPresent(); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + PlatformAgentExecutionStatus other = (PlatformAgentExecutionStatus) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "PlatformAgentExecutionStatus [value=" + value + "]"; + } + + // return an array just like an enum + public static PlatformAgentExecutionStatus[] values() { + synchronized (PlatformAgentExecutionStatus.class) { + return values.values().toArray(new PlatformAgentExecutionStatus[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("error", ERROR); + map.put("success", SUCCESS); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("error", PlatformAgentExecutionStatusEnum.ERROR); + map.put("success", PlatformAgentExecutionStatusEnum.SUCCESS); + return map; + } + + + public enum PlatformAgentExecutionStatusEnum { + + ERROR("error"), + SUCCESS("success"),; + + private final String value; + + private PlatformAgentExecutionStatusEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentGetResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentGetResponse.java new file mode 100644 index 00000000..e37efa12 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentGetResponse.java @@ -0,0 +1,131 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 57671c3df4e4 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PlatformAgentGetResponse { + + @JsonProperty("agent") + private PlatformAgent agent; + + /** + * Platform-generated request ID for support correlation. + */ + @JsonProperty("request_id") + private String requestId; + + @JsonCreator + public PlatformAgentGetResponse( + @JsonProperty("agent") PlatformAgent agent, + @JsonProperty("request_id") String requestId) { + Utils.checkNotNull(agent, "agent"); + Utils.checkNotNull(requestId, "requestId"); + this.agent = agent; + this.requestId = requestId; + } + + @JsonIgnore + public PlatformAgent agent() { + return agent; + } + + /** + * Platform-generated request ID for support correlation. + */ + @JsonIgnore + public String requestId() { + return requestId; + } + + public static Builder builder() { + return new Builder(); + } + + + public PlatformAgentGetResponse withAgent(PlatformAgent agent) { + Utils.checkNotNull(agent, "agent"); + this.agent = agent; + return this; + } + + /** + * Platform-generated request ID for support correlation. + */ + public PlatformAgentGetResponse withRequestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentGetResponse other = (PlatformAgentGetResponse) o; + return + Utils.enhancedDeepEquals(this.agent, other.agent) && + Utils.enhancedDeepEquals(this.requestId, other.requestId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agent, requestId); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentGetResponse.class, + "agent", agent, + "requestId", requestId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PlatformAgent agent; + + private String requestId; + + private Builder() { + // force use of static builder() method + } + + + public Builder agent(PlatformAgent agent) { + Utils.checkNotNull(agent, "agent"); + this.agent = agent; + return this; + } + + + /** + * Platform-generated request ID for support correlation. + */ + public Builder requestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + public PlatformAgentGetResponse build() { + + return new PlatformAgentGetResponse( + agent, requestId); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRun.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRun.java new file mode 100644 index 00000000..2fd4ec65 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRun.java @@ -0,0 +1,341 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: a83975cf7b6e + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class PlatformAgentRun { + /** + * ID of the agent being run. + */ + @JsonProperty("agent_id") + private String agentId; + + /** + * Input fields for an input-form triggered agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("input") + private Optional> input; + + /** + * Messages passed to the agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("messages") + private Optional> messages; + + /** + * Metadata passed to the agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> metadata; + + /** + * Status of the agent run. + */ + @JsonProperty("status") + private PlatformAgentExecutionStatus status; + + @JsonCreator + public PlatformAgentRun( + @JsonProperty("agent_id") String agentId, + @JsonProperty("input") Optional> input, + @JsonProperty("messages") Optional> messages, + @JsonProperty("metadata") Optional> metadata, + @JsonProperty("status") PlatformAgentExecutionStatus status) { + Utils.checkNotNull(agentId, "agentId"); + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(messages, "messages"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(status, "status"); + this.agentId = agentId; + this.input = input; + this.messages = messages; + this.metadata = metadata; + this.status = status; + } + + public PlatformAgentRun( + String agentId, + PlatformAgentExecutionStatus status) { + this(agentId, Optional.empty(), Optional.empty(), + Optional.empty(), status); + } + + /** + * ID of the agent being run. + */ + @JsonIgnore + public String agentId() { + return agentId; + } + + /** + * Input fields for an input-form triggered agent. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> input() { + return (Optional>) input; + } + + /** + * Messages passed to the agent. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> messages() { + return (Optional>) messages; + } + + /** + * Metadata passed to the agent. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + /** + * Status of the agent run. + */ + @JsonIgnore + public PlatformAgentExecutionStatus status() { + return status; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * ID of the agent being run. + */ + public PlatformAgentRun withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + /** + * Input fields for an input-form triggered agent. + */ + public PlatformAgentRun withInput(Map input) { + Utils.checkNotNull(input, "input"); + this.input = Optional.ofNullable(input); + return this; + } + + + /** + * Input fields for an input-form triggered agent. + */ + public PlatformAgentRun withInput(Optional> input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + /** + * Messages passed to the agent. + */ + public PlatformAgentRun withMessages(List messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = Optional.ofNullable(messages); + return this; + } + + + /** + * Messages passed to the agent. + */ + public PlatformAgentRun withMessages(Optional> messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = messages; + return this; + } + + /** + * Metadata passed to the agent. + */ + public PlatformAgentRun withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + /** + * Metadata passed to the agent. + */ + public PlatformAgentRun withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * Status of the agent run. + */ + public PlatformAgentRun withStatus(PlatformAgentExecutionStatus status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentRun other = (PlatformAgentRun) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId) && + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.messages, other.messages) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.status, other.status); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId, input, messages, + metadata, status); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentRun.class, + "agentId", agentId, + "input", input, + "messages", messages, + "metadata", metadata, + "status", status); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String agentId; + + private Optional> input = Optional.empty(); + + private Optional> messages = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private PlatformAgentExecutionStatus status; + + private Builder() { + // force use of static builder() method + } + + + /** + * ID of the agent being run. + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + /** + * Input fields for an input-form triggered agent. + */ + public Builder input(Map input) { + Utils.checkNotNull(input, "input"); + this.input = Optional.ofNullable(input); + return this; + } + + /** + * Input fields for an input-form triggered agent. + */ + public Builder input(Optional> input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + /** + * Messages passed to the agent. + */ + public Builder messages(List messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = Optional.ofNullable(messages); + return this; + } + + /** + * Messages passed to the agent. + */ + public Builder messages(Optional> messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = messages; + return this; + } + + + /** + * Metadata passed to the agent. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + /** + * Metadata passed to the agent. + */ + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * Status of the agent run. + */ + public Builder status(PlatformAgentExecutionStatus status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + public PlatformAgentRun build() { + + return new PlatformAgentRun( + agentId, input, messages, + metadata, status); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunCreateRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunCreateRequest.java new file mode 100644 index 00000000..e1eb4849 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunCreateRequest.java @@ -0,0 +1,342 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 1643eb434b69 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.utils.LazySingletonValue; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +/** + * PlatformAgentRunCreateRequest + * + *

Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or + * `input` (for input-form triggered agents). + */ +public class PlatformAgentRunCreateRequest { + /** + * Input fields for an input-form triggered agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("input") + private Optional> input; + + /** + * Messages to pass to the agent. When provided, the array MUST contain at least one message and each + * message MUST specify a valid `role` and non-empty `content`. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("messages") + private Optional> messages; + + /** + * Metadata to pass to the agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> metadata; + + /** + * Whether to stream the run response as server-sent events. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("stream") + private Optional stream; + + @JsonCreator + public PlatformAgentRunCreateRequest( + @JsonProperty("input") Optional> input, + @JsonProperty("messages") Optional> messages, + @JsonProperty("metadata") Optional> metadata, + @JsonProperty("stream") Optional stream) { + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(messages, "messages"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(stream, "stream"); + this.input = input; + this.messages = messages; + this.metadata = metadata; + this.stream = stream; + } + + public PlatformAgentRunCreateRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); + } + + /** + * Input fields for an input-form triggered agent. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> input() { + return (Optional>) input; + } + + /** + * Messages to pass to the agent. When provided, the array MUST contain at least one message and each + * message MUST specify a valid `role` and non-empty `content`. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> messages() { + return (Optional>) messages; + } + + /** + * Metadata to pass to the agent. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + /** + * Whether to stream the run response as server-sent events. + */ + @JsonIgnore + public Optional stream() { + return stream; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Input fields for an input-form triggered agent. + */ + public PlatformAgentRunCreateRequest withInput(Map input) { + Utils.checkNotNull(input, "input"); + this.input = Optional.ofNullable(input); + return this; + } + + + /** + * Input fields for an input-form triggered agent. + */ + public PlatformAgentRunCreateRequest withInput(Optional> input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + /** + * Messages to pass to the agent. When provided, the array MUST contain at least one message and each + * message MUST specify a valid `role` and non-empty `content`. + */ + public PlatformAgentRunCreateRequest withMessages(List messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = Optional.ofNullable(messages); + return this; + } + + + /** + * Messages to pass to the agent. When provided, the array MUST contain at least one message and each + * message MUST specify a valid `role` and non-empty `content`. + */ + public PlatformAgentRunCreateRequest withMessages(Optional> messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = messages; + return this; + } + + /** + * Metadata to pass to the agent. + */ + public PlatformAgentRunCreateRequest withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + /** + * Metadata to pass to the agent. + */ + public PlatformAgentRunCreateRequest withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * Whether to stream the run response as server-sent events. + */ + public PlatformAgentRunCreateRequest withStream(boolean stream) { + Utils.checkNotNull(stream, "stream"); + this.stream = Optional.ofNullable(stream); + return this; + } + + + /** + * Whether to stream the run response as server-sent events. + */ + public PlatformAgentRunCreateRequest withStream(Optional stream) { + Utils.checkNotNull(stream, "stream"); + this.stream = stream; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentRunCreateRequest other = (PlatformAgentRunCreateRequest) o; + return + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.messages, other.messages) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.stream, other.stream); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + input, messages, metadata, + stream); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentRunCreateRequest.class, + "input", input, + "messages", messages, + "metadata", metadata, + "stream", stream); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> input = Optional.empty(); + + private Optional> messages = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private Optional stream; + + private Builder() { + // force use of static builder() method + } + + + /** + * Input fields for an input-form triggered agent. + */ + public Builder input(Map input) { + Utils.checkNotNull(input, "input"); + this.input = Optional.ofNullable(input); + return this; + } + + /** + * Input fields for an input-form triggered agent. + */ + public Builder input(Optional> input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + /** + * Messages to pass to the agent. When provided, the array MUST contain at least one message and each + * message MUST specify a valid `role` and non-empty `content`. + */ + public Builder messages(List messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = Optional.ofNullable(messages); + return this; + } + + /** + * Messages to pass to the agent. When provided, the array MUST contain at least one message and each + * message MUST specify a valid `role` and non-empty `content`. + */ + public Builder messages(Optional> messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = messages; + return this; + } + + + /** + * Metadata to pass to the agent. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + /** + * Metadata to pass to the agent. + */ + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * Whether to stream the run response as server-sent events. + */ + public Builder stream(boolean stream) { + Utils.checkNotNull(stream, "stream"); + this.stream = Optional.ofNullable(stream); + return this; + } + + /** + * Whether to stream the run response as server-sent events. + */ + public Builder stream(Optional stream) { + Utils.checkNotNull(stream, "stream"); + this.stream = stream; + return this; + } + + public PlatformAgentRunCreateRequest build() { + if (stream == null) { + stream = _SINGLETON_VALUE_Stream.value(); + } + + return new PlatformAgentRunCreateRequest( + input, messages, metadata, + stream); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Stream = + new LazySingletonValue<>( + "stream", + "false", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunWaitResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunWaitResponse.java new file mode 100644 index 00000000..bb30387f --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentRunWaitResponse.java @@ -0,0 +1,217 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 587a8637439b + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class PlatformAgentRunWaitResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("run") + private Optional run; + + /** + * Messages returned by the completed run. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("messages") + private Optional> messages; + + /** + * Platform-generated request ID for support correlation. + */ + @JsonProperty("request_id") + private String requestId; + + @JsonCreator + public PlatformAgentRunWaitResponse( + @JsonProperty("run") Optional run, + @JsonProperty("messages") Optional> messages, + @JsonProperty("request_id") String requestId) { + Utils.checkNotNull(run, "run"); + Utils.checkNotNull(messages, "messages"); + Utils.checkNotNull(requestId, "requestId"); + this.run = run; + this.messages = messages; + this.requestId = requestId; + } + + public PlatformAgentRunWaitResponse( + String requestId) { + this(Optional.empty(), Optional.empty(), requestId); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional run() { + return (Optional) run; + } + + /** + * Messages returned by the completed run. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> messages() { + return (Optional>) messages; + } + + /** + * Platform-generated request ID for support correlation. + */ + @JsonIgnore + public String requestId() { + return requestId; + } + + public static Builder builder() { + return new Builder(); + } + + + public PlatformAgentRunWaitResponse withRun(PlatformAgentRun run) { + Utils.checkNotNull(run, "run"); + this.run = Optional.ofNullable(run); + return this; + } + + + public PlatformAgentRunWaitResponse withRun(Optional run) { + Utils.checkNotNull(run, "run"); + this.run = run; + return this; + } + + /** + * Messages returned by the completed run. + */ + public PlatformAgentRunWaitResponse withMessages(List messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = Optional.ofNullable(messages); + return this; + } + + + /** + * Messages returned by the completed run. + */ + public PlatformAgentRunWaitResponse withMessages(Optional> messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = messages; + return this; + } + + /** + * Platform-generated request ID for support correlation. + */ + public PlatformAgentRunWaitResponse withRequestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentRunWaitResponse other = (PlatformAgentRunWaitResponse) o; + return + Utils.enhancedDeepEquals(this.run, other.run) && + Utils.enhancedDeepEquals(this.messages, other.messages) && + Utils.enhancedDeepEquals(this.requestId, other.requestId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + run, messages, requestId); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentRunWaitResponse.class, + "run", run, + "messages", messages, + "requestId", requestId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional run = Optional.empty(); + + private Optional> messages = Optional.empty(); + + private String requestId; + + private Builder() { + // force use of static builder() method + } + + + public Builder run(PlatformAgentRun run) { + Utils.checkNotNull(run, "run"); + this.run = Optional.ofNullable(run); + return this; + } + + public Builder run(Optional run) { + Utils.checkNotNull(run, "run"); + this.run = run; + return this; + } + + + /** + * Messages returned by the completed run. + */ + public Builder messages(List messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = Optional.ofNullable(messages); + return this; + } + + /** + * Messages returned by the completed run. + */ + public Builder messages(Optional> messages) { + Utils.checkNotNull(messages, "messages"); + this.messages = messages; + return this; + } + + + /** + * Platform-generated request ID for support correlation. + */ + public Builder requestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + public PlatformAgentRunWaitResponse build() { + + return new PlatformAgentRunWaitResponse( + run, messages, requestId); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentSchemasResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentSchemasResponse.java new file mode 100644 index 00000000..6bdbc990 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentSchemasResponse.java @@ -0,0 +1,363 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: ceb6267898bb + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class PlatformAgentSchemasResponse { + /** + * ID of the agent. + */ + @JsonProperty("agent_id") + private String agentId; + + /** + * Name of the agent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * Agent input schema in JSON Schema format. + */ + @JsonProperty("input_schema") + private Map inputSchema; + + /** + * Agent output schema in JSON Schema format. + */ + @JsonProperty("output_schema") + private Map outputSchema; + + /** + * Tools that the agent can invoke, when requested. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tools") + private Optional> tools; + + /** + * Platform-generated request ID for support correlation. + */ + @JsonProperty("request_id") + private String requestId; + + @JsonCreator + public PlatformAgentSchemasResponse( + @JsonProperty("agent_id") String agentId, + @JsonProperty("name") Optional name, + @JsonProperty("input_schema") Map inputSchema, + @JsonProperty("output_schema") Map outputSchema, + @JsonProperty("tools") Optional> tools, + @JsonProperty("request_id") String requestId) { + Utils.checkNotNull(agentId, "agentId"); + Utils.checkNotNull(name, "name"); + inputSchema = Utils.emptyMapIfNull(inputSchema); + Utils.checkNotNull(inputSchema, "inputSchema"); + outputSchema = Utils.emptyMapIfNull(outputSchema); + Utils.checkNotNull(outputSchema, "outputSchema"); + Utils.checkNotNull(tools, "tools"); + Utils.checkNotNull(requestId, "requestId"); + this.agentId = agentId; + this.name = name; + this.inputSchema = inputSchema; + this.outputSchema = outputSchema; + this.tools = tools; + this.requestId = requestId; + } + + public PlatformAgentSchemasResponse( + String agentId, + Map inputSchema, + Map outputSchema, + String requestId) { + this(agentId, Optional.empty(), inputSchema, + outputSchema, Optional.empty(), requestId); + } + + /** + * ID of the agent. + */ + @JsonIgnore + public String agentId() { + return agentId; + } + + /** + * Name of the agent. + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * Agent input schema in JSON Schema format. + */ + @JsonIgnore + public Map inputSchema() { + return inputSchema; + } + + /** + * Agent output schema in JSON Schema format. + */ + @JsonIgnore + public Map outputSchema() { + return outputSchema; + } + + /** + * Tools that the agent can invoke, when requested. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> tools() { + return (Optional>) tools; + } + + /** + * Platform-generated request ID for support correlation. + */ + @JsonIgnore + public String requestId() { + return requestId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * ID of the agent. + */ + public PlatformAgentSchemasResponse withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + /** + * Name of the agent. + */ + public PlatformAgentSchemasResponse withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * Name of the agent. + */ + public PlatformAgentSchemasResponse withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Agent input schema in JSON Schema format. + */ + public PlatformAgentSchemasResponse withInputSchema(Map inputSchema) { + Utils.checkNotNull(inputSchema, "inputSchema"); + this.inputSchema = inputSchema; + return this; + } + + /** + * Agent output schema in JSON Schema format. + */ + public PlatformAgentSchemasResponse withOutputSchema(Map outputSchema) { + Utils.checkNotNull(outputSchema, "outputSchema"); + this.outputSchema = outputSchema; + return this; + } + + /** + * Tools that the agent can invoke, when requested. + */ + public PlatformAgentSchemasResponse withTools(List tools) { + Utils.checkNotNull(tools, "tools"); + this.tools = Optional.ofNullable(tools); + return this; + } + + + /** + * Tools that the agent can invoke, when requested. + */ + public PlatformAgentSchemasResponse withTools(Optional> tools) { + Utils.checkNotNull(tools, "tools"); + this.tools = tools; + return this; + } + + /** + * Platform-generated request ID for support correlation. + */ + public PlatformAgentSchemasResponse withRequestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentSchemasResponse other = (PlatformAgentSchemasResponse) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.inputSchema, other.inputSchema) && + Utils.enhancedDeepEquals(this.outputSchema, other.outputSchema) && + Utils.enhancedDeepEquals(this.tools, other.tools) && + Utils.enhancedDeepEquals(this.requestId, other.requestId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId, name, inputSchema, + outputSchema, tools, requestId); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentSchemasResponse.class, + "agentId", agentId, + "name", name, + "inputSchema", inputSchema, + "outputSchema", outputSchema, + "tools", tools, + "requestId", requestId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String agentId; + + private Optional name = Optional.empty(); + + private Map inputSchema; + + private Map outputSchema; + + private Optional> tools = Optional.empty(); + + private String requestId; + + private Builder() { + // force use of static builder() method + } + + + /** + * ID of the agent. + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + /** + * Name of the agent. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * Name of the agent. + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * Agent input schema in JSON Schema format. + */ + public Builder inputSchema(Map inputSchema) { + Utils.checkNotNull(inputSchema, "inputSchema"); + this.inputSchema = inputSchema; + return this; + } + + + /** + * Agent output schema in JSON Schema format. + */ + public Builder outputSchema(Map outputSchema) { + Utils.checkNotNull(outputSchema, "outputSchema"); + this.outputSchema = outputSchema; + return this; + } + + + /** + * Tools that the agent can invoke, when requested. + */ + public Builder tools(List tools) { + Utils.checkNotNull(tools, "tools"); + this.tools = Optional.ofNullable(tools); + return this; + } + + /** + * Tools that the agent can invoke, when requested. + */ + public Builder tools(Optional> tools) { + Utils.checkNotNull(tools, "tools"); + this.tools = tools; + return this; + } + + + /** + * Platform-generated request ID for support correlation. + */ + public Builder requestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + public PlatformAgentSchemasResponse build() { + + return new PlatformAgentSchemasResponse( + agentId, name, inputSchema, + outputSchema, tools, requestId); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchRequest.java new file mode 100644 index 00000000..2b79345a --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchRequest.java @@ -0,0 +1,135 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: bde39542be1c + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class PlatformAgentsSearchRequest { + /** + * Case-insensitive substring to match against agent names. If omitted or empty, no name filter is + * applied. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + @JsonCreator + public PlatformAgentsSearchRequest( + @JsonProperty("name") Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + } + + public PlatformAgentsSearchRequest() { + this(Optional.empty()); + } + + /** + * Case-insensitive substring to match against agent names. If omitted or empty, no name filter is + * applied. + */ + @JsonIgnore + public Optional name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Case-insensitive substring to match against agent names. If omitted or empty, no name filter is + * applied. + */ + public PlatformAgentsSearchRequest withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * Case-insensitive substring to match against agent names. If omitted or empty, no name filter is + * applied. + */ + public PlatformAgentsSearchRequest withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsSearchRequest other = (PlatformAgentsSearchRequest) o; + return + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsSearchRequest.class, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Case-insensitive substring to match against agent names. If omitted or empty, no name filter is + * applied. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * Case-insensitive substring to match against agent names. If omitted or empty, no name filter is + * applied. + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public PlatformAgentsSearchRequest build() { + + return new PlatformAgentsSearchRequest( + name); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchResponse.java new file mode 100644 index 00000000..aa733159 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformAgentsSearchResponse.java @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: afb7301ebc31 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class PlatformAgentsSearchResponse { + /** + * Agents matching the search request. + */ + @JsonProperty("agents") + private List agents; + + /** + * Platform-generated request ID for support correlation. + */ + @JsonProperty("request_id") + private String requestId; + + @JsonCreator + public PlatformAgentsSearchResponse( + @JsonProperty("agents") List agents, + @JsonProperty("request_id") String requestId) { + Utils.checkNotNull(agents, "agents"); + Utils.checkNotNull(requestId, "requestId"); + this.agents = agents; + this.requestId = requestId; + } + + /** + * Agents matching the search request. + */ + @JsonIgnore + public List agents() { + return agents; + } + + /** + * Platform-generated request ID for support correlation. + */ + @JsonIgnore + public String requestId() { + return requestId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Agents matching the search request. + */ + public PlatformAgentsSearchResponse withAgents(List agents) { + Utils.checkNotNull(agents, "agents"); + this.agents = agents; + return this; + } + + /** + * Platform-generated request ID for support correlation. + */ + public PlatformAgentsSearchResponse withRequestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsSearchResponse other = (PlatformAgentsSearchResponse) o; + return + Utils.enhancedDeepEquals(this.agents, other.agents) && + Utils.enhancedDeepEquals(this.requestId, other.requestId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agents, requestId); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsSearchResponse.class, + "agents", agents, + "requestId", requestId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List agents; + + private String requestId; + + private Builder() { + // force use of static builder() method + } + + + /** + * Agents matching the search request. + */ + public Builder agents(List agents) { + Utils.checkNotNull(agents, "agents"); + this.agents = agents; + return this; + } + + + /** + * Platform-generated request ID for support correlation. + */ + public Builder requestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + public PlatformAgentsSearchResponse build() { + + return new PlatformAgentsSearchResponse( + agents, requestId); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformContentType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformContentType.java new file mode 100644 index 00000000..6c356465 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformContentType.java @@ -0,0 +1,124 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: de39566bcffe + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Wrapper for an "open" enum that can handle unknown values from API responses + * without runtime errors. Instances are immutable singletons with reference equality. + * Use {@code asEnum()} for switch expressions. + */ +public class PlatformContentType { + + public static final PlatformContentType TEXT = new PlatformContentType("text"); + + // This map will grow whenever a Color gets created with a new + // unrecognized value (a potential memory leak if the user is not + // careful). Keep this field lower case to avoid clashing with + // generated member names which will always be upper cased (Java + // convention) + private static final Map values = createValuesMap(); + private static final Map enums = createEnumsMap(); + + private final String value; + + private PlatformContentType(String value) { + this.value = value; + } + + /** + * Returns a PlatformContentType with the given value. For a specific value the + * returned object will always be a singleton so reference equality + * is satisfied when the values are the same. + * + * @param value value to be wrapped as PlatformContentType + */ + @JsonCreator + public static PlatformContentType of(String value) { + synchronized (PlatformContentType.class) { + return values.computeIfAbsent(value, v -> new PlatformContentType(v)); + } + } + + @JsonValue + public String value() { + return value; + } + + public Optional asEnum() { + return Optional.ofNullable(enums.getOrDefault(value, null)); + } + + public boolean isKnown() { + return asEnum().isPresent(); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + PlatformContentType other = (PlatformContentType) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "PlatformContentType [value=" + value + "]"; + } + + // return an array just like an enum + public static PlatformContentType[] values() { + synchronized (PlatformContentType.class) { + return values.values().toArray(new PlatformContentType[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("text", TEXT); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("text", PlatformContentTypeEnum.TEXT); + return map; + } + + + public enum PlatformContentTypeEnum { + + TEXT("text"),; + + private final String value; + + private PlatformContentTypeEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilter.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilter.java new file mode 100644 index 00000000..b542c1d0 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilter.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 79535f6079d1 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + +/** + * PlatformFilter + * + *

A single filter criterion. For `EQUALS`, multiple values within a filter are OR'd. For `NOT_EQUALS`, + * multiple values exclude all listed values. + * + *

Filters are AND'd with each other and with any inline query operators. + */ +public class PlatformFilter { + /** + * The field to filter on. Accepts built-in filter field names such as `type`, `owner`, `from`, + * `author`, `channel`, `status`, `assignee`, `reporter`, `component`, `mentions`, and `collection`, + * plus custom datasource property names. + */ + @JsonProperty("field") + private String field; + + /** + * One or more values to match. + */ + @JsonProperty("values") + private List values; + + /** + * Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` + * range operators require exactly one value; express bounded ranges with multiple filters on the same + * field. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("operator") + private Optional operator; + + @JsonCreator + public PlatformFilter( + @JsonProperty("field") String field, + @JsonProperty("values") List values, + @JsonProperty("operator") Optional operator) { + Utils.checkNotNull(field, "field"); + Utils.checkNotNull(values, "values"); + Utils.checkNotNull(operator, "operator"); + this.field = field; + this.values = values; + this.operator = operator; + } + + public PlatformFilter( + String field, + List values) { + this(field, values, Optional.empty()); + } + + /** + * The field to filter on. Accepts built-in filter field names such as `type`, `owner`, `from`, + * `author`, `channel`, `status`, `assignee`, `reporter`, `component`, `mentions`, and `collection`, + * plus custom datasource property names. + */ + @JsonIgnore + public String field() { + return field; + } + + /** + * One or more values to match. + */ + @JsonIgnore + public List values() { + return values; + } + + /** + * Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` + * range operators require exactly one value; express bounded ranges with multiple filters on the same + * field. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional operator() { + return (Optional) operator; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The field to filter on. Accepts built-in filter field names such as `type`, `owner`, `from`, + * `author`, `channel`, `status`, `assignee`, `reporter`, `component`, `mentions`, and `collection`, + * plus custom datasource property names. + */ + public PlatformFilter withField(String field) { + Utils.checkNotNull(field, "field"); + this.field = field; + return this; + } + + /** + * One or more values to match. + */ + public PlatformFilter withValues(List values) { + Utils.checkNotNull(values, "values"); + this.values = values; + return this; + } + + /** + * Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` + * range operators require exactly one value; express bounded ranges with multiple filters on the same + * field. + */ + public PlatformFilter withOperator(PlatformFilterOperator operator) { + Utils.checkNotNull(operator, "operator"); + this.operator = Optional.ofNullable(operator); + return this; + } + + + /** + * Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` + * range operators require exactly one value; express bounded ranges with multiple filters on the same + * field. + */ + public PlatformFilter withOperator(Optional operator) { + Utils.checkNotNull(operator, "operator"); + this.operator = operator; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformFilter other = (PlatformFilter) o; + return + Utils.enhancedDeepEquals(this.field, other.field) && + Utils.enhancedDeepEquals(this.values, other.values) && + Utils.enhancedDeepEquals(this.operator, other.operator); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + field, values, operator); + } + + @Override + public String toString() { + return Utils.toString(PlatformFilter.class, + "field", field, + "values", values, + "operator", operator); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String field; + + private List values; + + private Optional operator = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The field to filter on. Accepts built-in filter field names such as `type`, `owner`, `from`, + * `author`, `channel`, `status`, `assignee`, `reporter`, `component`, `mentions`, and `collection`, + * plus custom datasource property names. + */ + public Builder field(String field) { + Utils.checkNotNull(field, "field"); + this.field = field; + return this; + } + + + /** + * One or more values to match. + */ + public Builder values(List values) { + Utils.checkNotNull(values, "values"); + this.values = values; + return this; + } + + + /** + * Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` + * range operators require exactly one value; express bounded ranges with multiple filters on the same + * field. + */ + public Builder operator(PlatformFilterOperator operator) { + Utils.checkNotNull(operator, "operator"); + this.operator = Optional.ofNullable(operator); + return this; + } + + /** + * Comparison operator to apply to this filter. Defaults to `EQUALS`. `GT`, `GTE`, `LT`, and `LTE` + * range operators require exactly one value; express bounded ranges with multiple filters on the same + * field. + */ + public Builder operator(Optional operator) { + Utils.checkNotNull(operator, "operator"); + this.operator = operator; + return this; + } + + public PlatformFilter build() { + + return new PlatformFilter( + field, values, operator); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilterOperator.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilterOperator.java new file mode 100644 index 00000000..ad7114fd --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformFilterOperator.java @@ -0,0 +1,45 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 66c7c018aa4f + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * PlatformFilterOperator + * + *

Supported filter operator. + */ +public enum PlatformFilterOperator { + EQUALS("EQUALS"), + NOT_EQUALS("NOT_EQUALS"), + GT("GT"), + GTE("GTE"), + LT("LT"), + LTE("LTE"); + + @JsonValue + private final String value; + + PlatformFilterOperator(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PlatformFilterOperator o: PlatformFilterOperator.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessage.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessage.java new file mode 100644 index 00000000..8f841893 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessage.java @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: c1cf5da6fc08 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class PlatformMessage { + /** + * Role of the message author. + */ + @JsonProperty("role") + private PlatformMessageRole role; + + /** + * Content blocks in the message. + */ + @JsonProperty("content") + private List content; + + @JsonCreator + public PlatformMessage( + @JsonProperty("role") PlatformMessageRole role, + @JsonProperty("content") List content) { + Utils.checkNotNull(role, "role"); + Utils.checkNotNull(content, "content"); + this.role = role; + this.content = content; + } + + /** + * Role of the message author. + */ + @JsonIgnore + public PlatformMessageRole role() { + return role; + } + + /** + * Content blocks in the message. + */ + @JsonIgnore + public List content() { + return content; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Role of the message author. + */ + public PlatformMessage withRole(PlatformMessageRole role) { + Utils.checkNotNull(role, "role"); + this.role = role; + return this; + } + + /** + * Content blocks in the message. + */ + public PlatformMessage withContent(List content) { + Utils.checkNotNull(content, "content"); + this.content = content; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformMessage other = (PlatformMessage) o; + return + Utils.enhancedDeepEquals(this.role, other.role) && + Utils.enhancedDeepEquals(this.content, other.content); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + role, content); + } + + @Override + public String toString() { + return Utils.toString(PlatformMessage.class, + "role", role, + "content", content); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PlatformMessageRole role; + + private List content; + + private Builder() { + // force use of static builder() method + } + + + /** + * Role of the message author. + */ + public Builder role(PlatformMessageRole role) { + Utils.checkNotNull(role, "role"); + this.role = role; + return this; + } + + + /** + * Content blocks in the message. + */ + public Builder content(List content) { + Utils.checkNotNull(content, "content"); + this.content = content; + return this; + } + + public PlatformMessage build() { + + return new PlatformMessage( + role, content); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageRole.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageRole.java new file mode 100644 index 00000000..33230232 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageRole.java @@ -0,0 +1,133 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 7cdabbc49413 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Wrapper for an "open" enum that can handle unknown values from API responses + * without runtime errors. Instances are immutable singletons with reference equality. + * Use {@code asEnum()} for switch expressions. + */ +/** + * PlatformMessageRole + * + *

Role of the message author. + */ +public class PlatformMessageRole { + + public static final PlatformMessageRole USER = new PlatformMessageRole("USER"); + public static final PlatformMessageRole GLEAN_AI = new PlatformMessageRole("GLEAN_AI"); + + // This map will grow whenever a Color gets created with a new + // unrecognized value (a potential memory leak if the user is not + // careful). Keep this field lower case to avoid clashing with + // generated member names which will always be upper cased (Java + // convention) + private static final Map values = createValuesMap(); + private static final Map enums = createEnumsMap(); + + private final String value; + + private PlatformMessageRole(String value) { + this.value = value; + } + + /** + * Returns a PlatformMessageRole with the given value. For a specific value the + * returned object will always be a singleton so reference equality + * is satisfied when the values are the same. + * + * @param value value to be wrapped as PlatformMessageRole + */ + @JsonCreator + public static PlatformMessageRole of(String value) { + synchronized (PlatformMessageRole.class) { + return values.computeIfAbsent(value, v -> new PlatformMessageRole(v)); + } + } + + @JsonValue + public String value() { + return value; + } + + public Optional asEnum() { + return Optional.ofNullable(enums.getOrDefault(value, null)); + } + + public boolean isKnown() { + return asEnum().isPresent(); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + PlatformMessageRole other = (PlatformMessageRole) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "PlatformMessageRole [value=" + value + "]"; + } + + // return an array just like an enum + public static PlatformMessageRole[] values() { + synchronized (PlatformMessageRole.class) { + return values.values().toArray(new PlatformMessageRole[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("USER", USER); + map.put("GLEAN_AI", GLEAN_AI); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("USER", PlatformMessageRoleEnum.USER); + map.put("GLEAN_AI", PlatformMessageRoleEnum.GLEAN_AI); + return map; + } + + + public enum PlatformMessageRoleEnum { + + USER("USER"), + GLEAN_AI("GLEAN_AI"),; + + private final String value; + + private PlatformMessageRoleEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageTextBlock.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageTextBlock.java new file mode 100644 index 00000000..8382416c --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformMessageTextBlock.java @@ -0,0 +1,131 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 6bc4d83f920a + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PlatformMessageTextBlock { + /** + * Text content. + */ + @JsonProperty("text") + private String text; + + + @JsonProperty("type") + private PlatformContentType type; + + @JsonCreator + public PlatformMessageTextBlock( + @JsonProperty("text") String text, + @JsonProperty("type") PlatformContentType type) { + Utils.checkNotNull(text, "text"); + Utils.checkNotNull(type, "type"); + this.text = text; + this.type = type; + } + + /** + * Text content. + */ + @JsonIgnore + public String text() { + return text; + } + + @JsonIgnore + public PlatformContentType type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Text content. + */ + public PlatformMessageTextBlock withText(String text) { + Utils.checkNotNull(text, "text"); + this.text = text; + return this; + } + + public PlatformMessageTextBlock withType(PlatformContentType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformMessageTextBlock other = (PlatformMessageTextBlock) o; + return + Utils.enhancedDeepEquals(this.text, other.text) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + text, type); + } + + @Override + public String toString() { + return Utils.toString(PlatformMessageTextBlock.class, + "text", text, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String text; + + private PlatformContentType type; + + private Builder() { + // force use of static builder() method + } + + + /** + * Text content. + */ + public Builder text(String text) { + Utils.checkNotNull(text, "text"); + this.text = text; + return this; + } + + + public Builder type(PlatformContentType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public PlatformMessageTextBlock build() { + + return new PlatformMessageTextBlock( + text, type); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformPersonReference.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformPersonReference.java new file mode 100644 index 00000000..bdb080cd --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformPersonReference.java @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 7772997bc703 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * PlatformPersonReference + * + *

A lightweight reference to a person, used where a payload merely points at someone. + */ +public class PlatformPersonReference { + /** + * Opaque Glean person ID. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + /** + * Display name. + */ + @JsonProperty("name") + private String name; + + @JsonCreator + public PlatformPersonReference( + @JsonProperty("id") Optional id, + @JsonProperty("name") String name) { + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + this.id = id; + this.name = name; + } + + public PlatformPersonReference( + String name) { + this(Optional.empty(), name); + } + + /** + * Opaque Glean person ID. + */ + @JsonIgnore + public Optional id() { + return id; + } + + /** + * Display name. + */ + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Opaque Glean person ID. + */ + public PlatformPersonReference withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + + /** + * Opaque Glean person ID. + */ + public PlatformPersonReference withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Display name. + */ + public PlatformPersonReference withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformPersonReference other = (PlatformPersonReference) o; + return + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + id, name); + } + + @Override + public String toString() { + return Utils.toString(PlatformPersonReference.class, + "id", id, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional id = Optional.empty(); + + private String name; + + private Builder() { + // force use of static builder() method + } + + + /** + * Opaque Glean person ID. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + /** + * Opaque Glean person ID. + */ + public Builder id(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * Display name. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public PlatformPersonReference build() { + + return new PlatformPersonReference( + id, name); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailCode.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailCode.java new file mode 100644 index 00000000..e5048270 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailCode.java @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 644320a1a246 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Wrapper for an "open" enum that can handle unknown values from API responses + * without runtime errors. Instances are immutable singletons with reference equality. + * Use {@code asEnum()} for switch expressions. + */ +/** + * PlatformProblemDetailCode + * + *

Stable machine-readable error code. + */ +public class PlatformProblemDetailCode { + + public static final PlatformProblemDetailCode INVALID_REQUEST = new PlatformProblemDetailCode("invalid_request"); + public static final PlatformProblemDetailCode MISSING_REQUIRED_FIELD = new PlatformProblemDetailCode("missing_required_field"); + public static final PlatformProblemDetailCode INVALID_PARAMETER = new PlatformProblemDetailCode("invalid_parameter"); + public static final PlatformProblemDetailCode INVALID_CURSOR = new PlatformProblemDetailCode("invalid_cursor"); + public static final PlatformProblemDetailCode EXPIRED_CURSOR = new PlatformProblemDetailCode("expired_cursor"); + public static final PlatformProblemDetailCode INVALID_FILTER = new PlatformProblemDetailCode("invalid_filter"); + public static final PlatformProblemDetailCode INVALID_DATASOURCE = new PlatformProblemDetailCode("invalid_datasource"); + public static final PlatformProblemDetailCode AUTHENTICATION_REQUIRED = new PlatformProblemDetailCode("authentication_required"); + public static final PlatformProblemDetailCode TOKEN_EXPIRED = new PlatformProblemDetailCode("token_expired"); + public static final PlatformProblemDetailCode INSUFFICIENT_PERMISSIONS = new PlatformProblemDetailCode("insufficient_permissions"); + public static final PlatformProblemDetailCode RESOURCE_NOT_FOUND = new PlatformProblemDetailCode("resource_not_found"); + public static final PlatformProblemDetailCode METHOD_NOT_ALLOWED = new PlatformProblemDetailCode("method_not_allowed"); + public static final PlatformProblemDetailCode REQUEST_TIMEOUT = new PlatformProblemDetailCode("request_timeout"); + public static final PlatformProblemDetailCode CONFLICT = new PlatformProblemDetailCode("conflict"); + public static final PlatformProblemDetailCode GONE = new PlatformProblemDetailCode("gone"); + public static final PlatformProblemDetailCode UNPROCESSABLE_QUERY = new PlatformProblemDetailCode("unprocessable_query"); + public static final PlatformProblemDetailCode RATE_LIMIT_EXCEEDED = new PlatformProblemDetailCode("rate_limit_exceeded"); + public static final PlatformProblemDetailCode INTERNAL_ERROR = new PlatformProblemDetailCode("internal_error"); + public static final PlatformProblemDetailCode SERVICE_UNAVAILABLE = new PlatformProblemDetailCode("service_unavailable"); + + // This map will grow whenever a Color gets created with a new + // unrecognized value (a potential memory leak if the user is not + // careful). Keep this field lower case to avoid clashing with + // generated member names which will always be upper cased (Java + // convention) + private static final Map values = createValuesMap(); + private static final Map enums = createEnumsMap(); + + private final String value; + + private PlatformProblemDetailCode(String value) { + this.value = value; + } + + /** + * Returns a PlatformProblemDetailCode with the given value. For a specific value the + * returned object will always be a singleton so reference equality + * is satisfied when the values are the same. + * + * @param value value to be wrapped as PlatformProblemDetailCode + */ + @JsonCreator + public static PlatformProblemDetailCode of(String value) { + synchronized (PlatformProblemDetailCode.class) { + return values.computeIfAbsent(value, v -> new PlatformProblemDetailCode(v)); + } + } + + @JsonValue + public String value() { + return value; + } + + public Optional asEnum() { + return Optional.ofNullable(enums.getOrDefault(value, null)); + } + + public boolean isKnown() { + return asEnum().isPresent(); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + PlatformProblemDetailCode other = (PlatformProblemDetailCode) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "PlatformProblemDetailCode [value=" + value + "]"; + } + + // return an array just like an enum + public static PlatformProblemDetailCode[] values() { + synchronized (PlatformProblemDetailCode.class) { + return values.values().toArray(new PlatformProblemDetailCode[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("invalid_request", INVALID_REQUEST); + map.put("missing_required_field", MISSING_REQUIRED_FIELD); + map.put("invalid_parameter", INVALID_PARAMETER); + map.put("invalid_cursor", INVALID_CURSOR); + map.put("expired_cursor", EXPIRED_CURSOR); + map.put("invalid_filter", INVALID_FILTER); + map.put("invalid_datasource", INVALID_DATASOURCE); + map.put("authentication_required", AUTHENTICATION_REQUIRED); + map.put("token_expired", TOKEN_EXPIRED); + map.put("insufficient_permissions", INSUFFICIENT_PERMISSIONS); + map.put("resource_not_found", RESOURCE_NOT_FOUND); + map.put("method_not_allowed", METHOD_NOT_ALLOWED); + map.put("request_timeout", REQUEST_TIMEOUT); + map.put("conflict", CONFLICT); + map.put("gone", GONE); + map.put("unprocessable_query", UNPROCESSABLE_QUERY); + map.put("rate_limit_exceeded", RATE_LIMIT_EXCEEDED); + map.put("internal_error", INTERNAL_ERROR); + map.put("service_unavailable", SERVICE_UNAVAILABLE); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("invalid_request", PlatformProblemDetailCodeEnum.INVALID_REQUEST); + map.put("missing_required_field", PlatformProblemDetailCodeEnum.MISSING_REQUIRED_FIELD); + map.put("invalid_parameter", PlatformProblemDetailCodeEnum.INVALID_PARAMETER); + map.put("invalid_cursor", PlatformProblemDetailCodeEnum.INVALID_CURSOR); + map.put("expired_cursor", PlatformProblemDetailCodeEnum.EXPIRED_CURSOR); + map.put("invalid_filter", PlatformProblemDetailCodeEnum.INVALID_FILTER); + map.put("invalid_datasource", PlatformProblemDetailCodeEnum.INVALID_DATASOURCE); + map.put("authentication_required", PlatformProblemDetailCodeEnum.AUTHENTICATION_REQUIRED); + map.put("token_expired", PlatformProblemDetailCodeEnum.TOKEN_EXPIRED); + map.put("insufficient_permissions", PlatformProblemDetailCodeEnum.INSUFFICIENT_PERMISSIONS); + map.put("resource_not_found", PlatformProblemDetailCodeEnum.RESOURCE_NOT_FOUND); + map.put("method_not_allowed", PlatformProblemDetailCodeEnum.METHOD_NOT_ALLOWED); + map.put("request_timeout", PlatformProblemDetailCodeEnum.REQUEST_TIMEOUT); + map.put("conflict", PlatformProblemDetailCodeEnum.CONFLICT); + map.put("gone", PlatformProblemDetailCodeEnum.GONE); + map.put("unprocessable_query", PlatformProblemDetailCodeEnum.UNPROCESSABLE_QUERY); + map.put("rate_limit_exceeded", PlatformProblemDetailCodeEnum.RATE_LIMIT_EXCEEDED); + map.put("internal_error", PlatformProblemDetailCodeEnum.INTERNAL_ERROR); + map.put("service_unavailable", PlatformProblemDetailCodeEnum.SERVICE_UNAVAILABLE); + return map; + } + + + public enum PlatformProblemDetailCodeEnum { + + INVALID_REQUEST("invalid_request"), + MISSING_REQUIRED_FIELD("missing_required_field"), + INVALID_PARAMETER("invalid_parameter"), + INVALID_CURSOR("invalid_cursor"), + EXPIRED_CURSOR("expired_cursor"), + INVALID_FILTER("invalid_filter"), + INVALID_DATASOURCE("invalid_datasource"), + AUTHENTICATION_REQUIRED("authentication_required"), + TOKEN_EXPIRED("token_expired"), + INSUFFICIENT_PERMISSIONS("insufficient_permissions"), + RESOURCE_NOT_FOUND("resource_not_found"), + METHOD_NOT_ALLOWED("method_not_allowed"), + REQUEST_TIMEOUT("request_timeout"), + CONFLICT("conflict"), + GONE("gone"), + UNPROCESSABLE_QUERY("unprocessable_query"), + RATE_LIMIT_EXCEEDED("rate_limit_exceeded"), + INTERNAL_ERROR("internal_error"), + SERVICE_UNAVAILABLE("service_unavailable"),; + + private final String value; + + private PlatformProblemDetailCodeEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailError.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailError.java new file mode 100644 index 00000000..6c2a2883 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformProblemDetailError.java @@ -0,0 +1,217 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 0e58c09c0b28 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * PlatformProblemDetailError + * + *

Field-level validation problem for a single offending field. + */ +public class PlatformProblemDetailError { + /** + * RFC 6901 JSON Pointer to the offending field. + */ + @JsonProperty("pointer") + private String pointer; + + /** + * Human-readable explanation for this field. + */ + @JsonProperty("detail") + private String detail; + + /** + * Stable machine-readable error code. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("code") + private Optional code; + + @JsonCreator + public PlatformProblemDetailError( + @JsonProperty("pointer") String pointer, + @JsonProperty("detail") String detail, + @JsonProperty("code") Optional code) { + Utils.checkNotNull(pointer, "pointer"); + Utils.checkNotNull(detail, "detail"); + Utils.checkNotNull(code, "code"); + this.pointer = pointer; + this.detail = detail; + this.code = code; + } + + public PlatformProblemDetailError( + String pointer, + String detail) { + this(pointer, detail, Optional.empty()); + } + + /** + * RFC 6901 JSON Pointer to the offending field. + */ + @JsonIgnore + public String pointer() { + return pointer; + } + + /** + * Human-readable explanation for this field. + */ + @JsonIgnore + public String detail() { + return detail; + } + + /** + * Stable machine-readable error code. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional code() { + return (Optional) code; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * RFC 6901 JSON Pointer to the offending field. + */ + public PlatformProblemDetailError withPointer(String pointer) { + Utils.checkNotNull(pointer, "pointer"); + this.pointer = pointer; + return this; + } + + /** + * Human-readable explanation for this field. + */ + public PlatformProblemDetailError withDetail(String detail) { + Utils.checkNotNull(detail, "detail"); + this.detail = detail; + return this; + } + + /** + * Stable machine-readable error code. + */ + public PlatformProblemDetailError withCode(PlatformProblemDetailCode code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + + /** + * Stable machine-readable error code. + */ + public PlatformProblemDetailError withCode(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformProblemDetailError other = (PlatformProblemDetailError) o; + return + Utils.enhancedDeepEquals(this.pointer, other.pointer) && + Utils.enhancedDeepEquals(this.detail, other.detail) && + Utils.enhancedDeepEquals(this.code, other.code); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + pointer, detail, code); + } + + @Override + public String toString() { + return Utils.toString(PlatformProblemDetailError.class, + "pointer", pointer, + "detail", detail, + "code", code); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String pointer; + + private String detail; + + private Optional code = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * RFC 6901 JSON Pointer to the offending field. + */ + public Builder pointer(String pointer) { + Utils.checkNotNull(pointer, "pointer"); + this.pointer = pointer; + return this; + } + + + /** + * Human-readable explanation for this field. + */ + public Builder detail(String detail) { + Utils.checkNotNull(detail, "detail"); + this.detail = detail; + return this; + } + + + /** + * Stable machine-readable error code. + */ + public Builder code(PlatformProblemDetailCode code) { + Utils.checkNotNull(code, "code"); + this.code = Optional.ofNullable(code); + return this; + } + + /** + * Stable machine-readable error code. + */ + public Builder code(Optional code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + public PlatformProblemDetailError build() { + + return new PlatformProblemDetailError( + pointer, detail, code); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformResult.java new file mode 100644 index 00000000..9f2a14b5 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformResult.java @@ -0,0 +1,624 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: cfedffb9bb25 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class PlatformResult { + /** + * Canonical URL of the result. + */ + @JsonProperty("url") + private String url; + + /** + * Result title. + */ + @JsonProperty("title") + private String title; + + /** + * Query-relevant plain-text excerpts from the result body. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("snippets") + private Optional> snippets; + + /** + * The datasource this result originates from. + */ + @JsonProperty("datasource") + private String datasource; + + /** + * The datasource instance this result originates from, if known. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("datasource_instance") + private JsonNullable datasourceInstance; + + /** + * The document type within the datasource. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("document_type") + private JsonNullable documentType; + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("creator") + private Optional creator; + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("owner") + private Optional owner; + + /** + * When the result was last modified. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updated_at") + private JsonNullable updatedAt; + + /** + * When the result was created. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("created_at") + private JsonNullable createdAt; + + @JsonCreator + public PlatformResult( + @JsonProperty("url") String url, + @JsonProperty("title") String title, + @JsonProperty("snippets") Optional> snippets, + @JsonProperty("datasource") String datasource, + @JsonProperty("datasource_instance") JsonNullable datasourceInstance, + @JsonProperty("document_type") JsonNullable documentType, + @JsonProperty("creator") Optional creator, + @JsonProperty("owner") Optional owner, + @JsonProperty("updated_at") JsonNullable updatedAt, + @JsonProperty("created_at") JsonNullable createdAt) { + Utils.checkNotNull(url, "url"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(snippets, "snippets"); + Utils.checkNotNull(datasource, "datasource"); + Utils.checkNotNull(datasourceInstance, "datasourceInstance"); + Utils.checkNotNull(documentType, "documentType"); + Utils.checkNotNull(creator, "creator"); + Utils.checkNotNull(owner, "owner"); + Utils.checkNotNull(updatedAt, "updatedAt"); + Utils.checkNotNull(createdAt, "createdAt"); + this.url = url; + this.title = title; + this.snippets = snippets; + this.datasource = datasource; + this.datasourceInstance = datasourceInstance; + this.documentType = documentType; + this.creator = creator; + this.owner = owner; + this.updatedAt = updatedAt; + this.createdAt = createdAt; + } + + public PlatformResult( + String url, + String title, + String datasource) { + this(url, title, Optional.empty(), + datasource, JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined()); + } + + /** + * Canonical URL of the result. + */ + @JsonIgnore + public String url() { + return url; + } + + /** + * Result title. + */ + @JsonIgnore + public String title() { + return title; + } + + /** + * Query-relevant plain-text excerpts from the result body. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> snippets() { + return (Optional>) snippets; + } + + /** + * The datasource this result originates from. + */ + @JsonIgnore + public String datasource() { + return datasource; + } + + /** + * The datasource instance this result originates from, if known. + */ + @JsonIgnore + public JsonNullable datasourceInstance() { + return datasourceInstance; + } + + /** + * The document type within the datasource. + */ + @JsonIgnore + public JsonNullable documentType() { + return documentType; + } + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional creator() { + return (Optional) creator; + } + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional owner() { + return (Optional) owner; + } + + /** + * When the result was last modified. + */ + @JsonIgnore + public JsonNullable updatedAt() { + return updatedAt; + } + + /** + * When the result was created. + */ + @JsonIgnore + public JsonNullable createdAt() { + return createdAt; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Canonical URL of the result. + */ + public PlatformResult withUrl(String url) { + Utils.checkNotNull(url, "url"); + this.url = url; + return this; + } + + /** + * Result title. + */ + public PlatformResult withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * Query-relevant plain-text excerpts from the result body. + */ + public PlatformResult withSnippets(List snippets) { + Utils.checkNotNull(snippets, "snippets"); + this.snippets = Optional.ofNullable(snippets); + return this; + } + + + /** + * Query-relevant plain-text excerpts from the result body. + */ + public PlatformResult withSnippets(Optional> snippets) { + Utils.checkNotNull(snippets, "snippets"); + this.snippets = snippets; + return this; + } + + /** + * The datasource this result originates from. + */ + public PlatformResult withDatasource(String datasource) { + Utils.checkNotNull(datasource, "datasource"); + this.datasource = datasource; + return this; + } + + /** + * The datasource instance this result originates from, if known. + */ + public PlatformResult withDatasourceInstance(String datasourceInstance) { + Utils.checkNotNull(datasourceInstance, "datasourceInstance"); + this.datasourceInstance = JsonNullable.of(datasourceInstance); + return this; + } + + /** + * The datasource instance this result originates from, if known. + */ + public PlatformResult withDatasourceInstance(JsonNullable datasourceInstance) { + Utils.checkNotNull(datasourceInstance, "datasourceInstance"); + this.datasourceInstance = datasourceInstance; + return this; + } + + /** + * The document type within the datasource. + */ + public PlatformResult withDocumentType(String documentType) { + Utils.checkNotNull(documentType, "documentType"); + this.documentType = JsonNullable.of(documentType); + return this; + } + + /** + * The document type within the datasource. + */ + public PlatformResult withDocumentType(JsonNullable documentType) { + Utils.checkNotNull(documentType, "documentType"); + this.documentType = documentType; + return this; + } + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public PlatformResult withCreator(PlatformPersonReference creator) { + Utils.checkNotNull(creator, "creator"); + this.creator = Optional.ofNullable(creator); + return this; + } + + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public PlatformResult withCreator(Optional creator) { + Utils.checkNotNull(creator, "creator"); + this.creator = creator; + return this; + } + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public PlatformResult withOwner(PlatformPersonReference owner) { + Utils.checkNotNull(owner, "owner"); + this.owner = Optional.ofNullable(owner); + return this; + } + + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public PlatformResult withOwner(Optional owner) { + Utils.checkNotNull(owner, "owner"); + this.owner = owner; + return this; + } + + /** + * When the result was last modified. + */ + public PlatformResult withUpdatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = JsonNullable.of(updatedAt); + return this; + } + + /** + * When the result was last modified. + */ + public PlatformResult withUpdatedAt(JsonNullable updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + /** + * When the result was created. + */ + public PlatformResult withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = JsonNullable.of(createdAt); + return this; + } + + /** + * When the result was created. + */ + public PlatformResult withCreatedAt(JsonNullable createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformResult other = (PlatformResult) o; + return + Utils.enhancedDeepEquals(this.url, other.url) && + Utils.enhancedDeepEquals(this.title, other.title) && + Utils.enhancedDeepEquals(this.snippets, other.snippets) && + Utils.enhancedDeepEquals(this.datasource, other.datasource) && + Utils.enhancedDeepEquals(this.datasourceInstance, other.datasourceInstance) && + Utils.enhancedDeepEquals(this.documentType, other.documentType) && + Utils.enhancedDeepEquals(this.creator, other.creator) && + Utils.enhancedDeepEquals(this.owner, other.owner) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + url, title, snippets, + datasource, datasourceInstance, documentType, + creator, owner, updatedAt, + createdAt); + } + + @Override + public String toString() { + return Utils.toString(PlatformResult.class, + "url", url, + "title", title, + "snippets", snippets, + "datasource", datasource, + "datasourceInstance", datasourceInstance, + "documentType", documentType, + "creator", creator, + "owner", owner, + "updatedAt", updatedAt, + "createdAt", createdAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String url; + + private String title; + + private Optional> snippets = Optional.empty(); + + private String datasource; + + private JsonNullable datasourceInstance = JsonNullable.undefined(); + + private JsonNullable documentType = JsonNullable.undefined(); + + private Optional creator = Optional.empty(); + + private Optional owner = Optional.empty(); + + private JsonNullable updatedAt = JsonNullable.undefined(); + + private JsonNullable createdAt = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Canonical URL of the result. + */ + public Builder url(String url) { + Utils.checkNotNull(url, "url"); + this.url = url; + return this; + } + + + /** + * Result title. + */ + public Builder title(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + + /** + * Query-relevant plain-text excerpts from the result body. + */ + public Builder snippets(List snippets) { + Utils.checkNotNull(snippets, "snippets"); + this.snippets = Optional.ofNullable(snippets); + return this; + } + + /** + * Query-relevant plain-text excerpts from the result body. + */ + public Builder snippets(Optional> snippets) { + Utils.checkNotNull(snippets, "snippets"); + this.snippets = snippets; + return this; + } + + + /** + * The datasource this result originates from. + */ + public Builder datasource(String datasource) { + Utils.checkNotNull(datasource, "datasource"); + this.datasource = datasource; + return this; + } + + + /** + * The datasource instance this result originates from, if known. + */ + public Builder datasourceInstance(String datasourceInstance) { + Utils.checkNotNull(datasourceInstance, "datasourceInstance"); + this.datasourceInstance = JsonNullable.of(datasourceInstance); + return this; + } + + /** + * The datasource instance this result originates from, if known. + */ + public Builder datasourceInstance(JsonNullable datasourceInstance) { + Utils.checkNotNull(datasourceInstance, "datasourceInstance"); + this.datasourceInstance = datasourceInstance; + return this; + } + + + /** + * The document type within the datasource. + */ + public Builder documentType(String documentType) { + Utils.checkNotNull(documentType, "documentType"); + this.documentType = JsonNullable.of(documentType); + return this; + } + + /** + * The document type within the datasource. + */ + public Builder documentType(JsonNullable documentType) { + Utils.checkNotNull(documentType, "documentType"); + this.documentType = documentType; + return this; + } + + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public Builder creator(PlatformPersonReference creator) { + Utils.checkNotNull(creator, "creator"); + this.creator = Optional.ofNullable(creator); + return this; + } + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public Builder creator(Optional creator) { + Utils.checkNotNull(creator, "creator"); + this.creator = creator; + return this; + } + + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public Builder owner(PlatformPersonReference owner) { + Utils.checkNotNull(owner, "owner"); + this.owner = Optional.ofNullable(owner); + return this; + } + + /** + * A lightweight reference to a person, used where a payload merely points at someone. + */ + public Builder owner(Optional owner) { + Utils.checkNotNull(owner, "owner"); + this.owner = owner; + return this; + } + + + /** + * When the result was last modified. + */ + public Builder updatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = JsonNullable.of(updatedAt); + return this; + } + + /** + * When the result was last modified. + */ + public Builder updatedAt(JsonNullable updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + + /** + * When the result was created. + */ + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = JsonNullable.of(createdAt); + return this; + } + + /** + * When the result was created. + */ + public Builder createdAt(JsonNullable createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public PlatformResult build() { + + return new PlatformResult( + url, title, snippets, + datasource, datasourceInstance, documentType, + creator, owner, updatedAt, + createdAt); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchRequest.java new file mode 100644 index 00000000..41659fab --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchRequest.java @@ -0,0 +1,546 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 87faac7fcad3 + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.utils.LazySingletonValue; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class PlatformSearchRequest { + /** + * The search query string. Supports inline operators such as `from:jane type:document app:confluence`. + * Inline operators are AND'd with structured `filters`. + */ + @JsonProperty("query") + private String query; + + /** + * Number of results to return per page. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("page_size") + private Optional pageSize; + + /** + * Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("cursor") + private JsonNullable cursor; + + /** + * Restrict results to specific datasources. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("datasources") + private Optional> datasources; + + /** + * Restrict results to specific datasource instances. Values are datasource instance identifiers + * returned by `GET /api/search/filters`. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("datasource_instances") + private Optional> datasourceInstances; + + /** + * Structured filters applied to search results. Equality operators OR multiple values within a filter. + * Multiple filters are AND'd together, including range filters on the same field. + * + *

Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the + * same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty + * result set. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filters") + private Optional> filters; + + /** + * Filter results to those last updated within this range. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("time_range") + private Optional timeRange; + + @JsonCreator + public PlatformSearchRequest( + @JsonProperty("query") String query, + @JsonProperty("page_size") Optional pageSize, + @JsonProperty("cursor") JsonNullable cursor, + @JsonProperty("datasources") Optional> datasources, + @JsonProperty("datasource_instances") Optional> datasourceInstances, + @JsonProperty("filters") Optional> filters, + @JsonProperty("time_range") Optional timeRange) { + Utils.checkNotNull(query, "query"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(cursor, "cursor"); + Utils.checkNotNull(datasources, "datasources"); + Utils.checkNotNull(datasourceInstances, "datasourceInstances"); + Utils.checkNotNull(filters, "filters"); + Utils.checkNotNull(timeRange, "timeRange"); + this.query = query; + this.pageSize = pageSize; + this.cursor = cursor; + this.datasources = datasources; + this.datasourceInstances = datasourceInstances; + this.filters = filters; + this.timeRange = timeRange; + } + + public PlatformSearchRequest( + String query) { + this(query, Optional.empty(), JsonNullable.undefined(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); + } + + /** + * The search query string. Supports inline operators such as `from:jane type:document app:confluence`. + * Inline operators are AND'd with structured `filters`. + */ + @JsonIgnore + public String query() { + return query; + } + + /** + * Number of results to return per page. + */ + @JsonIgnore + public Optional pageSize() { + return pageSize; + } + + /** + * Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + */ + @JsonIgnore + public JsonNullable cursor() { + return cursor; + } + + /** + * Restrict results to specific datasources. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> datasources() { + return (Optional>) datasources; + } + + /** + * Restrict results to specific datasource instances. Values are datasource instance identifiers + * returned by `GET /api/search/filters`. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> datasourceInstances() { + return (Optional>) datasourceInstances; + } + + /** + * Structured filters applied to search results. Equality operators OR multiple values within a filter. + * Multiple filters are AND'd together, including range filters on the same field. + * + *

Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the + * same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty + * result set. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> filters() { + return (Optional>) filters; + } + + /** + * Filter results to those last updated within this range. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional timeRange() { + return (Optional) timeRange; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The search query string. Supports inline operators such as `from:jane type:document app:confluence`. + * Inline operators are AND'd with structured `filters`. + */ + public PlatformSearchRequest withQuery(String query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + /** + * Number of results to return per page. + */ + public PlatformSearchRequest withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + + /** + * Number of results to return per page. + */ + public PlatformSearchRequest withPageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + /** + * Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + */ + public PlatformSearchRequest withCursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = JsonNullable.of(cursor); + return this; + } + + /** + * Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + */ + public PlatformSearchRequest withCursor(JsonNullable cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + /** + * Restrict results to specific datasources. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public PlatformSearchRequest withDatasources(List datasources) { + Utils.checkNotNull(datasources, "datasources"); + this.datasources = Optional.ofNullable(datasources); + return this; + } + + + /** + * Restrict results to specific datasources. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public PlatformSearchRequest withDatasources(Optional> datasources) { + Utils.checkNotNull(datasources, "datasources"); + this.datasources = datasources; + return this; + } + + /** + * Restrict results to specific datasource instances. Values are datasource instance identifiers + * returned by `GET /api/search/filters`. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public PlatformSearchRequest withDatasourceInstances(List datasourceInstances) { + Utils.checkNotNull(datasourceInstances, "datasourceInstances"); + this.datasourceInstances = Optional.ofNullable(datasourceInstances); + return this; + } + + + /** + * Restrict results to specific datasource instances. Values are datasource instance identifiers + * returned by `GET /api/search/filters`. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public PlatformSearchRequest withDatasourceInstances(Optional> datasourceInstances) { + Utils.checkNotNull(datasourceInstances, "datasourceInstances"); + this.datasourceInstances = datasourceInstances; + return this; + } + + /** + * Structured filters applied to search results. Equality operators OR multiple values within a filter. + * Multiple filters are AND'd together, including range filters on the same field. + * + *

Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the + * same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty + * result set. + */ + public PlatformSearchRequest withFilters(List filters) { + Utils.checkNotNull(filters, "filters"); + this.filters = Optional.ofNullable(filters); + return this; + } + + + /** + * Structured filters applied to search results. Equality operators OR multiple values within a filter. + * Multiple filters are AND'd together, including range filters on the same field. + * + *

Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the + * same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty + * result set. + */ + public PlatformSearchRequest withFilters(Optional> filters) { + Utils.checkNotNull(filters, "filters"); + this.filters = filters; + return this; + } + + /** + * Filter results to those last updated within this range. + */ + public PlatformSearchRequest withTimeRange(PlatformTimeRange timeRange) { + Utils.checkNotNull(timeRange, "timeRange"); + this.timeRange = Optional.ofNullable(timeRange); + return this; + } + + + /** + * Filter results to those last updated within this range. + */ + public PlatformSearchRequest withTimeRange(Optional timeRange) { + Utils.checkNotNull(timeRange, "timeRange"); + this.timeRange = timeRange; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformSearchRequest other = (PlatformSearchRequest) o; + return + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.datasources, other.datasources) && + Utils.enhancedDeepEquals(this.datasourceInstances, other.datasourceInstances) && + Utils.enhancedDeepEquals(this.filters, other.filters) && + Utils.enhancedDeepEquals(this.timeRange, other.timeRange); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + query, pageSize, cursor, + datasources, datasourceInstances, filters, + timeRange); + } + + @Override + public String toString() { + return Utils.toString(PlatformSearchRequest.class, + "query", query, + "pageSize", pageSize, + "cursor", cursor, + "datasources", datasources, + "datasourceInstances", datasourceInstances, + "filters", filters, + "timeRange", timeRange); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String query; + + private Optional pageSize; + + private JsonNullable cursor = JsonNullable.undefined(); + + private Optional> datasources = Optional.empty(); + + private Optional> datasourceInstances = Optional.empty(); + + private Optional> filters = Optional.empty(); + + private Optional timeRange = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The search query string. Supports inline operators such as `from:jane type:document app:confluence`. + * Inline operators are AND'd with structured `filters`. + */ + public Builder query(String query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + + /** + * Number of results to return per page. + */ + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * Number of results to return per page. + */ + public Builder pageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + /** + * Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + */ + public Builder cursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = JsonNullable.of(cursor); + return this; + } + + /** + * Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. + */ + public Builder cursor(JsonNullable cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + + /** + * Restrict results to specific datasources. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public Builder datasources(List datasources) { + Utils.checkNotNull(datasources, "datasources"); + this.datasources = Optional.ofNullable(datasources); + return this; + } + + /** + * Restrict results to specific datasources. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public Builder datasources(Optional> datasources) { + Utils.checkNotNull(datasources, "datasources"); + this.datasources = datasources; + return this; + } + + + /** + * Restrict results to specific datasource instances. Values are datasource instance identifiers + * returned by `GET /api/search/filters`. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public Builder datasourceInstances(List datasourceInstances) { + Utils.checkNotNull(datasourceInstances, "datasourceInstances"); + this.datasourceInstances = Optional.ofNullable(datasourceInstances); + return this; + } + + /** + * Restrict results to specific datasource instances. Values are datasource instance identifiers + * returned by `GET /api/search/filters`. Requests must not specify both `datasources` and + * `datasource_instances`. + */ + public Builder datasourceInstances(Optional> datasourceInstances) { + Utils.checkNotNull(datasourceInstances, "datasourceInstances"); + this.datasourceInstances = datasourceInstances; + return this; + } + + + /** + * Structured filters applied to search results. Equality operators OR multiple values within a filter. + * Multiple filters are AND'd together, including range filters on the same field. + * + *

Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the + * same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty + * result set. + */ + public Builder filters(List filters) { + Utils.checkNotNull(filters, "filters"); + this.filters = Optional.ofNullable(filters); + return this; + } + + /** + * Structured filters applied to search results. Equality operators OR multiple values within a filter. + * Multiple filters are AND'd together, including range filters on the same field. + * + *

Filters are AND'd with any inline operators in `query`. Note that conflicting constraints on the + * same field (e.g., `type:document` in the query and `type: spreadsheet` in a filter) produce an empty + * result set. + */ + public Builder filters(Optional> filters) { + Utils.checkNotNull(filters, "filters"); + this.filters = filters; + return this; + } + + + /** + * Filter results to those last updated within this range. + */ + public Builder timeRange(PlatformTimeRange timeRange) { + Utils.checkNotNull(timeRange, "timeRange"); + this.timeRange = Optional.ofNullable(timeRange); + return this; + } + + /** + * Filter results to those last updated within this range. + */ + public Builder timeRange(Optional timeRange) { + Utils.checkNotNull(timeRange, "timeRange"); + this.timeRange = timeRange; + return this; + } + + public PlatformSearchRequest build() { + if (pageSize == null) { + pageSize = _SINGLETON_VALUE_PageSize.value(); + } + + return new PlatformSearchRequest( + query, pageSize, cursor, + datasources, datasourceInstances, filters, + timeRange); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_PageSize = + new LazySingletonValue<>( + "page_size", + "10", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchResponse.java new file mode 100644 index 00000000..bba2b205 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformSearchResponse.java @@ -0,0 +1,257 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 170859d5c40a + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class PlatformSearchResponse { + /** + * Ordered list of search results. + */ + @JsonProperty("results") + private List results; + + /** + * Indicates whether additional pages of results are available. + */ + @JsonProperty("has_more") + private boolean hasMore; + + /** + * Opaque token to pass as `cursor` in the next request. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("next_cursor") + private Optional nextCursor; + + /** + * Platform-generated request ID for support correlation. + */ + @JsonProperty("request_id") + private String requestId; + + @JsonCreator + public PlatformSearchResponse( + @JsonProperty("results") List results, + @JsonProperty("has_more") boolean hasMore, + @JsonProperty("next_cursor") Optional nextCursor, + @JsonProperty("request_id") String requestId) { + Utils.checkNotNull(results, "results"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(nextCursor, "nextCursor"); + Utils.checkNotNull(requestId, "requestId"); + this.results = results; + this.hasMore = hasMore; + this.nextCursor = nextCursor; + this.requestId = requestId; + } + + public PlatformSearchResponse( + List results, + boolean hasMore, + String requestId) { + this(results, hasMore, Optional.empty(), + requestId); + } + + /** + * Ordered list of search results. + */ + @JsonIgnore + public List results() { + return results; + } + + /** + * Indicates whether additional pages of results are available. + */ + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + /** + * Opaque token to pass as `cursor` in the next request. + */ + @JsonIgnore + public Optional nextCursor() { + return nextCursor; + } + + /** + * Platform-generated request ID for support correlation. + */ + @JsonIgnore + public String requestId() { + return requestId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Ordered list of search results. + */ + public PlatformSearchResponse withResults(List results) { + Utils.checkNotNull(results, "results"); + this.results = results; + return this; + } + + /** + * Indicates whether additional pages of results are available. + */ + public PlatformSearchResponse withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + /** + * Opaque token to pass as `cursor` in the next request. + */ + public PlatformSearchResponse withNextCursor(String nextCursor) { + Utils.checkNotNull(nextCursor, "nextCursor"); + this.nextCursor = Optional.ofNullable(nextCursor); + return this; + } + + + /** + * Opaque token to pass as `cursor` in the next request. + */ + public PlatformSearchResponse withNextCursor(Optional nextCursor) { + Utils.checkNotNull(nextCursor, "nextCursor"); + this.nextCursor = nextCursor; + return this; + } + + /** + * Platform-generated request ID for support correlation. + */ + public PlatformSearchResponse withRequestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformSearchResponse other = (PlatformSearchResponse) o; + return + Utils.enhancedDeepEquals(this.results, other.results) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.nextCursor, other.nextCursor) && + Utils.enhancedDeepEquals(this.requestId, other.requestId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + results, hasMore, nextCursor, + requestId); + } + + @Override + public String toString() { + return Utils.toString(PlatformSearchResponse.class, + "results", results, + "hasMore", hasMore, + "nextCursor", nextCursor, + "requestId", requestId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List results; + + private Boolean hasMore; + + private Optional nextCursor = Optional.empty(); + + private String requestId; + + private Builder() { + // force use of static builder() method + } + + + /** + * Ordered list of search results. + */ + public Builder results(List results) { + Utils.checkNotNull(results, "results"); + this.results = results; + return this; + } + + + /** + * Indicates whether additional pages of results are available. + */ + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + /** + * Opaque token to pass as `cursor` in the next request. + */ + public Builder nextCursor(String nextCursor) { + Utils.checkNotNull(nextCursor, "nextCursor"); + this.nextCursor = Optional.ofNullable(nextCursor); + return this; + } + + /** + * Opaque token to pass as `cursor` in the next request. + */ + public Builder nextCursor(Optional nextCursor) { + Utils.checkNotNull(nextCursor, "nextCursor"); + this.nextCursor = nextCursor; + return this; + } + + + /** + * Platform-generated request ID for support correlation. + */ + public Builder requestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + public PlatformSearchResponse build() { + + return new PlatformSearchResponse( + results, hasMore, nextCursor, + requestId); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformTimeRange.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformTimeRange.java new file mode 100644 index 00000000..560c03ad --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformTimeRange.java @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: ab9269c32c6a + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Optional; + +/** + * PlatformTimeRange + * + *

Filter results to those last updated within this range. + */ +public class PlatformTimeRange { + /** + * Inclusive lower bound in ISO 8601 format. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start") + private Optional start; + + /** + * Exclusive upper bound in ISO 8601 format. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("end") + private Optional end; + + @JsonCreator + public PlatformTimeRange( + @JsonProperty("start") Optional start, + @JsonProperty("end") Optional end) { + Utils.checkNotNull(start, "start"); + Utils.checkNotNull(end, "end"); + this.start = start; + this.end = end; + } + + public PlatformTimeRange() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Inclusive lower bound in ISO 8601 format. + */ + @JsonIgnore + public Optional start() { + return start; + } + + /** + * Exclusive upper bound in ISO 8601 format. + */ + @JsonIgnore + public Optional end() { + return end; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Inclusive lower bound in ISO 8601 format. + */ + public PlatformTimeRange withStart(OffsetDateTime start) { + Utils.checkNotNull(start, "start"); + this.start = Optional.ofNullable(start); + return this; + } + + + /** + * Inclusive lower bound in ISO 8601 format. + */ + public PlatformTimeRange withStart(Optional start) { + Utils.checkNotNull(start, "start"); + this.start = start; + return this; + } + + /** + * Exclusive upper bound in ISO 8601 format. + */ + public PlatformTimeRange withEnd(OffsetDateTime end) { + Utils.checkNotNull(end, "end"); + this.end = Optional.ofNullable(end); + return this; + } + + + /** + * Exclusive upper bound in ISO 8601 format. + */ + public PlatformTimeRange withEnd(Optional end) { + Utils.checkNotNull(end, "end"); + this.end = end; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformTimeRange other = (PlatformTimeRange) o; + return + Utils.enhancedDeepEquals(this.start, other.start) && + Utils.enhancedDeepEquals(this.end, other.end); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + start, end); + } + + @Override + public String toString() { + return Utils.toString(PlatformTimeRange.class, + "start", start, + "end", end); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional start = Optional.empty(); + + private Optional end = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Inclusive lower bound in ISO 8601 format. + */ + public Builder start(OffsetDateTime start) { + Utils.checkNotNull(start, "start"); + this.start = Optional.ofNullable(start); + return this; + } + + /** + * Inclusive lower bound in ISO 8601 format. + */ + public Builder start(Optional start) { + Utils.checkNotNull(start, "start"); + this.start = start; + return this; + } + + + /** + * Exclusive upper bound in ISO 8601 format. + */ + public Builder end(OffsetDateTime end) { + Utils.checkNotNull(end, "end"); + this.end = Optional.ofNullable(end); + return this; + } + + /** + * Exclusive upper bound in ISO 8601 format. + */ + public Builder end(Optional end) { + Utils.checkNotNull(end, "end"); + this.end = end; + return this; + } + + public PlatformTimeRange build() { + + return new PlatformTimeRange( + start, end); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/errors/PlatformProblemDetailException.java b/src/main/java/com/glean/api_client/glean_api_client/models/errors/PlatformProblemDetailException.java new file mode 100644 index 00000000..a98aab68 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/errors/PlatformProblemDetailException.java @@ -0,0 +1,603 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 3a28c9778452 + */ +package com.glean.api_client.glean_api_client.models.errors; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.models.components.PlatformProblemDetailCode; +import com.glean.api_client.glean_api_client.models.components.PlatformProblemDetailError; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Utils; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Deprecated; +import java.lang.Exception; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.lang.Throwable; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +@SuppressWarnings("serial") +public class PlatformProblemDetailException extends GleanError { + + @Nullable + private final Data data; + + @Nullable + private final Throwable deserializationException; + + public PlatformProblemDetailException( + int code, + byte[] body, + HttpResponse rawResponse, + @Nullable Data data, + @Nullable Throwable deserializationException) { + super("API error occurred", code, body, rawResponse, null); + this.data = data; + this.deserializationException = deserializationException; + } + + /** + * Parse a response into an instance of PlatformProblemDetailException. If deserialization of the response body fails, + * the resulting PlatformProblemDetailException instance will have a null data() value and a non-null deserializationException(). + */ + public static PlatformProblemDetailException from(HttpResponse response) { + try { + byte[] bytes = Utils.extractByteArrayFromBody(response); + Data data = Utils.mapper().readValue(bytes, Data.class); + return new PlatformProblemDetailException(response.statusCode(), bytes, response, data, null); + } catch (Exception e) { + return new PlatformProblemDetailException(response.statusCode(), null, response, null, e); + } + } + + /** + * Parse a response into an instance of PlatformProblemDetailException asynchronously. If deserialization of the response body fails, + * the resulting PlatformProblemDetailException instance will have a null data() value and a non-null deserializationException(). + */ + public static CompletableFuture fromAsync(HttpResponse response) { + return response.body() + .toByteArray() + .handle((bytes, err) -> { + // if a body read error occurs, we want to transform the exception + if (err != null) { + throw new AsyncAPIException( + "Error reading response body: " + err.getMessage(), + response.statusCode(), + null, + response, + err); + } + + try { + return new PlatformProblemDetailException( + response.statusCode(), + bytes, + response, + Utils.mapper().readValue( + bytes, + new TypeReference() { + }), + null); + } catch (Exception e) { + return new PlatformProblemDetailException( + response.statusCode(), + bytes, + response, + null, + e); + } + }); + } + + /** + * URI identifying the error type. + */ + @Deprecated + public Optional type() { + return data().map(Data::type); + } + + /** + * Short, human-readable summary of the error. + */ + @Deprecated + public Optional title() { + return data().map(Data::title); + } + + /** + * HTTP status code mirrored from the response. + */ + @Deprecated + public Optional status() { + return data().map(Data::status); + } + + /** + * Human-readable explanation specific to this occurrence. + */ + @Deprecated + public Optional detail() { + return data().map(Data::detail); + } + + /** + * Direct URL to documentation for this error code. + */ + @Deprecated + public Optional documentationUrl() { + return data().flatMap(Data::documentationUrl); + } + + /** + * Platform-generated request ID for support correlation. + */ + @Deprecated + public Optional requestId() { + return data().map(Data::requestId); + } + + /** + * Field-level validation problems, one entry per offending field. + */ + @Deprecated + public Optional> errors() { + return data().flatMap(Data::errors); + } + + public Optional data() { + return Optional.ofNullable(data); + } + + /** + * Returns the exception if an error occurs while deserializing the response body. + */ + public Optional deserializationException() { + return Optional.ofNullable(deserializationException); + } + /** + * Data + * + *

Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable + * classification and self-service remediation. + */ + public static class Data { + /** + * URI identifying the error type. + */ + @JsonProperty("type") + private String type; + + /** + * Short, human-readable summary of the error. + */ + @JsonProperty("title") + private String title; + + /** + * HTTP status code mirrored from the response. + */ + @JsonProperty("status") + private long status; + + /** + * Human-readable explanation specific to this occurrence. + */ + @JsonProperty("detail") + private String detail; + + /** + * Stable machine-readable error code. + */ + @JsonProperty("code") + private PlatformProblemDetailCode code; + + /** + * Direct URL to documentation for this error code. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("documentation_url") + private Optional documentationUrl; + + /** + * Platform-generated request ID for support correlation. + */ + @JsonProperty("request_id") + private String requestId; + + /** + * Field-level validation problems, one entry per offending field. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errors") + private Optional> errors; + + @JsonCreator + public Data( + @JsonProperty("type") String type, + @JsonProperty("title") String title, + @JsonProperty("status") long status, + @JsonProperty("detail") String detail, + @JsonProperty("code") PlatformProblemDetailCode code, + @JsonProperty("documentation_url") Optional documentationUrl, + @JsonProperty("request_id") String requestId, + @JsonProperty("errors") Optional> errors) { + Utils.checkNotNull(type, "type"); + Utils.checkNotNull(title, "title"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(detail, "detail"); + Utils.checkNotNull(code, "code"); + Utils.checkNotNull(documentationUrl, "documentationUrl"); + Utils.checkNotNull(requestId, "requestId"); + Utils.checkNotNull(errors, "errors"); + this.type = type; + this.title = title; + this.status = status; + this.detail = detail; + this.code = code; + this.documentationUrl = documentationUrl; + this.requestId = requestId; + this.errors = errors; + } + + public Data( + String type, + String title, + long status, + String detail, + PlatformProblemDetailCode code, + String requestId) { + this(type, title, status, + detail, code, Optional.empty(), + requestId, Optional.empty()); + } + + /** + * URI identifying the error type. + */ + @JsonIgnore + public String type() { + return type; + } + + /** + * Short, human-readable summary of the error. + */ + @JsonIgnore + public String title() { + return title; + } + + /** + * HTTP status code mirrored from the response. + */ + @JsonIgnore + public long status() { + return status; + } + + /** + * Human-readable explanation specific to this occurrence. + */ + @JsonIgnore + public String detail() { + return detail; + } + + /** + * Stable machine-readable error code. + */ + @JsonIgnore + public PlatformProblemDetailCode code() { + return code; + } + + /** + * Direct URL to documentation for this error code. + */ + @JsonIgnore + public Optional documentationUrl() { + return documentationUrl; + } + + /** + * Platform-generated request ID for support correlation. + */ + @JsonIgnore + public String requestId() { + return requestId; + } + + /** + * Field-level validation problems, one entry per offending field. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> errors() { + return (Optional>) errors; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * URI identifying the error type. + */ + public Data withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + /** + * Short, human-readable summary of the error. + */ + public Data withTitle(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + /** + * HTTP status code mirrored from the response. + */ + public Data withStatus(long status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Human-readable explanation specific to this occurrence. + */ + public Data withDetail(String detail) { + Utils.checkNotNull(detail, "detail"); + this.detail = detail; + return this; + } + + /** + * Stable machine-readable error code. + */ + public Data withCode(PlatformProblemDetailCode code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + /** + * Direct URL to documentation for this error code. + */ + public Data withDocumentationUrl(String documentationUrl) { + Utils.checkNotNull(documentationUrl, "documentationUrl"); + this.documentationUrl = Optional.ofNullable(documentationUrl); + return this; + } + + + /** + * Direct URL to documentation for this error code. + */ + public Data withDocumentationUrl(Optional documentationUrl) { + Utils.checkNotNull(documentationUrl, "documentationUrl"); + this.documentationUrl = documentationUrl; + return this; + } + + /** + * Platform-generated request ID for support correlation. + */ + public Data withRequestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + /** + * Field-level validation problems, one entry per offending field. + */ + public Data withErrors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + + /** + * Field-level validation problems, one entry per offending field. + */ + public Data withErrors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return + Utils.enhancedDeepEquals(this.type, other.type) && + Utils.enhancedDeepEquals(this.title, other.title) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.detail, other.detail) && + Utils.enhancedDeepEquals(this.code, other.code) && + Utils.enhancedDeepEquals(this.documentationUrl, other.documentationUrl) && + Utils.enhancedDeepEquals(this.requestId, other.requestId) && + Utils.enhancedDeepEquals(this.errors, other.errors); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + type, title, status, + detail, code, documentationUrl, + requestId, errors); + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "type", type, + "title", title, + "status", status, + "detail", detail, + "code", code, + "documentationUrl", documentationUrl, + "requestId", requestId, + "errors", errors); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String type; + + private String title; + + private Long status; + + private String detail; + + private PlatformProblemDetailCode code; + + private Optional documentationUrl = Optional.empty(); + + private String requestId; + + private Optional> errors = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * URI identifying the error type. + */ + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + + /** + * Short, human-readable summary of the error. + */ + public Builder title(String title) { + Utils.checkNotNull(title, "title"); + this.title = title; + return this; + } + + + /** + * HTTP status code mirrored from the response. + */ + public Builder status(long status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + + /** + * Human-readable explanation specific to this occurrence. + */ + public Builder detail(String detail) { + Utils.checkNotNull(detail, "detail"); + this.detail = detail; + return this; + } + + + /** + * Stable machine-readable error code. + */ + public Builder code(PlatformProblemDetailCode code) { + Utils.checkNotNull(code, "code"); + this.code = code; + return this; + } + + + /** + * Direct URL to documentation for this error code. + */ + public Builder documentationUrl(String documentationUrl) { + Utils.checkNotNull(documentationUrl, "documentationUrl"); + this.documentationUrl = Optional.ofNullable(documentationUrl); + return this; + } + + /** + * Direct URL to documentation for this error code. + */ + public Builder documentationUrl(Optional documentationUrl) { + Utils.checkNotNull(documentationUrl, "documentationUrl"); + this.documentationUrl = documentationUrl; + return this; + } + + + /** + * Platform-generated request ID for support correlation. + */ + public Builder requestId(String requestId) { + Utils.checkNotNull(requestId, "requestId"); + this.requestId = requestId; + return this; + } + + + /** + * Field-level validation problems, one entry per offending field. + */ + public Builder errors(List errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = Optional.ofNullable(errors); + return this; + } + + /** + * Field-level validation problems, one entry per offending field. + */ + public Builder errors(Optional> errors) { + Utils.checkNotNull(errors, "errors"); + this.errors = errors; + return this; + } + + public Data build() { + + return new Data( + type, title, status, + detail, code, documentationUrl, + requestId, errors); + } + + } + } + +} + diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequest.java new file mode 100644 index 00000000..448692af --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequest.java @@ -0,0 +1,132 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: f7509daf572d + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunCreateRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PlatformAgentsCreateRunRequest { + /** + * ID of the agent to run. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=agent_id") + private String agentId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private PlatformAgentRunCreateRequest platformAgentRunCreateRequest; + + @JsonCreator + public PlatformAgentsCreateRunRequest( + String agentId, + PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + Utils.checkNotNull(agentId, "agentId"); + Utils.checkNotNull(platformAgentRunCreateRequest, "platformAgentRunCreateRequest"); + this.agentId = agentId; + this.platformAgentRunCreateRequest = platformAgentRunCreateRequest; + } + + /** + * ID of the agent to run. + */ + @JsonIgnore + public String agentId() { + return agentId; + } + + @JsonIgnore + public PlatformAgentRunCreateRequest platformAgentRunCreateRequest() { + return platformAgentRunCreateRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * ID of the agent to run. + */ + public PlatformAgentsCreateRunRequest withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + public PlatformAgentsCreateRunRequest withPlatformAgentRunCreateRequest(PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + Utils.checkNotNull(platformAgentRunCreateRequest, "platformAgentRunCreateRequest"); + this.platformAgentRunCreateRequest = platformAgentRunCreateRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsCreateRunRequest other = (PlatformAgentsCreateRunRequest) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId) && + Utils.enhancedDeepEquals(this.platformAgentRunCreateRequest, other.platformAgentRunCreateRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId, platformAgentRunCreateRequest); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsCreateRunRequest.class, + "agentId", agentId, + "platformAgentRunCreateRequest", platformAgentRunCreateRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String agentId; + + private PlatformAgentRunCreateRequest platformAgentRunCreateRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * ID of the agent to run. + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + public Builder platformAgentRunCreateRequest(PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + Utils.checkNotNull(platformAgentRunCreateRequest, "platformAgentRunCreateRequest"); + this.platformAgentRunCreateRequest = platformAgentRunCreateRequest; + return this; + } + + public PlatformAgentsCreateRunRequest build() { + + return new PlatformAgentsCreateRunRequest( + agentId, platformAgentRunCreateRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequestBuilder.java new file mode 100644 index 00000000..13bdc02d --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunRequestBuilder.java @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 7fad9151e0d8 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunCreateRequest; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsCreateRun; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; + +public class PlatformAgentsCreateRunRequestBuilder { + + private String agentId; + private PlatformAgentRunCreateRequest platformAgentRunCreateRequest; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsCreateRunRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsCreateRunRequestBuilder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + public PlatformAgentsCreateRunRequestBuilder platformAgentRunCreateRequest(PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + Utils.checkNotNull(platformAgentRunCreateRequest, "platformAgentRunCreateRequest"); + this.platformAgentRunCreateRequest = platformAgentRunCreateRequest; + return this; + } + + + private PlatformAgentsCreateRunRequest buildRequest() { + + PlatformAgentsCreateRunRequest request = new PlatformAgentsCreateRunRequest(agentId, + platformAgentRunCreateRequest); + + return request; + } + + public PlatformAgentsCreateRunResponse call() { + + RequestOperation operation + = new PlatformAgentsCreateRun.Sync(sdkConfiguration, _headers); + PlatformAgentsCreateRunRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunResponse.java new file mode 100644 index 00000000..ab23ff5a --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsCreateRunResponse.java @@ -0,0 +1,312 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 943b97d76c0d + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunWaitResponse; +import com.glean.api_client.glean_api_client.utils.Response; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsCreateRunResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentRunWaitResponse; + + /** + * Successful response. + */ + private Optional res; + + @JsonCreator + public PlatformAgentsCreateRunResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentRunWaitResponse, + Optional res) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + Utils.checkNotNull(res, "res"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentRunWaitResponse = platformAgentRunWaitResponse; + this.res = res; + } + + public PlatformAgentsCreateRunResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty(), Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentRunWaitResponse() { + return (Optional) platformAgentRunWaitResponse; + } + + /** + * Successful response. + */ + @JsonIgnore + public Optional res() { + return res; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsCreateRunResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsCreateRunResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsCreateRunResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withPlatformAgentRunWaitResponse(PlatformAgentRunWaitResponse platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = Optional.ofNullable(platformAgentRunWaitResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withPlatformAgentRunWaitResponse(Optional platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = platformAgentRunWaitResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withRes(String res) { + Utils.checkNotNull(res, "res"); + this.res = Optional.ofNullable(res); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withRes(Optional res) { + Utils.checkNotNull(res, "res"); + this.res = res; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsCreateRunResponse other = (PlatformAgentsCreateRunResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentRunWaitResponse, other.platformAgentRunWaitResponse) && + Utils.enhancedDeepEquals(this.res, other.res); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentRunWaitResponse, res); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsCreateRunResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentRunWaitResponse", platformAgentRunWaitResponse, + "res", res); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentRunWaitResponse = Optional.empty(); + + private Optional res = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentRunWaitResponse(PlatformAgentRunWaitResponse platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = Optional.ofNullable(platformAgentRunWaitResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentRunWaitResponse(Optional platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = platformAgentRunWaitResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder res(String res) { + Utils.checkNotNull(res, "res"); + this.res = Optional.ofNullable(res); + return this; + } + + /** + * Successful response. + */ + public Builder res(Optional res) { + Utils.checkNotNull(res, "res"); + this.res = res; + return this; + } + + public PlatformAgentsCreateRunResponse build() { + + return new PlatformAgentsCreateRunResponse( + contentType, statusCode, rawResponse, + platformAgentRunWaitResponse, res); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequest.java new file mode 100644 index 00000000..3536e83b --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequest.java @@ -0,0 +1,102 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 8efd7ef6596a + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PlatformAgentsGetRequest { + /** + * ID of the agent to retrieve. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=agent_id") + private String agentId; + + @JsonCreator + public PlatformAgentsGetRequest( + String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + } + + /** + * ID of the agent to retrieve. + */ + @JsonIgnore + public String agentId() { + return agentId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * ID of the agent to retrieve. + */ + public PlatformAgentsGetRequest withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsGetRequest other = (PlatformAgentsGetRequest) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsGetRequest.class, + "agentId", agentId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String agentId; + + private Builder() { + // force use of static builder() method + } + + + /** + * ID of the agent to retrieve. + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + public PlatformAgentsGetRequest build() { + + return new PlatformAgentsGetRequest( + agentId); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequestBuilder.java new file mode 100644 index 00000000..f775fde7 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetRequestBuilder.java @@ -0,0 +1,47 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 07e20d7ddec3 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGet; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; + +public class PlatformAgentsGetRequestBuilder { + + private String agentId; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsGetRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsGetRequestBuilder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + private PlatformAgentsGetRequest buildRequest() { + + PlatformAgentsGetRequest request = new PlatformAgentsGetRequest(agentId); + + return request; + } + + public PlatformAgentsGetResponse call() { + + RequestOperation operation + = new PlatformAgentsGet.Sync(sdkConfiguration, _headers); + PlatformAgentsGetRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetResponse.java new file mode 100644 index 00000000..46b90cec --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetResponse.java @@ -0,0 +1,254 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 95441ff92c65 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentGetResponse; +import com.glean.api_client.glean_api_client.utils.Response; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsGetResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentGetResponse; + + @JsonCreator + public PlatformAgentsGetResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentGetResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentGetResponse = platformAgentGetResponse; + } + + public PlatformAgentsGetResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentGetResponse() { + return (Optional) platformAgentGetResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsGetResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsGetResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsGetResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsGetResponse withPlatformAgentGetResponse(PlatformAgentGetResponse platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = Optional.ofNullable(platformAgentGetResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsGetResponse withPlatformAgentGetResponse(Optional platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = platformAgentGetResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsGetResponse other = (PlatformAgentsGetResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentGetResponse, other.platformAgentGetResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentGetResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsGetResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentGetResponse", platformAgentGetResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentGetResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentGetResponse(PlatformAgentGetResponse platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = Optional.ofNullable(platformAgentGetResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentGetResponse(Optional platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = platformAgentGetResponse; + return this; + } + + public PlatformAgentsGetResponse build() { + + return new PlatformAgentsGetResponse( + contentType, statusCode, rawResponse, + platformAgentGetResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequest.java new file mode 100644 index 00000000..64103e68 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequest.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 952911a98a12 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.utils.LazySingletonValue; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class PlatformAgentsGetSchemasRequest { + /** + * ID of the agent whose schemas should be retrieved. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=agent_id") + private String agentId; + + /** + * Whether to include tool metadata in the response. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=include_tools") + private Optional includeTools; + + @JsonCreator + public PlatformAgentsGetSchemasRequest( + String agentId, + Optional includeTools) { + Utils.checkNotNull(agentId, "agentId"); + Utils.checkNotNull(includeTools, "includeTools"); + this.agentId = agentId; + this.includeTools = includeTools; + } + + public PlatformAgentsGetSchemasRequest( + String agentId) { + this(agentId, Optional.empty()); + } + + /** + * ID of the agent whose schemas should be retrieved. + */ + @JsonIgnore + public String agentId() { + return agentId; + } + + /** + * Whether to include tool metadata in the response. + */ + @JsonIgnore + public Optional includeTools() { + return includeTools; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * ID of the agent whose schemas should be retrieved. + */ + public PlatformAgentsGetSchemasRequest withAgentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + /** + * Whether to include tool metadata in the response. + */ + public PlatformAgentsGetSchemasRequest withIncludeTools(boolean includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = Optional.ofNullable(includeTools); + return this; + } + + + /** + * Whether to include tool metadata in the response. + */ + public PlatformAgentsGetSchemasRequest withIncludeTools(Optional includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = includeTools; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsGetSchemasRequest other = (PlatformAgentsGetSchemasRequest) o; + return + Utils.enhancedDeepEquals(this.agentId, other.agentId) && + Utils.enhancedDeepEquals(this.includeTools, other.includeTools); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentId, includeTools); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsGetSchemasRequest.class, + "agentId", agentId, + "includeTools", includeTools); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String agentId; + + private Optional includeTools; + + private Builder() { + // force use of static builder() method + } + + + /** + * ID of the agent whose schemas should be retrieved. + */ + public Builder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + /** + * Whether to include tool metadata in the response. + */ + public Builder includeTools(boolean includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = Optional.ofNullable(includeTools); + return this; + } + + /** + * Whether to include tool metadata in the response. + */ + public Builder includeTools(Optional includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = includeTools; + return this; + } + + public PlatformAgentsGetSchemasRequest build() { + if (includeTools == null) { + includeTools = _SINGLETON_VALUE_IncludeTools.value(); + } + + return new PlatformAgentsGetSchemasRequest( + agentId, includeTools); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeTools = + new LazySingletonValue<>( + "include_tools", + "false", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequestBuilder.java new file mode 100644 index 00000000..4e9230ee --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasRequestBuilder.java @@ -0,0 +1,77 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 09a1415f8383 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGetSchemas; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.LazySingletonValue; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.String; +import java.util.Optional; + +public class PlatformAgentsGetSchemasRequestBuilder { + + private String agentId; + private Optional includeTools = Utils.readDefaultOrConstValue( + "includeTools", + "false", + new TypeReference>() {}); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsGetSchemasRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsGetSchemasRequestBuilder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + public PlatformAgentsGetSchemasRequestBuilder includeTools(boolean includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = Optional.of(includeTools); + return this; + } + + public PlatformAgentsGetSchemasRequestBuilder includeTools(Optional includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = includeTools; + return this; + } + + + private PlatformAgentsGetSchemasRequest buildRequest() { + if (includeTools == null) { + includeTools = _SINGLETON_VALUE_IncludeTools.value(); + } + + PlatformAgentsGetSchemasRequest request = new PlatformAgentsGetSchemasRequest(agentId, + includeTools); + + return request; + } + + public PlatformAgentsGetSchemasResponse call() { + + RequestOperation operation + = new PlatformAgentsGetSchemas.Sync(sdkConfiguration, _headers); + PlatformAgentsGetSchemasRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeTools = + new LazySingletonValue<>( + "includeTools", + "false", + new TypeReference>() {}); +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasResponse.java new file mode 100644 index 00000000..143fd277 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsGetSchemasResponse.java @@ -0,0 +1,254 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: a67a15bca591 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentSchemasResponse; +import com.glean.api_client.glean_api_client.utils.Response; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsGetSchemasResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentSchemasResponse; + + @JsonCreator + public PlatformAgentsGetSchemasResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentSchemasResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentSchemasResponse = platformAgentSchemasResponse; + } + + public PlatformAgentsGetSchemasResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentSchemasResponse() { + return (Optional) platformAgentSchemasResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsGetSchemasResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsGetSchemasResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsGetSchemasResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsGetSchemasResponse withPlatformAgentSchemasResponse(PlatformAgentSchemasResponse platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = Optional.ofNullable(platformAgentSchemasResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsGetSchemasResponse withPlatformAgentSchemasResponse(Optional platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = platformAgentSchemasResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsGetSchemasResponse other = (PlatformAgentsGetSchemasResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentSchemasResponse, other.platformAgentSchemasResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentSchemasResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsGetSchemasResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentSchemasResponse", platformAgentSchemasResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentSchemasResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentSchemasResponse(PlatformAgentSchemasResponse platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = Optional.ofNullable(platformAgentSchemasResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentSchemasResponse(Optional platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = platformAgentSchemasResponse; + return this; + } + + public PlatformAgentsGetSchemasResponse build() { + + return new PlatformAgentsGetSchemasResponse( + contentType, statusCode, rawResponse, + platformAgentSchemasResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchRequestBuilder.java new file mode 100644 index 00000000..8ff8da9a --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchRequestBuilder.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 42d9210b3445 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsSearch; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; + +public class PlatformAgentsSearchRequestBuilder { + + private PlatformAgentsSearchRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsSearchRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsSearchRequestBuilder request(PlatformAgentsSearchRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public PlatformAgentsSearchResponse call() { + + RequestOperation operation + = new PlatformAgentsSearch.Sync(sdkConfiguration, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchResponse.java new file mode 100644 index 00000000..f6403da1 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformAgentsSearchResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 797a95edf650 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.Response; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsSearchResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentsSearchResponse; + + @JsonCreator + public PlatformAgentsSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentsSearchResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentsSearchResponse = platformAgentsSearchResponse; + } + + public PlatformAgentsSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentsSearchResponse() { + return (Optional) platformAgentsSearchResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsSearchResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsSearchResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsSearchResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsSearchResponse withPlatformAgentsSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchResponse platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = Optional.ofNullable(platformAgentsSearchResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsSearchResponse withPlatformAgentsSearchResponse(Optional platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = platformAgentsSearchResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsSearchResponse other = (PlatformAgentsSearchResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentsSearchResponse, other.platformAgentsSearchResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentsSearchResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsSearchResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentsSearchResponse", platformAgentsSearchResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentsSearchResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentsSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchResponse platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = Optional.ofNullable(platformAgentsSearchResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentsSearchResponse(Optional platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = platformAgentsSearchResponse; + return this; + } + + public PlatformAgentsSearchResponse build() { + + return new PlatformAgentsSearchResponse( + contentType, statusCode, rawResponse, + platformAgentsSearchResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchRequestBuilder.java new file mode 100644 index 00000000..20f2eeb9 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchRequestBuilder.java @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: fa980ac90208 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.components.PlatformSearchRequest; +import com.glean.api_client.glean_api_client.operations.PlatformSearch; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; + +public class PlatformSearchRequestBuilder { + + private PlatformSearchRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformSearchRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformSearchRequestBuilder request(PlatformSearchRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public PlatformSearchResponse call() { + + RequestOperation operation + = new PlatformSearch.Sync(sdkConfiguration, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchResponse.java new file mode 100644 index 00000000..f0196903 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PlatformSearchResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 68bd184c4656 + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.Response; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformSearchResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful search. + */ + private Optional platformSearchResponse; + + @JsonCreator + public PlatformSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformSearchResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformSearchResponse = platformSearchResponse; + } + + public PlatformSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful search. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformSearchResponse() { + return (Optional) platformSearchResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformSearchResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformSearchResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformSearchResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful search. + */ + public PlatformSearchResponse withPlatformSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformSearchResponse platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = Optional.ofNullable(platformSearchResponse); + return this; + } + + + /** + * Successful search. + */ + public PlatformSearchResponse withPlatformSearchResponse(Optional platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = platformSearchResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformSearchResponse other = (PlatformSearchResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformSearchResponse, other.platformSearchResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformSearchResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformSearchResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformSearchResponse", platformSearchResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformSearchResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful search. + */ + public Builder platformSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformSearchResponse platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = Optional.ofNullable(platformSearchResponse); + return this; + } + + /** + * Successful search. + */ + public Builder platformSearchResponse(Optional platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = platformSearchResponse; + return this; + } + + public PlatformSearchResponse build() { + + return new PlatformSearchResponse( + contentType, statusCode, rawResponse, + platformSearchResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunRequestBuilder.java new file mode 100644 index 00000000..cdecf5e5 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunRequestBuilder.java @@ -0,0 +1,59 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: cc0529e1367d + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunCreateRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunRequest; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsCreateRun; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.concurrent.CompletableFuture; + +public class PlatformAgentsCreateRunRequestBuilder { + + private String agentId; + private PlatformAgentRunCreateRequest platformAgentRunCreateRequest; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsCreateRunRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsCreateRunRequestBuilder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + public PlatformAgentsCreateRunRequestBuilder platformAgentRunCreateRequest(PlatformAgentRunCreateRequest platformAgentRunCreateRequest) { + Utils.checkNotNull(platformAgentRunCreateRequest, "platformAgentRunCreateRequest"); + this.platformAgentRunCreateRequest = platformAgentRunCreateRequest; + return this; + } + + + private PlatformAgentsCreateRunRequest buildRequest() { + + PlatformAgentsCreateRunRequest request = new PlatformAgentsCreateRunRequest(agentId, + platformAgentRunCreateRequest); + + return request; + } + + public CompletableFuture call() { + + AsyncRequestOperation operation + = new PlatformAgentsCreateRun.Async(sdkConfiguration, _headers); + PlatformAgentsCreateRunRequest request = buildRequest(); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunResponse.java new file mode 100644 index 00000000..63583da7 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsCreateRunResponse.java @@ -0,0 +1,312 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 6cdc74da1e86 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunWaitResponse; +import com.glean.api_client.glean_api_client.utils.AsyncResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsCreateRunResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentRunWaitResponse; + + /** + * Successful response. + */ + private Optional res; + + @JsonCreator + public PlatformAgentsCreateRunResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentRunWaitResponse, + Optional res) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + Utils.checkNotNull(res, "res"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentRunWaitResponse = platformAgentRunWaitResponse; + this.res = res; + } + + public PlatformAgentsCreateRunResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty(), Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentRunWaitResponse() { + return (Optional) platformAgentRunWaitResponse; + } + + /** + * Successful response. + */ + @JsonIgnore + public Optional res() { + return res; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsCreateRunResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsCreateRunResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsCreateRunResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withPlatformAgentRunWaitResponse(PlatformAgentRunWaitResponse platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = Optional.ofNullable(platformAgentRunWaitResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withPlatformAgentRunWaitResponse(Optional platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = platformAgentRunWaitResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withRes(String res) { + Utils.checkNotNull(res, "res"); + this.res = Optional.ofNullable(res); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsCreateRunResponse withRes(Optional res) { + Utils.checkNotNull(res, "res"); + this.res = res; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsCreateRunResponse other = (PlatformAgentsCreateRunResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentRunWaitResponse, other.platformAgentRunWaitResponse) && + Utils.enhancedDeepEquals(this.res, other.res); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentRunWaitResponse, res); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsCreateRunResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentRunWaitResponse", platformAgentRunWaitResponse, + "res", res); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentRunWaitResponse = Optional.empty(); + + private Optional res = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentRunWaitResponse(PlatformAgentRunWaitResponse platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = Optional.ofNullable(platformAgentRunWaitResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentRunWaitResponse(Optional platformAgentRunWaitResponse) { + Utils.checkNotNull(platformAgentRunWaitResponse, "platformAgentRunWaitResponse"); + this.platformAgentRunWaitResponse = platformAgentRunWaitResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder res(String res) { + Utils.checkNotNull(res, "res"); + this.res = Optional.ofNullable(res); + return this; + } + + /** + * Successful response. + */ + public Builder res(Optional res) { + Utils.checkNotNull(res, "res"); + this.res = res; + return this; + } + + public PlatformAgentsCreateRunResponse build() { + + return new PlatformAgentsCreateRunResponse( + contentType, statusCode, rawResponse, + platformAgentRunWaitResponse, res); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetRequestBuilder.java new file mode 100644 index 00000000..418e4303 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetRequestBuilder.java @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 28cb9c5ee783 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetRequest; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGet; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.concurrent.CompletableFuture; + +public class PlatformAgentsGetRequestBuilder { + + private String agentId; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsGetRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsGetRequestBuilder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + + private PlatformAgentsGetRequest buildRequest() { + + PlatformAgentsGetRequest request = new PlatformAgentsGetRequest(agentId); + + return request; + } + + public CompletableFuture call() { + + AsyncRequestOperation operation + = new PlatformAgentsGet.Async(sdkConfiguration, _headers); + PlatformAgentsGetRequest request = buildRequest(); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetResponse.java new file mode 100644 index 00000000..e8150854 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetResponse.java @@ -0,0 +1,254 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: ef08df192853 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentGetResponse; +import com.glean.api_client.glean_api_client.utils.AsyncResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsGetResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentGetResponse; + + @JsonCreator + public PlatformAgentsGetResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentGetResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentGetResponse = platformAgentGetResponse; + } + + public PlatformAgentsGetResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentGetResponse() { + return (Optional) platformAgentGetResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsGetResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsGetResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsGetResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsGetResponse withPlatformAgentGetResponse(PlatformAgentGetResponse platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = Optional.ofNullable(platformAgentGetResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsGetResponse withPlatformAgentGetResponse(Optional platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = platformAgentGetResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsGetResponse other = (PlatformAgentsGetResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentGetResponse, other.platformAgentGetResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentGetResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsGetResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentGetResponse", platformAgentGetResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentGetResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentGetResponse(PlatformAgentGetResponse platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = Optional.ofNullable(platformAgentGetResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentGetResponse(Optional platformAgentGetResponse) { + Utils.checkNotNull(platformAgentGetResponse, "platformAgentGetResponse"); + this.platformAgentGetResponse = platformAgentGetResponse; + return this; + } + + public PlatformAgentsGetResponse build() { + + return new PlatformAgentsGetResponse( + contentType, statusCode, rawResponse, + platformAgentGetResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasRequestBuilder.java new file mode 100644 index 00000000..8b68ea62 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasRequestBuilder.java @@ -0,0 +1,80 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 103de89bdb55 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasRequest; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsGetSchemas; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.LazySingletonValue; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Boolean; +import java.lang.String; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +public class PlatformAgentsGetSchemasRequestBuilder { + + private String agentId; + private Optional includeTools = Utils.readDefaultOrConstValue( + "includeTools", + "false", + new TypeReference>() {}); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsGetSchemasRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsGetSchemasRequestBuilder agentId(String agentId) { + Utils.checkNotNull(agentId, "agentId"); + this.agentId = agentId; + return this; + } + + public PlatformAgentsGetSchemasRequestBuilder includeTools(boolean includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = Optional.of(includeTools); + return this; + } + + public PlatformAgentsGetSchemasRequestBuilder includeTools(Optional includeTools) { + Utils.checkNotNull(includeTools, "includeTools"); + this.includeTools = includeTools; + return this; + } + + + private PlatformAgentsGetSchemasRequest buildRequest() { + if (includeTools == null) { + includeTools = _SINGLETON_VALUE_IncludeTools.value(); + } + + PlatformAgentsGetSchemasRequest request = new PlatformAgentsGetSchemasRequest(agentId, + includeTools); + + return request; + } + + public CompletableFuture call() { + + AsyncRequestOperation operation + = new PlatformAgentsGetSchemas.Async(sdkConfiguration, _headers); + PlatformAgentsGetSchemasRequest request = buildRequest(); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeTools = + new LazySingletonValue<>( + "includeTools", + "false", + new TypeReference>() {}); +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasResponse.java new file mode 100644 index 00000000..ff34ca00 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsGetSchemasResponse.java @@ -0,0 +1,254 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 8437a545be18 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentSchemasResponse; +import com.glean.api_client.glean_api_client.utils.AsyncResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsGetSchemasResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentSchemasResponse; + + @JsonCreator + public PlatformAgentsGetSchemasResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentSchemasResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentSchemasResponse = platformAgentSchemasResponse; + } + + public PlatformAgentsGetSchemasResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentSchemasResponse() { + return (Optional) platformAgentSchemasResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsGetSchemasResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsGetSchemasResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsGetSchemasResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsGetSchemasResponse withPlatformAgentSchemasResponse(PlatformAgentSchemasResponse platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = Optional.ofNullable(platformAgentSchemasResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsGetSchemasResponse withPlatformAgentSchemasResponse(Optional platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = platformAgentSchemasResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsGetSchemasResponse other = (PlatformAgentsGetSchemasResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentSchemasResponse, other.platformAgentSchemasResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentSchemasResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsGetSchemasResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentSchemasResponse", platformAgentSchemasResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentSchemasResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentSchemasResponse(PlatformAgentSchemasResponse platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = Optional.ofNullable(platformAgentSchemasResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentSchemasResponse(Optional platformAgentSchemasResponse) { + Utils.checkNotNull(platformAgentSchemasResponse, "platformAgentSchemasResponse"); + this.platformAgentSchemasResponse = platformAgentSchemasResponse; + return this; + } + + public PlatformAgentsGetSchemasResponse build() { + + return new PlatformAgentsGetSchemasResponse( + contentType, statusCode, rawResponse, + platformAgentSchemasResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchRequestBuilder.java new file mode 100644 index 00000000..69541376 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 8dd8e53cfeb8 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.operations.PlatformAgentsSearch; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.util.concurrent.CompletableFuture; + +public class PlatformAgentsSearchRequestBuilder { + + private PlatformAgentsSearchRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformAgentsSearchRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformAgentsSearchRequestBuilder request(PlatformAgentsSearchRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() { + + AsyncRequestOperation operation + = new PlatformAgentsSearch.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchResponse.java new file mode 100644 index 00000000..84352def --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformAgentsSearchResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: dd7a149a5ac2 + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.AsyncResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformAgentsSearchResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful response. + */ + private Optional platformAgentsSearchResponse; + + @JsonCreator + public PlatformAgentsSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformAgentsSearchResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformAgentsSearchResponse = platformAgentsSearchResponse; + } + + public PlatformAgentsSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful response. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformAgentsSearchResponse() { + return (Optional) platformAgentsSearchResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformAgentsSearchResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformAgentsSearchResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformAgentsSearchResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful response. + */ + public PlatformAgentsSearchResponse withPlatformAgentsSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchResponse platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = Optional.ofNullable(platformAgentsSearchResponse); + return this; + } + + + /** + * Successful response. + */ + public PlatformAgentsSearchResponse withPlatformAgentsSearchResponse(Optional platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = platformAgentsSearchResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformAgentsSearchResponse other = (PlatformAgentsSearchResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformAgentsSearchResponse, other.platformAgentsSearchResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformAgentsSearchResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformAgentsSearchResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformAgentsSearchResponse", platformAgentsSearchResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformAgentsSearchResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful response. + */ + public Builder platformAgentsSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchResponse platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = Optional.ofNullable(platformAgentsSearchResponse); + return this; + } + + /** + * Successful response. + */ + public Builder platformAgentsSearchResponse(Optional platformAgentsSearchResponse) { + Utils.checkNotNull(platformAgentsSearchResponse, "platformAgentsSearchResponse"); + this.platformAgentsSearchResponse = platformAgentsSearchResponse; + return this; + } + + public PlatformAgentsSearchResponse build() { + + return new PlatformAgentsSearchResponse( + contentType, statusCode, rawResponse, + platformAgentsSearchResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchRequestBuilder.java new file mode 100644 index 00000000..18d14266 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 081a451026ec + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.models.components.PlatformSearchRequest; +import com.glean.api_client.glean_api_client.operations.PlatformSearch; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.util.concurrent.CompletableFuture; + +public class PlatformSearchRequestBuilder { + + private PlatformSearchRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PlatformSearchRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PlatformSearchRequestBuilder request(PlatformSearchRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() { + + AsyncRequestOperation operation + = new PlatformSearch.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchResponse.java new file mode 100644 index 00000000..2fe9dd65 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PlatformSearchResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: c324b8a2e02b + */ +package com.glean.api_client.glean_api_client.models.operations.async; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.AsyncResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PlatformSearchResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful search. + */ + private Optional platformSearchResponse; + + @JsonCreator + public PlatformSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional platformSearchResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.platformSearchResponse = platformSearchResponse; + } + + public PlatformSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful search. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional platformSearchResponse() { + return (Optional) platformSearchResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PlatformSearchResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PlatformSearchResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PlatformSearchResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful search. + */ + public PlatformSearchResponse withPlatformSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformSearchResponse platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = Optional.ofNullable(platformSearchResponse); + return this; + } + + + /** + * Successful search. + */ + public PlatformSearchResponse withPlatformSearchResponse(Optional platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = platformSearchResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlatformSearchResponse other = (PlatformSearchResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.platformSearchResponse, other.platformSearchResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + platformSearchResponse); + } + + @Override + public String toString() { + return Utils.toString(PlatformSearchResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "platformSearchResponse", platformSearchResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional platformSearchResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful search. + */ + public Builder platformSearchResponse(com.glean.api_client.glean_api_client.models.components.PlatformSearchResponse platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = Optional.ofNullable(platformSearchResponse); + return this; + } + + /** + * Successful search. + */ + public Builder platformSearchResponse(Optional platformSearchResponse) { + Utils.checkNotNull(platformSearchResponse, "platformSearchResponse"); + this.platformSearchResponse = platformSearchResponse; + return this; + } + + public PlatformSearchResponse build() { + + return new PlatformSearchResponse( + contentType, statusCode, rawResponse, + platformSearchResponse); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsCreateRun.java b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsCreateRun.java new file mode 100644 index 00000000..8e2932fa --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsCreateRun.java @@ -0,0 +1,310 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 85c8e88f4285 + */ +package com.glean.api_client.glean_api_client.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import static com.glean.api_client.glean_api_client.utils.Exceptions.unchecked; +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.SecuritySource; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentRunWaitResponse; +import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsCreateRunResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.Exceptions; +import com.glean.api_client.glean_api_client.utils.HTTPClient; +import com.glean.api_client.glean_api_client.utils.HTTPRequest; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Hook.AfterErrorContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.AfterSuccessContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.BeforeRequestContextImpl; +import com.glean.api_client.glean_api_client.utils.SerializedBody; +import com.glean.api_client.glean_api_client.utils.Utils.JsonShape; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PlatformAgentsCreateRun { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-create-run", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-create-run", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-create-run", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/api/agents/{agent_id}/runs", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "platformAgentRunCreateRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json;q=1, text/event-stream;q=0") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PlatformAgentsCreateRunRequest request) throws Exception { + HttpRequest req = buildRequest(request, PlatformAgentsCreateRunRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PlatformAgentsCreateRunRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public PlatformAgentsCreateRunResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PlatformAgentsCreateRunResponse.Builder resBuilder = + PlatformAgentsCreateRunResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PlatformAgentsCreateRunResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withPlatformAgentRunWaitResponse(Utils.unmarshal(response, new TypeReference() {})); + } else if (Utils.contentTypeMatches(contentType, "text/event-stream")) { + String out = unchecked(() -> Utils.toUtf8AndClose(response.body())).get(); + res.withRes(out); + return res; + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "409", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PlatformAgentsCreateRunRequest request) throws Exception { + HttpRequest req = buildRequest(request, PlatformAgentsCreateRunRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PlatformAgentsCreateRunRequest request) { + return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsCreateRunResponse.Builder resBuilder = + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsCreateRunResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsCreateRunResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withPlatformAgentRunWaitResponse); + } else if (Utils.contentTypeMatches(contentType, "text/event-stream")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + String out = new String(bodyBytes, StandardCharsets.UTF_8); + res.withRes(out); + return res; + } catch (Exception e) { + return Exceptions.rethrow(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "409", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGet.java b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGet.java new file mode 100644 index 00000000..f73a2260 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGet.java @@ -0,0 +1,277 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 4a9693c7c21d + */ +package com.glean.api_client.glean_api_client.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import static com.glean.api_client.glean_api_client.utils.Exceptions.unchecked; +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.SecuritySource; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentGetResponse; +import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.HTTPClient; +import com.glean.api_client.glean_api_client.utils.HTTPRequest; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Hook.AfterErrorContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.AfterSuccessContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.BeforeRequestContextImpl; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PlatformAgentsGet { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-get", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-get", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-get", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/api/agents/{agent_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PlatformAgentsGetRequest request) throws Exception { + HttpRequest req = buildRequest(request, PlatformAgentsGetRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PlatformAgentsGetRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public PlatformAgentsGetResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PlatformAgentsGetResponse.Builder resBuilder = + PlatformAgentsGetResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PlatformAgentsGetResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withPlatformAgentGetResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PlatformAgentsGetRequest request) throws Exception { + HttpRequest req = buildRequest(request, PlatformAgentsGetRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PlatformAgentsGetRequest request) { + return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetResponse.Builder resBuilder = + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withPlatformAgentGetResponse); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGetSchemas.java b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGetSchemas.java new file mode 100644 index 00000000..c97da3d2 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsGetSchemas.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 79b3ee998a38 + */ +package com.glean.api_client.glean_api_client.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import static com.glean.api_client.glean_api_client.utils.Exceptions.unchecked; +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.SecuritySource; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentSchemasResponse; +import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasRequest; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsGetSchemasResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.HTTPClient; +import com.glean.api_client.glean_api_client.utils.HTTPRequest; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Hook.AfterErrorContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.AfterSuccessContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.BeforeRequestContextImpl; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PlatformAgentsGetSchemas { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-get-schemas", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-get-schemas", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-get-schemas", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/api/agents/{agent_id}/schemas", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PlatformAgentsGetSchemasRequest request) throws Exception { + HttpRequest req = buildRequest(request, PlatformAgentsGetSchemasRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PlatformAgentsGetSchemasRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public PlatformAgentsGetSchemasResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PlatformAgentsGetSchemasResponse.Builder resBuilder = + PlatformAgentsGetSchemasResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PlatformAgentsGetSchemasResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withPlatformAgentSchemasResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PlatformAgentsGetSchemasRequest request) throws Exception { + HttpRequest req = buildRequest(request, PlatformAgentsGetSchemasRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PlatformAgentsGetSchemasRequest request) { + return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetSchemasResponse.Builder resBuilder = + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetSchemasResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsGetSchemasResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withPlatformAgentSchemasResponse); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsSearch.java b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsSearch.java new file mode 100644 index 00000000..90a6c46b --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformAgentsSearch.java @@ -0,0 +1,291 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 1b741467e559 + */ +package com.glean.api_client.glean_api_client.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import static com.glean.api_client.glean_api_client.utils.Exceptions.unchecked; +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.SecuritySource; +import com.glean.api_client.glean_api_client.models.components.PlatformAgentsSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformAgentsSearchResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.HTTPClient; +import com.glean.api_client.glean_api_client.utils.HTTPRequest; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Hook.AfterErrorContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.AfterSuccessContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.BeforeRequestContextImpl; +import com.glean.api_client.glean_api_client.utils.SerializedBody; +import com.glean.api_client.glean_api_client.utils.Utils.JsonShape; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PlatformAgentsSearch { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-search", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-search", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-agents-search", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/agents/search"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PlatformAgentsSearchRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PlatformAgentsSearchRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public PlatformAgentsSearchResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PlatformAgentsSearchResponse.Builder resBuilder = + PlatformAgentsSearchResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PlatformAgentsSearchResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withPlatformAgentsSearchResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PlatformAgentsSearchRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PlatformAgentsSearchRequest request) { + return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsSearchResponse.Builder resBuilder = + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsSearchResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.glean.api_client.glean_api_client.models.operations.async.PlatformAgentsSearchResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withPlatformAgentsSearchResponse); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformSearch.java b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformSearch.java new file mode 100644 index 00000000..9ae93cf0 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/PlatformSearch.java @@ -0,0 +1,291 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + * @generated-id: 9b5d67796029 + */ +package com.glean.api_client.glean_api_client.operations; + +import static com.glean.api_client.glean_api_client.operations.Operations.RequestOperation; +import static com.glean.api_client.glean_api_client.utils.Exceptions.unchecked; +import static com.glean.api_client.glean_api_client.operations.Operations.AsyncRequestOperation; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.glean.api_client.glean_api_client.SDKConfiguration; +import com.glean.api_client.glean_api_client.SecuritySource; +import com.glean.api_client.glean_api_client.models.components.PlatformSearchRequest; +import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; +import com.glean.api_client.glean_api_client.models.operations.PlatformSearchResponse; +import com.glean.api_client.glean_api_client.utils.Blob; +import com.glean.api_client.glean_api_client.utils.HTTPClient; +import com.glean.api_client.glean_api_client.utils.HTTPRequest; +import com.glean.api_client.glean_api_client.utils.Headers; +import com.glean.api_client.glean_api_client.utils.Hook.AfterErrorContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.AfterSuccessContextImpl; +import com.glean.api_client.glean_api_client.utils.Hook.BeforeRequestContextImpl; +import com.glean.api_client.glean_api_client.utils.SerializedBody; +import com.glean.api_client.glean_api_client.utils.Utils.JsonShape; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PlatformSearch { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = Utils.templateUrl( + this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-search", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-search", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "platform-search", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/search"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PlatformSearchRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PlatformSearchRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public PlatformSearchResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PlatformSearchResponse.Builder resBuilder = + PlatformSearchResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PlatformSearchResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withPlatformSearchResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + throw PlatformProblemDetailException.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PlatformSearchRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PlatformSearchRequest request) { + return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.glean.api_client.glean_api_client.models.operations.async.PlatformSearchResponse.Builder resBuilder = + com.glean.api_client.glean_api_client.models.operations.async.PlatformSearchResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.glean.api_client.glean_api_client.models.operations.async.PlatformSearchResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withPlatformSearchResponse); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "408", "429")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500", "503")) { + if (Utils.contentTypeMatches(contentType, "application/problem+json")) { + return PlatformProblemDetailException.fromAsync(response) + .thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +}