Skip to content

Commit

Permalink
Regenerate errorreporting client (#4766)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and andrey-qlogic committed Mar 28, 2019
1 parent e197b84 commit f24c662
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -108,10 +111,28 @@ protected GrpcErrorGroupServiceStub(
GrpcCallSettings<GetGroupRequest, ErrorGroup> getGroupTransportSettings =
GrpcCallSettings.<GetGroupRequest, ErrorGroup>newBuilder()
.setMethodDescriptor(getGroupMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetGroupRequest>() {
@Override
public Map<String, String> extract(GetGroupRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("group_name", String.valueOf(request.getGroupName()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateGroupRequest, ErrorGroup> updateGroupTransportSettings =
GrpcCallSettings.<UpdateGroupRequest, ErrorGroup>newBuilder()
.setMethodDescriptor(updateGroupMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateGroupRequest>() {
@Override
public Map<String, String> extract(UpdateGroupRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("group.name", String.valueOf(request.getGroup().getName()));
return params.build();
}
})
.build();

this.getGroupCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -132,14 +135,41 @@ protected GrpcErrorStatsServiceStub(
listGroupStatsTransportSettings =
GrpcCallSettings.<ListGroupStatsRequest, ListGroupStatsResponse>newBuilder()
.setMethodDescriptor(listGroupStatsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListGroupStatsRequest>() {
@Override
public Map<String, String> extract(ListGroupStatsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("project_name", String.valueOf(request.getProjectName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListEventsRequest, ListEventsResponse> listEventsTransportSettings =
GrpcCallSettings.<ListEventsRequest, ListEventsResponse>newBuilder()
.setMethodDescriptor(listEventsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListEventsRequest>() {
@Override
public Map<String, String> extract(ListEventsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("project_name", String.valueOf(request.getProjectName()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteEventsRequest, DeleteEventsResponse> deleteEventsTransportSettings =
GrpcCallSettings.<DeleteEventsRequest, DeleteEventsResponse>newBuilder()
.setMethodDescriptor(deleteEventsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteEventsRequest>() {
@Override
public Map<String, String> extract(DeleteEventsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("project_name", String.valueOf(request.getProjectName()));
return params.build();
}
})
.build();

this.listGroupStatsCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -102,6 +105,15 @@ protected GrpcReportErrorsServiceStub(
reportErrorEventTransportSettings =
GrpcCallSettings.<ReportErrorEventRequest, ReportErrorEventResponse>newBuilder()
.setMethodDescriptor(reportErrorEventMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ReportErrorEventRequest>() {
@Override
public Map<String, String> extract(ReportErrorEventRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("project_name", String.valueOf(request.getProjectName()));
return params.build();
}
})
.build();

this.reportErrorEventCallable =
Expand Down
10 changes: 5 additions & 5 deletions google-cloud-clients/google-cloud-errorreporting/synth.metadata
Original file line number Diff line number Diff line change
@@ -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"
}
}
],
Expand Down

0 comments on commit f24c662

Please sign in to comment.