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

Commit 8170444

Browse files
chore: update gapic-generator-java to 0.0.9
Committer: @miraleung PiperOrigin-RevId: 346372957 Source-Author: Google APIs <[email protected]> Source-Date: Tue Dec 8 11:37:30 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 857f70daef9f4c38f042fb3dfb7b8423ae18fd19 Source-Link: googleapis/googleapis@857f70d
1 parent 2d985c9 commit 8170444

File tree

3 files changed

+32
-17
lines changed

3 files changed

+32
-17
lines changed

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public final OperationsClient getOperationsClient() {
192192
* <p>This method returns a long-running `Operation`, which includes the build ID. Pass the build
193193
* ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
194194
*
195-
* @param project_id Required. ID of the project.
195+
* @param projectId Required. ID of the project.
196196
* @param build Required. Build resource to create.
197197
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
198198
*/
@@ -252,7 +252,7 @@ public final UnaryCallable<CreateBuildRequest, Operation> createBuildCallable()
252252
* <p>The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or
253253
* `WORKING`), and timing information.
254254
*
255-
* @param project_id Required. ID of the project.
255+
* @param projectId Required. ID of the project.
256256
* @param id Required. ID of the build.
257257
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
258258
*/
@@ -296,7 +296,7 @@ public final UnaryCallable<GetBuildRequest, Build> getBuildCallable() {
296296
* <p>Previously requested builds may still be in-progress, or may have finished successfully or
297297
* unsuccessfully.
298298
*
299-
* @param project_id Required. ID of the project.
299+
* @param projectId Required. ID of the project.
300300
* @param filter The raw filter text to constrain the results.
301301
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
302302
*/
@@ -350,7 +350,7 @@ public final UnaryCallable<ListBuildsRequest, ListBuildsResponse> listBuildsCall
350350
/**
351351
* Cancels a build in progress.
352352
*
353-
* @param project_id Required. ID of the project.
353+
* @param projectId Required. ID of the project.
354354
* @param id Required. ID of the build.
355355
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
356356
*/
@@ -415,7 +415,7 @@ public final UnaryCallable<CancelBuildRequest, Build> cancelBuildCallable() {
415415
* available depending on the bucket's lifecycle management settings.
416416
* </ul>
417417
*
418-
* @param project_id Required. ID of the project.
418+
* @param projectId Required. ID of the project.
419419
* @param id Required. Build ID of the original build.
420420
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
421421
*/
@@ -555,7 +555,7 @@ public final UnaryCallable<RetryBuildRequest, Operation> retryBuildCallable() {
555555
*
556556
* <p>This API is experimental.
557557
*
558-
* @param project_id Required. ID of the project for which to configure automatic builds.
558+
* @param projectId Required. ID of the project for which to configure automatic builds.
559559
* @param trigger Required. `BuildTrigger` to create.
560560
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
561561
*/
@@ -596,8 +596,8 @@ public final UnaryCallable<CreateBuildTriggerRequest, BuildTrigger> createBuildT
596596
*
597597
* <p>This API is experimental.
598598
*
599-
* @param project_id Required. ID of the project that owns the trigger.
600-
* @param trigger_id Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.
599+
* @param projectId Required. ID of the project that owns the trigger.
600+
* @param triggerId Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.
601601
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
602602
*/
603603
public final BuildTrigger getBuildTrigger(String projectId, String triggerId) {
@@ -637,7 +637,7 @@ public final UnaryCallable<GetBuildTriggerRequest, BuildTrigger> getBuildTrigger
637637
*
638638
* <p>This API is experimental.
639639
*
640-
* @param project_id Required. ID of the project for which to list BuildTriggers.
640+
* @param projectId Required. ID of the project for which to list BuildTriggers.
641641
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
642642
*/
643643
public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId) {
@@ -691,8 +691,8 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
691691
*
692692
* <p>This API is experimental.
693693
*
694-
* @param project_id Required. ID of the project that owns the trigger.
695-
* @param trigger_id Required. ID of the `BuildTrigger` to delete.
694+
* @param projectId Required. ID of the project that owns the trigger.
695+
* @param triggerId Required. ID of the `BuildTrigger` to delete.
696696
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
697697
*/
698698
public final void deleteBuildTrigger(String projectId, String triggerId) {
@@ -735,8 +735,8 @@ public final UnaryCallable<DeleteBuildTriggerRequest, Empty> deleteBuildTriggerC
735735
*
736736
* <p>This API is experimental.
737737
*
738-
* @param project_id Required. ID of the project that owns the trigger.
739-
* @param trigger_id Required. ID of the `BuildTrigger` to update.
738+
* @param projectId Required. ID of the project that owns the trigger.
739+
* @param triggerId Required. ID of the `BuildTrigger` to update.
740740
* @param trigger Required. `BuildTrigger` to update.
741741
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
742742
*/
@@ -780,8 +780,8 @@ public final UnaryCallable<UpdateBuildTriggerRequest, BuildTrigger> updateBuildT
780780
/**
781781
* Runs a `BuildTrigger` at a particular source revision.
782782
*
783-
* @param project_id Required. ID of the project.
784-
* @param trigger_id Required. ID of the trigger.
783+
* @param projectId Required. ID of the project.
784+
* @param triggerId Required. ID of the trigger.
785785
* @param source Required. Source to build against this trigger.
786786
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
787787
*/

google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,21 @@ public static final GrpcCloudBuildStub create(
269269
CloudBuildStubSettings.newBuilder().build(), clientContext, callableFactory);
270270
}
271271

272+
/**
273+
* Constructs an instance of GrpcCloudBuildStub, using the given settings. This is protected so
274+
* that it is easy to make a subclass, but otherwise, the static factory methods should be
275+
* preferred.
276+
*/
272277
protected GrpcCloudBuildStub(CloudBuildStubSettings settings, ClientContext clientContext)
273278
throws IOException {
274279
this(settings, clientContext, new GrpcCloudBuildCallableFactory());
275280
}
276281

282+
/**
283+
* Constructs an instance of GrpcCloudBuildStub, using the given settings. This is protected so
284+
* that it is easy to make a subclass, but otherwise, the static factory methods should be
285+
* preferred.
286+
*/
277287
protected GrpcCloudBuildStub(
278288
CloudBuildStubSettings settings,
279289
ClientContext clientContext,
@@ -290,6 +300,7 @@ protected GrpcCloudBuildStub(
290300
@Override
291301
public Map<String, String> extract(CreateBuildRequest request) {
292302
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
303+
params.put("parent", String.valueOf(request.getParent()));
293304
params.put("project_id", String.valueOf(request.getProjectId()));
294305
return params.build();
295306
}
@@ -304,6 +315,7 @@ public Map<String, String> extract(CreateBuildRequest request) {
304315
public Map<String, String> extract(GetBuildRequest request) {
305316
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
306317
params.put("id", String.valueOf(request.getId()));
318+
params.put("name", String.valueOf(request.getName()));
307319
params.put("project_id", String.valueOf(request.getProjectId()));
308320
return params.build();
309321
}
@@ -317,6 +329,7 @@ public Map<String, String> extract(GetBuildRequest request) {
317329
@Override
318330
public Map<String, String> extract(ListBuildsRequest request) {
319331
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
332+
params.put("parent", String.valueOf(request.getParent()));
320333
params.put("project_id", String.valueOf(request.getProjectId()));
321334
return params.build();
322335
}
@@ -331,6 +344,7 @@ public Map<String, String> extract(ListBuildsRequest request) {
331344
public Map<String, String> extract(CancelBuildRequest request) {
332345
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
333346
params.put("id", String.valueOf(request.getId()));
347+
params.put("name", String.valueOf(request.getName()));
334348
params.put("project_id", String.valueOf(request.getProjectId()));
335349
return params.build();
336350
}
@@ -345,6 +359,7 @@ public Map<String, String> extract(CancelBuildRequest request) {
345359
public Map<String, String> extract(RetryBuildRequest request) {
346360
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
347361
params.put("id", String.valueOf(request.getId()));
362+
params.put("name", String.valueOf(request.getName()));
348363
params.put("project_id", String.valueOf(request.getProjectId()));
349364
return params.build();
350365
}

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"git": {
1919
"name": "googleapis",
2020
"remote": "https://github.com/googleapis/googleapis.git",
21-
"sha": "08869d766d1c5ad0950ba24e9707339024ab63be",
22-
"internalRef": "346132650"
21+
"sha": "857f70daef9f4c38f042fb3dfb7b8423ae18fd19",
22+
"internalRef": "346372957"
2323
}
2424
},
2525
{

0 commit comments

Comments
 (0)