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

Commit 811573d

Browse files
chore: migrate to microgenerator (#78)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/7b434ed7-41bc-42d7-adee-51bd18fb325b/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 346372957 Source-Link: googleapis/googleapis@857f70d PiperOrigin-RevId: 346126713 Source-Link: googleapis/googleapis@b8b2f8c PiperOrigin-RevId: 345476969 Source-Link: googleapis/googleapis@7be2c82 PiperOrigin-RevId: 345067549 Source-Link: googleapis/googleapis@8cfc6c8 PiperOrigin-RevId: 344906237 Source-Link: googleapis/googleapis@14adde9 PiperOrigin-RevId: 344134135 Source-Link: googleapis/googleapis@b11a87f
1 parent b94e01a commit 811573d

File tree

14 files changed

+905
-980
lines changed

14 files changed

+905
-980
lines changed

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java

Lines changed: 47 additions & 470 deletions
Large diffs are not rendered by default.

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.cloud.video.transcoder.v1beta1;
1718

1819
import static com.google.cloud.video.transcoder.v1beta1.TranscoderServiceClient.ListJobTemplatesPagedResponse;
@@ -35,7 +36,7 @@
3536
import java.util.List;
3637
import javax.annotation.Generated;
3738

38-
// AUTO-GENERATED DOCUMENTATION AND CLASS
39+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
3940
/**
4041
* Settings class to configure an instance of {@link TranscoderServiceClient}.
4142
*
@@ -52,23 +53,24 @@
5253
*
5354
* <p>For example, to set the total timeout of createJob to 30 seconds:
5455
*
55-
* <pre>
56-
* <code>
56+
* <pre>{@code
5757
* TranscoderServiceSettings.Builder transcoderServiceSettingsBuilder =
5858
* TranscoderServiceSettings.newBuilder();
5959
* transcoderServiceSettingsBuilder
6060
* .createJobSettings()
6161
* .setRetrySettings(
62-
* transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
62+
* transcoderServiceSettingsBuilder
63+
* .createJobSettings()
64+
* .getRetrySettings()
65+
* .toBuilder()
6366
* .setTotalTimeout(Duration.ofSeconds(30))
6467
* .build());
6568
* TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();
66-
* </code>
67-
* </pre>
69+
* }</pre>
6870
*/
69-
@Generated("by gapic-generator")
70-
@BetaApi
71+
@Generated("by gapic-generator-java")
7172
public class TranscoderServiceSettings extends ClientSettings<TranscoderServiceSettings> {
73+
7274
/** Returns the object with the settings used for calls to createJob. */
7375
public UnaryCallSettings<CreateJobRequest, Job> createJobSettings() {
7476
return ((TranscoderServiceStubSettings) getStubSettings()).createJobSettings();
@@ -172,18 +174,15 @@ protected TranscoderServiceSettings(Builder settingsBuilder) throws IOException
172174

173175
/** Builder for TranscoderServiceSettings. */
174176
public static class Builder extends ClientSettings.Builder<TranscoderServiceSettings, Builder> {
177+
175178
protected Builder() throws IOException {
176-
this((ClientContext) null);
179+
this(((ClientContext) null));
177180
}
178181

179182
protected Builder(ClientContext clientContext) {
180183
super(TranscoderServiceStubSettings.newBuilder(clientContext));
181184
}
182185

183-
private static Builder createDefault() {
184-
return new Builder(TranscoderServiceStubSettings.newBuilder());
185-
}
186-
187186
protected Builder(TranscoderServiceSettings settings) {
188187
super(settings.getStubSettings().toBuilder());
189188
}
@@ -192,11 +191,15 @@ protected Builder(TranscoderServiceStubSettings.Builder stubSettings) {
192191
super(stubSettings);
193192
}
194193

194+
private static Builder createDefault() {
195+
return new Builder(TranscoderServiceStubSettings.newBuilder());
196+
}
197+
195198
public TranscoderServiceStubSettings.Builder getStubSettingsBuilder() {
196199
return ((TranscoderServiceStubSettings.Builder) getStubSettings());
197200
}
198201

199-
// NEXT_MAJOR_VER: remove 'throws Exception'
202+
// NEXT_MAJOR_VER: remove 'throws Exception'.
200203
/**
201204
* Applies the given settings updater function to all of the unary API methods in this service.
202205
*

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/package-info.java

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,9 +15,7 @@
1515
*/
1616

1717
/**
18-
* A client to Transcoder API.
19-
*
20-
* <p>The interfaces provided are listed below, along with usage samples.
18+
* The interfaces provided are listed below, along with usage samples.
2119
*
2220
* <p>======================= TranscoderServiceClient =======================
2321
*
@@ -28,18 +26,8 @@
2826
* equalization, content concatenation, and digital ad-stitch ready content generation.
2927
*
3028
* <p>Sample for TranscoderServiceClient:
31-
*
32-
* <pre>
33-
* <code>
34-
* try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
35-
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
36-
* Job job = Job.newBuilder().build();
37-
* Job response = transcoderServiceClient.createJob(parent, job);
38-
* }
39-
* </code>
40-
* </pre>
4129
*/
42-
@Generated("by gapic-generator")
30+
@Generated("by gapic-generator-java")
4331
package com.google.cloud.video.transcoder.v1beta1;
4432

4533
import javax.annotation.Generated;

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.cloud.video.transcoder.v1beta1.stub;
1718

18-
import com.google.api.core.BetaApi;
1919
import com.google.api.gax.grpc.GrpcCallSettings;
2020
import com.google.api.gax.grpc.GrpcCallableFactory;
2121
import com.google.api.gax.grpc.GrpcStubCallableFactory;
@@ -31,18 +31,19 @@
3131
import com.google.api.gax.rpc.StreamingCallSettings;
3232
import com.google.api.gax.rpc.UnaryCallSettings;
3333
import com.google.api.gax.rpc.UnaryCallable;
34+
import com.google.longrunning.Operation;
3435
import com.google.longrunning.stub.OperationsStub;
3536
import javax.annotation.Generated;
3637

37-
// AUTO-GENERATED DOCUMENTATION AND CLASS
38+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
3839
/**
39-
* gRPC callable factory implementation for Transcoder API.
40+
* gRPC callable factory implementation for the TranscoderService service API.
4041
*
4142
* <p>This class is for advanced usage.
4243
*/
4344
@Generated("by gapic-generator")
44-
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
4545
public class GrpcTranscoderServiceCallableFactory implements GrpcStubCallableFactory {
46+
4647
@Override
4748
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
4849
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
@@ -55,61 +56,58 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCalla
5556
public <RequestT, ResponseT, PagedListResponseT>
5657
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
5758
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
58-
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> pagedCallSettings,
59+
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
5960
ClientContext clientContext) {
60-
return GrpcCallableFactory.createPagedCallable(
61-
grpcCallSettings, pagedCallSettings, clientContext);
61+
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
6262
}
6363

6464
@Override
6565
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
6666
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
67-
BatchingCallSettings<RequestT, ResponseT> batchingCallSettings,
67+
BatchingCallSettings<RequestT, ResponseT> callSettings,
6868
ClientContext clientContext) {
6969
return GrpcCallableFactory.createBatchingCallable(
70-
grpcCallSettings, batchingCallSettings, clientContext);
70+
grpcCallSettings, callSettings, clientContext);
7171
}
7272

73-
@BetaApi(
74-
"The surface for long-running operations is not stable yet and may change in the future.")
7573
@Override
7674
public <RequestT, ResponseT, MetadataT>
7775
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
78-
GrpcCallSettings<RequestT, com.google.longrunning.Operation> grpcCallSettings,
79-
OperationCallSettings<RequestT, ResponseT, MetadataT> operationCallSettings,
76+
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
77+
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
8078
ClientContext clientContext,
8179
OperationsStub operationsStub) {
8280
return GrpcCallableFactory.createOperationCallable(
83-
grpcCallSettings, operationCallSettings, clientContext, operationsStub);
81+
grpcCallSettings, callSettings, clientContext, operationsStub);
8482
}
8583

