From d48d82caace227856b6cd85ac30ee474528733ea Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 2 Apr 2019 00:46:06 -0700 Subject: [PATCH] Regenerate firestore client --- .../firestore/v1/stub/GrpcFirestoreStub.java | 18 ------------------ .../v1beta1/stub/GrpcFirestoreStub.java | 18 ------------------ .../firestore/v1/MockFirestoreAdminImpl.java | 2 +- .../cloud/firestore/v1/MockFirestoreImpl.java | 2 +- .../firestore/v1beta1/MockFirestoreImpl.java | 2 +- .../google-cloud-firestore/synth.metadata | 10 +++++----- 6 files changed, 8 insertions(+), 44 deletions(-) diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java index fdf7098a94f6..a9fd1861dab4 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java @@ -358,28 +358,10 @@ public Map extract(RunQueryRequest request) { GrpcCallSettings writeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(writeMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(WriteRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("database", String.valueOf(request.getDatabase())); - return params.build(); - } - }) .build(); GrpcCallSettings listenTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listenMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListenRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("database", String.valueOf(request.getDatabase())); - return params.build(); - } - }) .build(); GrpcCallSettings listCollectionIdsTransportSettings = diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/GrpcFirestoreStub.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/GrpcFirestoreStub.java index 8fabcd4b35b3..3c3b1d90050b 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/GrpcFirestoreStub.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/GrpcFirestoreStub.java @@ -358,28 +358,10 @@ public Map extract(RunQueryRequest request) { GrpcCallSettings writeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(writeMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(WriteRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("database", String.valueOf(request.getDatabase())); - return params.build(); - } - }) .build(); GrpcCallSettings listenTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listenMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListenRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("database", String.valueOf(request.getDatabase())); - return params.build(); - } - }) .build(); GrpcCallSettings listCollectionIdsTransportSettings = diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java index c40942d41226..429d03d00cd1 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java @@ -42,7 +42,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockFirestoreAdminImpl extends FirestoreAdminImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockFirestoreAdminImpl() { diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java index 955fb973cc30..fd04e1d089d0 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java @@ -50,7 +50,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockFirestoreImpl extends FirestoreImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockFirestoreImpl() { diff --git a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1beta1/MockFirestoreImpl.java b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1beta1/MockFirestoreImpl.java index ebf72ef37989..8edf1fc8b4f2 100644 --- a/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1beta1/MockFirestoreImpl.java +++ b/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1beta1/MockFirestoreImpl.java @@ -50,7 +50,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockFirestoreImpl extends FirestoreImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockFirestoreImpl() { diff --git a/google-cloud-clients/google-cloud-firestore/synth.metadata b/google-cloud-clients/google-cloud-firestore/synth.metadata index 1ad1350b9aca..c96853e600fd 100644 --- a/google-cloud-clients/google-cloud-firestore/synth.metadata +++ b/google-cloud-clients/google-cloud-firestore/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-30T07:45:26.469058Z", + "updateTime": "2019-04-02T07:46:06.702450Z", "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" } } ],