From 15c07c54045c658d1ee150efc7b6a74edfa0a3e5 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 2 Apr 2019 00:42:47 -0700 Subject: [PATCH] Regenerate dialogflow client --- .../dialogflow/v2beta1/DocumentsClient.java | 92 +++++++++++++++++++ .../dialogflow/v2beta1/DocumentsSettings.java | 20 ++++ .../v2beta1/KnowledgeBasesClient.java | 40 ++++++++ .../v2beta1/KnowledgeBasesSettings.java | 12 +++ .../v2beta1/stub/DocumentsStub.java | 10 ++ .../v2beta1/stub/DocumentsStubSettings.java | 54 ++++++++++- .../v2beta1/stub/GrpcDocumentsStub.java | 62 +++++++++++++ .../v2beta1/stub/GrpcKnowledgeBasesStub.java | 38 ++++++++ .../v2beta1/stub/KnowledgeBasesStub.java | 5 + .../stub/KnowledgeBasesStubSettings.java | 32 ++++++- .../cloud/dialogflow/v2/MockAgentsImpl.java | 2 +- .../cloud/dialogflow/v2/MockContextsImpl.java | 2 +- .../dialogflow/v2/MockEntityTypesImpl.java | 2 +- .../cloud/dialogflow/v2/MockIntentsImpl.java | 2 +- .../v2/MockSessionEntityTypesImpl.java | 2 +- .../cloud/dialogflow/v2/MockSessionsImpl.java | 2 +- .../dialogflow/v2beta1/MockAgentsImpl.java | 2 +- .../dialogflow/v2beta1/MockContextsImpl.java | 2 +- .../dialogflow/v2beta1/MockDocumentsImpl.java | 32 ++++++- .../v2beta1/MockEntityTypesImpl.java | 2 +- .../dialogflow/v2beta1/MockIntentsImpl.java | 2 +- .../v2beta1/MockKnowledgeBasesImpl.java | 17 +++- .../v2beta1/MockSessionEntityTypesImpl.java | 2 +- .../dialogflow/v2beta1/MockSessionsImpl.java | 2 +- .../google-cloud-dialogflow/synth.metadata | 10 +- 25 files changed, 425 insertions(+), 23 deletions(-) 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 5386c6c8d714..7bce8c960d53 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 @@ -686,6 +686,98 @@ public final UnaryCallable deleteDocumentCalla return stub.deleteDocumentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified document. Operation <response: + * [Document][google.cloud.dialogflow.v2beta1.Document], metadata: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * + *

Sample code: + * + *


