Skip to content

Commit

Permalink
chore: Integrate new gapic-generator-java and rules_gapic (#422)
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: googleapis/googleapis-gen@e04cea2
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 13, 2022
1 parent a431f59 commit 44fd0bb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ public final ListCertificatesPagedResponse listCertificates(ListCertificatesRequ
* while (true) {
* ListCertificatesResponse response =
* certificateAuthorityServiceClient.listCertificatesCallable().call(request);
* for (Certificate element : response.getResponsesList()) {
* for (Certificate element : response.getCertificatesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1995,7 +1995,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities(
* while (true) {
* ListCertificateAuthoritiesResponse response =
* certificateAuthorityServiceClient.listCertificateAuthoritiesCallable().call(request);
* for (CertificateAuthority element : response.getResponsesList()) {
* for (CertificateAuthority element : response.getCertificateAuthoritiesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -3014,7 +3014,7 @@ public final ListCaPoolsPagedResponse listCaPools(ListCaPoolsRequest request) {
* while (true) {
* ListCaPoolsResponse response =
* certificateAuthorityServiceClient.listCaPoolsCallable().call(request);
* for (CaPool element : response.getResponsesList()) {
* for (CaPool element : response.getCaPoolsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -3614,7 +3614,7 @@ public final ListCertificateRevocationListsPagedResponse listCertificateRevocati
* certificateAuthorityServiceClient
* .listCertificateRevocationListsCallable()
* .call(request);
* for (CertificateRevocationList element : response.getResponsesList()) {
* for (CertificateRevocationList element : response.getCertificateRevocationListsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -4383,7 +4383,7 @@ public final ListCertificateTemplatesPagedResponse listCertificateTemplates(
* while (true) {
* ListCertificateTemplatesResponse response =
* certificateAuthorityServiceClient.listCertificateTemplatesCallable().call(request);
* for (CertificateTemplate element : response.getResponsesList()) {
* for (CertificateTemplate element : response.getCertificateTemplatesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -4614,7 +4614,7 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* while (true) {
* ListLocationsResponse response =
* certificateAuthorityServiceClient.listLocationsCallable().call(request);
* for (Location element : response.getResponsesList()) {
* for (Location element : response.getLocationsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -4692,7 +4692,7 @@ public final UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
* CertificateAuthorityServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -4722,7 +4722,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* CertificateAuthorityServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -4751,7 +4751,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* CertificateAuthorityServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = certificateAuthorityServiceClient.getIamPolicy(request);
Expand Down Expand Up @@ -4779,7 +4779,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* CertificateAuthorityServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future =
Expand Down Expand Up @@ -4811,7 +4811,7 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* CertificateAuthorityServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response =
Expand Down Expand Up @@ -4844,7 +4844,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* CertificateAuthorityServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public final ListCertificatesPagedResponse listCertificates(ListCertificatesRequ
* while (true) {
* ListCertificatesResponse response =
* certificateAuthorityServiceClient.listCertificatesCallable().call(request);
* for (Certificate element : response.getResponsesList()) {
* for (Certificate element : response.getCertificatesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1994,7 +1994,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities(
* while (true) {
* ListCertificateAuthoritiesResponse response =
* certificateAuthorityServiceClient.listCertificateAuthoritiesCallable().call(request);
* for (CertificateAuthority element : response.getResponsesList()) {
* for (CertificateAuthority element : response.getCertificateAuthoritiesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2787,7 +2787,7 @@ public final ListCertificateRevocationListsPagedResponse listCertificateRevocati
* certificateAuthorityServiceClient
* .listCertificateRevocationListsCallable()
* .call(request);
* for (CertificateRevocationList element : response.getResponsesList()) {
* for (CertificateRevocationList element : response.getCertificateRevocationListsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -3199,7 +3199,7 @@ public final ListReusableConfigsPagedResponse listReusableConfigs(
* while (true) {
* ListReusableConfigsResponse response =
* certificateAuthorityServiceClient.listReusableConfigsCallable().call(request);
* for (ReusableConfig element : response.getResponsesList()) {
* for (ReusableConfig element : response.getReusableConfigsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3129,7 +3129,7 @@ public void setIamPolicyTest() throws Exception {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -3158,7 +3158,7 @@ public void setIamPolicyExceptionTest() throws Exception {
try {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand All @@ -3182,7 +3182,7 @@ public void getIamPolicyTest() throws Exception {

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

Expand All @@ -3209,7 +3209,7 @@ public void getIamPolicyExceptionTest() throws Exception {
try {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
client.getIamPolicy(request);
Expand All @@ -3227,7 +3227,7 @@ public void testIamPermissionsTest() throws Exception {

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

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

0 comments on commit 44fd0bb

Please sign in to comment.