@@ -1727,6 +1727,180 @@ public final UnaryCallable<DeleteAnalysisRequest, Empty> deleteAnalysisCallable(
17271727 return stub .bulkAnalyzeConversationsCallable ();
17281728 }
17291729
1730+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1731+ /**
1732+ * Deletes multiple conversations in a single request.
1733+ *
1734+ * <p>Sample code:
1735+ *
1736+ * <pre>{@code
1737+ * // This snippet has been automatically generated and should be regarded as a code template only.
1738+ * // It will require modifications to work:
1739+ * // - It may require correct/in-range values for request initialization.
1740+ * // - It may require specifying regional endpoints when creating the service client as shown in
1741+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1742+ * try (ContactCenterInsightsClient contactCenterInsightsClient =
1743+ * ContactCenterInsightsClient.create()) {
1744+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
1745+ * String filter = "filter-1274492040";
1746+ * BulkDeleteConversationsResponse response =
1747+ * contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
1748+ * }
1749+ * }</pre>
1750+ *
1751+ * @param parent Required. The parent resource to create analyses in. Format:
1752+ * projects/{project}/locations/{location}
1753+ * @param filter Filter used to select the subset of conversations to analyze.
1754+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1755+ */
1756+ public final OperationFuture <BulkDeleteConversationsResponse , BulkDeleteConversationsMetadata >
1757+ bulkDeleteConversationsAsync (LocationName parent , String filter ) {
1758+ BulkDeleteConversationsRequest request =
1759+ BulkDeleteConversationsRequest .newBuilder ()
1760+ .setParent (parent == null ? null : parent .toString ())
1761+ .setFilter (filter )
1762+ .build ();
1763+ return bulkDeleteConversationsAsync (request );
1764+ }
1765+
1766+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1767+ /**
1768+ * Deletes multiple conversations in a single request.
1769+ *
1770+ * <p>Sample code:
1771+ *
1772+ * <pre>{@code
1773+ * // This snippet has been automatically generated and should be regarded as a code template only.
1774+ * // It will require modifications to work:
1775+ * // - It may require correct/in-range values for request initialization.
1776+ * // - It may require specifying regional endpoints when creating the service client as shown in
1777+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1778+ * try (ContactCenterInsightsClient contactCenterInsightsClient =
1779+ * ContactCenterInsightsClient.create()) {
1780+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
1781+ * String filter = "filter-1274492040";
1782+ * BulkDeleteConversationsResponse response =
1783+ * contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
1784+ * }
1785+ * }</pre>
1786+ *
1787+ * @param parent Required. The parent resource to create analyses in. Format:
1788+ * projects/{project}/locations/{location}
1789+ * @param filter Filter used to select the subset of conversations to analyze.
1790+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1791+ */
1792+ public final OperationFuture <BulkDeleteConversationsResponse , BulkDeleteConversationsMetadata >
1793+ bulkDeleteConversationsAsync (String parent , String filter ) {
1794+ BulkDeleteConversationsRequest request =
1795+ BulkDeleteConversationsRequest .newBuilder ().setParent (parent ).setFilter (filter ).build ();
1796+ return bulkDeleteConversationsAsync (request );
1797+ }
1798+
1799+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1800+ /**
1801+ * Deletes multiple conversations in a single request.
1802+ *
1803+ * <p>Sample code:
1804+ *
1805+ * <pre>{@code
1806+ * // This snippet has been automatically generated and should be regarded as a code template only.
1807+ * // It will require modifications to work:
1808+ * // - It may require correct/in-range values for request initialization.
1809+ * // - It may require specifying regional endpoints when creating the service client as shown in
1810+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1811+ * try (ContactCenterInsightsClient contactCenterInsightsClient =
1812+ * ContactCenterInsightsClient.create()) {
1813+ * BulkDeleteConversationsRequest request =
1814+ * BulkDeleteConversationsRequest.newBuilder()
1815+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
1816+ * .setFilter("filter-1274492040")
1817+ * .setMaxDeleteCount(1611707510)
1818+ * .setForce(true)
1819+ * .build();
1820+ * BulkDeleteConversationsResponse response =
1821+ * contactCenterInsightsClient.bulkDeleteConversationsAsync(request).get();
1822+ * }
1823+ * }</pre>
1824+ *
1825+ * @param request The request object containing all of the parameters for the API call.
1826+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1827+ */
1828+ public final OperationFuture <BulkDeleteConversationsResponse , BulkDeleteConversationsMetadata >
1829+ bulkDeleteConversationsAsync (BulkDeleteConversationsRequest request ) {
1830+ return bulkDeleteConversationsOperationCallable ().futureCall (request );
1831+ }
1832+
1833+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1834+ /**
1835+ * Deletes multiple conversations in a single request.
1836+ *
1837+ * <p>Sample code:
1838+ *
1839+ * <pre>{@code
1840+ * // This snippet has been automatically generated and should be regarded as a code template only.
1841+ * // It will require modifications to work:
1842+ * // - It may require correct/in-range values for request initialization.
1843+ * // - It may require specifying regional endpoints when creating the service client as shown in
1844+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1845+ * try (ContactCenterInsightsClient contactCenterInsightsClient =
1846+ * ContactCenterInsightsClient.create()) {
1847+ * BulkDeleteConversationsRequest request =
1848+ * BulkDeleteConversationsRequest.newBuilder()
1849+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
1850+ * .setFilter("filter-1274492040")
1851+ * .setMaxDeleteCount(1611707510)
1852+ * .setForce(true)
1853+ * .build();
1854+ * OperationFuture<BulkDeleteConversationsResponse, BulkDeleteConversationsMetadata> future =
1855+ * contactCenterInsightsClient
1856+ * .bulkDeleteConversationsOperationCallable()
1857+ * .futureCall(request);
1858+ * // Do something.
1859+ * BulkDeleteConversationsResponse response = future.get();
1860+ * }
1861+ * }</pre>
1862+ */
1863+ public final OperationCallable <
1864+ BulkDeleteConversationsRequest ,
1865+ BulkDeleteConversationsResponse ,
1866+ BulkDeleteConversationsMetadata >
1867+ bulkDeleteConversationsOperationCallable () {
1868+ return stub .bulkDeleteConversationsOperationCallable ();
1869+ }
1870+
1871+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1872+ /**
1873+ * Deletes multiple conversations in a single request.
1874+ *
1875+ * <p>Sample code:
1876+ *
1877+ * <pre>{@code
1878+ * // This snippet has been automatically generated and should be regarded as a code template only.
1879+ * // It will require modifications to work:
1880+ * // - It may require correct/in-range values for request initialization.
1881+ * // - It may require specifying regional endpoints when creating the service client as shown in
1882+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1883+ * try (ContactCenterInsightsClient contactCenterInsightsClient =
1884+ * ContactCenterInsightsClient.create()) {
1885+ * BulkDeleteConversationsRequest request =
1886+ * BulkDeleteConversationsRequest.newBuilder()
1887+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
1888+ * .setFilter("filter-1274492040")
1889+ * .setMaxDeleteCount(1611707510)
1890+ * .setForce(true)
1891+ * .build();
1892+ * ApiFuture<Operation> future =
1893+ * contactCenterInsightsClient.bulkDeleteConversationsCallable().futureCall(request);
1894+ * // Do something.
1895+ * Operation response = future.get();
1896+ * }
1897+ * }</pre>
1898+ */
1899+ public final UnaryCallable <BulkDeleteConversationsRequest , Operation >
1900+ bulkDeleteConversationsCallable () {
1901+ return stub .bulkDeleteConversationsCallable ();
1902+ }
1903+
17301904 // AUTO-GENERATED DOCUMENTATION AND METHOD.
17311905 /**
17321906 * Imports conversations and processes them according to the user's configuration.
@@ -1808,6 +1982,8 @@ public final UnaryCallable<DeleteAnalysisRequest, Empty> deleteAnalysisCallable(
18081982 * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
18091983 * .setConversationConfig(
18101984 * IngestConversationsRequest.ConversationConfig.newBuilder().build())
1985+ * .setRedactionConfig(RedactionConfig.newBuilder().build())
1986+ * .setSpeechConfig(SpeechConfig.newBuilder().build())
18111987 * .build();
18121988 * IngestConversationsResponse response =
18131989 * contactCenterInsightsClient.ingestConversationsAsync(request).get();
@@ -1841,6 +2017,8 @@ public final UnaryCallable<DeleteAnalysisRequest, Empty> deleteAnalysisCallable(
18412017 * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
18422018 * .setConversationConfig(
18432019 * IngestConversationsRequest.ConversationConfig.newBuilder().build())
2020+ * .setRedactionConfig(RedactionConfig.newBuilder().build())
2021+ * .setSpeechConfig(SpeechConfig.newBuilder().build())
18442022 * .build();
18452023 * OperationFuture<IngestConversationsResponse, IngestConversationsMetadata> future =
18462024 * contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request);
@@ -1874,6 +2052,8 @@ public final UnaryCallable<DeleteAnalysisRequest, Empty> deleteAnalysisCallable(
18742052 * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
18752053 * .setConversationConfig(
18762054 * IngestConversationsRequest.ConversationConfig.newBuilder().build())
2055+ * .setRedactionConfig(RedactionConfig.newBuilder().build())
2056+ * .setSpeechConfig(SpeechConfig.newBuilder().build())
18772057 * .build();
18782058 * ApiFuture<Operation> future =
18792059 * contactCenterInsightsClient.ingestConversationsCallable().futureCall(request);
0 commit comments