+   * try (DocumentsClient documentsClient = DocumentsClient.create()) {
+   *   UpdateDocumentRequest request = UpdateDocumentRequest.newBuilder().build();
+   *   Operation response = documentsClient.updateDocument(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateDocument(UpdateDocumentRequest request) { + return updateDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified document. Operation <response: + * [Document][google.cloud.dialogflow.v2beta1.Document], metadata: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * + *

Sample code: + * + *


+   * try (DocumentsClient documentsClient = DocumentsClient.create()) {
+   *   UpdateDocumentRequest request = UpdateDocumentRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = documentsClient.updateDocumentCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateDocumentCallable() { + return stub.updateDocumentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Reloads the specified document from its specified source, content_uri or content. The + * previously loaded content of the document will be deleted. Note: Even when the content of the + * document has not changed, there still may be side effects because of internal implementation + * changes. Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * + *

Sample code: + * + *


+   * try (DocumentsClient documentsClient = DocumentsClient.create()) {
+   *   ReloadDocumentRequest request = ReloadDocumentRequest.newBuilder().build();
+   *   Operation response = documentsClient.reloadDocument(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation reloadDocument(ReloadDocumentRequest request) { + return reloadDocumentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Reloads the specified document from its specified source, content_uri or content. The + * previously loaded content of the document will be deleted. Note: Even when the content of the + * document has not changed, there still may be side effects because of internal implementation + * changes. Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document], + * metadata: + * [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]> + * + *

Sample code: + * + *


+   * try (DocumentsClient documentsClient = DocumentsClient.create()) {
+   *   ReloadDocumentRequest request = ReloadDocumentRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = documentsClient.reloadDocumentCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable reloadDocumentCallable() { + return stub.reloadDocumentCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java index 8b278a62916d..ff7f9358f604 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java @@ -102,6 +102,16 @@ public UnaryCallSettings deleteDocumentSetting return ((DocumentsStubSettings) getStubSettings()).deleteDocumentOperationSettings(); } + /** Returns the object with the settings used for calls to updateDocument. */ + public UnaryCallSettings updateDocumentSettings() { + return ((DocumentsStubSettings) getStubSettings()).updateDocumentSettings(); + } + + /** Returns the object with the settings used for calls to reloadDocument. */ + public UnaryCallSettings reloadDocumentSettings() { + return ((DocumentsStubSettings) getStubSettings()).reloadDocumentSettings(); + } + public static final DocumentsSettings create(DocumentsStubSettings stub) throws IOException { return new DocumentsSettings.Builder(stub.toBuilder()).build(); } @@ -237,6 +247,16 @@ public UnaryCallSettings.Builder deleteDocumen return getStubSettingsBuilder().deleteDocumentOperationSettings(); } + /** Returns the builder for the settings used for calls to updateDocument. */ + public UnaryCallSettings.Builder updateDocumentSettings() { + return getStubSettingsBuilder().updateDocumentSettings(); + } + + /** Returns the builder for the settings used for calls to reloadDocument. */ + public UnaryCallSettings.Builder reloadDocumentSettings() { + return getStubSettingsBuilder().reloadDocumentSettings(); + } + @Override public DocumentsSettings build() throws IOException { return new DocumentsSettings(this); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index e4d157fb0f68..5857bc2bb9f5 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -586,6 +586,46 @@ public final UnaryCallable deleteKnowledgeBas return stub.deleteKnowledgeBaseCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified knowledge base. + * + *

Sample code: + * + *


+   * try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) {
+   *   UpdateKnowledgeBaseRequest request = UpdateKnowledgeBaseRequest.newBuilder().build();
+   *   KnowledgeBase response = knowledgeBasesClient.updateKnowledgeBase(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest request) { + return updateKnowledgeBaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified knowledge base. + * + *

Sample code: + * + *


+   * try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) {
+   *   UpdateKnowledgeBaseRequest request = UpdateKnowledgeBaseRequest.newBuilder().build();
+   *   ApiFuture<KnowledgeBase> future = knowledgeBasesClient.updateKnowledgeBaseCallable().futureCall(request);
+   *   // Do something
+   *   KnowledgeBase response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateKnowledgeBaseCallable() { + return stub.updateKnowledgeBaseCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java index 5ac1b92cf491..e671b6c9c647 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java @@ -86,6 +86,12 @@ public UnaryCallSettings deleteKnowledgeBaseS return ((KnowledgeBasesStubSettings) getStubSettings()).deleteKnowledgeBaseSettings(); } + /** Returns the object with the settings used for calls to updateKnowledgeBase. */ + public UnaryCallSettings + updateKnowledgeBaseSettings() { + return ((KnowledgeBasesStubSettings) getStubSettings()).updateKnowledgeBaseSettings(); + } + public static final KnowledgeBasesSettings create(KnowledgeBasesStubSettings stub) throws IOException { return new KnowledgeBasesSettings.Builder(stub.toBuilder()).build(); @@ -208,6 +214,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteKnowledgeBaseSettings(); } + /** Returns the builder for the settings used for calls to updateKnowledgeBase. */ + public UnaryCallSettings.Builder + updateKnowledgeBaseSettings() { + return getStubSettingsBuilder().updateKnowledgeBaseSettings(); + } + @Override public KnowledgeBasesSettings build() throws IOException { return new KnowledgeBasesSettings(this); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java index bf9de443bcfb..3e814009dda6 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java @@ -28,6 +28,8 @@ import com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata; import com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest; import com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse; +import com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest; +import com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -81,6 +83,14 @@ public UnaryCallable deleteDocumentCallable() throw new UnsupportedOperationException("Not implemented: deleteDocumentCallable()"); } + public UnaryCallable updateDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: updateDocumentCallable()"); + } + + public UnaryCallable reloadDocumentCallable() { + throw new UnsupportedOperationException("Not implemented: reloadDocumentCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java index 49c1a4f0eddf..9bf1a77c4de3 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java @@ -50,6 +50,8 @@ import com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata; import com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest; import com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse; +import com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest; +import com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -107,6 +109,8 @@ public class DocumentsStubSettings extends StubSettings { private final UnaryCallSettings deleteDocumentSettings; private final OperationCallSettings deleteDocumentOperationSettings; + private final UnaryCallSettings updateDocumentSettings; + private final UnaryCallSettings reloadDocumentSettings; /** Returns the object with the settings used for calls to listDocuments. */ public PagedCallSettings @@ -143,6 +147,16 @@ public UnaryCallSettings deleteDocumentSetting return deleteDocumentOperationSettings; } + /** Returns the object with the settings used for calls to updateDocument. */ + public UnaryCallSettings updateDocumentSettings() { + return updateDocumentSettings; + } + + /** Returns the object with the settings used for calls to reloadDocument. */ + public UnaryCallSettings reloadDocumentSettings() { + return reloadDocumentSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public DocumentsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -216,6 +230,8 @@ protected DocumentsStubSettings(Builder settingsBuilder) throws IOException { createDocumentOperationSettings = settingsBuilder.createDocumentOperationSettings().build(); deleteDocumentSettings = settingsBuilder.deleteDocumentSettings().build(); deleteDocumentOperationSettings = settingsBuilder.deleteDocumentOperationSettings().build(); + updateDocumentSettings = settingsBuilder.updateDocumentSettings().build(); + reloadDocumentSettings = settingsBuilder.reloadDocumentSettings().build(); } private static final PagedListDescriptor @@ -289,6 +305,10 @@ public static class Builder extends StubSettings.Builder deleteDocumentOperationSettings; + private final UnaryCallSettings.Builder + updateDocumentSettings; + private final UnaryCallSettings.Builder + reloadDocumentSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -343,12 +363,18 @@ protected Builder(ClientContext clientContext) { deleteDocumentOperationSettings = OperationCallSettings.newBuilder(); + updateDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + reloadDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( listDocumentsSettings, getDocumentSettings, createDocumentSettings, - deleteDocumentSettings); + deleteDocumentSettings, + updateDocumentSettings, + reloadDocumentSettings); initDefaults(this); } @@ -383,6 +409,16 @@ private static Builder initDefaults(Builder builder) { .deleteDocumentSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .reloadDocumentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .createDocumentOperationSettings() .setInitialCallSettings( @@ -444,13 +480,17 @@ protected Builder(DocumentsStubSettings settings) { createDocumentOperationSettings = settings.createDocumentOperationSettings.toBuilder(); deleteDocumentSettings = settings.deleteDocumentSettings.toBuilder(); deleteDocumentOperationSettings = settings.deleteDocumentOperationSettings.toBuilder(); + updateDocumentSettings = settings.updateDocumentSettings.toBuilder(); + reloadDocumentSettings = settings.reloadDocumentSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listDocumentsSettings, getDocumentSettings, createDocumentSettings, - deleteDocumentSettings); + deleteDocumentSettings, + updateDocumentSettings, + reloadDocumentSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -508,6 +548,16 @@ public UnaryCallSettings.Builder deleteDocumen return deleteDocumentOperationSettings; } + /** Returns the builder for the settings used for calls to updateDocument. */ + public UnaryCallSettings.Builder updateDocumentSettings() { + return updateDocumentSettings; + } + + /** Returns the builder for the settings used for calls to reloadDocument. */ + public UnaryCallSettings.Builder reloadDocumentSettings() { + return reloadDocumentSettings; + } + @Override public DocumentsStubSettings build() throws IOException { return new DocumentsStubSettings(this); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java index cb5b1a6edbbf..c8be604600cd 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java @@ -33,6 +33,8 @@ import com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata; import com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest; import com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse; +import com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest; +import com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -89,6 +91,24 @@ public class GrpcDocumentsStub extends DocumentsStub { ProtoUtils.marshaller(DeleteDocumentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Documents/UpdateDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor + reloadDocumentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.v2beta1.Documents/ReloadDocument") + .setRequestMarshaller( + ProtoUtils.marshaller(ReloadDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -103,6 +123,8 @@ public class GrpcDocumentsStub extends DocumentsStub { private final UnaryCallable deleteDocumentCallable; private final OperationCallable deleteDocumentOperationCallable; + private final UnaryCallable updateDocumentCallable; + private final UnaryCallable reloadDocumentCallable; private final GrpcStubCallableFactory callableFactory; @@ -195,6 +217,32 @@ public Map extract(DeleteDocumentRequest request) { } }) .build(); + GrpcCallSettings updateDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDocumentMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateDocumentRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("document.name", String.valueOf(request.getDocument().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings reloadDocumentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(reloadDocumentMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ReloadDocumentRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); this.listDocumentsCallable = callableFactory.createUnaryCallable( @@ -223,6 +271,12 @@ public Map extract(DeleteDocumentRequest request) { settings.deleteDocumentOperationSettings(), clientContext, this.operationsStub); + this.updateDocumentCallable = + callableFactory.createUnaryCallable( + updateDocumentTransportSettings, settings.updateDocumentSettings(), clientContext); + this.reloadDocumentCallable = + callableFactory.createUnaryCallable( + reloadDocumentTransportSettings, settings.reloadDocumentSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -265,6 +319,14 @@ public UnaryCallable deleteDocumentCallable() return deleteDocumentCallable; } + public UnaryCallable updateDocumentCallable() { + return updateDocumentCallable; + } + + public UnaryCallable reloadDocumentCallable() { + return reloadDocumentCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java index 1309c4c62fc9..6975e35c3e47 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java @@ -31,6 +31,7 @@ import com.google.cloud.dialogflow.v2beta1.KnowledgeBase; import com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest; import com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse; +import com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest; import com.google.common.collect.ImmutableMap; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -90,6 +91,16 @@ public class GrpcKnowledgeBasesStub extends KnowledgeBasesStub { ProtoUtils.marshaller(DeleteKnowledgeBaseRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateKnowledgeBaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dialogflow.v2beta1.KnowledgeBases/UpdateKnowledgeBase") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateKnowledgeBaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(KnowledgeBase.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; @@ -101,6 +112,8 @@ public class GrpcKnowledgeBasesStub extends KnowledgeBasesStub { private final UnaryCallable createKnowledgeBaseCallable; private final UnaryCallable deleteKnowledgeBaseCallable; + private final UnaryCallable + updateKnowledgeBaseCallable; private final GrpcStubCallableFactory callableFactory; @@ -197,6 +210,22 @@ public Map extract(DeleteKnowledgeBaseRequest request) { } }) .build(); + GrpcCallSettings + updateKnowledgeBaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateKnowledgeBaseMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateKnowledgeBaseRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "knowledge_base.name", + String.valueOf(request.getKnowledgeBase().getName())); + return params.build(); + } + }) + .build(); this.listKnowledgeBasesCallable = callableFactory.createUnaryCallable( @@ -221,6 +250,11 @@ public Map extract(DeleteKnowledgeBaseRequest request) { deleteKnowledgeBaseTransportSettings, settings.deleteKnowledgeBaseSettings(), clientContext); + this.updateKnowledgeBaseCallable = + callableFactory.createUnaryCallable( + updateKnowledgeBaseTransportSettings, + settings.updateKnowledgeBaseSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -247,6 +281,10 @@ public UnaryCallable deleteKnowledgeBaseCalla return deleteKnowledgeBaseCallable; } + public UnaryCallable updateKnowledgeBaseCallable() { + return updateKnowledgeBaseCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStub.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStub.java index 24e8eaf2f1c9..81a3858750b3 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStub.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStub.java @@ -26,6 +26,7 @@ import com.google.cloud.dialogflow.v2beta1.KnowledgeBase; import com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest; import com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse; +import com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -61,6 +62,10 @@ public UnaryCallable deleteKnowledgeBaseCalla throw new UnsupportedOperationException("Not implemented: deleteKnowledgeBaseCallable()"); } + public UnaryCallable updateKnowledgeBaseCallable() { + throw new UnsupportedOperationException("Not implemented: updateKnowledgeBaseCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java index 19921b64c154..a3f3a0cc640b 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java @@ -45,6 +45,7 @@ import com.google.cloud.dialogflow.v2beta1.KnowledgeBase; import com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest; import com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse; +import com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -98,6 +99,8 @@ public class KnowledgeBasesStubSettings extends StubSettings createKnowledgeBaseSettings; private final UnaryCallSettings deleteKnowledgeBaseSettings; + private final UnaryCallSettings + updateKnowledgeBaseSettings; /** Returns the object with the settings used for calls to listKnowledgeBases. */ public PagedCallSettings< @@ -122,6 +125,12 @@ public UnaryCallSettings deleteKnowledgeBaseS return deleteKnowledgeBaseSettings; } + /** Returns the object with the settings used for calls to updateKnowledgeBase. */ + public UnaryCallSettings + updateKnowledgeBaseSettings() { + return updateKnowledgeBaseSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public KnowledgeBasesStub createStub() throws IOException { if (getTransportChannelProvider() @@ -194,6 +203,7 @@ protected KnowledgeBasesStubSettings(Builder settingsBuilder) throws IOException getKnowledgeBaseSettings = settingsBuilder.getKnowledgeBaseSettings().build(); createKnowledgeBaseSettings = settingsBuilder.createKnowledgeBaseSettings().build(); deleteKnowledgeBaseSettings = settingsBuilder.deleteKnowledgeBaseSettings().build(); + updateKnowledgeBaseSettings = settingsBuilder.updateKnowledgeBaseSettings().build(); } private static final PagedListDescriptor< @@ -270,6 +280,8 @@ public static class Builder extends StubSettings.Builder deleteKnowledgeBaseSettings; + private final UnaryCallSettings.Builder + updateKnowledgeBaseSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -320,12 +332,15 @@ protected Builder(ClientContext clientContext) { deleteKnowledgeBaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKnowledgeBaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( listKnowledgeBasesSettings, getKnowledgeBaseSettings, createKnowledgeBaseSettings, - deleteKnowledgeBaseSettings); + deleteKnowledgeBaseSettings, + updateKnowledgeBaseSettings); initDefaults(this); } @@ -361,6 +376,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .updateKnowledgeBaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -371,13 +391,15 @@ protected Builder(KnowledgeBasesStubSettings settings) { getKnowledgeBaseSettings = settings.getKnowledgeBaseSettings.toBuilder(); createKnowledgeBaseSettings = settings.createKnowledgeBaseSettings.toBuilder(); deleteKnowledgeBaseSettings = settings.deleteKnowledgeBaseSettings.toBuilder(); + updateKnowledgeBaseSettings = settings.updateKnowledgeBaseSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listKnowledgeBasesSettings, getKnowledgeBaseSettings, createKnowledgeBaseSettings, - deleteKnowledgeBaseSettings); + deleteKnowledgeBaseSettings, + updateKnowledgeBaseSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -421,6 +443,12 @@ public Builder applyToAllUnaryMethods( return deleteKnowledgeBaseSettings; } + /** Returns the builder for the settings used for calls to updateKnowledgeBase. */ + public UnaryCallSettings.Builder + updateKnowledgeBaseSettings() { + return updateKnowledgeBaseSettings; + } + @Override public KnowledgeBasesStubSettings build() throws IOException { return new KnowledgeBasesStubSettings(this); diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java index 8a6a7ea033b6..a7aa079d4858 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockAgentsImpl extends AgentsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockAgentsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java index 8fd60484080d..f08c922d49a7 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockContextsImpl extends ContextsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockContextsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java index b51cd6eafbf6..3afb90de803a 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java @@ -29,7 +29,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockEntityTypesImpl extends EntityTypesImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockEntityTypesImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java index 6f1180795dd5..fd4b3db093d4 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java @@ -29,7 +29,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockIntentsImpl extends IntentsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockIntentsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java index a2835eb638c4..2817a6793961 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockSessionEntityTypesImpl extends SessionEntityTypesImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockSessionEntityTypesImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java index bc9ad9b4dad9..4dfb3a14dacd 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java @@ -27,7 +27,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockSessionsImpl extends SessionsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockSessionsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java index 708c4efc5095..acad2759c987 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockAgentsImpl extends AgentsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockAgentsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockContextsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockContextsImpl.java index 1e89f867f899..e41f0c83b271 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockContextsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockContextsImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockContextsImpl extends ContextsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockContextsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockDocumentsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockDocumentsImpl.java index 52b34cd7eda9..1533e5449686 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockDocumentsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockDocumentsImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockDocumentsImpl extends DocumentsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockDocumentsImpl() { @@ -115,4 +115,34 @@ public void deleteDocument( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void updateDocument( + UpdateDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void reloadDocument( + ReloadDocumentRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEntityTypesImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEntityTypesImpl.java index 0d3f30d86f08..af3dbbe8dac1 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEntityTypesImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEntityTypesImpl.java @@ -29,7 +29,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockEntityTypesImpl extends EntityTypesImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockEntityTypesImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockIntentsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockIntentsImpl.java index 699e3bcad925..709f726569c4 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockIntentsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockIntentsImpl.java @@ -29,7 +29,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockIntentsImpl extends IntentsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockIntentsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockKnowledgeBasesImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockKnowledgeBasesImpl.java index 59303c78c02d..10b48d8c2f79 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockKnowledgeBasesImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockKnowledgeBasesImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockKnowledgeBasesImpl extends KnowledgeBasesImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockKnowledgeBasesImpl() { @@ -117,4 +117,19 @@ public void deleteKnowledgeBase( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void updateKnowledgeBase( + UpdateKnowledgeBaseRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof KnowledgeBase) { + requests.add(request); + responseObserver.onNext((KnowledgeBase) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionEntityTypesImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionEntityTypesImpl.java index 21ee139c160b..fdbbfdad728b 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionEntityTypesImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionEntityTypesImpl.java @@ -28,7 +28,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockSessionEntityTypesImpl extends SessionEntityTypesImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockSessionEntityTypesImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionsImpl.java b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionsImpl.java index 6ff69810f3a0..e54290f5d665 100644 --- a/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionsImpl.java +++ b/google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionsImpl.java @@ -27,7 +27,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockSessionsImpl extends SessionsImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockSessionsImpl() { diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.metadata b/google-cloud-clients/google-cloud-dialogflow/synth.metadata index 6c3e8e0b8d22..6057c1e9b9e9 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-03-30T07:42:07.239520Z", + "updateTime": "2019-04-02T07:42:46.517969Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.21", - "dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78" + "version": "0.16.22", + "dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b", - "internalRef": "241096997" + "sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d", + "internalRef": "241437588" } } ],