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

Commit c3a76ad

Browse files
feat(generator): update protoc to v3.15.3 (#322)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/c70c2328-69c5-4e5d-a0a1-376c1f8b88da/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: googleapis/googleapis@f6dd7e4
1 parent 1684444 commit c3a76ad

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,8 @@ public final UnaryCallable<DeleteEndpointRequest, Empty> deleteEndpointCallable(
17401740
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17411741
* GetIamPolicyRequest request =
17421742
* GetIamPolicyRequest.newBuilder()
1743-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1743+
* .setResource(
1744+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17441745
* .setOptions(GetPolicyOptions.newBuilder().build())
17451746
* .build();
17461747
* Policy response = registrationServiceClient.getIamPolicy(request);
@@ -1764,7 +1765,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
17641765
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17651766
* GetIamPolicyRequest request =
17661767
* GetIamPolicyRequest.newBuilder()
1767-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1768+
* .setResource(
1769+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17681770
* .setOptions(GetPolicyOptions.newBuilder().build())
17691771
* .build();
17701772
* ApiFuture<Policy> future =
@@ -1788,7 +1790,8 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
17881790
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
17891791
* SetIamPolicyRequest request =
17901792
* SetIamPolicyRequest.newBuilder()
1791-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1793+
* .setResource(
1794+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
17921795
* .setPolicy(Policy.newBuilder().build())
17931796
* .build();
17941797
* Policy response = registrationServiceClient.setIamPolicy(request);
@@ -1812,7 +1815,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
18121815
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18131816
* SetIamPolicyRequest request =
18141817
* SetIamPolicyRequest.newBuilder()
1815-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1818+
* .setResource(
1819+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18161820
* .setPolicy(Policy.newBuilder().build())
18171821
* .build();
18181822
* ApiFuture<Policy> future =
@@ -1836,7 +1840,8 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
18361840
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18371841
* TestIamPermissionsRequest request =
18381842
* TestIamPermissionsRequest.newBuilder()
1839-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1843+
* .setResource(
1844+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18401845
* .addAllPermissions(new ArrayList<String>())
18411846
* .build();
18421847
* TestIamPermissionsResponse response = registrationServiceClient.testIamPermissions(request);
@@ -1860,7 +1865,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
18601865
* try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
18611866
* TestIamPermissionsRequest request =
18621867
* TestIamPermissionsRequest.newBuilder()
1863-
* .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1868+
* .setResource(
1869+
* ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
18641870
* .addAllPermissions(new ArrayList<String>())
18651871
* .build();
18661872
* ApiFuture<TestIamPermissionsResponse> future =

google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,8 @@ public void getIamPolicyTest() throws Exception {
12361236

12371237
GetIamPolicyRequest request =
12381238
GetIamPolicyRequest.newBuilder()
1239-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1239+
.setResource(
1240+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
12401241
.setOptions(GetPolicyOptions.newBuilder().build())
12411242
.build();
12421243

@@ -1263,7 +1264,8 @@ public void getIamPolicyExceptionTest() throws Exception {
12631264
try {
12641265
GetIamPolicyRequest request =
12651266
GetIamPolicyRequest.newBuilder()
1266-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1267+
.setResource(
1268+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
12671269
.setOptions(GetPolicyOptions.newBuilder().build())
12681270
.build();
12691271
client.getIamPolicy(request);
@@ -1285,7 +1287,8 @@ public void setIamPolicyTest() throws Exception {
12851287

12861288
SetIamPolicyRequest request =
12871289
SetIamPolicyRequest.newBuilder()
1288-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1290+
.setResource(
1291+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
12891292
.setPolicy(Policy.newBuilder().build())
12901293
.build();
12911294

@@ -1312,7 +1315,8 @@ public void setIamPolicyExceptionTest() throws Exception {
13121315
try {
13131316
SetIamPolicyRequest request =
13141317
SetIamPolicyRequest.newBuilder()
1315-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1318+
.setResource(
1319+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
13161320
.setPolicy(Policy.newBuilder().build())
13171321
.build();
13181322
client.setIamPolicy(request);
@@ -1330,7 +1334,8 @@ public void testIamPermissionsTest() throws Exception {
13301334

13311335
TestIamPermissionsRequest request =
13321336
TestIamPermissionsRequest.newBuilder()
1333-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1337+
.setResource(
1338+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
13341339
.addAllPermissions(new ArrayList<String>())
13351340
.build();
13361341

@@ -1357,7 +1362,8 @@ public void testIamPermissionsExceptionTest() throws Exception {
13571362
try {
13581363
TestIamPermissionsRequest request =
13591364
TestIamPermissionsRequest.newBuilder()
1360-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1365+
.setResource(
1366+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
13611367
.addAllPermissions(new ArrayList<String>())
13621368
.build();
13631369
client.testIamPermissions(request);

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-servicedirectory.git",
7-
"sha": "ebe396ac12512b05fcc95011f87005dcba947e58"
7+
"sha": "16844440557abc041ae1c9a7eeb5ec08ad0b48c0"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
15-
"internalRef": "358516065"
14+
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
15+
"internalRef": "359781040"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
23-
"internalRef": "358516065"
22+
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
23+
"internalRef": "359781040"
2424
}
2525
},
2626
{

0 commit comments

Comments
 (0)