Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#199)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2021
1 parent b399ae2 commit 6300e88f8c85ed6093a75f1c59e4140d2099ce59
@@ -16,7 +16,6 @@

package com.google.cloud.video.transcoder.v1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -1068,14 +1067,7 @@ public static ApiFuture<ListJobsPagedResponse> createAsync(
ApiFuture<ListJobsPage> futurePage =
ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListJobsPage, ListJobsPagedResponse>() {
@Override
public ListJobsPagedResponse apply(ListJobsPage input) {
return new ListJobsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListJobsPagedResponse(ListJobsPage page) {
@@ -1143,12 +1135,7 @@ public static ApiFuture<ListJobTemplatesPagedResponse> createAsync(
ListJobTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListJobTemplatesPage, ListJobTemplatesPagedResponse>() {
@Override
public ListJobTemplatesPagedResponse apply(ListJobTemplatesPage input) {
return new ListJobTemplatesPagedResponse(input);
}
},
input -> new ListJobTemplatesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -199,14 +199,13 @@ public TranscoderServiceStubSettings.Builder getStubSettingsBuilder() {
return ((TranscoderServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -24,7 +24,6 @@
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.cloud.video.transcoder.v1.CreateJobRequest;
import com.google.cloud.video.transcoder.v1.CreateJobTemplateRequest;
@@ -44,7 +43,6 @@
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;

@@ -195,105 +193,81 @@ protected GrpcTranscoderServiceStub(
GrpcCallSettings.<CreateJobRequest, Job>newBuilder()
.setMethodDescriptor(createJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateJobRequest>() {
@Override
public Map<String, String> extract(CreateJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<ListJobsRequest, ListJobsResponse> listJobsTransportSettings =
GrpcCallSettings.<ListJobsRequest, ListJobsResponse>newBuilder()
.setMethodDescriptor(listJobsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListJobsRequest>() {
@Override
public Map<String, String> extract(ListJobsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<GetJobRequest, Job> getJobTransportSettings =
GrpcCallSettings.<GetJobRequest, Job>newBuilder()
.setMethodDescriptor(getJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetJobRequest>() {
@Override
public Map<String, String> extract(GetJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<DeleteJobRequest, Empty> deleteJobTransportSettings =
GrpcCallSettings.<DeleteJobRequest, Empty>newBuilder()
.setMethodDescriptor(deleteJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteJobRequest>() {
@Override
public Map<String, String> extract(DeleteJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<CreateJobTemplateRequest, JobTemplate> createJobTemplateTransportSettings =
GrpcCallSettings.<CreateJobTemplateRequest, JobTemplate>newBuilder()
.setMethodDescriptor(createJobTemplateMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateJobTemplateRequest>() {
@Override
public Map<String, String> extract(CreateJobTemplateRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<ListJobTemplatesRequest, ListJobTemplatesResponse>
listJobTemplatesTransportSettings =
GrpcCallSettings.<ListJobTemplatesRequest, ListJobTemplatesResponse>newBuilder()
.setMethodDescriptor(listJobTemplatesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListJobTemplatesRequest>() {
@Override
public Map<String, String> extract(ListJobTemplatesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<GetJobTemplateRequest, JobTemplate> getJobTemplateTransportSettings =
GrpcCallSettings.<GetJobTemplateRequest, JobTemplate>newBuilder()
.setMethodDescriptor(getJobTemplateMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetJobTemplateRequest>() {
@Override
public Map<String, String> extract(GetJobTemplateRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<DeleteJobTemplateRequest, Empty> deleteJobTemplateTransportSettings =
GrpcCallSettings.<DeleteJobTemplateRequest, Empty>newBuilder()
.setMethodDescriptor(deleteJobTemplateMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteJobTemplateRequest>() {
@Override
public Map<String, String> extract(DeleteJobTemplateRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();

@@ -507,14 +507,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
@@ -16,7 +16,6 @@

package com.google.cloud.video.transcoder.v1beta1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -1057,14 +1056,7 @@ public static ApiFuture<ListJobsPagedResponse> createAsync(
ApiFuture<ListJobsPage> futurePage =
ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListJobsPage, ListJobsPagedResponse>() {
@Override
public ListJobsPagedResponse apply(ListJobsPage input) {
return new ListJobsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListJobsPagedResponse(ListJobsPage page) {
@@ -1132,12 +1124,7 @@ public static ApiFuture<ListJobTemplatesPagedResponse> createAsync(
ListJobTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListJobTemplatesPage, ListJobTemplatesPagedResponse>() {
@Override
public ListJobTemplatesPagedResponse apply(ListJobTemplatesPage input) {
return new ListJobTemplatesPagedResponse(input);
}
},
input -> new ListJobTemplatesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -200,14 +200,13 @@ public TranscoderServiceStubSettings.Builder getStubSettingsBuilder() {
return ((TranscoderServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;

0 comments on commit 6300e88

Please sign in to comment.