Skip to content

Commit

Permalink
chore: Integrate new gapic-generator-java and rules_gapic (#40)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 454027580

Source-Link: googleapis/googleapis@1b22277

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 13, 2022
1 parent 79f1306 commit 314ba02
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque
* .build();
* while (true) {
* ListRevisionsResponse response = revisionsClient.listRevisionsCallable().call(request);
* for (Revision element : response.getResponsesList()) {
* for (Revision element : response.getRevisionsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
* .build();
* while (true) {
* ListServicesResponse response = servicesClient.listServicesCallable().call(request);
* for (Service element : response.getResponsesList()) {
* for (Service element : response.getServicesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -823,7 +823,7 @@ public final UnaryCallable<DeleteServiceRequest, Operation> deleteServiceCallabl
* try (ServicesClient servicesClient = ServicesClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = servicesClient.getIamPolicy(request);
Expand All @@ -850,7 +850,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (ServicesClient servicesClient = ServicesClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = servicesClient.getIamPolicyCallable().futureCall(request);
Expand All @@ -875,7 +875,7 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* try (ServicesClient servicesClient = ServicesClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -902,7 +902,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (ServicesClient servicesClient = ServicesClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -930,7 +930,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* try (ServicesClient servicesClient = ServicesClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = servicesClient.testIamPermissions(request);
Expand Down Expand Up @@ -958,7 +958,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (ServicesClient servicesClient = ServicesClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public void getIamPolicyTest() throws Exception {

GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();

Expand All @@ -745,7 +745,7 @@ public void getIamPolicyExceptionTest() throws Exception {
try {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
client.getIamPolicy(request);
Expand All @@ -768,7 +768,7 @@ public void setIamPolicyTest() throws Exception {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -797,7 +797,7 @@ public void setIamPolicyExceptionTest() throws Exception {
try {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand All @@ -816,7 +816,7 @@ public void testIamPermissionsTest() throws Exception {

TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
.addAllPermissions(new ArrayList<String>())
.build();

Expand All @@ -843,7 +843,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
try {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
.addAllPermissions(new ArrayList<String>())
.build();
client.testIamPermissions(request);
Expand Down

0 comments on commit 314ba02

Please sign in to comment.