8684
@Override
8785
public <RequestT, ResponseT>
8886
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
8987
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
90-
StreamingCallSettings<RequestT, ResponseT> streamingCallSettings,
88+
StreamingCallSettings<RequestT, ResponseT> callSettings,
9189
ClientContext clientContext) {
9290
return GrpcCallableFactory.createBidiStreamingCallable(
93-
grpcCallSettings, streamingCallSettings, clientContext);
91+
grpcCallSettings, callSettings, clientContext);
9492
}
9593

9694
@Override
9795
public <RequestT, ResponseT>
9896
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
9997
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
100-
ServerStreamingCallSettings<RequestT, ResponseT> streamingCallSettings,
98+
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
10199
ClientContext clientContext) {
102100
return GrpcCallableFactory.createServerStreamingCallable(
103-
grpcCallSettings, streamingCallSettings, clientContext);
101+
grpcCallSettings, callSettings, clientContext);
104102
}
105103

106104
@Override
107105
public <RequestT, ResponseT>
108106
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
109107
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
110-
StreamingCallSettings<RequestT, ResponseT> streamingCallSettings,
108+
StreamingCallSettings<RequestT, ResponseT> callSettings,
111109
ClientContext clientContext) {
112110
return GrpcCallableFactory.createClientStreamingCallable(
113-
grpcCallSettings, streamingCallSettings, clientContext);
111+
grpcCallSettings, callSettings, clientContext);
114112
}
115113
}

0 commit comments

Comments
 (0)