Skip to content

Commit 1814578

Browse files
yoshi-automationPraful Makani
authored andcommitted
---
yaml --- r: 27125 b: refs/heads/autosynth-firestore c: 5b2d185 h: refs/heads/master i: 27123: cfbfb76
1 parent 71cee6a commit 1814578

9 files changed

Lines changed: 51 additions & 15 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ refs/heads/autosynth-containeranalysis: af5b804492292b43372c9fe00386696136ccae89
130130
refs/heads/autosynth-datastore: d0fc1187000c7a50d8bddd89c3b7cdf1187ecb96
131131
refs/heads/autosynth-dialogflow: cb1ceeb3ec1a132d3096fc88d44b930a52130e18
132132
refs/heads/autosynth-errorreporting: 3f176c20b55dfaaa8fc32f28d82b31784b93e636
133-
refs/heads/autosynth-firestore: d48d82caace227856b6cd85ac30ee474528733ea
133+
refs/heads/autosynth-firestore: 5b2d1854dc03e48dd7a13160c049577ece2c72f0
134134
refs/heads/autosynth-iot: 4025d1804241e74d54950a324dc4f667aeaad4b3
135135
refs/heads/autosynth-kms: 6b65b0f34c12d141031c7288cdc01e550212d0f6
136136
refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9

branches/autosynth-firestore/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/GrpcFirestoreStub.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,28 @@ public Map<String, String> extract(RunQueryRequest request) {
358358
GrpcCallSettings<WriteRequest, WriteResponse> writeTransportSettings =
359359
GrpcCallSettings.<WriteRequest, WriteResponse>newBuilder()
360360
.setMethodDescriptor(writeMethodDescriptor)
361+
.setParamsExtractor(
362+
new RequestParamsExtractor<WriteRequest>() {
363+
@Override
364+
public Map<String, String> extract(WriteRequest request) {
365+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
366+
params.put("database", String.valueOf(request.getDatabase()));
367+
return params.build();
368+
}
369+
})
361370
.build();
362371
GrpcCallSettings<ListenRequest, ListenResponse> listenTransportSettings =
363372
GrpcCallSettings.<ListenRequest, ListenResponse>newBuilder()
364373
.setMethodDescriptor(listenMethodDescriptor)
374+
.setParamsExtractor(
375+
new RequestParamsExtractor<ListenRequest>() {
376+
@Override
377+
public Map<String, String> extract(ListenRequest request) {
378+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
379+
params.put("database", String.valueOf(request.getDatabase()));
380+
return params.build();
381+
}
382+
})
365383
.build();
366384
GrpcCallSettings<ListCollectionIdsRequest, ListCollectionIdsResponse>
367385
listCollectionIdsTransportSettings =

branches/autosynth-firestore/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/GrpcFirestoreStub.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,28 @@ public Map<String, String> extract(RunQueryRequest request) {
358358
GrpcCallSettings<WriteRequest, WriteResponse> writeTransportSettings =
359359
GrpcCallSettings.<WriteRequest, WriteResponse>newBuilder()
360360
.setMethodDescriptor(writeMethodDescriptor)
361+
.setParamsExtractor(
362+
new RequestParamsExtractor<WriteRequest>() {
363+
@Override
364+
public Map<String, String> extract(WriteRequest request) {
365+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
366+
params.put("database", String.valueOf(request.getDatabase()));
367+
return params.build();
368+
}
369+
})
361370
.build();
362371
GrpcCallSettings<ListenRequest, ListenResponse> listenTransportSettings =
363372
GrpcCallSettings.<ListenRequest, ListenResponse>newBuilder()
364373
.setMethodDescriptor(listenMethodDescriptor)
374+
.setParamsExtractor(
375+
new RequestParamsExtractor<ListenRequest>() {
376+
@Override
377+
public Map<String, String> extract(ListenRequest request) {
378+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
379+
params.put("database", String.valueOf(request.getDatabase()));
380+
return params.build();
381+
}
382+
})
365383
.build();
366384
GrpcCallSettings<ListCollectionIdsRequest, ListCollectionIdsResponse>
367385
listCollectionIdsTransportSettings =

branches/autosynth-firestore/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@javax.annotation.Generated("by GAPIC")
4343
@BetaApi
4444
public class MockFirestoreAdminImpl extends FirestoreAdminImplBase {
45-
private List<AbstractMessage> requests;
45+
private ArrayList<AbstractMessage> requests;
4646
private Queue<Object> responses;
4747

4848
public MockFirestoreAdminImpl() {

branches/autosynth-firestore/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1/MockFirestoreImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@javax.annotation.Generated("by GAPIC")
5151
@BetaApi
5252
public class MockFirestoreImpl extends FirestoreImplBase {
53-
private List<AbstractMessage> requests;
53+
private ArrayList<AbstractMessage> requests;
5454
private Queue<Object> responses;
5555

5656
public MockFirestoreImpl() {

branches/autosynth-firestore/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/v1beta1/MockFirestoreImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@javax.annotation.Generated("by GAPIC")
5151
@BetaApi
5252
public class MockFirestoreImpl extends FirestoreImplBase {
53-
private List<AbstractMessage> requests;
53+
private ArrayList<AbstractMessage> requests;
5454
private Queue<Object> responses;
5555

5656
public MockFirestoreImpl() {

branches/autosynth-firestore/google-cloud-clients/google-cloud-firestore/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-04-02T07:46:06.702450Z",
2+
"updateTime": "2019-03-30T07:45:26.469058Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.22",
8-
"dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320"
7+
"version": "0.16.21",
8+
"dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d",
16-
"internalRef": "241437588"
15+
"sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b",
16+
"internalRef": "241096997"
1717
}
1818
}
1919
],

branches/autosynth-firestore/google-cloud-clients/google-cloud-iamcredentials/src/test/java/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@javax.annotation.Generated("by GAPIC")
2828
@BetaApi
2929
public class MockIAMCredentialsImpl extends IAMCredentialsImplBase {
30-
private ArrayList<AbstractMessage> requests;
30+
private List<AbstractMessage> requests;
3131
private Queue<Object> responses;
3232

3333
public MockIAMCredentialsImpl() {

branches/autosynth-firestore/google-cloud-clients/google-cloud-iamcredentials/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-03-29T07:46:48.918715Z",
2+
"updateTime": "2019-04-02T07:46:40.438435Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.21",
8-
"dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78"
7+
"version": "0.16.22",
8+
"dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "37386f1ebcaed51bcb7d15d00124d22c38606e45",
16-
"internalRef": "240841842"
15+
"sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d",
16+
"internalRef": "241437588"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)