Skip to content

Commit

Permalink
chore(bazel): update version of Protobuf to v3.20.1 (googleapis#801)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 444328399

Source-Link: googleapis/googleapis@c7ca416

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9

feat: Add connection and description field to finding's list of attributes
PiperOrigin-RevId: 442589635

Source-Link: googleapis/googleapis@50fc834

Source-Link: https://github.com/googleapis/googleapis-gen/commit/86cc920529b0877ba81216b52d995ce4dd2f8b4f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODZjYzkyMDUyOWIwODc3YmE4MTIxNmI1MmQ5OTVjZTRkZDJmOGI0ZiJ9

feat: Add next_steps field to finding's list of attributes
PiperOrigin-RevId: 440383959

Source-Link: googleapis/googleapis@6a276f6

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f94fc64061837033bab88c65075e1814edb6133a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjk0ZmM2NDA2MTgzNzAzM2JhYjg4YzY1MDc1ZTE4MTRlZGI2MTMzYSJ9

feat: Add iam_binding field to findings attributes. It represents particular IAM bindings, which captures a member's role addition, removal, or state
PiperOrigin-RevId: 439976914

Source-Link: googleapis/googleapis@f83787e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/a4e583e31dda27c647f4865794349b3130c776bd
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTRlNTgzZTMxZGRhMjdjNjQ3ZjQ4NjU3OTQzNDliMzEzMGM3NzZiZCJ9

feat: AuditConfig for IAM v1
PiperOrigin-RevId: 439356405

Source-Link: googleapis/googleapis@afa2ba1

Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Apr 28, 2022
1 parent e98fc42 commit 76cfbce
Show file tree
Hide file tree
Showing 183 changed files with 6,675 additions and 1,622 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3299,6 +3299,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* Policy response = securityCenterClient.setIamPolicy(request);
* }
Expand All @@ -3323,6 +3324,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.setIamPolicyCallable().futureCall(request);
* // Do something.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* SetIamPolicyRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* Policy response = securityCenterClient.setIamPolicy(request);
* }
Expand All @@ -1651,6 +1652,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* SetIamPolicyRequest.newBuilder()
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.setIamPolicyCallable().futureCall(request);
* // Do something.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* Policy response = securityCenterClient.setIamPolicy(request);
* }
Expand All @@ -2515,6 +2516,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<Policy> future = securityCenterClient.setIamPolicyCallable().futureCall(request);
* // Do something.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.google.api.gax.rpc.StatusCode;
import com.google.api.resourcenames.ResourceName;
import com.google.common.collect.Lists;
import com.google.iam.v1.AuditConfig;
import com.google.iam.v1.Binding;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
Expand Down Expand Up @@ -301,7 +302,11 @@ public void createFindingTest() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -364,7 +369,11 @@ public void createFindingTest2() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -1244,6 +1253,7 @@ public void getIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -1284,6 +1294,7 @@ public void getIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -2526,7 +2537,11 @@ public void setFindingStateTest() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2591,7 +2606,11 @@ public void setFindingStateTest2() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2654,7 +2673,11 @@ public void setMuteTest() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2716,7 +2739,11 @@ public void setMuteTest2() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2759,6 +2786,7 @@ public void setIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -2802,6 +2830,7 @@ public void setIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -2986,7 +3015,11 @@ public void updateFindingTest() throws Exception {
.putAllExternalSystems(new HashMap<String, ExternalSystem>())
.setMitreAttack(MitreAttack.newBuilder().build())
.setAccess(Access.newBuilder().build())
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.setDescription("description-1724546052")
.addAllIamBindings(new ArrayList<IamBinding>())
.setNextSteps("nextSteps1206138868")
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.google.api.gax.rpc.StatusCode;
import com.google.api.resourcenames.ResourceName;
import com.google.common.collect.Lists;
import com.google.iam.v1.AuditConfig;
import com.google.iam.v1.Binding;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
Expand Down Expand Up @@ -297,6 +298,7 @@ public void getIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -337,6 +339,7 @@ public void getIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -1118,6 +1121,7 @@ public void setIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -1161,6 +1165,7 @@ public void setIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import com.google.api.gax.rpc.StatusCode;
import com.google.api.resourcenames.ResourceName;
import com.google.common.collect.Lists;
import com.google.iam.v1.AuditConfig;
import com.google.iam.v1.Binding;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
Expand Down Expand Up @@ -684,6 +685,7 @@ public void getIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -724,6 +726,7 @@ public void getIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -1922,6 +1925,7 @@ public void setIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down Expand Up @@ -1965,6 +1969,7 @@ public void setIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList<Binding>())
.addAllAuditConfigs(new ArrayList<AuditConfig>())
.setEtag(ByteString.EMPTY)
.build();
mockSecurityCenter.addResponse(expectedResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ private Access(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ private Asset(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -685,6 +687,8 @@ private SecurityCenterProperties(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -3227,6 +3231,8 @@ private IamPolicy(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
Expand Down Expand Up @@ -3954,7 +3960,7 @@ public int getResourcePropertiesCount() {
@java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
return internalGetResourceProperties().getMap().containsKey(key);
}
Expand Down Expand Up @@ -3992,7 +3998,7 @@ public java.util.Map<java.lang.String, com.google.protobuf.Value> getResourcePro
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetResourceProperties().getMap();
Expand All @@ -4011,7 +4017,7 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
@java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetResourceProperties().getMap();
Expand Down Expand Up @@ -5189,7 +5195,7 @@ public int getResourcePropertiesCount() {
@java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
return internalGetResourceProperties().getMap().containsKey(key);
}
Expand Down Expand Up @@ -5227,7 +5233,7 @@ public java.util.Map<java.lang.String, com.google.protobuf.Value> getResourcePro
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetResourceProperties().getMap();
Expand All @@ -5246,7 +5252,7 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
@java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
java.util.Map<java.lang.String, com.google.protobuf.Value> map =
internalGetResourceProperties().getMap();
Expand All @@ -5272,7 +5278,7 @@ public Builder clearResourceProperties() {
*/
public Builder removeResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
internalGetMutableResourceProperties().getMutableMap().remove(key);
return this;
Expand All @@ -5295,11 +5301,12 @@ public Builder removeResourceProperties(java.lang.String key) {
*/
public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
if (key == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map key");
}
if (value == null) {
throw new java.lang.NullPointerException();
throw new NullPointerException("map value");
}

internalGetMutableResourceProperties().getMutableMap().put(key, value);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,12 @@ public interface AssetOrBuilder
*
* <code>map&lt;string, .google.protobuf.Value&gt; resource_properties = 7;</code>
*/

/* nullable */
com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue);
java.lang.String key,
/* nullable */
com.google.protobuf.Value defaultValue);
/**
*
*
Expand Down

0 comments on commit 76cfbce

Please sign in to comment.