@@ -234,6 +234,7 @@ public final ListDocumentsPagedResponse listDocuments(String parent) {
234
234
* .toString())
235
235
* .setPageSize(883849137)
236
236
* .setPageToken("pageToken873572522")
237
+ * .setFilter("filter-1274492040")
237
238
* .build();
238
239
* for (Document element : documentsClient.listDocuments(request).iterateAll()) {
239
240
* // doThingsWith(element);
@@ -263,6 +264,7 @@ public final ListDocumentsPagedResponse listDocuments(ListDocumentsRequest reque
263
264
* .toString())
264
265
* .setPageSize(883849137)
265
266
* .setPageToken("pageToken873572522")
267
+ * .setFilter("filter-1274492040")
266
268
* .build();
267
269
* ApiFuture<Document> future = documentsClient.listDocumentsPagedCallable().futureCall(request);
268
270
* // Do something.
@@ -292,6 +294,7 @@ public final ListDocumentsPagedResponse listDocuments(ListDocumentsRequest reque
292
294
* .toString())
293
295
* .setPageSize(883849137)
294
296
* .setPageToken("pageToken873572522")
297
+ * .setFilter("filter-1274492040")
295
298
* .build();
296
299
* while (true) {
297
300
* ListDocumentsResponse response = documentsClient.listDocumentsCallable().call(request);
@@ -1025,6 +1028,8 @@ public final OperationFuture<Document, KnowledgeOperationMetadata> reloadDocumen
1025
1028
* DocumentName.ofProjectKnowledgeBaseDocumentName(
1026
1029
* "[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]")
1027
1030
* .toString())
1031
+ * .setImportGcsCustomMetadata(true)
1032
+ * .setSmartMessagingPartialUpdate(true)
1028
1033
* .build();
1029
1034
* Document response = documentsClient.reloadDocumentAsync(request).get();
1030
1035
* }
@@ -1066,6 +1071,8 @@ public final OperationFuture<Document, KnowledgeOperationMetadata> reloadDocumen
1066
1071
* DocumentName.ofProjectKnowledgeBaseDocumentName(
1067
1072
* "[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]")
1068
1073
* .toString())
1074
+ * .setImportGcsCustomMetadata(true)
1075
+ * .setSmartMessagingPartialUpdate(true)
1069
1076
* .build();
1070
1077
* OperationFuture<Document, KnowledgeOperationMetadata> future =
1071
1078
* documentsClient.reloadDocumentOperationCallable().futureCall(request);
@@ -1107,6 +1114,8 @@ public final OperationFuture<Document, KnowledgeOperationMetadata> reloadDocumen
1107
1114
* DocumentName.ofProjectKnowledgeBaseDocumentName(
1108
1115
* "[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]")
1109
1116
* .toString())
1117
+ * .setImportGcsCustomMetadata(true)
1118
+ * .setSmartMessagingPartialUpdate(true)
1110
1119
* .build();
1111
1120
* ApiFuture<Operation> future = documentsClient.reloadDocumentCallable().futureCall(request);
1112
1121
* // Do something.
@@ -1118,6 +1127,115 @@ public final UnaryCallable<ReloadDocumentRequest, Operation> reloadDocumentCalla
1118
1127
return stub .reloadDocumentCallable ();
1119
1128
}
1120
1129
1130
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1131
+ /**
1132
+ * Exports a smart messaging candidate document into the specified destination.
1133
+ *
1134
+ * <p>This method is a [long-running
1135
+ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
1136
+ * returned `Operation` type has the following method-specific fields:
1137
+ *
1138
+ * <p>- `metadata`:
1139
+ * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] -
1140
+ * `response`: [Document][google.cloud.dialogflow.v2.Document]
1141
+ *
1142
+ * <p>Sample code:
1143
+ *
1144
+ * <pre>{@code
1145
+ * try (DocumentsClient documentsClient = DocumentsClient.create()) {
1146
+ * ExportDocumentRequest request =
1147
+ * ExportDocumentRequest.newBuilder()
1148
+ * .setName(
1149
+ * DocumentName.ofProjectKnowledgeBaseDocumentName(
1150
+ * "[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]")
1151
+ * .toString())
1152
+ * .setExportFullContent(true)
1153
+ * .setSmartMessagingPartialUpdate(true)
1154
+ * .build();
1155
+ * Document response = documentsClient.exportDocumentAsync(request).get();
1156
+ * }
1157
+ * }</pre>
1158
+ *
1159
+ * @param request The request object containing all of the parameters for the API call.
1160
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1161
+ */
1162
+ public final OperationFuture <Document , KnowledgeOperationMetadata > exportDocumentAsync (
1163
+ ExportDocumentRequest request ) {
1164
+ return exportDocumentOperationCallable ().futureCall (request );
1165
+ }
1166
+
1167
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1168
+ /**
1169
+ * Exports a smart messaging candidate document into the specified destination.
1170
+ *
1171
+ * <p>This method is a [long-running
1172
+ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
1173
+ * returned `Operation` type has the following method-specific fields:
1174
+ *
1175
+ * <p>- `metadata`:
1176
+ * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] -
1177
+ * `response`: [Document][google.cloud.dialogflow.v2.Document]
1178
+ *
1179
+ * <p>Sample code:
1180
+ *
1181
+ * <pre>{@code
1182
+ * try (DocumentsClient documentsClient = DocumentsClient.create()) {
1183
+ * ExportDocumentRequest request =
1184
+ * ExportDocumentRequest.newBuilder()
1185
+ * .setName(
1186
+ * DocumentName.ofProjectKnowledgeBaseDocumentName(
1187
+ * "[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]")
1188
+ * .toString())
1189
+ * .setExportFullContent(true)
1190
+ * .setSmartMessagingPartialUpdate(true)
1191
+ * .build();
1192
+ * OperationFuture<Document, KnowledgeOperationMetadata> future =
1193
+ * documentsClient.exportDocumentOperationCallable().futureCall(request);
1194
+ * // Do something.
1195
+ * Document response = future.get();
1196
+ * }
1197
+ * }</pre>
1198
+ */
1199
+ public final OperationCallable <ExportDocumentRequest , Document , KnowledgeOperationMetadata >
1200
+ exportDocumentOperationCallable () {
1201
+ return stub .exportDocumentOperationCallable ();
1202
+ }
1203
+
1204
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1205
+ /**
1206
+ * Exports a smart messaging candidate document into the specified destination.
1207
+ *
1208
+ * <p>This method is a [long-running
1209
+ * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
1210
+ * returned `Operation` type has the following method-specific fields:
1211
+ *
1212
+ * <p>- `metadata`:
1213
+ * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] -
1214
+ * `response`: [Document][google.cloud.dialogflow.v2.Document]
1215
+ *
1216
+ * <p>Sample code:
1217
+ *
1218
+ * <pre>{@code
1219
+ * try (DocumentsClient documentsClient = DocumentsClient.create()) {
1220
+ * ExportDocumentRequest request =
1221
+ * ExportDocumentRequest.newBuilder()
1222
+ * .setName(
1223
+ * DocumentName.ofProjectKnowledgeBaseDocumentName(
1224
+ * "[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]")
1225
+ * .toString())
1226
+ * .setExportFullContent(true)
1227
+ * .setSmartMessagingPartialUpdate(true)
1228
+ * .build();
1229
+ * ApiFuture<Operation> future = documentsClient.exportDocumentCallable().futureCall(request);
1230
+ * // Do something.
1231
+ * Operation response = future.get();
1232
+ * }
1233
+ * }</pre>
1234
+ */
1235
+ public final UnaryCallable <ExportDocumentRequest , Operation > exportDocumentCallable () {
1236
+ return stub .exportDocumentCallable ();
1237
+ }
1238
+
1121
1239
@ Override
1122
1240
public final void close () {
1123
1241
stub .close ();
0 commit comments