diff --git a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorGroupServiceStub.java b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorGroupServiceStub.java index d013c0afbf49..761d1280bd9f 100644 --- a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorGroupServiceStub.java +++ b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorGroupServiceStub.java @@ -21,13 +21,16 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroup; import com.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest; import com.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -108,10 +111,28 @@ protected GrpcErrorGroupServiceStub( GrpcCallSettings getGroupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getGroupMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetGroupRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("group_name", String.valueOf(request.getGroupName())); + return params.build(); + } + }) .build(); GrpcCallSettings updateGroupTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateGroupMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateGroupRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("group.name", String.valueOf(request.getGroup().getName())); + return params.build(); + } + }) .build(); this.getGroupCallable = diff --git a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorStatsServiceStub.java b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorStatsServiceStub.java index bb0ab4777286..28a8e59acea2 100644 --- a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorStatsServiceStub.java +++ b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcErrorStatsServiceStub.java @@ -24,7 +24,9 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; import com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest; import com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse; import com.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest; @@ -34,6 +36,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -132,14 +135,41 @@ protected GrpcErrorStatsServiceStub( listGroupStatsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listGroupStatsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListGroupStatsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_name", String.valueOf(request.getProjectName())); + return params.build(); + } + }) .build(); GrpcCallSettings listEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listEventsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListEventsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_name", String.valueOf(request.getProjectName())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEventsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteEventsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_name", String.valueOf(request.getProjectName())); + return params.build(); + } + }) .build(); this.listGroupStatsCallable = diff --git a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcReportErrorsServiceStub.java b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcReportErrorsServiceStub.java index 3678ecd88e0a..28b3cc56254b 100644 --- a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcReportErrorsServiceStub.java +++ b/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/stub/GrpcReportErrorsServiceStub.java @@ -21,12 +21,15 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest; import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -102,6 +105,15 @@ protected GrpcReportErrorsServiceStub( reportErrorEventTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(reportErrorEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ReportErrorEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_name", String.valueOf(request.getProjectName())); + return params.build(); + } + }) .build(); this.reportErrorEventCallable = diff --git a/google-cloud-clients/google-cloud-errorreporting/synth.metadata b/google-cloud-clients/google-cloud-errorreporting/synth.metadata index ba0e1701952f..2bb22a6c0e2f 100644 --- a/google-cloud-clients/google-cloud-errorreporting/synth.metadata +++ b/google-cloud-clients/google-cloud-errorreporting/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-06T08:42:48.951032Z", + "updateTime": "2019-03-28T07:44:08.505444Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.15", - "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" + "version": "0.16.20", + "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", - "internalRef": "236931378" + "sha": "6a84b3267b0a95e922608b9891219075047eee29", + "internalRef": "240640999" } } ],