Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
chore: release gapic-generator-java v1.0.11 (#539)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/26af94e3-e981-49fa-9061-04c5b8e57d76/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 378266372
Source-Link: googleapis/googleapis@9e31055
  • Loading branch information
yoshi-automation committed Jun 10, 2021
1 parent 0960453 commit c32497e
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest;
import com.google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse;
Expand All @@ -32,11 +33,13 @@
import com.google.cloud.vision.v1.BatchAnnotateImagesRequest;
import com.google.cloud.vision.v1.BatchAnnotateImagesResponse;
import com.google.cloud.vision.v1.OperationMetadata;
import com.google.common.collect.ImmutableMap;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
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 @@ -153,21 +156,57 @@ protected GrpcImageAnnotatorStub(
batchAnnotateImagesTransportSettings =
GrpcCallSettings.<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse>newBuilder()
.setMethodDescriptor(batchAnnotateImagesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<BatchAnnotateImagesRequest>() {
@Override
public Map<String, String> extract(BatchAnnotateImagesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<BatchAnnotateFilesRequest, BatchAnnotateFilesResponse>
batchAnnotateFilesTransportSettings =
GrpcCallSettings.<BatchAnnotateFilesRequest, BatchAnnotateFilesResponse>newBuilder()
.setMethodDescriptor(batchAnnotateFilesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<BatchAnnotateFilesRequest>() {
@Override
public Map<String, String> extract(BatchAnnotateFilesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<AsyncBatchAnnotateImagesRequest, Operation>
asyncBatchAnnotateImagesTransportSettings =
GrpcCallSettings.<AsyncBatchAnnotateImagesRequest, Operation>newBuilder()
.setMethodDescriptor(asyncBatchAnnotateImagesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<AsyncBatchAnnotateImagesRequest>() {
@Override
public Map<String, String> extract(AsyncBatchAnnotateImagesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<AsyncBatchAnnotateFilesRequest, Operation>
asyncBatchAnnotateFilesTransportSettings =
GrpcCallSettings.<AsyncBatchAnnotateFilesRequest, Operation>newBuilder()
.setMethodDescriptor(asyncBatchAnnotateFilesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<AsyncBatchAnnotateFilesRequest>() {
@Override
public Map<String, String> extract(AsyncBatchAnnotateFilesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.batchAnnotateImagesCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
public class ImageAnnotatorClientTest {
private static MockImageAnnotator mockImageAnnotator;
private static MockServiceHelper mockServiceHelper;
private ImageAnnotatorClient client;
private LocalChannelProvider channelProvider;
private ImageAnnotatorClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
public class ProductSearchClientTest {
private static MockProductSearch mockProductSearch;
private static MockServiceHelper mockServiceHelper;
private ProductSearchClient client;
private LocalChannelProvider channelProvider;
private ProductSearchClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
public class ImageAnnotatorClientTest {
private static MockImageAnnotator mockImageAnnotator;
private static MockServiceHelper mockServiceHelper;
private ImageAnnotatorClient client;
private LocalChannelProvider channelProvider;
private ImageAnnotatorClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
public class ImageAnnotatorClientTest {
private static MockImageAnnotator mockImageAnnotator;
private static MockServiceHelper mockServiceHelper;
private ImageAnnotatorClient client;
private LocalChannelProvider channelProvider;
private ImageAnnotatorClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
public class ImageAnnotatorClientTest {
private static MockImageAnnotator mockImageAnnotator;
private static MockServiceHelper mockServiceHelper;
private ImageAnnotatorClient client;
private LocalChannelProvider channelProvider;
private ImageAnnotatorClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
public class ProductSearchClientTest {
private static MockProductSearch mockProductSearch;
private static MockServiceHelper mockServiceHelper;
private ProductSearchClient client;
private LocalChannelProvider channelProvider;
private ProductSearchClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
public class ImageAnnotatorClientTest {
private static MockImageAnnotator mockImageAnnotator;
private static MockServiceHelper mockServiceHelper;
private ImageAnnotatorClient client;
private LocalChannelProvider channelProvider;
private ImageAnnotatorClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
public class ProductSearchClientTest {
private static MockProductSearch mockProductSearch;
private static MockServiceHelper mockServiceHelper;
private ProductSearchClient client;
private LocalChannelProvider channelProvider;
private ProductSearchClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down
22 changes: 11 additions & 11 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,47 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-vision.git",
"sha": "f9f02a1d99e666fc5d9ba19de2ee83210b66fc5a"
"sha": "f39df3809b886a9f8523f8faf1d8c6c44350f883"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda",
"internalRef": "377081269"
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
"internalRef": "378266372"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda",
"internalRef": "377081269"
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
"internalRef": "378266372"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda",
"internalRef": "377081269"
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
"internalRef": "378266372"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda",
"internalRef": "377081269"
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
"internalRef": "378266372"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda",
"internalRef": "377081269"
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
"internalRef": "378266372"
}
},
{
Expand Down

0 comments on commit c32497e

Please sign in to comment.