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

feat(generator): update protoc to v3.15.3 #406

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public final UnaryCallable<CreateFindingRequest, Finding> createFindingCallable(
*
* <pre>{@code
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
* Policy response = securityCenterClient.getIamPolicy(resource);
* }
* }</pre>
Expand All @@ -424,7 +424,7 @@ public final Policy getIamPolicy(ResourceName resource) {
*
* <pre>{@code
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString();
* String resource = AssetName.of("[ORGANIZATION]", "[ASSET]").toString();
* Policy response = securityCenterClient.getIamPolicy(resource);
* }
* }</pre>
Expand All @@ -448,7 +448,7 @@ public final Policy getIamPolicy(String resource) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setResource(AssetName.of("[ORGANIZATION]", "[ASSET]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = securityCenterClient.getIamPolicy(request);
Expand All @@ -472,7 +472,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setResource(AssetName.of("[ORGANIZATION]", "[ASSET]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.getIamPolicyCallable().futureCall(request);
Expand Down Expand Up @@ -1521,7 +1521,7 @@ public final UnaryCallable<SetFindingStateRequest, Finding> setFindingStateCalla
*
* <pre>{@code
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
* Policy policy = Policy.newBuilder().build();
* Policy response = securityCenterClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -1551,7 +1551,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
*
* <pre>{@code
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString();
* String resource = AssetName.of("[ORGANIZATION]", "[ASSET]").toString();
* Policy policy = Policy.newBuilder().build();
* Policy response = securityCenterClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -1580,7 +1580,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setResource(AssetName.of("[ORGANIZATION]", "[ASSET]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* Policy response = securityCenterClient.setIamPolicy(request);
Expand All @@ -1604,7 +1604,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setResource(AssetName.of("[ORGANIZATION]", "[ASSET]").toString())
* .setPolicy(Policy.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.setIamPolicyCallable().futureCall(request);
Expand All @@ -1625,7 +1625,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
*
* <pre>{@code
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
* ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
* List<String> permissions = new ArrayList<>();
* TestIamPermissionsResponse response =
* securityCenterClient.testIamPermissions(resource, permissions);
Expand Down Expand Up @@ -1657,7 +1657,7 @@ public final TestIamPermissionsResponse testIamPermissions(
*
* <pre>{@code
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* String resource = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString();
* String resource = AssetName.of("[ORGANIZATION]", "[ASSET]").toString();
* List<String> permissions = new ArrayList<>();
* TestIamPermissionsResponse response =
* securityCenterClient.testIamPermissions(resource, permissions);
Expand Down Expand Up @@ -1691,7 +1691,7 @@ public final TestIamPermissionsResponse testIamPermissions(
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setResource(AssetName.of("[ORGANIZATION]", "[ASSET]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request);
Expand All @@ -1715,7 +1715,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString())
* .setResource(AssetName.of("[ORGANIZATION]", "[ASSET]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockSecurityCenter.addResponse(expectedResponse);

ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");

Policy actualResponse = client.getIamPolicy(resource);
Assert.assertEquals(expectedResponse, actualResponse);
Expand All @@ -323,7 +323,7 @@ public void getIamPolicyExceptionTest() throws Exception {
mockSecurityCenter.addException(exception);

try {
ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
client.getIamPolicy(resource);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down Expand Up @@ -1122,7 +1122,7 @@ public void setIamPolicyTest() throws Exception {
.build();
mockSecurityCenter.addResponse(expectedResponse);

ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
Policy policy = Policy.newBuilder().build();

Policy actualResponse = client.setIamPolicy(resource, policy);
Expand All @@ -1146,7 +1146,7 @@ public void setIamPolicyExceptionTest() throws Exception {
mockSecurityCenter.addException(exception);

try {
ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
Policy policy = Policy.newBuilder().build();
client.setIamPolicy(resource, policy);
Assert.fail("No exception raised");
Expand Down Expand Up @@ -1204,7 +1204,7 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
mockSecurityCenter.addResponse(expectedResponse);

ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
List<String> permissions = new ArrayList<>();

TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
Expand All @@ -1228,7 +1228,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
mockSecurityCenter.addException(exception);

try {
ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]");
ResourceName resource = AssetName.of("[ORGANIZATION]", "[ASSET]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down
14 changes: 7 additions & 7 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-securitycenter.git",
"sha": "1d0e168521f2cd81f908be1b2e1eab9b3bf85ed1"
"sha": "f21f802b5e2144accf72b96fa59cdab094816a1b"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
"internalRef": "358516065"
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
"internalRef": "359781040"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
"internalRef": "358516065"
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
"internalRef": "359781040"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
"internalRef": "358516065"
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
"internalRef": "359781040"
}
},
{
Expand Down