diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index a56877e47544..86078ed10397 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -452,7 +452,7 @@ public final UnaryCallable searchAgen *

    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   Empty response = agentsClient.trainAgentAsync(parent).get();
+   *   agentsClient.trainAgentAsync(parent).get();
    * }
    * 
* @@ -481,7 +481,7 @@ public final OperationFuture trainAgentAsync(ProjectName parent) *

    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   Empty response = agentsClient.trainAgentAsync(parent.toString()).get();
+   *   agentsClient.trainAgentAsync(parent.toString()).get();
    * }
    * 
* @@ -512,7 +512,7 @@ public final OperationFuture trainAgentAsync(String parent) { * TrainAgentRequest request = TrainAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * Empty response = agentsClient.trainAgentAsync(request).get(); + * agentsClient.trainAgentAsync(request).get(); * } * * @@ -540,9 +540,9 @@ public final OperationFuture trainAgentAsync(TrainAgentRequest re * TrainAgentRequest request = TrainAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.trainAgentOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = agentsClient.trainAgentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -683,7 +683,7 @@ public final OperationFuture exportAgentAsync( * ExportAgentRequest request = ExportAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.exportAgentOperationCallable().futureCall(request); + * OperationFuture<ExportAgentResponse, Struct> future = agentsClient.exportAgentOperationCallable().futureCall(request); * // Do something * ExportAgentResponse response = future.get(); * } @@ -739,7 +739,7 @@ public final UnaryCallable exportAgentCallable() * ImportAgentRequest request = ImportAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * Empty response = agentsClient.importAgentAsync(request).get(); + * agentsClient.importAgentAsync(request).get(); * } * * @@ -770,9 +770,9 @@ public final OperationFuture importAgentAsync(ImportAgentRequest * ImportAgentRequest request = ImportAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.importAgentOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = agentsClient.importAgentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -827,7 +827,7 @@ public final UnaryCallable importAgentCallable() * RestoreAgentRequest request = RestoreAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * Empty response = agentsClient.restoreAgentAsync(request).get(); + * agentsClient.restoreAgentAsync(request).get(); * } * * @@ -858,9 +858,9 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques * RestoreAgentRequest request = RestoreAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.restoreAgentOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = agentsClient.restoreAgentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index 2ce9d286272d..3f56b68bd5dc 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -959,7 +959,7 @@ public final OperationFuture batchUpdate * BatchUpdateEntityTypesRequest request = BatchUpdateEntityTypesRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchUpdateEntityTypesOperationCallable().futureCall(request); + * OperationFuture<BatchUpdateEntityTypesResponse, Struct> future = entityTypesClient.batchUpdateEntityTypesOperationCallable().futureCall(request); * // Do something * BatchUpdateEntityTypesResponse response = future.get(); * } @@ -1012,7 +1012,7 @@ public final OperationFuture batchUpdate * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<String> entityTypeNames = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntityTypesAsync(parent, entityTypeNames).get(); + * entityTypesClient.batchDeleteEntityTypesAsync(parent, entityTypeNames).get(); * } * * @@ -1048,7 +1048,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<String> entityTypeNames = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntityTypesAsync(parent.toString(), entityTypeNames).get(); + * entityTypesClient.batchDeleteEntityTypesAsync(parent.toString(), entityTypeNames).get(); * } * * @@ -1088,7 +1088,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * .setParent(parent.toString()) * .addAllEntityTypeNames(entityTypeNames) * .build(); - * Empty response = entityTypesClient.batchDeleteEntityTypesAsync(request).get(); + * entityTypesClient.batchDeleteEntityTypesAsync(request).get(); * } * * @@ -1119,9 +1119,9 @@ public final OperationFuture batchDeleteEntityTypesAsync( * .setParent(parent.toString()) * .addAllEntityTypeNames(entityTypeNames) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchDeleteEntityTypesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchDeleteEntityTypesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -1172,7 +1172,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent, entities).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent, entities).get(); * } * * @@ -1207,7 +1207,7 @@ public final OperationFuture batchCreateEntitiesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities).get(); * } * * @@ -1240,7 +1240,7 @@ public final OperationFuture batchCreateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent, entities, languageCode).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent, entities, languageCode).get(); * } * * @@ -1281,7 +1281,7 @@ public final OperationFuture batchCreateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities, languageCode).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities, languageCode).get(); * } * * @@ -1325,7 +1325,7 @@ public final OperationFuture batchCreateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * Empty response = entityTypesClient.batchCreateEntitiesAsync(request).get(); + * entityTypesClient.batchCreateEntitiesAsync(request).get(); * } * * @@ -1356,9 +1356,9 @@ public final OperationFuture batchCreateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchCreateEntitiesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchCreateEntitiesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -1408,7 +1408,7 @@ public final UnaryCallable batchCreateEnt * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent, entities).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent, entities).get(); * } * * @@ -1443,7 +1443,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities).get(); * } * * @@ -1476,7 +1476,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent, entities, languageCode).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent, entities, languageCode).get(); * } * * @@ -1517,7 +1517,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities, languageCode).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities, languageCode).get(); * } * * @@ -1561,7 +1561,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(request).get(); + * entityTypesClient.batchUpdateEntitiesAsync(request).get(); * } * * @@ -1592,9 +1592,9 @@ public final OperationFuture batchUpdateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchUpdateEntitiesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchUpdateEntitiesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -1644,7 +1644,7 @@ public final UnaryCallable batchUpdateEnt * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues).get(); * } * * @@ -1680,7 +1680,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues).get(); * } * * @@ -1717,7 +1717,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues, languageCode).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues, languageCode).get(); * } * * @@ -1759,7 +1759,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues, languageCode).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues, languageCode).get(); * } * * @@ -1804,7 +1804,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * .setParent(parent.toString()) * .addAllEntityValues(entityValues) * .build(); - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(request).get(); + * entityTypesClient.batchDeleteEntitiesAsync(request).get(); * } * * @@ -1835,9 +1835,9 @@ public final OperationFuture batchDeleteEntitiesAsync( * .setParent(parent.toString()) * .addAllEntityValues(entityValues) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchDeleteEntitiesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchDeleteEntitiesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index dd9b3589b95a..2a8b9095b7b1 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -971,7 +971,7 @@ public final OperationFuture batchUpdateInte * .setParent(parent.toString()) * .setLanguageCode(languageCode) * .build(); - * OperationFuture<Operation> future = intentsClient.batchUpdateIntentsOperationCallable().futureCall(request); + * OperationFuture<BatchUpdateIntentsResponse, Struct> future = intentsClient.batchUpdateIntentsOperationCallable().futureCall(request); * // Do something * BatchUpdateIntentsResponse response = future.get(); * } @@ -1022,7 +1022,7 @@ public final UnaryCallable batchUpdateInte * try (IntentsClient intentsClient = IntentsClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<Intent> intents = new ArrayList<>(); - * Empty response = intentsClient.batchDeleteIntentsAsync(parent, intents).get(); + * intentsClient.batchDeleteIntentsAsync(parent, intents).get(); * } * * @@ -1057,7 +1057,7 @@ public final OperationFuture batchDeleteIntentsAsync( * try (IntentsClient intentsClient = IntentsClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<Intent> intents = new ArrayList<>(); - * Empty response = intentsClient.batchDeleteIntentsAsync(parent.toString(), intents).get(); + * intentsClient.batchDeleteIntentsAsync(parent.toString(), intents).get(); * } * * @@ -1093,7 +1093,7 @@ public final OperationFuture batchDeleteIntentsAsync( * .setParent(parent.toString()) * .addAllIntents(intents) * .build(); - * Empty response = intentsClient.batchDeleteIntentsAsync(request).get(); + * intentsClient.batchDeleteIntentsAsync(request).get(); * } * * @@ -1123,9 +1123,9 @@ public final OperationFuture batchDeleteIntentsAsync( * .setParent(parent.toString()) * .addAllIntents(intents) * .build(); - * OperationFuture<Operation> future = intentsClient.batchDeleteIntentsOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = intentsClient.batchDeleteIntentsOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index 39034a5ffaf8..3a605f5f5cf0 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -453,7 +453,7 @@ public final UnaryCallable searchAgen *

    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   Empty response = agentsClient.trainAgentAsync(parent).get();
+   *   agentsClient.trainAgentAsync(parent).get();
    * }
    * 
* @@ -482,7 +482,7 @@ public final OperationFuture trainAgentAsync(ProjectName parent) *

    * try (AgentsClient agentsClient = AgentsClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   Empty response = agentsClient.trainAgentAsync(parent.toString()).get();
+   *   agentsClient.trainAgentAsync(parent.toString()).get();
    * }
    * 
* @@ -513,7 +513,7 @@ public final OperationFuture trainAgentAsync(String parent) { * TrainAgentRequest request = TrainAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * Empty response = agentsClient.trainAgentAsync(request).get(); + * agentsClient.trainAgentAsync(request).get(); * } * * @@ -541,9 +541,9 @@ public final OperationFuture trainAgentAsync(TrainAgentRequest re * TrainAgentRequest request = TrainAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.trainAgentOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = agentsClient.trainAgentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -684,7 +684,7 @@ public final OperationFuture exportAgentAsync( * ExportAgentRequest request = ExportAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.exportAgentOperationCallable().futureCall(request); + * OperationFuture<ExportAgentResponse, Struct> future = agentsClient.exportAgentOperationCallable().futureCall(request); * // Do something * ExportAgentResponse response = future.get(); * } @@ -740,7 +740,7 @@ public final UnaryCallable exportAgentCallable() * ImportAgentRequest request = ImportAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * Empty response = agentsClient.importAgentAsync(request).get(); + * agentsClient.importAgentAsync(request).get(); * } * * @@ -771,9 +771,9 @@ public final OperationFuture importAgentAsync(ImportAgentRequest * ImportAgentRequest request = ImportAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.importAgentOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = agentsClient.importAgentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -828,7 +828,7 @@ public final UnaryCallable importAgentCallable() * RestoreAgentRequest request = RestoreAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * Empty response = agentsClient.restoreAgentAsync(request).get(); + * agentsClient.restoreAgentAsync(request).get(); * } * * @@ -859,9 +859,9 @@ public final OperationFuture restoreAgentAsync(RestoreAgentReques * RestoreAgentRequest request = RestoreAgentRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = agentsClient.restoreAgentOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = agentsClient.restoreAgentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java index 4ea829873915..ba2638bb9e9b 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java @@ -507,7 +507,7 @@ public final OperationFuture createDocumen * .setParent(parent.toString()) * .setDocument(document) * .build(); - * OperationFuture<Operation> future = documentsClient.createDocumentOperationCallable().futureCall(request); + * OperationFuture<Document, KnowledgeOperationMetadata> future = documentsClient.createDocumentOperationCallable().futureCall(request); * // Do something * Document response = future.get(); * } @@ -558,7 +558,7 @@ public final UnaryCallable createDocumentCalla *

    * try (DocumentsClient documentsClient = DocumentsClient.create()) {
    *   DocumentName name = DocumentName.of("[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]");
-   *   Empty response = documentsClient.deleteDocumentAsync(name).get();
+   *   documentsClient.deleteDocumentAsync(name).get();
    * }
    * 
* @@ -588,7 +588,7 @@ public final OperationFuture deleteDocumentAs *

    * try (DocumentsClient documentsClient = DocumentsClient.create()) {
    *   DocumentName name = DocumentName.of("[PROJECT]", "[KNOWLEDGE_BASE]", "[DOCUMENT]");
-   *   Empty response = documentsClient.deleteDocumentAsync(name.toString()).get();
+   *   documentsClient.deleteDocumentAsync(name.toString()).get();
    * }
    * 
* @@ -619,7 +619,7 @@ public final OperationFuture deleteDocumentAs * DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder() * .setName(name.toString()) * .build(); - * Empty response = documentsClient.deleteDocumentAsync(request).get(); + * documentsClient.deleteDocumentAsync(request).get(); * } * * @@ -648,9 +648,9 @@ public final OperationFuture deleteDocumentAs * DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder() * .setName(name.toString()) * .build(); - * OperationFuture<Operation> future = documentsClient.deleteDocumentOperationCallable().futureCall(request); + * OperationFuture<Empty, KnowledgeOperationMetadata> future = documentsClient.deleteDocumentOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java index 180d58a04f2b..797c5ea48bc0 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java @@ -959,7 +959,7 @@ public final OperationFuture batchUpdate * BatchUpdateEntityTypesRequest request = BatchUpdateEntityTypesRequest.newBuilder() * .setParent(parent.toString()) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchUpdateEntityTypesOperationCallable().futureCall(request); + * OperationFuture<BatchUpdateEntityTypesResponse, Struct> future = entityTypesClient.batchUpdateEntityTypesOperationCallable().futureCall(request); * // Do something * BatchUpdateEntityTypesResponse response = future.get(); * } @@ -1012,7 +1012,7 @@ public final OperationFuture batchUpdate * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<String> entityTypeNames = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntityTypesAsync(parent, entityTypeNames).get(); + * entityTypesClient.batchDeleteEntityTypesAsync(parent, entityTypeNames).get(); * } * * @@ -1048,7 +1048,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<String> entityTypeNames = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntityTypesAsync(parent.toString(), entityTypeNames).get(); + * entityTypesClient.batchDeleteEntityTypesAsync(parent.toString(), entityTypeNames).get(); * } * * @@ -1088,7 +1088,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * .setParent(parent.toString()) * .addAllEntityTypeNames(entityTypeNames) * .build(); - * Empty response = entityTypesClient.batchDeleteEntityTypesAsync(request).get(); + * entityTypesClient.batchDeleteEntityTypesAsync(request).get(); * } * * @@ -1119,9 +1119,9 @@ public final OperationFuture batchDeleteEntityTypesAsync( * .setParent(parent.toString()) * .addAllEntityTypeNames(entityTypeNames) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchDeleteEntityTypesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchDeleteEntityTypesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -1172,7 +1172,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent, entities).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent, entities).get(); * } * * @@ -1207,7 +1207,7 @@ public final OperationFuture batchCreateEntitiesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities).get(); * } * * @@ -1240,7 +1240,7 @@ public final OperationFuture batchCreateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent, entities, languageCode).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent, entities, languageCode).get(); * } * * @@ -1281,7 +1281,7 @@ public final OperationFuture batchCreateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities, languageCode).get(); + * entityTypesClient.batchCreateEntitiesAsync(parent.toString(), entities, languageCode).get(); * } * * @@ -1325,7 +1325,7 @@ public final OperationFuture batchCreateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * Empty response = entityTypesClient.batchCreateEntitiesAsync(request).get(); + * entityTypesClient.batchCreateEntitiesAsync(request).get(); * } * * @@ -1356,9 +1356,9 @@ public final OperationFuture batchCreateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchCreateEntitiesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchCreateEntitiesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -1408,7 +1408,7 @@ public final UnaryCallable batchCreateEnt * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent, entities).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent, entities).get(); * } * * @@ -1443,7 +1443,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities).get(); * } * * @@ -1476,7 +1476,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent, entities, languageCode).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent, entities, languageCode).get(); * } * * @@ -1517,7 +1517,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<EntityType.Entity> entities = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities, languageCode).get(); + * entityTypesClient.batchUpdateEntitiesAsync(parent.toString(), entities, languageCode).get(); * } * * @@ -1561,7 +1561,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * Empty response = entityTypesClient.batchUpdateEntitiesAsync(request).get(); + * entityTypesClient.batchUpdateEntitiesAsync(request).get(); * } * * @@ -1592,9 +1592,9 @@ public final OperationFuture batchUpdateEntitiesAsync( * .setParent(parent.toString()) * .addAllEntities(entities) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchUpdateEntitiesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchUpdateEntitiesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -1644,7 +1644,7 @@ public final UnaryCallable batchUpdateEnt * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues).get(); * } * * @@ -1680,7 +1680,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) { * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues).get(); * } * * @@ -1717,7 +1717,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues, languageCode).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent, entityValues, languageCode).get(); * } * * @@ -1759,7 +1759,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * EntityTypeName parent = EntityTypeName.of("[PROJECT]", "[ENTITY_TYPE]"); * List<String> entityValues = new ArrayList<>(); * String languageCode = ""; - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues, languageCode).get(); + * entityTypesClient.batchDeleteEntitiesAsync(parent.toString(), entityValues, languageCode).get(); * } * * @@ -1804,7 +1804,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * .setParent(parent.toString()) * .addAllEntityValues(entityValues) * .build(); - * Empty response = entityTypesClient.batchDeleteEntitiesAsync(request).get(); + * entityTypesClient.batchDeleteEntitiesAsync(request).get(); * } * * @@ -1835,9 +1835,9 @@ public final OperationFuture batchDeleteEntitiesAsync( * .setParent(parent.toString()) * .addAllEntityValues(entityValues) * .build(); - * OperationFuture<Operation> future = entityTypesClient.batchDeleteEntitiesOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = entityTypesClient.batchDeleteEntitiesOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index 57a802c8d785..a944178880e1 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -971,7 +971,7 @@ public final OperationFuture batchUpdateInte * .setParent(parent.toString()) * .setLanguageCode(languageCode) * .build(); - * OperationFuture<Operation> future = intentsClient.batchUpdateIntentsOperationCallable().futureCall(request); + * OperationFuture<BatchUpdateIntentsResponse, Struct> future = intentsClient.batchUpdateIntentsOperationCallable().futureCall(request); * // Do something * BatchUpdateIntentsResponse response = future.get(); * } @@ -1022,7 +1022,7 @@ public final UnaryCallable batchUpdateInte * try (IntentsClient intentsClient = IntentsClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<Intent> intents = new ArrayList<>(); - * Empty response = intentsClient.batchDeleteIntentsAsync(parent, intents).get(); + * intentsClient.batchDeleteIntentsAsync(parent, intents).get(); * } * * @@ -1057,7 +1057,7 @@ public final OperationFuture batchDeleteIntentsAsync( * try (IntentsClient intentsClient = IntentsClient.create()) { * ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); * List<Intent> intents = new ArrayList<>(); - * Empty response = intentsClient.batchDeleteIntentsAsync(parent.toString(), intents).get(); + * intentsClient.batchDeleteIntentsAsync(parent.toString(), intents).get(); * } * * @@ -1093,7 +1093,7 @@ public final OperationFuture batchDeleteIntentsAsync( * .setParent(parent.toString()) * .addAllIntents(intents) * .build(); - * Empty response = intentsClient.batchDeleteIntentsAsync(request).get(); + * intentsClient.batchDeleteIntentsAsync(request).get(); * } * * @@ -1123,9 +1123,9 @@ public final OperationFuture batchDeleteIntentsAsync( * .setParent(parent.toString()) * .addAllIntents(intents) * .build(); - * OperationFuture<Operation> future = intentsClient.batchDeleteIntentsOperationCallable().futureCall(request); + * OperationFuture<Empty, Struct> future = intentsClient.batchDeleteIntentsOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.metadata b/google-cloud-clients/google-cloud-dialogflow/synth.metadata index 1833730c6840..ff26c85e702c 100644 --- a/google-cloud-clients/google-cloud-dialogflow/synth.metadata +++ b/google-cloud-clients/google-cloud-dialogflow/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-17T08:42:27.093781Z", + "updateTime": "2019-02-02T08:39:12.110087Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.6", - "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" + "version": "0.16.8", + "dockerImage": "googleapis/artman@sha256:75bc07ef34a1de9895c18af54dc503ed3b3f3b52e85062e3360a979d2a0741e7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05", - "internalRef": "229626798" + "sha": "bce093dab3e65c40eb9a37efbdc960f34df6037a", + "internalRef": "231974277" } } ],