The interfaces provided are listed below, along with usage samples. * diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java index 25c88df24..685e191b5 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Cloud Security Command Center API. + * gRPC callable factory implementation for Security Command Center API. * *
This class is for advanced usage. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java index cb330e17e..7fd0975f1 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java @@ -81,7 +81,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Cloud Security Command Center API. + * gRPC stub implementation for Security Command Center API. * *
This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java index 883e33a49..c623e2107 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java @@ -70,7 +70,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Cloud Security Command Center API. + * Base stub class for Security Command Center API. * *
This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java index 2168e0a47..2fc551563 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Cloud Security Command Center API. + * A client to Security Command Center API. * *
The interfaces provided are listed below, along with usage samples. * diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java index 99203d37a..ea47ce732 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Cloud Security Command Center API. + * gRPC callable factory implementation for Security Command Center API. * *
This class is for advanced usage. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java index 53bf003d8..4bdfa37e0 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java @@ -81,7 +81,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Cloud Security Command Center API. + * gRPC stub implementation for Security Command Center API. * *
This class is for advanced usage and reflects the underlying API directly. */ diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java index bd2517c43..b89846e30 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java @@ -70,7 +70,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Cloud Security Command Center API. + * Base stub class for Security Command Center API. * *
This class is for advanced usage and reflects the underlying API directly.
*/
diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
index 9a4e263cc..121b481ac 100644
--- a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
+++ b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
@@ -1285,7 +1285,8 @@ public void updateSourceExceptionTest() throws Exception {
@Test
@SuppressWarnings("all")
public void updateSecurityMarksTest() {
- SecurityMarksName name = SecurityMarksName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
+ SecurityMarksName name =
+ SecurityMarksName.ofOrganizationAssetSecurityMarksName("[ORGANIZATION]", "[ASSET]");
SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name.toString()).build();
mockSecurityCenter.addResponse(expectedResponse);
diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java
index 0824cc91b..c752f1cca 100644
--- a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java
+++ b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java
@@ -1374,7 +1374,8 @@ public void updateSourceExceptionTest2() throws Exception {
@Test
@SuppressWarnings("all")
public void updateSecurityMarksTest() {
- SecurityMarksName name = SecurityMarksName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
+ SecurityMarksName name =
+ SecurityMarksName.ofOrganizationAssetSecurityMarksName("[ORGANIZATION]", "[ASSET]");
SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name.toString()).build();
mockSecurityCenter.addResponse(expectedResponse);
@@ -1413,7 +1414,8 @@ public void updateSecurityMarksExceptionTest() throws Exception {
@Test
@SuppressWarnings("all")
public void updateSecurityMarksTest2() {
- SecurityMarksName name = SecurityMarksName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
+ SecurityMarksName name =
+ SecurityMarksName.ofOrganizationAssetSecurityMarksName("[ORGANIZATION]", "[ASSET]");
SecurityMarks expectedResponse = SecurityMarks.newBuilder().setName(name.toString()).build();
mockSecurityCenter.addResponse(expectedResponse);
diff --git a/grpc-google-cloud-securitycenter-v1/pom.xml b/grpc-google-cloud-securitycenter-v1/pom.xml
index 28665dd2e..4310fe48d 100644
--- a/grpc-google-cloud-securitycenter-v1/pom.xml
+++ b/grpc-google-cloud-securitycenter-v1/pom.xml
@@ -4,13 +4,13 @@
- * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
- * Platform (GCP) resource.
- * The Asset is a Cloud SCC resource that captures information about a single
- * GCP resource. All modifications to an Asset are only within the context of
- * Cloud SCC and don't affect the referenced GCP resource.
+ * Security Command Center representation of a Google Cloud
+ * resource.
+ * The Asset is a Security Command Center resource that captures information
+ * about a single Google Cloud resource. All modifications to an Asset are only
+ * within the context of Security Command Center and don't affect the referenced
+ * Google Cloud resource.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.Asset}
@@ -235,7 +236,7 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -249,7 +250,7 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -264,10 +265,10 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -279,10 +280,10 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -475,8 +476,8 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * Cloud SCC managed properties. These properties are managed by Cloud SCC and
- * cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties}
@@ -634,7 +635,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -643,6 +644,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The resourceName.
*/
+ @java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -658,7 +660,7 @@ public java.lang.String getResourceName() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -667,6 +669,7 @@ public java.lang.String getResourceName() {
*
* @return The bytes for resourceName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -685,16 +688,17 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
*
* @return The resourceType.
*/
+ @java.lang.Override
public java.lang.String getResourceType() {
java.lang.Object ref = resourceType_;
if (ref instanceof java.lang.String) {
@@ -710,16 +714,17 @@ public java.lang.String getResourceType() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
*
* @return The bytes for resourceType.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceTypeBytes() {
java.lang.Object ref = resourceType_;
if (ref instanceof java.lang.String) {
@@ -746,6 +751,7 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
*
* @return The resourceParent.
*/
+ @java.lang.Override
public java.lang.String getResourceParent() {
java.lang.Object ref = resourceParent_;
if (ref instanceof java.lang.String) {
@@ -769,6 +775,7 @@ public java.lang.String getResourceParent() {
*
* @return The bytes for resourceParent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceParentBytes() {
java.lang.Object ref = resourceParent_;
if (ref instanceof java.lang.String) {
@@ -795,6 +802,7 @@ public com.google.protobuf.ByteString getResourceParentBytes() {
*
* @return The resourceProject.
*/
+ @java.lang.Override
public java.lang.String getResourceProject() {
java.lang.Object ref = resourceProject_;
if (ref instanceof java.lang.String) {
@@ -818,6 +826,7 @@ public java.lang.String getResourceProject() {
*
* @return The bytes for resourceProject.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceProjectBytes() {
java.lang.Object ref = resourceProject_;
if (ref instanceof java.lang.String) {
@@ -904,6 +913,7 @@ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) {
*
* @return The resourceDisplayName.
*/
+ @java.lang.Override
public java.lang.String getResourceDisplayName() {
java.lang.Object ref = resourceDisplayName_;
if (ref instanceof java.lang.String) {
@@ -926,6 +936,7 @@ public java.lang.String getResourceDisplayName() {
*
* @return The bytes for resourceDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceDisplayNameBytes() {
java.lang.Object ref = resourceDisplayName_;
if (ref instanceof java.lang.String) {
@@ -951,6 +962,7 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() {
*
* @return The resourceParentDisplayName.
*/
+ @java.lang.Override
public java.lang.String getResourceParentDisplayName() {
java.lang.Object ref = resourceParentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -973,6 +985,7 @@ public java.lang.String getResourceParentDisplayName() {
*
* @return The bytes for resourceParentDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() {
java.lang.Object ref = resourceParentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -998,6 +1011,7 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() {
*
* @return The resourceProjectDisplayName.
*/
+ @java.lang.Override
public java.lang.String getResourceProjectDisplayName() {
java.lang.Object ref = resourceProjectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1020,6 +1034,7 @@ public java.lang.String getResourceProjectDisplayName() {
*
* @return The bytes for resourceProjectDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() {
java.lang.Object ref = resourceProjectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1273,8 +1288,8 @@ protected Builder newBuilderForType(
*
*
*
- * Cloud SCC managed properties. These properties are managed by Cloud SCC and
- * cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties}
@@ -1506,7 +1521,7 @@ public Builder mergeFrom(
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1530,7 +1545,7 @@ public java.lang.String getResourceName() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1554,7 +1569,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1577,7 +1592,7 @@ public Builder setResourceName(java.lang.String value) {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1596,7 +1611,7 @@ public Builder clearResourceName() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1622,10 +1637,10 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1647,10 +1662,10 @@ public java.lang.String getResourceType() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1672,10 +1687,10 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1696,10 +1711,10 @@ public Builder setResourceType(java.lang.String value) {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1716,10 +1731,10 @@ public Builder clearResourceType() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -2539,9 +2554,10 @@ public interface IamPolicyOrBuilder
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy}
@@ -2645,6 +2661,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The policyBlob.
*/
+ @java.lang.Override
public java.lang.String getPolicyBlob() {
java.lang.Object ref = policyBlob_;
if (ref instanceof java.lang.String) {
@@ -2669,6 +2686,7 @@ public java.lang.String getPolicyBlob() {
*
* @return The bytes for policyBlob.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPolicyBlobBytes() {
java.lang.Object ref = policyBlob_;
if (ref instanceof java.lang.String) {
@@ -2845,9 +2863,10 @@ protected Builder newBuilderForType(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy}
@@ -3189,6 +3208,7 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForT
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -3214,6 +3234,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -3233,8 +3254,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -3243,6 +3264,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return Whether the securityCenterProperties field is set.
*/
+ @java.lang.Override
public boolean hasSecurityCenterProperties() {
return securityCenterProperties_ != null;
}
@@ -3250,8 +3272,8 @@ public boolean hasSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
getListFindingsResults(int index) {
return listFindingsResults_.get(index);
@@ -3332,6 +3361,7 @@ public int getListFindingsResultsCount() {
* repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder
getListFindingsResultsOrBuilder(int index) {
return listFindingsResults_.get(index);
@@ -3350,6 +3380,7 @@ public int getListFindingsResultsCount() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -3364,6 +3395,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -3376,6 +3408,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -3260,6 +3282,7 @@ public boolean hasSecurityCenterProperties() {
*
* @return The securityCenterProperties.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
getSecurityCenterProperties() {
return securityCenterProperties_ == null
@@ -3270,14 +3293,15 @@ public boolean hasSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public int getListFindingsResultsCount() {
return listFindingsResults_.size();
}
@@ -3317,6 +3345,7 @@ public int getListFindingsResultsCount() {
* repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1;
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
* .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder
getSecurityCenterPropertiesOrBuilder() {
return getSecurityCenterProperties();
@@ -3318,11 +3342,12 @@ public int getResourcePropertiesCount() {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -3330,6 +3355,7 @@ public boolean containsResourceProperties(java.lang.String key) {
return internalGetResourceProperties().getMap().containsKey(key);
}
/** Use {@link #getResourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -3371,11 +3399,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -3402,6 +3431,7 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -3417,6 +3447,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()
@@ -3432,6 +3463,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
*
* .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
return getSecurityMarks();
}
@@ -3442,13 +3474,14 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
*
* @return Whether the createTime field is set.
*/
+ @java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
@@ -3456,13 +3489,14 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
*
* @return The createTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
@@ -3470,11 +3504,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return getCreateTime();
}
@@ -3485,14 +3520,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
*
* @return Whether the updateTime field is set.
*/
+ @java.lang.Override
public boolean hasUpdateTime() {
return updateTime_ != null;
}
@@ -3500,14 +3536,15 @@ public boolean hasUpdateTime() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
*
* @return The updateTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
@@ -3515,12 +3552,13 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return getUpdateTime();
}
@@ -3531,15 +3569,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
*
* @return Whether the iamPolicy field is set.
*/
+ @java.lang.Override
public boolean hasIamPolicy() {
return iamPolicy_ != null;
}
@@ -3547,15 +3587,17 @@ public boolean hasIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
*
* @return The iamPolicy.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() {
return iamPolicy_ == null
? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance()
@@ -3565,13 +3607,15 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() {
return getIamPolicy();
}
@@ -3832,11 +3876,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
- * Platform (GCP) resource.
- * The Asset is a Cloud SCC resource that captures information about a single
- * GCP resource. All modifications to an Asset are only within the context of
- * Cloud SCC and don't affect the referenced GCP resource.
+ * Security Command Center representation of a Google Cloud
+ * resource.
+ * The Asset is a Security Command Center resource that captures information
+ * about a single Google Cloud resource. All modifications to an Asset are only
+ * within the context of Security Command Center and don't affect the referenced
+ * Google Cloud resource.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.Asset}
@@ -4218,8 +4263,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4235,8 +4280,8 @@ public boolean hasSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public java.util.List<
? extends
com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder>
@@ -3303,6 +3330,7 @@ public com.google.protobuf.Parser
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4259,8 +4304,8 @@ public boolean hasSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public java.util.List
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4285,8 +4330,8 @@ public Builder setSecurityCenterProperties(
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
.ResourceOrBuilder
getResourceOrBuilder() {
@@ -2884,6 +2906,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -2902,6 +2925,7 @@ public int getStateChangeValue() {
* @return This builder for chaining.
*/
public Builder setStateChangeValue(int value) {
+
stateChange_ = value;
onChanged();
return this;
@@ -2919,6 +2943,7 @@ public Builder setStateChangeValue(int value) {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange
getStateChange() {
@SuppressWarnings("deprecation")
@@ -3271,6 +3296,7 @@ public com.google.protobuf.Parser
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4308,8 +4353,8 @@ public Builder setSecurityCenterProperties(
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder
getListAssetsResultsOrBuilder(int index) {
return listAssetsResults_.get(index);
@@ -1407,6 +1424,7 @@ public int getListAssetsResultsCount() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -1421,6 +1439,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -1433,6 +1452,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4339,8 +4384,8 @@ public Builder mergeSecurityCenterProperties(
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult
getListAssetsResults(int index) {
return listAssetsResults_.get(index);
@@ -1389,6 +1405,7 @@ public int getListAssetsResultsCount() {
* repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4362,8 +4407,8 @@ public Builder clearSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public int getListAssetsResultsCount() {
return listAssetsResults_.size();
}
@@ -1374,6 +1389,7 @@ public int getListAssetsResultsCount() {
* repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1;
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4380,8 +4425,8 @@ public Builder clearSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public java.util.List<
? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>
getListAssetsResultsOrBuilderList() {
@@ -1360,6 +1374,7 @@ public com.google.protobuf.Parser
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4402,8 +4447,8 @@ public Builder clearSecurityCenterProperties() {
*
*
*
*/
+ @java.lang.Override
public java.util.List
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4462,11 +4507,12 @@ public int getResourcePropertiesCount() {
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
return getSecurityMarks();
}
@@ -873,6 +897,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
*
* @return Whether the eventTime field is set.
*/
+ @java.lang.Override
public boolean hasEventTime() {
return eventTime_ != null;
}
@@ -889,6 +914,7 @@ public boolean hasEventTime() {
*
* @return The eventTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getEventTime() {
return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
}
@@ -903,6 +929,7 @@ public com.google.protobuf.Timestamp getEventTime() {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -4474,6 +4520,7 @@ public boolean containsResourceProperties(java.lang.String key) {
return internalGetResourceProperties().getMap().containsKey(key);
}
/** Use {@link #getResourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -4515,11 +4564,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -4541,7 +4591,7 @@ public Builder clearResourceProperties() {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -4564,7 +4614,7 @@ public Builder removeResourceProperties(java.lang.String key) {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -4584,7 +4634,7 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -4800,7 +4850,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4814,7 +4864,7 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4834,7 +4884,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4856,7 +4906,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4875,7 +4925,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4899,7 +4949,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4919,7 +4969,7 @@ public Builder clearCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4933,7 +4983,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4951,7 +5001,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4983,8 +5033,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -4998,8 +5048,8 @@ public boolean hasUpdateTime() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5019,8 +5069,8 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5042,8 +5092,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5062,8 +5112,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5087,8 +5137,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5108,8 +5158,8 @@ public Builder clearUpdateTime() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5123,8 +5173,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5142,8 +5192,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -5175,9 +5225,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5191,9 +5242,10 @@ public boolean hasIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5213,9 +5265,10 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5237,9 +5290,10 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy v
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5259,9 +5313,10 @@ public Builder setIamPolicy(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5287,9 +5342,10 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5309,9 +5365,10 @@ public Builder clearIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5325,9 +5382,10 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder getIamPolicyBu
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -5345,9 +5403,10 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java
index ae568fb5c..a185f4226 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java
@@ -58,8 +58,8 @@ public interface AssetOrBuilder
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -73,8 +73,8 @@ public interface AssetOrBuilder
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() {
return getSource();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java
index 3b233f7cc..2b209ecc0 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java
@@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -153,6 +154,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java
index 2e978cd23..fd9f9003a 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java
@@ -22,10 +22,10 @@
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -88,8 +88,8 @@ public interface AssetOrBuilder
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder
getNotificationConfigOrBuilder() {
return getNotificationConfig();
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java
index 4c963ab42..2683ef39c 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java
@@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -168,6 +169,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -196,6 +198,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return Whether the source field is set.
*/
+ @java.lang.Override
public boolean hasSource() {
return source_ != null;
}
@@ -213,6 +216,7 @@ public boolean hasSource() {
*
* @return The source.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Source getSource() {
return source_ == null
? com.google.cloud.securitycenter.v1.Source.getDefaultInstance()
@@ -230,6 +234,7 @@ public com.google.cloud.securitycenter.v1.Source getSource() {
* .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -104,7 +104,7 @@ public interface AssetOrBuilder
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java
index cdd6ee4d2..d36455613 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java
@@ -153,6 +153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -178,6 +179,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -206,6 +208,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The configId.
*/
+ @java.lang.Override
public java.lang.String getConfigId() {
java.lang.Object ref = configId_;
if (ref instanceof java.lang.String) {
@@ -231,6 +234,7 @@ public java.lang.String getConfigId() {
*
* @return The bytes for configId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getConfigIdBytes() {
java.lang.Object ref = configId_;
if (ref instanceof java.lang.String) {
@@ -260,6 +264,7 @@ public com.google.protobuf.ByteString getConfigIdBytes() {
*
* @return Whether the notificationConfig field is set.
*/
+ @java.lang.Override
public boolean hasNotificationConfig() {
return notificationConfig_ != null;
}
@@ -278,6 +283,7 @@ public boolean hasNotificationConfig() {
*
* @return The notificationConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() {
return notificationConfig_ == null
? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()
@@ -296,6 +302,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
* .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -115,7 +115,7 @@ public interface AssetOrBuilder
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -129,7 +129,7 @@ public interface AssetOrBuilder
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -140,7 +140,7 @@ public interface AssetOrBuilder
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -152,7 +152,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -201,7 +201,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -213,7 +213,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -225,7 +225,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -236,8 +236,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -249,8 +249,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -262,8 +262,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was last updated, added, or deleted in Cloud
- * SCC.
+ * The time at which the asset was last updated, added, or deleted in Security
+ * Command Center.
*
*
* .google.protobuf.Timestamp update_time = 10;
@@ -274,9 +274,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -288,9 +289,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
@@ -302,9 +304,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java
deleted file mode 100644
index e09f9a2ca..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetSecurityMarksName.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.securitycenter.v1;
-
-import com.google.api.pathtemplate.PathTemplate;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableMap;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class AssetSecurityMarksName extends SecurityMarksName {
-
- private static final PathTemplate PATH_TEMPLATE =
- PathTemplate.createWithoutUrlEncoding(
- "organizations/{organization}/assets/{asset}/securityMarks");
-
- private volatile Map
- * Cloud Security Command Center (Cloud SCC) finding.
+ * Security Command Center finding.
* A finding is a record of assessment data like security, risk, health, or
- * privacy, that is ingested into Cloud SCC for presentation, notification,
- * analysis, policy testing, and enforcement. For example, a
+ * privacy, that is ingested into Security Command Center for presentation,
+ * notification, analysis, policy testing, and enforcement. For example, a
* cross-site scripting (XSS) vulnerability in an App Engine application is a
* finding.
*
@@ -355,6 +355,10 @@ public State findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -403,6 +407,7 @@ private State(int value) {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -428,6 +433,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -457,6 +463,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -483,6 +490,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -501,18 +509,19 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
*
* @return The resourceName.
*/
+ @java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -528,18 +537,19 @@ public java.lang.String getResourceName() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
*
* @return The bytes for resourceName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -565,6 +575,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -579,6 +590,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1.Finding.State result =
@@ -601,6 +613,7 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() {
*
* @return The category.
*/
+ @java.lang.Override
public java.lang.String getCategory() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
@@ -625,6 +638,7 @@ public java.lang.String getCategory() {
*
* @return The bytes for category.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
@@ -643,15 +657,16 @@ public com.google.protobuf.ByteString getCategoryBytes() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
*
* @return The externalUri.
*/
+ @java.lang.Override
public java.lang.String getExternalUri() {
java.lang.Object ref = externalUri_;
if (ref instanceof java.lang.String) {
@@ -667,15 +682,16 @@ public java.lang.String getExternalUri() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
*
* @return The bytes for externalUri.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getExternalUriBytes() {
java.lang.Object ref = externalUri_;
if (ref instanceof java.lang.String) {
@@ -730,6 +746,7 @@ public int getSourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public boolean containsSourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -737,6 +754,7 @@ public boolean containsSourceProperties(java.lang.String key) {
return internalGetSourceProperties().getMap().containsKey(key);
}
/** Use {@link #getSourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -789,6 +809,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -818,6 +839,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -836,6 +858,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()
@@ -854,6 +877,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
* .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* .google.protobuf.Timestamp event_time = 9;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
return getEventTime();
}
@@ -913,13 +940,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
*
* @return Whether the createTime field is set.
*/
+ @java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
@@ -927,13 +955,14 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
*
* @return The createTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
@@ -941,11 +970,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return getCreateTime();
}
@@ -1217,10 +1247,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud Security Command Center (Cloud SCC) finding.
+ * Security Command Center finding.
* A finding is a record of assessment data like security, risk, health, or
- * privacy, that is ingested into Cloud SCC for presentation, notification,
- * analysis, policy testing, and enforcement. For example, a
+ * privacy, that is ingested into Security Command Center for presentation,
+ * notification, analysis, policy testing, and enforcement. For example, a
* cross-site scripting (XSS) vulnerability in an App Engine application is a
* finding.
*
@@ -1730,12 +1760,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1757,12 +1787,12 @@ public java.lang.String getResourceName() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1784,12 +1814,12 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1810,12 +1840,12 @@ public Builder setResourceName(java.lang.String value) {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1832,12 +1862,12 @@ public Builder clearResourceName() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1868,6 +1898,7 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -1884,6 +1915,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -1899,6 +1931,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1.Finding.State result =
@@ -2067,9 +2100,9 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2091,9 +2124,9 @@ public java.lang.String getExternalUri() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2115,9 +2148,9 @@ public com.google.protobuf.ByteString getExternalUriBytes() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2138,9 +2171,9 @@ public Builder setExternalUri(java.lang.String value) {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2157,9 +2190,9 @@ public Builder clearExternalUri() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2220,6 +2253,7 @@ public int getSourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public boolean containsSourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2227,6 +2261,7 @@ public boolean containsSourceProperties(java.lang.String key) {
return internalGetSourceProperties().getMap().containsKey(key);
}
/** Use {@link #getSourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -2279,6 +2316,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2788,7 +2826,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2802,7 +2840,7 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2822,7 +2860,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2844,7 +2882,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2863,7 +2901,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2887,7 +2925,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2907,7 +2945,7 @@ public Builder clearCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2921,7 +2959,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2939,7 +2977,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java
index 3b410b6aa..26138f711 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java
@@ -91,12 +91,12 @@ public interface FindingOrBuilder
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -108,12 +108,12 @@ public interface FindingOrBuilder
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -180,9 +180,9 @@ public interface FindingOrBuilder
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -194,9 +194,9 @@ public interface FindingOrBuilder
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -367,7 +367,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -379,7 +379,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -391,7 +391,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java
deleted file mode 100644
index 7bda84131..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingSecurityMarksName.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.securitycenter.v1;
-
-import com.google.api.pathtemplate.PathTemplate;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableMap;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class FindingSecurityMarksName extends SecurityMarksName {
-
- private static final PathTemplate PATH_TEMPLATE =
- PathTemplate.createWithoutUrlEncoding(
- "organizations/{organization}/sources/{source}/findings/{finding}/securityMarks");
-
- private volatile Mapstring filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -317,13 +324,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -336,12 +343,17 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -380,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The groupBy.
*/
+ @java.lang.Override
public java.lang.String getGroupBy() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -415,6 +428,7 @@ public java.lang.String getGroupBy() {
*
* @return The bytes for groupBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getGroupByBytes() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -461,6 +475,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -496,6 +511,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -531,6 +547,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 4;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -551,6 +568,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -568,6 +586,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -583,6 +602,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 5;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -602,6 +622,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -626,6 +647,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -652,6 +674,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -1244,13 +1267,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1263,6 +1286,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1308,13 +1335,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1327,6 +1354,10 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1372,13 +1403,13 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1391,6 +1422,10 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1435,13 +1470,13 @@ public Builder setFilter(java.lang.String value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1454,6 +1489,10 @@ public Builder setFilter(java.lang.String value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1494,13 +1533,13 @@ public Builder clearFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1513,6 +1552,10 @@ public Builder clearFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2411,6 +2454,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java
index f2c357389..3207dce69 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java
@@ -82,13 +82,13 @@ public interface GroupAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -101,6 +101,10 @@ public interface GroupAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -136,13 +140,13 @@ public interface GroupAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -155,6 +159,10 @@ public interface GroupAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing:`resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java
index 8114a0710..75cbbfd90 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java
@@ -161,6 +161,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1.GroupResultOrBuilder>
getGroupByResultsOrBuilderList() {
return groupByResults_;
@@ -190,6 +192,7 @@ public java.util.Listrepeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public int getGroupByResultsCount() {
return groupByResults_.size();
}
@@ -204,6 +207,7 @@ public int getGroupByResultsCount() {
*
* repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) {
return groupByResults_.get(index);
}
@@ -218,6 +222,7 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
*
* repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
int index) {
return groupByResults_.get(index);
@@ -236,6 +241,7 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -250,6 +256,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -262,6 +269,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -280,6 +288,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -303,6 +312,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -328,6 +338,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -1450,6 +1461,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java
index f126f35e4..01834d538 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java
@@ -188,6 +188,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -215,6 +216,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -260,17 +262,22 @@ public com.google.protobuf.ByteString getParentBytes() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -313,17 +320,22 @@ public java.lang.String getFilter() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -358,6 +370,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The groupBy.
*/
+ @java.lang.Override
public java.lang.String getGroupBy() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -389,6 +402,7 @@ public java.lang.String getGroupBy() {
*
* @return The bytes for groupBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getGroupByBytes() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -417,6 +431,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -434,6 +449,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -449,6 +465,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -492,6 +509,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -532,6 +550,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -572,6 +591,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -591,6 +611,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -615,6 +636,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -641,6 +663,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -1246,11 +1269,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1299,11 +1326,15 @@ public java.lang.String getFilter() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1352,11 +1383,15 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1404,11 +1439,15 @@ public Builder setFilter(java.lang.String value) {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1452,11 +1491,15 @@ public Builder clearFilter() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2380,6 +2423,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java
index 14186d523..e33f8f505 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java
@@ -89,11 +89,15 @@ public interface GroupFindingsRequestOrBuilder
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -132,11 +136,15 @@ public interface GroupFindingsRequestOrBuilder
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java
index e94e8b3b0..1df2dc53b 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java
@@ -161,6 +161,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1.GroupResultOrBuilder>
getGroupByResultsOrBuilderList() {
return groupByResults_;
@@ -190,6 +192,7 @@ public java.util.Listrepeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public int getGroupByResultsCount() {
return groupByResults_.size();
}
@@ -204,6 +207,7 @@ public int getGroupByResultsCount() {
*
* repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index) {
return groupByResults_.get(index);
}
@@ -218,6 +222,7 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
*
* repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
int index) {
return groupByResults_.get(index);
@@ -236,6 +241,7 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -250,6 +256,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -262,6 +269,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -280,6 +288,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -303,6 +312,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -328,6 +338,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -1450,6 +1461,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java
index f6c43f8d9..a16b452a0 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java
@@ -172,6 +172,7 @@ public int getPropertiesCount() {
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public boolean containsProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -179,6 +180,7 @@ public boolean containsProperties(java.lang.String key) {
return internalGetProperties().getMap().containsKey(key);
}
/** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -222,6 +226,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -247,6 +252,7 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
*
* @return The count.
*/
+ @java.lang.Override
public long getCount() {
return count_;
}
@@ -647,6 +653,7 @@ public int getPropertiesCount() {
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public boolean containsProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -654,6 +661,7 @@ public boolean containsProperties(java.lang.String key) {
return internalGetProperties().getMap().containsKey(key);
}
/** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -697,6 +707,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -780,6 +791,7 @@ public Builder putAllProperties(
*
* @return The count.
*/
+ @java.lang.Override
public long getCount() {
return count_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java
index ea22332ea..5f9697aed 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java
@@ -201,6 +201,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -226,6 +227,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -268,13 +270,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -287,12 +289,17 @@ public com.google.protobuf.ByteString getParentBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -332,13 +339,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -351,12 +358,17 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -401,6 +413,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The orderBy.
*/
+ @java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -442,6 +455,7 @@ public java.lang.String getOrderBy() {
*
* @return The bytes for orderBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -470,6 +484,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -487,6 +502,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -502,6 +518,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -538,6 +555,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -571,6 +589,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -604,6 +623,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -623,6 +643,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return Whether the fieldMask field is set.
*/
+ @java.lang.Override
public boolean hasFieldMask() {
return fieldMask_ != null;
}
@@ -639,6 +660,7 @@ public boolean hasFieldMask() {
*
* @return The fieldMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
@@ -653,6 +675,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
* .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return getFieldMask();
}
@@ -672,6 +695,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -696,6 +720,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -722,6 +747,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -1341,13 +1367,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1360,6 +1386,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1405,13 +1435,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1424,6 +1454,10 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1469,13 +1503,13 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1488,6 +1522,10 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1532,13 +1570,13 @@ public Builder setFilter(java.lang.String value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1551,6 +1589,10 @@ public Builder setFilter(java.lang.String value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1591,13 +1633,13 @@ public Builder clearFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1610,6 +1652,10 @@ public Builder clearFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2717,6 +2763,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java
index d51a62bfc..4cb06ab9e 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java
@@ -82,13 +82,13 @@ public interface ListAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -101,6 +101,10 @@ public interface ListAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -136,13 +140,13 @@ public interface ListAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -155,6 +159,10 @@ public interface ListAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java
index 9b8211bdd..31c2b632b 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java
@@ -478,6 +478,10 @@ public StateChange findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -526,6 +530,7 @@ private StateChange(int value) {
*
* @return Whether the asset field is set.
*/
+ @java.lang.Override
public boolean hasAsset() {
return asset_ != null;
}
@@ -540,6 +545,7 @@ public boolean hasAsset() {
*
* @return The asset.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Asset getAsset() {
return asset_ == null
? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance()
@@ -554,6 +560,7 @@ public com.google.cloud.securitycenter.v1.Asset getAsset() {
*
* .google.cloud.securitycenter.v1.Asset asset = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() {
return getAsset();
}
@@ -573,6 +580,7 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() {
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -589,6 +597,7 @@ public int getStateChangeValue() {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange
getStateChange() {
@SuppressWarnings("deprecation")
@@ -1168,6 +1177,7 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() {
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -1186,6 +1196,7 @@ public int getStateChangeValue() {
* @return This builder for chaining.
*/
public Builder setStateChangeValue(int value) {
+
stateChange_ = value;
onChanged();
return this;
@@ -1203,6 +1214,7 @@ public Builder setStateChangeValue(int value) {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange
getStateChange() {
@SuppressWarnings("deprecation")
@@ -1329,6 +1341,7 @@ public com.google.protobuf.Parser.google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -1451,6 +1471,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -1474,6 +1495,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -1499,6 +1521,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -2642,6 +2665,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java
index 216601d3c..fa00d7905 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java
@@ -203,6 +203,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -230,6 +231,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -275,17 +277,22 @@ public com.google.protobuf.ByteString getParentBytes() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -328,17 +335,22 @@ public java.lang.String getFilter() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -380,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The orderBy.
*/
+ @java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -418,6 +431,7 @@ public java.lang.String getOrderBy() {
*
* @return The bytes for orderBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -446,6 +460,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -463,6 +478,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -478,6 +494,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -520,6 +537,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -559,6 +577,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -598,6 +617,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -617,6 +637,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return Whether the fieldMask field is set.
*/
+ @java.lang.Override
public boolean hasFieldMask() {
return fieldMask_ != null;
}
@@ -633,6 +654,7 @@ public boolean hasFieldMask() {
*
* @return The fieldMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
@@ -647,6 +669,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
* .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return getFieldMask();
}
@@ -666,6 +689,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -690,6 +714,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -716,6 +741,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -1349,11 +1375,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1402,11 +1432,15 @@ public java.lang.String getFilter() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1455,11 +1489,15 @@ public com.google.protobuf.ByteString getFilterBytes() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1507,11 +1545,15 @@ public Builder setFilter(java.lang.String value) {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1555,11 +1597,15 @@ public Builder clearFilter() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2706,6 +2752,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java
index 4d95869f4..5ae5d5dc6 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java
@@ -89,11 +89,15 @@ public interface ListFindingsRequestOrBuilder
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -132,11 +136,15 @@ public interface ListFindingsRequestOrBuilder
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java
index 24ac8e7b4..7aaf82e7a 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java
@@ -573,6 +573,10 @@ public StateChange findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -744,7 +748,7 @@ public interface ResourceOrBuilder
*
*
*
- * Information related to the Google Cloud Platform (GCP) resource that is
+ * Information related to the Google Cloud resource that is
* associated with this finding.
*
*
@@ -884,6 +888,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -907,6 +912,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -932,6 +938,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The projectName.
*/
+ @java.lang.Override
public java.lang.String getProjectName() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
@@ -954,6 +961,7 @@ public java.lang.String getProjectName() {
*
* @return The bytes for projectName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getProjectNameBytes() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
@@ -979,6 +987,7 @@ public com.google.protobuf.ByteString getProjectNameBytes() {
*
* @return The projectDisplayName.
*/
+ @java.lang.Override
public java.lang.String getProjectDisplayName() {
java.lang.Object ref = projectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1001,6 +1010,7 @@ public java.lang.String getProjectDisplayName() {
*
* @return The bytes for projectDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
java.lang.Object ref = projectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1026,6 +1036,7 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
*
* @return The parentName.
*/
+ @java.lang.Override
public java.lang.String getParentName() {
java.lang.Object ref = parentName_;
if (ref instanceof java.lang.String) {
@@ -1048,6 +1059,7 @@ public java.lang.String getParentName() {
*
* @return The bytes for parentName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentNameBytes() {
java.lang.Object ref = parentName_;
if (ref instanceof java.lang.String) {
@@ -1073,6 +1085,7 @@ public com.google.protobuf.ByteString getParentNameBytes() {
*
* @return The parentDisplayName.
*/
+ @java.lang.Override
public java.lang.String getParentDisplayName() {
java.lang.Object ref = parentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1095,6 +1108,7 @@ public java.lang.String getParentDisplayName() {
*
* @return The bytes for parentDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentDisplayNameBytes() {
java.lang.Object ref = parentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1332,7 +1346,7 @@ protected Builder newBuilderForType(
*
*
*
- * Information related to the Google Cloud Platform (GCP) resource that is
+ * Information related to the Google Cloud resource that is
* associated with this finding.
*
*
@@ -2149,6 +2163,7 @@ public com.google.protobuf.Parser.google.cloud.securitycenter.v1.Finding finding = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
@@ -2196,6 +2213,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -2212,6 +2230,7 @@ public int getStateChangeValue() {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange
getStateChange() {
@SuppressWarnings("deprecation")
@@ -2241,6 +2260,7 @@ public int getStateChangeValue() {
*
* @return Whether the resource field is set.
*/
+ @java.lang.Override
public boolean hasResource() {
return resource_ != null;
}
@@ -2257,6 +2277,7 @@ public boolean hasResource() {
*
* @return The resource.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource
getResource() {
return resource_ == null
@@ -2275,6 +2296,7 @@ public boolean hasResource() {
* .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3;
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -3394,6 +3427,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -3417,6 +3451,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -3442,6 +3477,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -4591,6 +4627,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java
index ff4292af3..af42d4a1a 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java
@@ -141,6 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -166,6 +167,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -193,6 +195,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -217,6 +220,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -243,6 +247,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -853,6 +858,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java
index 6d96f2c49..7fcea2326 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java
@@ -144,6 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1;
*
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1;
*
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>
getNotificationConfigsOrBuilderList() {
return notificationConfigs_;
@@ -172,6 +174,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1;
*
*/
+ @java.lang.Override
public int getNotificationConfigsCount() {
return notificationConfigs_.size();
}
@@ -185,6 +188,7 @@ public int getNotificationConfigsCount() {
* repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index) {
return notificationConfigs_.get(index);
}
@@ -198,6 +202,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
* repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder
getNotificationConfigsOrBuilder(int index) {
return notificationConfigs_.get(index);
@@ -217,6 +222,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -240,6 +246,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java
index 196eeb7d8..9dce1adb3 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java
@@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -165,6 +166,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -192,6 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -216,6 +219,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -242,6 +246,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -846,6 +851,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java
index 6e35a931d..9677176ee 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java
@@ -138,6 +138,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1.Source sources = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1.Source sources = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1.SourceOrBuilder>
getSourcesOrBuilderList() {
return sources_;
@@ -163,6 +165,7 @@ public java.util.Listrepeated .google.cloud.securitycenter.v1.Source sources = 1;
*/
+ @java.lang.Override
public int getSourcesCount() {
return sources_.size();
}
@@ -175,6 +178,7 @@ public int getSourcesCount() {
*
* repeated .google.cloud.securitycenter.v1.Source sources = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Source getSources(int index) {
return sources_.get(index);
}
@@ -187,6 +191,7 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) {
*
* repeated .google.cloud.securitycenter.v1.Source sources = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) {
return sources_.get(index);
}
@@ -205,6 +210,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(in
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -228,6 +234,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java
index 7e55e5bf2..9fc49bfa3 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java
@@ -343,6 +343,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -380,6 +381,7 @@ public java.lang.String getFilter() {
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -1024,6 +1026,7 @@ public NotifyConfigCase getNotifyConfigCase() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -1049,6 +1052,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -1074,6 +1078,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The description.
*/
+ @java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -1096,6 +1101,7 @@ public java.lang.String getDescription() {
*
* @return The bytes for description.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -1122,6 +1128,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
* @return The pubsubTopic.
*/
+ @java.lang.Override
public java.lang.String getPubsubTopic() {
java.lang.Object ref = pubsubTopic_;
if (ref instanceof java.lang.String) {
@@ -1145,6 +1152,7 @@ public java.lang.String getPubsubTopic() {
*
* @return The bytes for pubsubTopic.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPubsubTopicBytes() {
java.lang.Object ref = pubsubTopic_;
if (ref instanceof java.lang.String) {
@@ -1171,6 +1179,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
*
* @return The serviceAccount.
*/
+ @java.lang.Override
public java.lang.String getServiceAccount() {
java.lang.Object ref = serviceAccount_;
if (ref instanceof java.lang.String) {
@@ -1194,6 +1203,7 @@ public java.lang.String getServiceAccount() {
*
* @return The bytes for serviceAccount.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getServiceAccountBytes() {
java.lang.Object ref = serviceAccount_;
if (ref instanceof java.lang.String) {
@@ -1219,6 +1229,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
*
* @return Whether the streamingConfig field is set.
*/
+ @java.lang.Override
public boolean hasStreamingConfig() {
return notifyConfigCase_ == 5;
}
@@ -1234,6 +1245,7 @@ public boolean hasStreamingConfig() {
*
* @return The streamingConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
getStreamingConfig() {
if (notifyConfigCase_ == 5) {
@@ -1252,6 +1264,7 @@ public boolean hasStreamingConfig() {
* .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder
getStreamingConfigOrBuilder() {
if (notifyConfigCase_ == 5) {
@@ -2159,6 +2172,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
*
* @return Whether the streamingConfig field is set.
*/
+ @java.lang.Override
public boolean hasStreamingConfig() {
return notifyConfigCase_ == 5;
}
@@ -2175,6 +2189,7 @@ public boolean hasStreamingConfig() {
*
* @return The streamingConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
getStreamingConfig() {
if (streamingConfigBuilder_ == null) {
@@ -2330,6 +2345,7 @@ public Builder clearStreamingConfig() {
* .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder
getStreamingConfigOrBuilder() {
if ((notifyConfigCase_ == 5) && (streamingConfigBuilder_ != null)) {
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java
index 5a7653421..e6ad8d88c 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java
@@ -91,6 +91,22 @@ private NotificationMessage(
event_ = subBuilder.buildPartial();
}
eventCase_ = 2;
+ break;
+ }
+ case 26:
+ {
+ com.google.cloud.securitycenter.v1.Resource.Builder subBuilder = null;
+ if (resource_ != null) {
+ subBuilder = resource_.toBuilder();
+ }
+ resource_ =
+ input.readMessage(
+ com.google.cloud.securitycenter.v1.Resource.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(resource_);
+ resource_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -184,6 +200,7 @@ public EventCase getEventCase() {
*
* @return The notificationConfigName.
*/
+ @java.lang.Override
public java.lang.String getNotificationConfigName() {
java.lang.Object ref = notificationConfigName_;
if (ref instanceof java.lang.String) {
@@ -206,6 +223,7 @@ public java.lang.String getNotificationConfigName() {
*
* @return The bytes for notificationConfigName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNotificationConfigNameBytes() {
java.lang.Object ref = notificationConfigName_;
if (ref instanceof java.lang.String) {
@@ -231,6 +249,7 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() {
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return eventCase_ == 2;
}
@@ -246,6 +265,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Finding getFinding() {
if (eventCase_ == 2) {
return (com.google.cloud.securitycenter.v1.Finding) event_;
@@ -262,6 +282,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
*
* .google.cloud.securitycenter.v1.Finding finding = 2;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
if (eventCase_ == 2) {
return (com.google.cloud.securitycenter.v1.Finding) event_;
@@ -269,6 +290,54 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
}
+ public static final int RESOURCE_FIELD_NUMBER = 3;
+ private com.google.cloud.securitycenter.v1.Resource resource_;
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ *
+ * @return Whether the resource field is set.
+ */
+ @java.lang.Override
+ public boolean hasResource() {
+ return resource_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ *
+ * @return The resource.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.Resource getResource() {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance()
+ : resource_;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder() {
+ return getResource();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -289,6 +358,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (eventCase_ == 2) {
output.writeMessage(2, (com.google.cloud.securitycenter.v1.Finding) event_);
}
+ if (resource_ != null) {
+ output.writeMessage(3, getResource());
+ }
unknownFields.writeTo(output);
}
@@ -306,6 +378,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.securitycenter.v1.Finding) event_);
}
+ if (resource_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -323,6 +398,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.securitycenter.v1.NotificationMessage) obj;
if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false;
+ if (hasResource() != other.hasResource()) return false;
+ if (hasResource()) {
+ if (!getResource().equals(other.getResource())) return false;
+ }
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 2:
@@ -344,6 +423,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NOTIFICATION_CONFIG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getNotificationConfigName().hashCode();
+ if (hasResource()) {
+ hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ }
switch (eventCase_) {
case 2:
hash = (37 * hash) + FINDING_FIELD_NUMBER;
@@ -500,6 +583,12 @@ public Builder clear() {
super.clear();
notificationConfigName_ = "";
+ if (resourceBuilder_ == null) {
+ resource_ = null;
+ } else {
+ resource_ = null;
+ resourceBuilder_ = null;
+ }
eventCase_ = 0;
event_ = null;
return this;
@@ -537,6 +626,11 @@ public com.google.cloud.securitycenter.v1.NotificationMessage buildPartial() {
result.event_ = findingBuilder_.build();
}
}
+ if (resourceBuilder_ == null) {
+ result.resource_ = resource_;
+ } else {
+ result.resource_ = resourceBuilder_.build();
+ }
result.eventCase_ = eventCase_;
onBuilt();
return result;
@@ -592,6 +686,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage
notificationConfigName_ = other.notificationConfigName_;
onChanged();
}
+ if (other.hasResource()) {
+ mergeResource(other.getResource());
+ }
switch (other.getEventCase()) {
case FINDING:
{
@@ -770,6 +867,7 @@ public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString val
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return eventCase_ == 2;
}
@@ -785,6 +883,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Finding getFinding() {
if (findingBuilder_ == null) {
if (eventCase_ == 2) {
@@ -922,6 +1021,7 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() {
*
* .google.cloud.securitycenter.v1.Finding finding = 2;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
if ((eventCase_ == 2) && (findingBuilder_ != null)) {
return findingBuilder_.getMessageOrBuilder();
@@ -967,6 +1067,192 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
return findingBuilder_;
}
+ private com.google.cloud.securitycenter.v1.Resource resource_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.Resource,
+ com.google.cloud.securitycenter.v1.Resource.Builder,
+ com.google.cloud.securitycenter.v1.ResourceOrBuilder>
+ resourceBuilder_;
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ *
+ * @return Whether the resource field is set.
+ */
+ public boolean hasResource() {
+ return resourceBuilder_ != null || resource_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ *
+ * @return The resource.
+ */
+ public com.google.cloud.securitycenter.v1.Resource getResource() {
+ if (resourceBuilder_ == null) {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance()
+ : resource_;
+ } else {
+ return resourceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ public Builder setResource(com.google.cloud.securitycenter.v1.Resource value) {
+ if (resourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ resourceBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ public Builder setResource(
+ com.google.cloud.securitycenter.v1.Resource.Builder builderForValue) {
+ if (resourceBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ resourceBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ public Builder mergeResource(com.google.cloud.securitycenter.v1.Resource value) {
+ if (resourceBuilder_ == null) {
+ if (resource_ != null) {
+ resource_ =
+ com.google.cloud.securitycenter.v1.Resource.newBuilder(resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ resourceBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ public Builder clearResource() {
+ if (resourceBuilder_ == null) {
+ resource_ = null;
+ onChanged();
+ } else {
+ resource_ = null;
+ resourceBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ public com.google.cloud.securitycenter.v1.Resource.Builder getResourceBuilder() {
+
+ onChanged();
+ return getResourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder() {
+ if (resourceBuilder_ != null) {
+ return resourceBuilder_.getMessageOrBuilder();
+ } else {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance()
+ : resource_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.Resource,
+ com.google.cloud.securitycenter.v1.Resource.Builder,
+ com.google.cloud.securitycenter.v1.ResourceOrBuilder>
+ getResourceFieldBuilder() {
+ if (resourceBuilder_ == null) {
+ resourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1.Resource,
+ com.google.cloud.securitycenter.v1.Resource.Builder,
+ com.google.cloud.securitycenter.v1.ResourceOrBuilder>(
+ getResource(), getParentForChildren(), isClean());
+ resource_ = null;
+ }
+ return resourceBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java
index fa2902134..b0eb24c94 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java
@@ -86,5 +86,40 @@ public interface NotificationMessageOrBuilder
*/
com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder();
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ *
+ * @return Whether the resource field is set.
+ */
+ boolean hasResource();
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ *
+ * @return The resource.
+ */
+ com.google.cloud.securitycenter.v1.Resource getResource();
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to this notification's Finding.
+ *
+ *
+ * .google.cloud.securitycenter.v1.Resource resource = 3;
+ */
+ com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder();
+
public com.google.cloud.securitycenter.v1.NotificationMessage.EventCase getEventCase();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java
index 3e5c59d89..e211edb71 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java
@@ -44,16 +44,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ation_message.proto\022\036google.cloud.securi"
+ "tycenter.v1\032\034google/api/annotations.prot"
+ "o\032,google/cloud/securitycenter/v1/findin"
- + "g.proto\"|\n\023NotificationMessage\022 \n\030notifi"
- + "cation_config_name\030\001 \001(\t\022:\n\007finding\030\002 \001("
- + "\0132\'.google.cloud.securitycenter.v1.Findi"
- + "ngH\000B\007\n\005eventB\364\001\n\"com.google.cloud.secur"
- + "itycenter.v1B\030NotificationMessageProtoP\001"
- + "ZLgoogle.golang.org/genproto/googleapis/"
- + "cloud/securitycenter/v1;securitycenter\252\002"
- + "\036Google.Cloud.SecurityCenter.V1\312\002\036Google"
- + "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud"
- + "::SecurityCenter::V1b\006proto3"
+ + "g.proto\032-google/cloud/securitycenter/v1/"
+ + "resource.proto\"\270\001\n\023NotificationMessage\022 "
+ + "\n\030notification_config_name\030\001 \001(\t\022:\n\007find"
+ + "ing\030\002 \001(\0132\'.google.cloud.securitycenter."
+ + "v1.FindingH\000\022:\n\010resource\030\003 \001(\0132(.google."
+ + "cloud.securitycenter.v1.ResourceB\007\n\005even"
+ + "tB\364\001\n\"com.google.cloud.securitycenter.v1"
+ + "B\030NotificationMessageProtoP\001ZLgoogle.gol"
+ + "ang.org/genproto/googleapis/cloud/securi"
+ + "tycenter/v1;securitycenter\252\002\036Google.Clou"
+ + "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur"
+ + "ityCenter\\V1\352\002!Google::Cloud::SecurityCe"
+ + "nter::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -61,6 +64,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(),
+ com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(),
});
internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -68,10 +72,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor,
new java.lang.String[] {
- "NotificationConfigName", "Finding", "Event",
+ "NotificationConfigName", "Finding", "Resource", "Event",
});
com.google.api.AnnotationsProto.getDescriptor();
com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor();
+ com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java
index 1559515c2..f764d00d1 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java
@@ -22,8 +22,8 @@
*
*
*
- * User specified settings that are attached to the Cloud Security Command
- * Center (Cloud SCC) organization.
+ * User specified settings that are attached to the Security Command
+ * Center organization.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings}
@@ -467,6 +467,10 @@ public InclusionMode findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -579,6 +583,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) {
*
* @return The enum numeric value on the wire for inclusionMode.
*/
+ @java.lang.Override
public int getInclusionModeValue() {
return inclusionMode_;
}
@@ -595,6 +600,7 @@ public int getInclusionModeValue() {
*
* @return The inclusionMode.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig
.InclusionMode
getInclusionMode() {
@@ -1177,6 +1183,7 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for inclusionMode.
*/
+ @java.lang.Override
public int getInclusionModeValue() {
return inclusionMode_;
}
@@ -1195,6 +1202,7 @@ public int getInclusionModeValue() {
* @return This builder for chaining.
*/
public Builder setInclusionModeValue(int value) {
+
inclusionMode_ = value;
onChanged();
return this;
@@ -1212,6 +1220,7 @@ public Builder setInclusionModeValue(int value) {
*
* @return The inclusionMode.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig
.InclusionMode
getInclusionMode() {
@@ -1343,6 +1352,7 @@ public com.google.protobuf.Parser
- * User specified settings that are attached to the Cloud Security Command
- * Center (Cloud SCC) organization.
+ * User specified settings that are attached to the Security Command
+ * Center organization.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings}
@@ -1955,6 +1970,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enableAssetDiscovery.
*/
+ @java.lang.Override
public boolean getEnableAssetDiscovery() {
return enableAssetDiscovery_;
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java
new file mode 100644
index 000000000..47eb179fe
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java
@@ -0,0 +1,1357 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/resource.proto
+
+package com.google.cloud.securitycenter.v1;
+
+/**
+ *
+ *
+ *
+ * Information related to the Google Cloud resource.
+ *
+ *
+ * Protobuf type {@code google.cloud.securitycenter.v1.Resource}
+ */
+public final class Resource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Resource)
+ ResourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Resource.newBuilder() to construct.
+ private Resource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Resource() {
+ name_ = "";
+ project_ = "";
+ projectDisplayName_ = "";
+ parent_ = "";
+ parentDisplayName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Resource();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Resource(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ project_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ projectDisplayName_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parent_ = s;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parentDisplayName_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.securitycenter.v1.ResourceProto
+ .internal_static_google_cloud_securitycenter_v1_Resource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.securitycenter.v1.ResourceProto
+ .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.securitycenter.v1.Resource.class,
+ com.google.cloud.securitycenter.v1.Resource.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object project_;
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The project.
+ */
+ @java.lang.Override
+ public java.lang.String getProject() {
+ java.lang.Object ref = project_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ project_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The bytes for project.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectBytes() {
+ java.lang.Object ref = project_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ project_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object projectDisplayName_;
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The projectDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectDisplayName() {
+ java.lang.Object ref = projectDisplayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectDisplayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The bytes for projectDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
+ java.lang.Object ref = projectDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5;
+ private volatile java.lang.Object parentDisplayName_;
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The parentDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getParentDisplayName() {
+ java.lang.Object ref = parentDisplayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parentDisplayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The bytes for parentDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentDisplayNameBytes() {
+ java.lang.Object ref = parentDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parentDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getProjectBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_);
+ }
+ if (!getProjectDisplayNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDisplayName_);
+ }
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_);
+ }
+ if (!getParentDisplayNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentDisplayName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getProjectBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_);
+ }
+ if (!getProjectDisplayNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDisplayName_);
+ }
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_);
+ }
+ if (!getParentDisplayNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.securitycenter.v1.Resource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1.Resource other =
+ (com.google.cloud.securitycenter.v1.Resource) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getProject().equals(other.getProject())) return false;
+ if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false;
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getParentDisplayName().equals(other.getParentDisplayName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + PROJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getProject().hashCode();
+ hash = (37 * hash) + PROJECT_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectDisplayName().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getParentDisplayName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.securitycenter.v1.Resource prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Information related to the Google Cloud resource.
+ *
+ *
+ * Protobuf type {@code google.cloud.securitycenter.v1.Resource}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object project_ = "";
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The project.
+ */
+ public java.lang.String getProject() {
+ java.lang.Object ref = project_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ project_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The bytes for project.
+ */
+ public com.google.protobuf.ByteString getProjectBytes() {
+ java.lang.Object ref = project_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ project_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @param value The project to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProject(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ project_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProject() {
+
+ project_ = getDefaultInstance().getProject();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @param value The bytes for project to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ project_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectDisplayName_ = "";
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The projectDisplayName.
+ */
+ public java.lang.String getProjectDisplayName() {
+ java.lang.Object ref = projectDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The bytes for projectDisplayName.
+ */
+ public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
+ java.lang.Object ref = projectDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @param value The projectDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ projectDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectDisplayName() {
+
+ projectDisplayName_ = getDefaultInstance().getProjectDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @param value The bytes for projectDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ projectDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object parentDisplayName_ = "";
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The parentDisplayName.
+ */
+ public java.lang.String getParentDisplayName() {
+ java.lang.Object ref = parentDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parentDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The bytes for parentDisplayName.
+ */
+ public com.google.protobuf.ByteString getParentDisplayNameBytes() {
+ java.lang.Object ref = parentDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parentDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @param value The parentDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parentDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParentDisplayName() {
+
+ parentDisplayName_ = getDefaultInstance().getParentDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @param value The bytes for parentDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parentDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Resource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Resource)
+ private static final com.google.cloud.securitycenter.v1.Resource DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Resource();
+ }
+
+ public static com.google.cloud.securitycenter.v1.Resource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The project.
+ */
+ java.lang.String getProject();
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The bytes for project.
+ */
+ com.google.protobuf.ByteString getProjectBytes();
+
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The projectDisplayName.
+ */
+ java.lang.String getProjectDisplayName();
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The bytes for projectDisplayName.
+ */
+ com.google.protobuf.ByteString getProjectDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The parentDisplayName.
+ */
+ java.lang.String getParentDisplayName();
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The bytes for parentDisplayName.
+ */
+ com.google.protobuf.ByteString getParentDisplayNameBytes();
+}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java
new file mode 100644
index 000000000..ab79a7d37
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/resource.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class ResourceProto {
+ private ResourceProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1_Resource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n-google/cloud/securitycenter/v1/resourc"
+ + "e.proto\022\036google.cloud.securitycenter.v1\032"
+ + "\034google/api/annotations.proto\"t\n\010Resourc"
+ + "e\022\014\n\004name\030\001 \001(\t\022\017\n\007project\030\002 \001(\t\022\034\n\024proj"
+ + "ect_display_name\030\003 \001(\t\022\016\n\006parent\030\004 \001(\t\022\033"
+ + "\n\023parent_display_name\030\005 \001(\tB\351\001\n\"com.goog"
+ + "le.cloud.securitycenter.v1B\rResourceProt"
+ + "oP\001ZLgoogle.golang.org/genproto/googleap"
+ + "is/cloud/securitycenter/v1;securitycente"
+ + "r\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Goo"
+ + "gle\\Cloud\\SecurityCenter\\V1\352\002!Google::Cl"
+ + "oud::SecurityCenter::V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ });
+ internal_static_google_cloud_securitycenter_v1_Resource_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1_Resource_descriptor,
+ new java.lang.String[] {
+ "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java
index 6a1fcc4be..32045910f 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java
index a48945368..cc039a87d 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java
@@ -271,6 +271,10 @@ public State findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -318,6 +322,7 @@ private State(int value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -332,6 +337,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result =
@@ -354,6 +360,7 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getSta
*
* @return Whether the duration field is set.
*/
+ @java.lang.Override
public boolean hasDuration() {
return duration_ != null;
}
@@ -368,6 +375,7 @@ public boolean hasDuration() {
*
* @return The duration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getDuration() {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
@@ -380,6 +388,7 @@ public com.google.protobuf.Duration getDuration() {
*
* .google.protobuf.Duration duration = 2;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
return getDuration();
}
@@ -748,6 +757,7 @@ public Builder mergeFrom(
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -764,6 +774,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -779,6 +790,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result =
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java
index 2dd96d3a7..6e6aa1238 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java
@@ -22,9 +22,9 @@
*
*
*
- * User specified security marks that are attached to the parent Cloud Security
- * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
- * SCC organization -- they can be modified and viewed by all users who have
+ * User specified security marks that are attached to the parent Security
+ * Command Center resource. Security marks are scoped within a Security Command
+ * Center organization -- they can be modified and viewed by all users who have
* proper permissions on the organization.
*
*
@@ -156,6 +156,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -182,6 +183,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -234,6 +236,7 @@ public int getMarksCount() {
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public boolean containsMarks(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -241,6 +244,7 @@ public boolean containsMarks(java.lang.String key) {
return internalGetMarks().getMap().containsKey(key);
}
/** Use {@link #getMarksMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -300,6 +306,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -491,9 +498,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * User specified security marks that are attached to the parent Cloud Security
- * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
- * SCC organization -- they can be modified and viewed by all users who have
+ * User specified security marks that are attached to the parent Security
+ * Command Center resource. Security marks are scoped within a Security Command
+ * Center organization -- they can be modified and viewed by all users who have
* proper permissions on the organization.
*
*
@@ -841,6 +848,7 @@ public int getMarksCount() {
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public boolean containsMarks(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -848,6 +856,7 @@ public boolean containsMarks(java.lang.String key) {
return internalGetMarks().getMap().containsKey(key);
}
/** Use {@link #getMarksMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -907,6 +918,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java
index 8ba67f567..0a39cf715 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksName.java
@@ -32,10 +32,10 @@ public class SecurityMarksName implements ResourceName {
@Deprecated
protected SecurityMarksName() {}
- private static final PathTemplate ORGANIZATION_ASSET_PATH_TEMPLATE =
+ private static final PathTemplate ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE =
PathTemplate.createWithoutUrlEncoding(
"organizations/{organization}/assets/{asset}/securityMarks");
- private static final PathTemplate ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE =
+ private static final PathTemplate ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE =
PathTemplate.createWithoutUrlEncoding(
"organizations/{organization}/sources/{source}/findings/{finding}/securityMarks");
@@ -67,14 +67,14 @@ public String getFinding() {
private SecurityMarksName(Builder builder) {
organization = Preconditions.checkNotNull(builder.getOrganization());
asset = Preconditions.checkNotNull(builder.getAsset());
- pathTemplate = ORGANIZATION_ASSET_PATH_TEMPLATE;
+ pathTemplate = ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE;
}
- private SecurityMarksName(OrganizationSourceFindingBuilder builder) {
+ private SecurityMarksName(OrganizationSourceFindingSecurityMarksBuilder builder) {
organization = Preconditions.checkNotNull(builder.getOrganization());
source = Preconditions.checkNotNull(builder.getSource());
finding = Preconditions.checkNotNull(builder.getFinding());
- pathTemplate = ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE;
+ pathTemplate = ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE;
}
public static Builder newBuilder() {
@@ -82,13 +82,14 @@ public static Builder newBuilder() {
}
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
- public static Builder newOrganizationAssetBuilder() {
+ public static Builder newOrganizationAssetSecurityMarksBuilder() {
return new Builder();
}
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
- public static OrganizationSourceFindingBuilder newOrganizationSourceFindingBuilder() {
- return new OrganizationSourceFindingBuilder();
+ public static OrganizationSourceFindingSecurityMarksBuilder
+ newOrganizationSourceFindingSecurityMarksBuilder() {
+ return new OrganizationSourceFindingSecurityMarksBuilder();
}
public Builder toBuilder() {
@@ -96,18 +97,25 @@ public Builder toBuilder() {
}
public static SecurityMarksName of(String organization, String asset) {
- return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build();
+ return newOrganizationAssetSecurityMarksBuilder()
+ .setOrganization(organization)
+ .setAsset(asset)
+ .build();
}
@BetaApi("The static create methods are not stable yet and may be changed in the future.")
- public static SecurityMarksName ofOrganizationAssetName(String organization, String asset) {
- return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build();
+ public static SecurityMarksName ofOrganizationAssetSecurityMarksName(
+ String organization, String asset) {
+ return newOrganizationAssetSecurityMarksBuilder()
+ .setOrganization(organization)
+ .setAsset(asset)
+ .build();
}
@BetaApi("The static create methods are not stable yet and may be changed in the future.")
- public static SecurityMarksName ofOrganizationSourceFindingName(
+ public static SecurityMarksName ofOrganizationSourceFindingSecurityMarksName(
String organization, String source, String finding) {
- return newOrganizationSourceFindingBuilder()
+ return newOrganizationSourceFindingSecurityMarksBuilder()
.setOrganization(organization)
.setSource(source)
.setFinding(finding)
@@ -119,14 +127,14 @@ public static String format(String organization, String asset) {
}
@BetaApi("The static format methods are not stable yet and may be changed in the future.")
- public static String formatOrganizationAssetName(String organization, String asset) {
+ public static String formatOrganizationAssetSecurityMarksName(String organization, String asset) {
return newBuilder().setOrganization(organization).setAsset(asset).build().toString();
}
@BetaApi("The static format methods are not stable yet and may be changed in the future.")
- public static String formatOrganizationSourceFindingName(
+ public static String formatOrganizationSourceFindingSecurityMarksName(
String organization, String source, String finding) {
- return newOrganizationSourceFindingBuilder()
+ return newOrganizationSourceFindingSecurityMarksBuilder()
.setOrganization(organization)
.setSource(source)
.setFinding(finding)
@@ -138,21 +146,23 @@ public static SecurityMarksName parse(String formattedString) {
if (formattedString.isEmpty()) {
return null;
}
- if (ORGANIZATION_ASSET_PATH_TEMPLATE.matches(formattedString)) {
- Map.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
@@ -782,6 +789,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -800,6 +808,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -817,6 +826,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1.Finding.State result =
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java
index 1ef7b4897..662ee6141 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java
@@ -22,7 +22,7 @@
*
*
*
- * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * Security Command Center finding source. A finding source
* is an entity or a mechanism that can produce a finding. A source is like a
* container of findings that come from the same scanner, logger, monitor, and
* other tools.
@@ -146,6 +146,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -171,6 +172,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -200,6 +202,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The displayName.
*/
+ @java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
@@ -226,6 +229,7 @@ public java.lang.String getDisplayName() {
*
* @return The bytes for displayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
@@ -257,6 +261,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
* @return The description.
*/
+ @java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -285,6 +290,7 @@ public java.lang.String getDescription() {
*
* @return The bytes for description.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -478,7 +484,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
*
*
- * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * Security Command Center finding source. A finding source
* is an entity or a mechanism that can produce a finding. A source is like a
* container of findings that come from the same scanner, logger, monitor, and
* other tools.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecurityMarksName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecurityMarksName.java
deleted file mode 100644
index a3233a065..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UntypedSecurityMarksName.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.securitycenter.v1;
-
-import com.google.api.resourcenames.ResourceName;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableMap;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * AUTO-GENERATED DOCUMENTATION AND CLASS
- *
- * @deprecated This resource name class will be removed in the next major version.
- */
-@javax.annotation.Generated("by GAPIC protoc plugin")
-@Deprecated
-public class UntypedSecurityMarksName extends SecurityMarksName {
-
- private final String rawValue;
- private Map
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
index e119980d5..9f29126d6 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
@@ -150,6 +150,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the notificationConfig field is set.
*/
+ @java.lang.Override
public boolean hasNotificationConfig() {
return notificationConfig_ != null;
}
@@ -166,6 +167,7 @@ public boolean hasNotificationConfig() {
*
* @return The notificationConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() {
return notificationConfig_ == null
? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()
@@ -182,6 +184,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
* .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder
getNotificationConfigOrBuilder() {
return getNotificationConfig();
@@ -201,6 +204,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -216,6 +220,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -229,6 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
index 98ad3015c..623af01a9 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
@@ -150,6 +150,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the organizationSettings field is set.
*/
+ @java.lang.Override
public boolean hasOrganizationSettings() {
return organizationSettings_ != null;
}
@@ -166,6 +167,7 @@ public boolean hasOrganizationSettings() {
*
* @return The organizationSettings.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() {
return organizationSettings_ == null
? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance()
@@ -182,6 +184,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe
* .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder
getOrganizationSettingsOrBuilder() {
return getOrganizationSettings();
@@ -201,6 +204,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -216,6 +220,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -229,6 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
index 0bbedc8f2..2032f08be 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
@@ -163,6 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -179,6 +180,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()
@@ -195,6 +197,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() {
* .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
return getSecurityMarks();
}
@@ -215,6 +218,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -232,6 +236,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -247,6 +252,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
@@ -266,6 +272,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
* @return Whether the startTime field is set.
*/
+ @java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
@@ -282,6 +289,7 @@ public boolean hasStartTime() {
*
* @return The startTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
@@ -296,6 +304,7 @@ public com.google.protobuf.Timestamp getStartTime() {
*
* .google.protobuf.Timestamp start_time = 3;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
index 16a901071..9f5bf23d9 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
@@ -148,6 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the source field is set.
*/
+ @java.lang.Override
public boolean hasSource() {
return source_ != null;
}
@@ -164,6 +165,7 @@ public boolean hasSource() {
*
* @return The source.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.Source getSource() {
return source_ == null
? com.google.cloud.securitycenter.v1.Source.getDefaultInstance()
@@ -180,6 +182,7 @@ public com.google.cloud.securitycenter.v1.Source getSource() {
* .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() {
return getSource();
}
@@ -198,6 +201,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() {
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -213,6 +217,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -226,6 +231,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
index b079e5c5d..eb07c0493 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
+++ b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
@@ -29,30 +29,31 @@ option java_package = "com.google.cloud.securitycenter.v1";
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
option ruby_package = "Google::Cloud::SecurityCenter::V1";
-// Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
-// Platform (GCP) resource.
+// Security Command Center representation of a Google Cloud
+// resource.
//
-// The Asset is a Cloud SCC resource that captures information about a single
-// GCP resource. All modifications to an Asset are only within the context of
-// Cloud SCC and don't affect the referenced GCP resource.
+// The Asset is a Security Command Center resource that captures information
+// about a single Google Cloud resource. All modifications to an Asset are only
+// within the context of Security Command Center and don't affect the referenced
+// Google Cloud resource.
message Asset {
option (google.api.resource) = {
type: "securitycenter.googleapis.com/Asset"
pattern: "organizations/{organization}/assets/{asset}"
};
- // Cloud SCC managed properties. These properties are managed by Cloud SCC and
- // cannot be modified by the user.
+ // Security Command Center managed properties. These properties are managed by
+ // Security Command Center and cannot be modified by the user.
message SecurityCenterProperties {
- // The full resource name of the GCP resource this asset
+ // The full resource name of the Google Cloud resource this asset
// represents. This field is immutable after create time. See:
// https://cloud.google.com/apis/design/resource_names#full_resource_name
string resource_name = 1;
- // The type of the GCP resource. Examples include: APPLICATION,
+ // The type of the Google Cloud resource. Examples include: APPLICATION,
// PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- // Cloud SCC and/or the producer of the resource and is immutable
- // after create time.
+ // Security Command Center and/or the producer of the resource and is
+ // immutable after create time.
string resource_type = 2;
// The full resource name of the immediate parent of the resource. See:
@@ -76,9 +77,10 @@ message Asset {
string resource_project_display_name = 8;
}
- // IAM Policy information associated with the GCP resource described by the
- // Cloud SCC asset. This information is managed and defined by the GCP
- // resource and cannot be modified by the user.
+ // Cloud IAM Policy information associated with the Google Cloud resource
+ // described by the Security Command Center asset. This information is managed
+ // and defined by the Google Cloud resource and cannot be modified by the
+ // user.
message IamPolicy {
// The JSON representation of the Policy associated with the asset.
// See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -92,27 +94,28 @@ message Asset {
// "organizations/{organization_id}/assets/{asset_id}".
string name = 1;
- // Cloud SCC managed properties. These properties are managed by
- // Cloud SCC and cannot be modified by the user.
+ // Security Command Center managed properties. These properties are managed by
+ // Security Command Center and cannot be modified by the user.
SecurityCenterProperties security_center_properties = 2;
// Resource managed properties. These properties are managed and defined by
- // the GCP resource and cannot be modified by the user.
+ // the Google Cloud resource and cannot be modified by the user.
mapmap<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2038,6 +2052,7 @@ public boolean containsResourceProperties(java.lang.String key) {
return internalGetResourceProperties().getMap().containsKey(key);
}
/** Use {@link #getResourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -2084,6 +2101,7 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2110,6 +2128,7 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -2125,6 +2144,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
@@ -2140,6 +2160,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
*
* .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
getSecurityMarksOrBuilder() {
return getSecurityMarks();
@@ -2158,6 +2179,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
*
* @return Whether the createTime field is set.
*/
+ @java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
@@ -2172,6 +2194,7 @@ public boolean hasCreateTime() {
*
* @return The createTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
@@ -2184,6 +2207,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
* .google.protobuf.Timestamp create_time = 9;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return getCreateTime();
}
@@ -2202,6 +2226,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
* @return Whether the updateTime field is set.
*/
+ @java.lang.Override
public boolean hasUpdateTime() {
return updateTime_ != null;
}
@@ -2217,6 +2242,7 @@ public boolean hasUpdateTime() {
*
* @return The updateTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
@@ -2230,6 +2256,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
* .google.protobuf.Timestamp update_time = 10;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return getUpdateTime();
}
@@ -3101,6 +3128,7 @@ public int getResourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -3108,6 +3136,7 @@ public boolean containsResourceProperties(java.lang.String key) {
return internalGetResourceProperties().getMap().containsKey(key);
}
/** Use {@link #getResourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -3154,6 +3185,7 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
index 6047f84e1..7c0b14bf8 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
@@ -151,6 +151,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -176,6 +177,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -203,6 +205,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The findingId.
*/
+ @java.lang.Override
public java.lang.String getFindingId() {
java.lang.Object ref = findingId_;
if (ref instanceof java.lang.String) {
@@ -227,6 +230,7 @@ public java.lang.String getFindingId() {
*
* @return The bytes for findingId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFindingIdBytes() {
java.lang.Object ref = findingId_;
if (ref instanceof java.lang.String) {
@@ -255,6 +259,7 @@ public com.google.protobuf.ByteString getFindingIdBytes() {
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return finding_ != null;
}
@@ -272,6 +277,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
return finding_ == null
? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()
@@ -289,6 +295,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
* .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java
index 0bcb3468c..78ad04835 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java
@@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -168,6 +169,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -196,6 +198,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return Whether the source field is set.
*/
+ @java.lang.Override
public boolean hasSource() {
return source_ != null;
}
@@ -213,6 +216,7 @@ public boolean hasSource() {
*
* @return The source.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Source getSource() {
return source_ == null
? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()
@@ -230,6 +234,7 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() {
* .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() {
return getSource();
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java
index 1d5ec6f44..708b5c558 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java
@@ -355,6 +355,10 @@ public State findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -403,6 +407,7 @@ private State(int value) {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -428,6 +433,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -457,6 +463,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -483,6 +490,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -513,6 +521,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The resourceName.
*/
+ @java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -540,6 +549,7 @@ public java.lang.String getResourceName() {
*
* @return The bytes for resourceName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -565,6 +575,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -579,6 +590,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1beta1.Finding.State result =
@@ -603,6 +615,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
*
* @return The category.
*/
+ @java.lang.Override
public java.lang.String getCategory() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
@@ -627,6 +640,7 @@ public java.lang.String getCategory() {
*
* @return The bytes for category.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
@@ -654,6 +668,7 @@ public com.google.protobuf.ByteString getCategoryBytes() {
*
* @return The externalUri.
*/
+ @java.lang.Override
public java.lang.String getExternalUri() {
java.lang.Object ref = externalUri_;
if (ref instanceof java.lang.String) {
@@ -678,6 +693,7 @@ public java.lang.String getExternalUri() {
*
* @return The bytes for externalUri.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getExternalUriBytes() {
java.lang.Object ref = externalUri_;
if (ref instanceof java.lang.String) {
@@ -732,6 +748,7 @@ public int getSourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public boolean containsSourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -739,6 +756,7 @@ public boolean containsSourceProperties(java.lang.String key) {
return internalGetSourceProperties().getMap().containsKey(key);
}
/** Use {@link #getSourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -791,6 +811,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -820,6 +841,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -838,6 +860,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
@@ -856,6 +879,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
* .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
getSecurityMarksOrBuilder() {
return getSecurityMarks();
@@ -876,6 +900,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
*
* @return Whether the eventTime field is set.
*/
+ @java.lang.Override
public boolean hasEventTime() {
return eventTime_ != null;
}
@@ -892,6 +917,7 @@ public boolean hasEventTime() {
*
* @return The eventTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getEventTime() {
return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
}
@@ -906,6 +932,7 @@ public com.google.protobuf.Timestamp getEventTime() {
*
* .google.protobuf.Timestamp event_time = 9;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
return getEventTime();
}
@@ -923,6 +950,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
*
* @return Whether the createTime field is set.
*/
+ @java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
@@ -937,6 +965,7 @@ public boolean hasCreateTime() {
*
* @return The createTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
@@ -949,6 +978,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
* .google.protobuf.Timestamp create_time = 10;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return getCreateTime();
}
@@ -1873,6 +1903,7 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -1889,6 +1920,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -1904,6 +1936,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1beta1.Finding.State result =
@@ -2225,6 +2258,7 @@ public int getSourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public boolean containsSourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2232,6 +2266,7 @@ public boolean containsSourceProperties(java.lang.String key) {
return internalGetSourceProperties().getMap().containsKey(key);
}
/** Use {@link #getSourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -2284,6 +2321,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java
index 88ea8b3c1..2d7411b61 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java
@@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -153,6 +154,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java
index b0d3f02ec..72e0bff0e 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java
index de99f25ec..0389dcb13 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java
@@ -186,6 +186,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -211,6 +212,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -255,6 +257,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -296,6 +299,7 @@ public java.lang.String getFilter() {
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -330,6 +334,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The groupBy.
*/
+ @java.lang.Override
public java.lang.String getGroupBy() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -361,6 +366,7 @@ public java.lang.String getGroupBy() {
*
* @return The bytes for groupBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getGroupByBytes() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -402,6 +408,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -432,6 +439,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -462,6 +470,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 4;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -482,6 +491,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -499,6 +509,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -514,6 +525,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 5;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -533,6 +545,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -557,6 +570,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -583,6 +597,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -2162,6 +2177,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java
index 81b786aa1..3ef0c3687 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java
@@ -157,6 +157,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>
getGroupByResultsOrBuilderList() {
return groupByResults_;
@@ -187,6 +189,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public int getGroupByResultsCount() {
return groupByResults_.size();
}
@@ -201,6 +204,7 @@ public int getGroupByResultsCount() {
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index) {
return groupByResults_.get(index);
}
@@ -215,6 +219,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
int index) {
return groupByResults_.get(index);
@@ -233,6 +238,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -247,6 +253,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -259,6 +266,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -277,6 +285,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -300,6 +309,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java
index d0a522926..f4c3cc54c 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java
@@ -173,6 +173,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -200,6 +201,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -242,6 +244,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -281,6 +284,7 @@ public java.lang.String getFilter() {
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -314,6 +318,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The groupBy.
*/
+ @java.lang.Override
public java.lang.String getGroupBy() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -344,6 +349,7 @@ public java.lang.String getGroupBy() {
*
* @return The bytes for groupBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getGroupByBytes() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -372,6 +378,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -389,6 +396,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -404,6 +412,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -423,6 +432,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -447,6 +457,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -473,6 +484,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -1692,6 +1704,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java
index 5a7c54ca7..7781fb48d 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java
@@ -157,6 +157,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>
getGroupByResultsOrBuilderList() {
return groupByResults_;
@@ -187,6 +189,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public int getGroupByResultsCount() {
return groupByResults_.size();
}
@@ -201,6 +204,7 @@ public int getGroupByResultsCount() {
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index) {
return groupByResults_.get(index);
}
@@ -215,6 +219,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
*
* repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
int index) {
return groupByResults_.get(index);
@@ -233,6 +238,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -247,6 +253,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -259,6 +266,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -277,6 +285,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -300,6 +309,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java
index c24e4ea34..9047a59b2 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java
@@ -172,6 +172,7 @@ public int getPropertiesCount() {
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public boolean containsProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -179,6 +180,7 @@ public boolean containsProperties(java.lang.String key) {
return internalGetProperties().getMap().containsKey(key);
}
/** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -222,6 +226,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -247,6 +252,7 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
*
* @return The count.
*/
+ @java.lang.Override
public long getCount() {
return count_;
}
@@ -649,6 +655,7 @@ public int getPropertiesCount() {
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public boolean containsProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -656,6 +663,7 @@ public boolean containsProperties(java.lang.String key) {
return internalGetProperties().getMap().containsKey(key);
}
/** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -699,6 +709,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -782,6 +793,7 @@ public Builder putAllProperties(
*
* @return The count.
*/
+ @java.lang.Override
public long getCount() {
return count_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java
index 698f08835..801ca50c5 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java
@@ -201,6 +201,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -226,6 +227,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -270,6 +272,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -311,6 +314,7 @@ public java.lang.String getFilter() {
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -343,6 +347,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The orderBy.
*/
+ @java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -372,6 +377,7 @@ public java.lang.String getOrderBy() {
*
* @return The bytes for orderBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -400,6 +406,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -417,6 +424,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -432,6 +440,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -467,6 +476,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -499,6 +509,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -531,6 +542,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -551,6 +563,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return Whether the fieldMask field is set.
*/
+ @java.lang.Override
public boolean hasFieldMask() {
return fieldMask_ != null;
}
@@ -568,6 +581,7 @@ public boolean hasFieldMask() {
*
* @return The fieldMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
@@ -583,6 +597,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
* .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return getFieldMask();
}
@@ -602,6 +617,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -626,6 +642,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -652,6 +669,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -2473,6 +2491,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java
index 63a8688ef..f1b6e4538 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java
@@ -501,6 +501,10 @@ public State findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -549,6 +553,7 @@ private State(int value) {
*
* @return Whether the asset field is set.
*/
+ @java.lang.Override
public boolean hasAsset() {
return asset_ != null;
}
@@ -563,6 +568,7 @@ public boolean hasAsset() {
*
* @return The asset.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Asset getAsset() {
return asset_ == null
? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance()
@@ -577,6 +583,7 @@ public com.google.cloud.securitycenter.v1beta1.Asset getAsset() {
*
* .google.cloud.securitycenter.v1beta1.Asset asset = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder() {
return getAsset();
}
@@ -596,6 +603,7 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder(
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -612,6 +620,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State
getState() {
@SuppressWarnings("deprecation")
@@ -1200,6 +1209,7 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder(
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -1218,6 +1228,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -1235,6 +1246,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State
getState() {
@SuppressWarnings("deprecation")
@@ -1361,6 +1373,7 @@ public com.google.protobuf.Parser.google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -1484,6 +1504,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -1507,6 +1528,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -1532,6 +1554,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -2682,6 +2705,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java
index afc9d7c7a..7a24a7ad0 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java
@@ -188,6 +188,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -215,6 +216,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -257,6 +259,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -296,6 +299,7 @@ public java.lang.String getFilter() {
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -328,6 +332,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The orderBy.
*/
+ @java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -357,6 +362,7 @@ public java.lang.String getOrderBy() {
*
* @return The bytes for orderBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -385,6 +391,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -402,6 +409,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -417,6 +425,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -436,6 +445,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the fieldMask field is set.
*/
+ @java.lang.Override
public boolean hasFieldMask() {
return fieldMask_ != null;
}
@@ -452,6 +462,7 @@ public boolean hasFieldMask() {
*
* @return The fieldMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
@@ -466,6 +477,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
* .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return getFieldMask();
}
@@ -485,6 +497,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -509,6 +522,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -535,6 +549,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -1972,6 +1987,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java
index 877f587fc..2965c0c1d 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java
@@ -159,6 +159,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>
getFindingsOrBuilderList() {
return findings_;
@@ -184,6 +186,7 @@ public java.util.Listrepeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
*/
+ @java.lang.Override
public int getFindingsCount() {
return findings_.size();
}
@@ -196,6 +199,7 @@ public int getFindingsCount() {
*
* repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) {
return findings_.get(index);
}
@@ -208,6 +212,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) {
*
* repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder(int index) {
return findings_.get(index);
}
@@ -225,6 +230,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -239,6 +245,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -251,6 +258,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -269,6 +277,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -292,6 +301,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -317,6 +327,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -1397,6 +1408,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java
index 00584c820..2ac7e0100 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java
@@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -165,6 +166,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -192,6 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -216,6 +219,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -242,6 +246,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -846,6 +851,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java
index 0f3e15b53..c87d87ecb 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java
@@ -139,6 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>
getSourcesOrBuilderList() {
return sources_;
@@ -164,6 +166,7 @@ public java.util.Listrepeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
*/
+ @java.lang.Override
public int getSourcesCount() {
return sources_.size();
}
@@ -176,6 +179,7 @@ public int getSourcesCount() {
*
* repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) {
return sources_.get(index);
}
@@ -188,6 +192,7 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) {
*
* repeated .google.cloud.securitycenter.v1beta1.Source sources = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index) {
return sources_.get(index);
}
@@ -206,6 +211,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -229,6 +235,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java
index 03322d1ad..6b0e56a06 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java
@@ -470,6 +470,10 @@ public InclusionMode findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -582,6 +586,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) {
*
* @return The enum numeric value on the wire for inclusionMode.
*/
+ @java.lang.Override
public int getInclusionModeValue() {
return inclusionMode_;
}
@@ -598,6 +603,7 @@ public int getInclusionModeValue() {
*
* @return The inclusionMode.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
.InclusionMode
getInclusionMode() {
@@ -1186,6 +1192,7 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for inclusionMode.
*/
+ @java.lang.Override
public int getInclusionModeValue() {
return inclusionMode_;
}
@@ -1204,6 +1211,7 @@ public int getInclusionModeValue() {
* @return This builder for chaining.
*/
public Builder setInclusionModeValue(int value) {
+
inclusionMode_ = value;
onChanged();
return this;
@@ -1221,6 +1229,7 @@ public Builder setInclusionModeValue(int value) {
*
* @return The inclusionMode.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
.InclusionMode
getInclusionMode() {
@@ -1354,6 +1363,7 @@ public com.google.protobuf.Parser.google.protobuf.Duration duration = 2;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
return getDuration();
}
@@ -752,6 +761,7 @@ public Builder mergeFrom(
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -768,6 +778,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -783,6 +794,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result =
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java
index 1657d126d..91560f155 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java
@@ -156,6 +156,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -182,6 +183,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -234,6 +236,7 @@ public int getMarksCount() {
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public boolean containsMarks(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -241,6 +244,7 @@ public boolean containsMarks(java.lang.String key) {
return internalGetMarks().getMap().containsKey(key);
}
/** Use {@link #getMarksMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -300,6 +306,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -843,6 +850,7 @@ public int getMarksCount() {
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public boolean containsMarks(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -850,6 +858,7 @@ public boolean containsMarks(java.lang.String key) {
return internalGetMarks().getMap().containsKey(key);
}
/** Use {@link #getMarksMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -909,6 +920,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java
index d98090c19..5cb430b44 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -179,6 +180,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -206,6 +208,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -222,6 +225,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1beta1.Finding.State result =
@@ -245,6 +249,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
*
* @return Whether the startTime field is set.
*/
+ @java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
@@ -260,6 +265,7 @@ public boolean hasStartTime() {
*
* @return The startTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
@@ -273,6 +279,7 @@ public com.google.protobuf.Timestamp getStartTime() {
* .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
@@ -789,6 +796,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -807,6 +815,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -824,6 +833,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1beta1.Finding.State result =
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java
index 2d8947b3e..50023742c 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java
@@ -145,6 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -170,6 +171,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -199,6 +201,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The displayName.
*/
+ @java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
@@ -225,6 +228,7 @@ public java.lang.String getDisplayName() {
*
* @return The bytes for displayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
@@ -256,6 +260,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
* @return The description.
*/
+ @java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -284,6 +289,7 @@ public java.lang.String getDescription() {
*
* @return The bytes for description.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java
index 37166afc5..b0b342154 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return finding_ != null;
}
@@ -172,6 +173,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
return finding_ == null
? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()
@@ -192,6 +194,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
* .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
@@ -210,6 +213,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -225,6 +229,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -238,6 +243,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
index fb01a7617..ee19b4327 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the organizationSettings field is set.
*/
+ @java.lang.Override
public boolean hasOrganizationSettings() {
return organizationSettings_ != null;
}
@@ -168,6 +169,7 @@ public boolean hasOrganizationSettings() {
*
* @return The organizationSettings.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() {
return organizationSettings_ == null
? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance()
@@ -184,6 +186,7 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat
* .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder
getOrganizationSettingsOrBuilder() {
return getOrganizationSettings();
@@ -202,6 +205,7 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizat
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -216,6 +220,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -228,6 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java
index cd42a237c..54fc7f309 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java
@@ -164,6 +164,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -180,6 +181,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
@@ -196,6 +198,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
* .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
getSecurityMarksOrBuilder() {
return getSecurityMarks();
@@ -214,6 +217,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -228,6 +232,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -240,6 +245,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
@@ -257,6 +263,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
* @return Whether the startTime field is set.
*/
+ @java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
@@ -271,6 +278,7 @@ public boolean hasStartTime() {
*
* @return The startTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
@@ -283,6 +291,7 @@ public com.google.protobuf.Timestamp getStartTime() {
*
* .google.protobuf.Timestamp start_time = 3;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java
index 8e1dd78cd..e28fb697f 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java
@@ -148,6 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the source field is set.
*/
+ @java.lang.Override
public boolean hasSource() {
return source_ != null;
}
@@ -164,6 +165,7 @@ public boolean hasSource() {
*
* @return The source.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.Source getSource() {
return source_ == null
? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()
@@ -180,6 +182,7 @@ public com.google.cloud.securitycenter.v1beta1.Source getSource() {
* .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() {
return getSource();
}
@@ -197,6 +200,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -211,6 +215,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -223,6 +228,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml b/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml
index fa5f0a2a7..06d8269ad 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml
+++ b/proto-google-cloud-securitycenter-v1p1beta1/clirr-ignored-differences.xml
@@ -17,7 +17,7 @@
- * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
- * Platform (GCP) resource.
- * The Asset is a Cloud SCC resource that captures information about a single
- * GCP resource. All modifications to an Asset are only within the context of
- * Cloud SCC and don't affect the referenced GCP resource.
+ * Security Command Center representation of a Google Cloud
+ * resource.
+ * The Asset is a Security Command Center resource that captures information
+ * about a single Google Cloud resource. All modifications to an Asset are only
+ * within the context of Security Command Center and don't affect the referenced
+ * Google Cloud resource.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset}
@@ -237,7 +238,7 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -251,7 +252,7 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -266,10 +267,10 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -281,10 +282,10 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -477,8 +478,8 @@ public interface SecurityCenterPropertiesOrBuilder
*
*
*
- * Cloud SCC managed properties. These properties are managed by Cloud SCC and
- * cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties}
@@ -637,7 +638,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -646,6 +647,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The resourceName.
*/
+ @java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -661,7 +663,7 @@ public java.lang.String getResourceName() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -670,6 +672,7 @@ public java.lang.String getResourceName() {
*
* @return The bytes for resourceName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -688,16 +691,17 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
*
* @return The resourceType.
*/
+ @java.lang.Override
public java.lang.String getResourceType() {
java.lang.Object ref = resourceType_;
if (ref instanceof java.lang.String) {
@@ -713,16 +717,17 @@ public java.lang.String getResourceType() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
*
* @return The bytes for resourceType.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceTypeBytes() {
java.lang.Object ref = resourceType_;
if (ref instanceof java.lang.String) {
@@ -749,6 +754,7 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
*
* @return The resourceParent.
*/
+ @java.lang.Override
public java.lang.String getResourceParent() {
java.lang.Object ref = resourceParent_;
if (ref instanceof java.lang.String) {
@@ -772,6 +778,7 @@ public java.lang.String getResourceParent() {
*
* @return The bytes for resourceParent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceParentBytes() {
java.lang.Object ref = resourceParent_;
if (ref instanceof java.lang.String) {
@@ -798,6 +805,7 @@ public com.google.protobuf.ByteString getResourceParentBytes() {
*
* @return The resourceProject.
*/
+ @java.lang.Override
public java.lang.String getResourceProject() {
java.lang.Object ref = resourceProject_;
if (ref instanceof java.lang.String) {
@@ -821,6 +829,7 @@ public java.lang.String getResourceProject() {
*
* @return The bytes for resourceProject.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceProjectBytes() {
java.lang.Object ref = resourceProject_;
if (ref instanceof java.lang.String) {
@@ -907,6 +916,7 @@ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) {
*
* @return The resourceDisplayName.
*/
+ @java.lang.Override
public java.lang.String getResourceDisplayName() {
java.lang.Object ref = resourceDisplayName_;
if (ref instanceof java.lang.String) {
@@ -929,6 +939,7 @@ public java.lang.String getResourceDisplayName() {
*
* @return The bytes for resourceDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceDisplayNameBytes() {
java.lang.Object ref = resourceDisplayName_;
if (ref instanceof java.lang.String) {
@@ -954,6 +965,7 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() {
*
* @return The resourceParentDisplayName.
*/
+ @java.lang.Override
public java.lang.String getResourceParentDisplayName() {
java.lang.Object ref = resourceParentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -976,6 +988,7 @@ public java.lang.String getResourceParentDisplayName() {
*
* @return The bytes for resourceParentDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() {
java.lang.Object ref = resourceParentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1001,6 +1014,7 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() {
*
* @return The resourceProjectDisplayName.
*/
+ @java.lang.Override
public java.lang.String getResourceProjectDisplayName() {
java.lang.Object ref = resourceProjectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1023,6 +1037,7 @@ public java.lang.String getResourceProjectDisplayName() {
*
* @return The bytes for resourceProjectDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() {
java.lang.Object ref = resourceProjectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1282,8 +1297,8 @@ protected Builder newBuilderForType(
*
*
*
- * Cloud SCC managed properties. These properties are managed by Cloud SCC and
- * cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties}
@@ -1520,7 +1535,7 @@ public Builder mergeFrom(
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1544,7 +1559,7 @@ public java.lang.String getResourceName() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1568,7 +1583,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1591,7 +1606,7 @@ public Builder setResourceName(java.lang.String value) {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1610,7 +1625,7 @@ public Builder clearResourceName() {
*
*
*
- * The full resource name of the GCP resource this asset
+ * The full resource name of the Google Cloud resource this asset
* represents. This field is immutable after create time. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
*
@@ -1636,10 +1651,10 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1661,10 +1676,10 @@ public java.lang.String getResourceType() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1686,10 +1701,10 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1710,10 +1725,10 @@ public Builder setResourceType(java.lang.String value) {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -1730,10 +1745,10 @@ public Builder clearResourceType() {
*
*
*
- * The type of the GCP resource. Examples include: APPLICATION,
+ * The type of the Google Cloud resource. Examples include: APPLICATION,
* PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- * Cloud SCC and/or the producer of the resource and is immutable
- * after create time.
+ * Security Command Center and/or the producer of the resource and is
+ * immutable after create time.
*
*
* string resource_type = 2;
@@ -2526,7 +2541,7 @@ public interface IamPolicyOrBuilder
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -2540,7 +2555,7 @@ public interface IamPolicyOrBuilder
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -2554,9 +2569,10 @@ public interface IamPolicyOrBuilder
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy}
@@ -2652,7 +2668,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -2660,6 +2676,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The policyBlob.
*/
+ @java.lang.Override
public java.lang.String getPolicyBlob() {
java.lang.Object ref = policyBlob_;
if (ref instanceof java.lang.String) {
@@ -2676,7 +2693,7 @@ public java.lang.String getPolicyBlob() {
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -2684,6 +2701,7 @@ public java.lang.String getPolicyBlob() {
*
* @return The bytes for policyBlob.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPolicyBlobBytes() {
java.lang.Object ref = policyBlob_;
if (ref instanceof java.lang.String) {
@@ -2861,9 +2879,10 @@ protected Builder newBuilderForType(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy}
@@ -3027,7 +3046,7 @@ public Builder mergeFrom(
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -3051,7 +3070,7 @@ public java.lang.String getPolicyBlob() {
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -3075,7 +3094,7 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() {
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -3098,7 +3117,7 @@ public Builder setPolicyBlob(java.lang.String value) {
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -3117,7 +3136,7 @@ public Builder clearPolicyBlob() {
*
*
* The JSON representation of the Policy associated with the asset.
- * See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
* format details.
*
*
@@ -3205,6 +3224,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInsta
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -3230,6 +3250,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -3249,8 +3270,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -3259,6 +3280,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return Whether the securityCenterProperties field is set.
*/
+ @java.lang.Override
public boolean hasSecurityCenterProperties() {
return securityCenterProperties_ != null;
}
@@ -3266,8 +3288,8 @@ public boolean hasSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -3276,6 +3298,7 @@ public boolean hasSecurityCenterProperties() {
*
* @return The securityCenterProperties.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
getSecurityCenterProperties() {
return securityCenterProperties_ == null
@@ -3287,14 +3310,15 @@ public boolean hasSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder
getSecurityCenterPropertiesOrBuilder() {
return getSecurityCenterProperties();
@@ -3335,11 +3359,12 @@ public int getResourcePropertiesCount() {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -3347,6 +3372,7 @@ public boolean containsResourceProperties(java.lang.String key) {
return internalGetResourceProperties().getMap().containsKey(key);
}
/** Use {@link #getResourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -3388,11 +3416,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -3419,6 +3448,7 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -3434,6 +3464,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()
@@ -3449,6 +3480,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
*
* .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
getSecurityMarksOrBuilder() {
return getSecurityMarks();
@@ -3460,13 +3492,14 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
*
* @return Whether the createTime field is set.
*/
+ @java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
@@ -3474,13 +3507,14 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
*
* @return The createTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
@@ -3488,11 +3522,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return getCreateTime();
}
@@ -3511,6 +3546,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
* @return Whether the updateTime field is set.
*/
+ @java.lang.Override
public boolean hasUpdateTime() {
return updateTime_ != null;
}
@@ -3526,6 +3562,7 @@ public boolean hasUpdateTime() {
*
* @return The updateTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
@@ -3539,6 +3576,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
* .google.protobuf.Timestamp update_time = 10;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return getUpdateTime();
}
@@ -3549,15 +3587,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
*
* @return Whether the iamPolicy field is set.
*/
+ @java.lang.Override
public boolean hasIamPolicy() {
return iamPolicy_ != null;
}
@@ -3565,15 +3605,17 @@ public boolean hasIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
*
* @return The iamPolicy.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() {
return iamPolicy_ == null
? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()
@@ -3583,13 +3625,15 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy()
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder
getIamPolicyOrBuilder() {
return getIamPolicy();
@@ -3852,11 +3896,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
- * Platform (GCP) resource.
- * The Asset is a Cloud SCC resource that captures information about a single
- * GCP resource. All modifications to an Asset are only within the context of
- * Cloud SCC and don't affect the referenced GCP resource.
+ * Security Command Center representation of a Google Cloud
+ * resource.
+ * The Asset is a Security Command Center resource that captures information
+ * about a single Google Cloud resource. All modifications to an Asset are only
+ * within the context of Security Command Center and don't affect the referenced
+ * Google Cloud resource.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset}
@@ -4239,8 +4284,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4256,8 +4301,8 @@ public boolean hasSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4281,8 +4326,8 @@ public boolean hasSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4307,8 +4352,8 @@ public Builder setSecurityCenterProperties(
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4331,8 +4376,8 @@ public Builder setSecurityCenterProperties(
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4362,8 +4407,8 @@ public Builder mergeSecurityCenterProperties(
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4385,8 +4430,8 @@ public Builder clearSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4403,8 +4448,8 @@ public Builder clearSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4426,8 +4471,8 @@ public Builder clearSecurityCenterProperties() {
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -4486,11 +4531,12 @@ public int getResourcePropertiesCount() {
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
getSecurityMarksOrBuilder() {
return getSecurityMarks();
@@ -878,6 +902,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
*
* @return Whether the eventTime field is set.
*/
+ @java.lang.Override
public boolean hasEventTime() {
return eventTime_ != null;
}
@@ -894,6 +919,7 @@ public boolean hasEventTime() {
*
* @return The eventTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getEventTime() {
return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
}
@@ -908,6 +934,7 @@ public com.google.protobuf.Timestamp getEventTime() {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public boolean containsResourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -4498,6 +4544,7 @@ public boolean containsResourceProperties(java.lang.String key) {
return internalGetResourceProperties().getMap().containsKey(key);
}
/** Use {@link #getResourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public java.util.Map
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -4539,11 +4588,12 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -4565,7 +4615,7 @@ public Builder clearResourceProperties() {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -4588,7 +4638,7 @@ public Builder removeResourceProperties(java.lang.String key) {
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -4608,7 +4658,7 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -4827,7 +4877,7 @@ public Builder clearSecurityMarks() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4841,7 +4891,7 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4861,7 +4911,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4883,7 +4933,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4902,7 +4952,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4926,7 +4976,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4946,7 +4996,7 @@ public Builder clearCreateTime() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4960,7 +5010,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -4978,7 +5028,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -5202,9 +5252,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5218,9 +5269,10 @@ public boolean hasIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5240,9 +5292,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy()
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5264,9 +5317,10 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.IamP
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5286,9 +5340,10 @@ public Builder setIamPolicy(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5314,9 +5369,10 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.Ia
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5336,9 +5392,10 @@ public Builder clearIamPolicy() {
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5352,9 +5409,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -5373,9 +5431,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java
index 485fe0e6f..4cef12afd 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java
@@ -58,8 +58,8 @@ public interface AssetOrBuilder
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -73,8 +73,8 @@ public interface AssetOrBuilder
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() {
return getSource();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java
index b89a76e34..2956b238e 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java
@@ -129,6 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -154,6 +155,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java
index 88b4a29fb..436313065 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java
@@ -22,11 +22,11 @@
*
*
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -89,8 +89,8 @@ public interface AssetOrBuilder
*
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder
getNotificationConfigOrBuilder() {
return getNotificationConfig();
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java
index 918d4fc98..864ba0da2 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java
@@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -168,6 +169,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -196,6 +198,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return Whether the source field is set.
*/
+ @java.lang.Override
public boolean hasSource() {
return source_ != null;
}
@@ -213,6 +216,7 @@ public boolean hasSource() {
*
* @return The source.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Source getSource() {
return source_ == null
? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()
@@ -230,6 +234,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() {
* .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
*
- * Cloud SCC managed properties. These properties are managed by
- * Cloud SCC and cannot be modified by the user.
+ * Security Command Center managed properties. These properties are managed by
+ * Security Command Center and cannot be modified by the user.
*
*
*
@@ -105,7 +105,7 @@ public interface AssetOrBuilder
*
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java
index b4a3382f0..296a664fb 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java
@@ -155,6 +155,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -180,6 +181,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -208,6 +210,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The configId.
*/
+ @java.lang.Override
public java.lang.String getConfigId() {
java.lang.Object ref = configId_;
if (ref instanceof java.lang.String) {
@@ -233,6 +236,7 @@ public java.lang.String getConfigId() {
*
* @return The bytes for configId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getConfigIdBytes() {
java.lang.Object ref = configId_;
if (ref instanceof java.lang.String) {
@@ -262,6 +266,7 @@ public com.google.protobuf.ByteString getConfigIdBytes() {
*
* @return Whether the notificationConfig field is set.
*/
+ @java.lang.Override
public boolean hasNotificationConfig() {
return notificationConfig_ != null;
}
@@ -280,6 +285,7 @@ public boolean hasNotificationConfig() {
*
* @return The notificationConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() {
return notificationConfig_ == null
? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()
@@ -298,6 +304,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat
* .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -116,7 +116,7 @@ public interface AssetOrBuilder
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -130,7 +130,7 @@ public interface AssetOrBuilder
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -141,7 +141,7 @@ public interface AssetOrBuilder
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -153,7 +153,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
* Resource managed properties. These properties are managed and defined by
- * the GCP resource and cannot be modified by the user.
+ * the Google Cloud resource and cannot be modified by the user.
*
*
* map<string, .google.protobuf.Value> resource_properties = 7;
@@ -202,7 +202,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -214,7 +214,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -226,7 +226,7 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * The time at which the asset was created in Cloud SCC.
+ * The time at which the asset was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 9;
@@ -275,9 +275,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -289,9 +290,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
@@ -303,9 +305,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
*
*
*
- * IAM Policy information associated with the GCP resource described by the
- * Cloud SCC asset. This information is managed and defined by the GCP
- * resource and cannot be modified by the user.
+ * Cloud IAM Policy information associated with the Google Cloud resource
+ * described by the Security Command Center asset. This information is managed
+ * and defined by the Google Cloud resource and cannot be modified by the
+ * user.
*
*
* .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java
index 0955616ac..3e5a6c366 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -177,6 +178,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -204,6 +206,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The findingId.
*/
+ @java.lang.Override
public java.lang.String getFindingId() {
java.lang.Object ref = findingId_;
if (ref instanceof java.lang.String) {
@@ -228,6 +231,7 @@ public java.lang.String getFindingId() {
*
* @return The bytes for findingId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFindingIdBytes() {
java.lang.Object ref = findingId_;
if (ref instanceof java.lang.String) {
@@ -256,6 +260,7 @@ public com.google.protobuf.ByteString getFindingIdBytes() {
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return finding_ != null;
}
@@ -273,6 +278,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
return finding_ == null
? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()
@@ -290,6 +296,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
* .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
*
- * Cloud Security Command Center (Cloud SCC) finding.
+ * Security Command Center finding.
* A finding is a record of assessment data (security, risk, health or privacy)
- * ingested into Cloud SCC for presentation, notification, analysis,
- * policy testing, and enforcement. For example, an XSS vulnerability in an
- * App Engine application is a finding.
+ * ingested into Security Command Center for presentation, notification,
+ * analysis, policy testing, and enforcement. For example, an XSS vulnerability
+ * in an App Engine application is a finding.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding}
@@ -355,6 +355,10 @@ public State findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -405,6 +409,7 @@ private State(int value) {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -430,6 +435,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -459,6 +465,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -485,6 +492,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -503,18 +511,19 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
*
* @return The resourceName.
*/
+ @java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -530,18 +539,19 @@ public java.lang.String getResourceName() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
*
* @return The bytes for resourceName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
@@ -567,6 +577,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -581,6 +592,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.Finding.State result =
@@ -605,6 +617,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() {
*
* @return The category.
*/
+ @java.lang.Override
public java.lang.String getCategory() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
@@ -629,6 +642,7 @@ public java.lang.String getCategory() {
*
* @return The bytes for category.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
@@ -647,15 +661,16 @@ public com.google.protobuf.ByteString getCategoryBytes() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
*
* @return The externalUri.
*/
+ @java.lang.Override
public java.lang.String getExternalUri() {
java.lang.Object ref = externalUri_;
if (ref instanceof java.lang.String) {
@@ -671,15 +686,16 @@ public java.lang.String getExternalUri() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
*
* @return The bytes for externalUri.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getExternalUriBytes() {
java.lang.Object ref = externalUri_;
if (ref instanceof java.lang.String) {
@@ -734,6 +750,7 @@ public int getSourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public boolean containsSourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -741,6 +758,7 @@ public boolean containsSourceProperties(java.lang.String key) {
return internalGetSourceProperties().getMap().containsKey(key);
}
/** Use {@link #getSourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -793,6 +813,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -822,6 +843,7 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -840,6 +862,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()
@@ -858,6 +881,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
* .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* .google.protobuf.Timestamp event_time = 9;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
return getEventTime();
}
@@ -918,13 +945,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
*
* @return Whether the createTime field is set.
*/
+ @java.lang.Override
public boolean hasCreateTime() {
return createTime_ != null;
}
@@ -932,13 +960,14 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
*
* @return The createTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
@@ -946,11 +975,12 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return getCreateTime();
}
@@ -1224,11 +1254,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud Security Command Center (Cloud SCC) finding.
+ * Security Command Center finding.
* A finding is a record of assessment data (security, risk, health or privacy)
- * ingested into Cloud SCC for presentation, notification, analysis,
- * policy testing, and enforcement. For example, an XSS vulnerability in an
- * App Engine application is a finding.
+ * ingested into Security Command Center for presentation, notification,
+ * analysis, policy testing, and enforcement. For example, an XSS vulnerability
+ * in an App Engine application is a finding.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding}
@@ -1738,12 +1768,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1765,12 +1795,12 @@ public java.lang.String getResourceName() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1792,12 +1822,12 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1818,12 +1848,12 @@ public Builder setResourceName(java.lang.String value) {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1840,12 +1870,12 @@ public Builder clearResourceName() {
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -1876,6 +1906,7 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -1892,6 +1923,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -1907,6 +1939,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.Finding.State result =
@@ -2075,9 +2108,9 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2099,9 +2132,9 @@ public java.lang.String getExternalUri() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2123,9 +2156,9 @@ public com.google.protobuf.ByteString getExternalUriBytes() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2146,9 +2179,9 @@ public Builder setExternalUri(java.lang.String value) {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2165,9 +2198,9 @@ public Builder clearExternalUri() {
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -2228,6 +2261,7 @@ public int getSourcePropertiesCount() {
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public boolean containsSourceProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2235,6 +2269,7 @@ public boolean containsSourceProperties(java.lang.String key) {
return internalGetSourceProperties().getMap().containsKey(key);
}
/** Use {@link #getSourcePropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -2287,6 +2324,7 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
*
* map<string, .google.protobuf.Value> source_properties = 7;
*/
+ @java.lang.Override
public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -2799,7 +2837,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2813,7 +2851,7 @@ public boolean hasCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2833,7 +2871,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2855,7 +2893,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2874,7 +2912,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2898,7 +2936,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2918,7 +2956,7 @@ public Builder clearCreateTime() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2932,7 +2970,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -2950,7 +2988,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java
index 94e18affa..0d0c7f23a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java
@@ -91,12 +91,12 @@ public interface FindingOrBuilder
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -108,12 +108,12 @@ public interface FindingOrBuilder
*
*
*
- * For findings on Google Cloud Platform (GCP) resources, the full resource
- * name of the GCP resource this finding is for. See:
+ * For findings on Google Cloud resources, the full resource
+ * name of the Google Cloud resource this finding is for. See:
* https://cloud.google.com/apis/design/resource_names#full_resource_name
- * When the finding is for a non-GCP resource, the resourceName can be a
- * customer or partner defined string.
- * This field is immutable after creation time.
+ * When the finding is for a non-Google Cloud resource, the resourceName can
+ * be a customer or partner defined string. This field is immutable after
+ * creation time.
*
*
* string resource_name = 3;
@@ -180,9 +180,9 @@ public interface FindingOrBuilder
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -194,9 +194,9 @@ public interface FindingOrBuilder
*
*
*
- * The URI that, if available, points to a web page outside of Cloud SCC
- * where additional information about the finding can be found. This field is
- * guaranteed to be either empty or a well formed URL.
+ * The URI that, if available, points to a web page outside of Security
+ * Command Center where additional information about the finding can be found.
+ * This field is guaranteed to be either empty or a well formed URL.
*
*
* string external_uri = 6;
@@ -367,7 +367,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -379,7 +379,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
@@ -391,7 +391,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
*
*
*
- * The time at which the finding was created in Cloud SCC.
+ * The time at which the finding was created in Security Command Center.
*
*
* .google.protobuf.Timestamp create_time = 10;
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java
index a6c6224d0..3d886cd5b 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java
index 448608c8e..7cca0b3d5 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java
@@ -128,6 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -153,6 +154,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java
index b0dd1d59f..fdfbb4670 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java
index 8f2f1d9de..95971cbd2 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java
@@ -41,7 +41,6 @@ private GroupAssetsRequest() {
parent_ = "";
filter_ = "";
groupBy_ = "";
- having_ = "";
pageToken_ = "";
}
@@ -123,13 +122,6 @@ private GroupAssetsRequest(
readTime_ = subBuilder.buildPartial();
}
- break;
- }
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- having_ = s;
break;
}
case 58:
@@ -194,6 +186,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -219,6 +212,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -261,13 +255,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -280,12 +274,17 @@ public com.google.protobuf.ByteString getParentBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -325,13 +324,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -344,12 +343,17 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -388,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The groupBy.
*/
+ @java.lang.Override
public java.lang.String getGroupBy() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -423,6 +428,7 @@ public java.lang.String getGroupBy() {
*
* @return The bytes for groupBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getGroupByBytes() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -469,6 +475,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -504,6 +511,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -539,6 +547,7 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 4;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
@@ -559,6 +568,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -576,6 +586,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -591,61 +602,11 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 5;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
- public static final int HAVING_FIELD_NUMBER = 6;
- private volatile java.lang.Object having_;
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
private volatile java.lang.Object pageToken_;
/**
@@ -661,6 +622,7 @@ public com.google.protobuf.ByteString getHavingBytes() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -685,6 +647,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -711,6 +674,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -744,9 +708,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (readTime_ != null) {
output.writeMessage(5, getReadTime());
}
- if (!getHavingBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_);
- }
if (!getPageTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_);
}
@@ -777,9 +738,6 @@ public int getSerializedSize() {
if (readTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime());
}
- if (!getHavingBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_);
- }
if (!getPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_);
}
@@ -813,7 +771,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasReadTime()) {
if (!getReadTime().equals(other.getReadTime())) return false;
}
- if (!getHaving().equals(other.getHaving())) return false;
if (!getPageToken().equals(other.getPageToken())) return false;
if (getPageSize() != other.getPageSize()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -841,8 +798,6 @@ public int hashCode() {
hash = (37 * hash) + READ_TIME_FIELD_NUMBER;
hash = (53 * hash) + getReadTime().hashCode();
}
- hash = (37 * hash) + HAVING_FIELD_NUMBER;
- hash = (53 * hash) + getHaving().hashCode();
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
@@ -1011,8 +966,6 @@ public Builder clear() {
readTime_ = null;
readTimeBuilder_ = null;
}
- having_ = "";
-
pageToken_ = "";
pageSize_ = 0;
@@ -1058,7 +1011,6 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest buildPartial
} else {
result.readTime_ = readTimeBuilder_.build();
}
- result.having_ = having_;
result.pageToken_ = pageToken_;
result.pageSize_ = pageSize_;
onBuilt();
@@ -1130,10 +1082,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRe
if (other.hasReadTime()) {
mergeReadTime(other.getReadTime());
}
- if (!other.getHaving().isEmpty()) {
- having_ = other.having_;
- onChanged();
- }
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
@@ -1321,13 +1269,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1340,6 +1288,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1385,13 +1337,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1404,6 +1356,10 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1449,13 +1405,13 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1468,6 +1424,10 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1512,13 +1472,13 @@ public Builder setFilter(java.lang.String value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1531,6 +1491,10 @@ public Builder setFilter(java.lang.String value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1571,13 +1535,13 @@ public Builder clearFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1590,6 +1554,10 @@ public Builder clearFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2359,122 +2327,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return readTimeBuilder_;
}
- private java.lang.Object having_ = "";
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The having to set.
- * @return This builder for chaining.
- */
- public Builder setHaving(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- having_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearHaving() {
-
- having_ = getDefaultInstance().getHaving();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The bytes for having to set.
- * @return This builder for chaining.
- */
- public Builder setHavingBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- having_ = value;
- onChanged();
- return this;
- }
-
private java.lang.Object pageToken_ = "";
/**
*
@@ -2604,6 +2456,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java
index 09e3c6b7a..93a5c1500 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java
@@ -82,13 +82,13 @@ public interface GroupAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -101,6 +101,10 @@ public interface GroupAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -136,13 +140,13 @@ public interface GroupAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -155,6 +159,10 @@ public interface GroupAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -356,35 +364,6 @@ public interface GroupAssetsRequestOrBuilder
*/
com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- java.lang.String getHaving();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- com.google.protobuf.ByteString getHavingBytes();
-
/**
*
*
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java
index ffa6c636f..97f8d1608 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java
@@ -163,6 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>
getGroupByResultsOrBuilderList() {
return groupByResults_;
@@ -193,6 +195,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public int getGroupByResultsCount() {
return groupByResults_.size();
}
@@ -207,6 +210,7 @@ public int getGroupByResultsCount() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) {
return groupByResults_.get(index);
}
@@ -221,6 +225,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
int index) {
return groupByResults_.get(index);
@@ -239,6 +244,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -253,6 +259,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -265,6 +272,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -283,6 +291,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -306,6 +315,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -331,6 +341,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -1478,6 +1489,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java
index da7942025..3991e01fb 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java
@@ -41,7 +41,6 @@ private GroupFindingsRequest() {
parent_ = "";
filter_ = "";
groupBy_ = "";
- having_ = "";
pageToken_ = "";
}
@@ -123,13 +122,6 @@ private GroupFindingsRequest(
compareDuration_ = subBuilder.buildPartial();
}
- break;
- }
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- having_ = s;
break;
}
case 58:
@@ -196,6 +188,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -223,6 +216,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -268,17 +262,22 @@ public com.google.protobuf.ByteString getParentBytes() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -321,17 +320,22 @@ public java.lang.String getFilter() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -366,6 +370,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The groupBy.
*/
+ @java.lang.Override
public java.lang.String getGroupBy() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -397,6 +402,7 @@ public java.lang.String getGroupBy() {
*
* @return The bytes for groupBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getGroupByBytes() {
java.lang.Object ref = groupBy_;
if (ref instanceof java.lang.String) {
@@ -425,6 +431,7 @@ public com.google.protobuf.ByteString getGroupByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -442,6 +449,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -457,6 +465,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -477,12 +486,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -494,6 +509,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -511,12 +527,18 @@ public boolean hasCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -528,6 +550,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -547,12 +570,18 @@ public com.google.protobuf.Duration getCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -562,61 +591,11 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
- public static final int HAVING_FIELD_NUMBER = 6;
- private volatile java.lang.Object having_;
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
private volatile java.lang.Object pageToken_;
/**
@@ -632,6 +611,7 @@ public com.google.protobuf.ByteString getHavingBytes() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -656,6 +636,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -682,6 +663,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -715,9 +697,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (compareDuration_ != null) {
output.writeMessage(5, getCompareDuration());
}
- if (!getHavingBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_);
- }
if (!getPageTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageToken_);
}
@@ -748,9 +727,6 @@ public int getSerializedSize() {
if (compareDuration_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration());
}
- if (!getHavingBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_);
- }
if (!getPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_);
}
@@ -784,7 +760,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasCompareDuration()) {
if (!getCompareDuration().equals(other.getCompareDuration())) return false;
}
- if (!getHaving().equals(other.getHaving())) return false;
if (!getPageToken().equals(other.getPageToken())) return false;
if (getPageSize() != other.getPageSize()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -812,8 +787,6 @@ public int hashCode() {
hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getCompareDuration().hashCode();
}
- hash = (37 * hash) + HAVING_FIELD_NUMBER;
- hash = (53 * hash) + getHaving().hashCode();
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
@@ -982,8 +955,6 @@ public Builder clear() {
compareDuration_ = null;
compareDurationBuilder_ = null;
}
- having_ = "";
-
pageToken_ = "";
pageSize_ = 0;
@@ -1029,7 +1000,6 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest buildParti
} else {
result.compareDuration_ = compareDurationBuilder_.build();
}
- result.having_ = having_;
result.pageToken_ = pageToken_;
result.pageSize_ = pageSize_;
onBuilt();
@@ -1101,10 +1071,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindings
if (other.hasCompareDuration()) {
mergeCompareDuration(other.getCompareDuration());
}
- if (!other.getHaving().isEmpty()) {
- having_ = other.having_;
- onChanged();
- }
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
@@ -1306,11 +1272,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1359,11 +1329,15 @@ public java.lang.String getFilter() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1412,11 +1386,15 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1464,11 +1442,15 @@ public Builder setFilter(java.lang.String value) {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1512,11 +1494,15 @@ public Builder clearFilter() {
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1912,12 +1898,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -1946,12 +1938,18 @@ public boolean hasCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -1986,12 +1984,18 @@ public com.google.protobuf.Duration getCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2028,12 +2032,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2067,12 +2077,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2113,12 +2129,18 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2153,12 +2175,18 @@ public Builder clearCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2187,12 +2215,18 @@ public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2225,12 +2259,18 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -2257,122 +2297,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return compareDurationBuilder_;
}
- private java.lang.Object having_ = "";
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The having to set.
- * @return This builder for chaining.
- */
- public Builder setHaving(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- having_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearHaving() {
-
- having_ = getDefaultInstance().getHaving();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The bytes for having to set.
- * @return This builder for chaining.
- */
- public Builder setHavingBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- having_ = value;
- onChanged();
- return this;
- }
-
private java.lang.Object pageToken_ = "";
/**
*
@@ -2502,6 +2426,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java
index 7c2332ee8..528e8d05a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java
@@ -89,11 +89,15 @@ public interface GroupFindingsRequestOrBuilder
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -132,11 +136,15 @@ public interface GroupFindingsRequestOrBuilder
* * event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* * security_marks.marks: `=`, `:`
* * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -246,12 +254,18 @@ public interface GroupFindingsRequestOrBuilder
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -278,12 +292,18 @@ public interface GroupFindingsRequestOrBuilder
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -310,12 +330,18 @@ public interface GroupFindingsRequestOrBuilder
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present
* at read_time.
@@ -327,35 +353,6 @@ public interface GroupFindingsRequestOrBuilder
*/
com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- java.lang.String getHaving();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- com.google.protobuf.ByteString getHavingBytes();
-
/**
*
*
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java
index 6bd357a63..7bc625e65 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java
@@ -163,6 +163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>
getGroupByResultsOrBuilderList() {
return groupByResults_;
@@ -193,6 +195,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public int getGroupByResultsCount() {
return groupByResults_.size();
}
@@ -207,6 +210,7 @@ public int getGroupByResultsCount() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) {
return groupByResults_.get(index);
}
@@ -221,6 +225,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i
*
* repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
int index) {
return groupByResults_.get(index);
@@ -239,6 +244,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -253,6 +259,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -265,6 +272,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -283,6 +291,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -306,6 +315,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -331,6 +341,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -1479,6 +1490,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java
index 5777c2bb4..1dc6f5709 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java
@@ -172,6 +172,7 @@ public int getPropertiesCount() {
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public boolean containsProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -179,6 +180,7 @@ public boolean containsProperties(java.lang.String key) {
return internalGetProperties().getMap().containsKey(key);
}
/** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -222,6 +226,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -247,6 +252,7 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
*
* @return The count.
*/
+ @java.lang.Override
public long getCount() {
return count_;
}
@@ -650,6 +656,7 @@ public int getPropertiesCount() {
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public boolean containsProperties(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -657,6 +664,7 @@ public boolean containsProperties(java.lang.String key) {
return internalGetProperties().getMap().containsKey(key);
}
/** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public java.util.Mapmap<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrDefault(
java.lang.String key, com.google.protobuf.Value defaultValue) {
if (key == null) {
@@ -700,6 +710,7 @@ public com.google.protobuf.Value getPropertiesOrDefault(
*
* map<string, .google.protobuf.Value> properties = 1;
*/
+ @java.lang.Override
public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -783,6 +794,7 @@ public Builder putAllProperties(
*
* @return The count.
*/
+ @java.lang.Override
public long getCount() {
return count_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java
index 95a8e33e1..67312d158 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java
@@ -41,7 +41,6 @@ private ListAssetsRequest() {
parent_ = "";
filter_ = "";
orderBy_ = "";
- having_ = "";
pageToken_ = "";
}
@@ -123,13 +122,6 @@ private ListAssetsRequest(
compareDuration_ = subBuilder.buildPartial();
}
- break;
- }
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- having_ = s;
break;
}
case 58:
@@ -209,6 +201,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -234,6 +227,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -276,13 +270,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -295,12 +289,17 @@ public com.google.protobuf.ByteString getParentBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -340,13 +339,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -359,12 +358,17 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -409,6 +413,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The orderBy.
*/
+ @java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -450,6 +455,7 @@ public java.lang.String getOrderBy() {
*
* @return The bytes for orderBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -478,6 +484,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -495,6 +502,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -510,6 +518,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -546,6 +555,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -579,6 +589,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -612,61 +623,11 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
- public static final int HAVING_FIELD_NUMBER = 6;
- private volatile java.lang.Object having_;
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
public static final int FIELD_MASK_FIELD_NUMBER = 7;
private com.google.protobuf.FieldMask fieldMask_;
/**
@@ -684,6 +645,7 @@ public com.google.protobuf.ByteString getHavingBytes() {
*
* @return Whether the fieldMask field is set.
*/
+ @java.lang.Override
public boolean hasFieldMask() {
return fieldMask_ != null;
}
@@ -702,6 +664,7 @@ public boolean hasFieldMask() {
*
* @return The fieldMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
@@ -718,6 +681,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
* .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return getFieldMask();
}
@@ -737,6 +701,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -761,6 +726,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -787,6 +753,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -820,9 +787,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (compareDuration_ != null) {
output.writeMessage(5, getCompareDuration());
}
- if (!getHavingBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_);
- }
if (fieldMask_ != null) {
output.writeMessage(7, getFieldMask());
}
@@ -856,9 +820,6 @@ public int getSerializedSize() {
if (compareDuration_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration());
}
- if (!getHavingBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_);
- }
if (fieldMask_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask());
}
@@ -895,7 +856,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasCompareDuration()) {
if (!getCompareDuration().equals(other.getCompareDuration())) return false;
}
- if (!getHaving().equals(other.getHaving())) return false;
if (hasFieldMask() != other.hasFieldMask()) return false;
if (hasFieldMask()) {
if (!getFieldMask().equals(other.getFieldMask())) return false;
@@ -927,8 +887,6 @@ public int hashCode() {
hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getCompareDuration().hashCode();
}
- hash = (37 * hash) + HAVING_FIELD_NUMBER;
- hash = (53 * hash) + getHaving().hashCode();
if (hasFieldMask()) {
hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER;
hash = (53 * hash) + getFieldMask().hashCode();
@@ -1101,8 +1059,6 @@ public Builder clear() {
compareDuration_ = null;
compareDurationBuilder_ = null;
}
- having_ = "";
-
if (fieldMaskBuilder_ == null) {
fieldMask_ = null;
} else {
@@ -1153,7 +1109,6 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest buildPartial(
} else {
result.compareDuration_ = compareDurationBuilder_.build();
}
- result.having_ = having_;
if (fieldMaskBuilder_ == null) {
result.fieldMask_ = fieldMask_;
} else {
@@ -1229,10 +1184,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsReq
if (other.hasCompareDuration()) {
mergeCompareDuration(other.getCompareDuration());
}
- if (!other.getHaving().isEmpty()) {
- having_ = other.having_;
- onChanged();
- }
if (other.hasFieldMask()) {
mergeFieldMask(other.getFieldMask());
}
@@ -1423,13 +1374,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1442,6 +1393,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1487,13 +1442,13 @@ public java.lang.String getFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1506,6 +1461,10 @@ public java.lang.String getFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1551,13 +1510,13 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1570,6 +1529,10 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1614,13 +1577,13 @@ public Builder setFilter(java.lang.String value) {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1633,6 +1596,10 @@ public Builder setFilter(java.lang.String value) {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1673,13 +1640,13 @@ public Builder clearFilter() {
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -1692,6 +1659,10 @@ public Builder clearFilter() {
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2473,122 +2444,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return compareDurationBuilder_;
}
- private java.lang.Object having_ = "";
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The having to set.
- * @return This builder for chaining.
- */
- public Builder setHaving(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- having_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearHaving() {
-
- having_ = getDefaultInstance().getHaving();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The bytes for having to set.
- * @return This builder for chaining.
- */
- public Builder setHavingBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- having_ = value;
- onChanged();
- return this;
- }
-
private com.google.protobuf.FieldMask fieldMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask,
@@ -2933,6 +2788,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java
index a18896dc4..7ac98113a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java
@@ -82,13 +82,13 @@ public interface ListAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -101,6 +101,10 @@ public interface ListAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -136,13 +140,13 @@ public interface ListAssetsRequestOrBuilder
* * update_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "update_time = \"2019-06-10T16:07:18-07:00\""
- * "update_time = 1560208038000"
+ * `update_time = "2019-06-10T16:07:18-07:00"`
+ * `update_time = 1560208038000`
* * create_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "create_time = \"2019-06-10T16:07:18-07:00\""
- * "create_time = 1560208038000"
+ * `create_time = "2019-06-10T16:07:18-07:00"`
+ * `create_time = 1560208038000`
* * iam_policy.policy_blob: `=`, `:`
* * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* * security_marks.marks: `=`, `:`
@@ -155,6 +159,10 @@ public interface ListAssetsRequestOrBuilder
* * security_center_properties.resource_project_display_name: `=`, `:`
* * security_center_properties.resource_owners: `=`, `:`
* For example, `resource_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `resource_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-resource_properties.my_property : ""`
*
*
* string filter = 2;
@@ -362,35 +370,6 @@ public interface ListAssetsRequestOrBuilder
*/
com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- java.lang.String getHaving();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `state_change` is supported and
- * requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- com.google.protobuf.ByteString getHavingBytes();
-
/**
*
*
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java
index 671f11a4f..e0d9287d0 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java
@@ -481,6 +481,10 @@ public StateChange findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -529,6 +533,7 @@ private StateChange(int value) {
*
* @return Whether the asset field is set.
*/
+ @java.lang.Override
public boolean hasAsset() {
return asset_ != null;
}
@@ -543,6 +548,7 @@ public boolean hasAsset() {
*
* @return The asset.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() {
return asset_ == null
? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance()
@@ -557,6 +563,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() {
*
* .google.cloud.securitycenter.v1p1beta1.Asset asset = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilder() {
return getAsset();
}
@@ -576,6 +583,7 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -592,6 +600,7 @@ public int getStateChangeValue() {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange
getStateChange() {
@SuppressWarnings("deprecation")
@@ -1184,6 +1193,7 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -1202,6 +1212,7 @@ public int getStateChangeValue() {
* @return This builder for chaining.
*/
public Builder setStateChangeValue(int value) {
+
stateChange_ = value;
onChanged();
return this;
@@ -1219,6 +1230,7 @@ public Builder setStateChangeValue(int value) {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult
.StateChange
getStateChange() {
@@ -1349,6 +1361,7 @@ public com.google.protobuf.Parser.google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -1474,6 +1494,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -1497,6 +1518,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -1522,6 +1544,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -2675,6 +2698,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java
index e7492bd8f..8996a4596 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java
@@ -41,7 +41,6 @@ private ListFindingsRequest() {
parent_ = "";
filter_ = "";
orderBy_ = "";
- having_ = "";
pageToken_ = "";
}
@@ -123,13 +122,6 @@ private ListFindingsRequest(
compareDuration_ = subBuilder.buildPartial();
}
- break;
- }
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- having_ = s;
break;
}
case 58:
@@ -211,6 +203,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -238,6 +231,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -283,17 +277,22 @@ public com.google.protobuf.ByteString getParentBytes() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -336,17 +335,22 @@ public java.lang.String getFilter() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -388,6 +392,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
*
* @return The orderBy.
*/
+ @java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -426,6 +431,7 @@ public java.lang.String getOrderBy() {
*
* @return The bytes for orderBy.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
@@ -454,6 +460,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
*
* @return Whether the readTime field is set.
*/
+ @java.lang.Override
public boolean hasReadTime() {
return readTime_ != null;
}
@@ -471,6 +478,7 @@ public boolean hasReadTime() {
*
* @return The readTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getReadTime() {
return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
}
@@ -486,6 +494,7 @@ public com.google.protobuf.Timestamp getReadTime() {
*
* .google.protobuf.Timestamp read_time = 4;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -507,12 +516,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -522,6 +537,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return Whether the compareDuration field is set.
*/
+ @java.lang.Override
public boolean hasCompareDuration() {
return compareDuration_ != null;
}
@@ -540,12 +556,18 @@ public boolean hasCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -555,6 +577,7 @@ public boolean hasCompareDuration() {
*
* @return The compareDuration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getCompareDuration() {
return compareDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
@@ -575,12 +598,18 @@ public com.google.protobuf.Duration getCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -588,61 +617,11 @@ public com.google.protobuf.Duration getCompareDuration() {
*
* .google.protobuf.Duration compare_duration = 5;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return getCompareDuration();
}
- public static final int HAVING_FIELD_NUMBER = 6;
- private volatile java.lang.Object having_;
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
public static final int FIELD_MASK_FIELD_NUMBER = 7;
private com.google.protobuf.FieldMask fieldMask_;
/**
@@ -659,6 +638,7 @@ public com.google.protobuf.ByteString getHavingBytes() {
*
* @return Whether the fieldMask field is set.
*/
+ @java.lang.Override
public boolean hasFieldMask() {
return fieldMask_ != null;
}
@@ -676,6 +656,7 @@ public boolean hasFieldMask() {
*
* @return The fieldMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
@@ -691,6 +672,7 @@ public com.google.protobuf.FieldMask getFieldMask() {
* .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return getFieldMask();
}
@@ -710,6 +692,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -734,6 +717,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -760,6 +744,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -793,9 +778,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (compareDuration_ != null) {
output.writeMessage(5, getCompareDuration());
}
- if (!getHavingBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, having_);
- }
if (fieldMask_ != null) {
output.writeMessage(7, getFieldMask());
}
@@ -829,9 +811,6 @@ public int getSerializedSize() {
if (compareDuration_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration());
}
- if (!getHavingBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, having_);
- }
if (fieldMask_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask());
}
@@ -868,7 +847,6 @@ public boolean equals(final java.lang.Object obj) {
if (hasCompareDuration()) {
if (!getCompareDuration().equals(other.getCompareDuration())) return false;
}
- if (!getHaving().equals(other.getHaving())) return false;
if (hasFieldMask() != other.hasFieldMask()) return false;
if (hasFieldMask()) {
if (!getFieldMask().equals(other.getFieldMask())) return false;
@@ -900,8 +878,6 @@ public int hashCode() {
hash = (37 * hash) + COMPARE_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getCompareDuration().hashCode();
}
- hash = (37 * hash) + HAVING_FIELD_NUMBER;
- hash = (53 * hash) + getHaving().hashCode();
if (hasFieldMask()) {
hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER;
hash = (53 * hash) + getFieldMask().hashCode();
@@ -1074,8 +1050,6 @@ public Builder clear() {
compareDuration_ = null;
compareDurationBuilder_ = null;
}
- having_ = "";
-
if (fieldMaskBuilder_ == null) {
fieldMask_ = null;
} else {
@@ -1127,7 +1101,6 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest buildPartia
} else {
result.compareDuration_ = compareDurationBuilder_.build();
}
- result.having_ = having_;
if (fieldMaskBuilder_ == null) {
result.fieldMask_ = fieldMask_;
} else {
@@ -1204,10 +1177,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsR
if (other.hasCompareDuration()) {
mergeCompareDuration(other.getCompareDuration());
}
- if (!other.getHaving().isEmpty()) {
- having_ = other.having_;
- onChanged();
- }
if (other.hasFieldMask()) {
mergeFieldMask(other.getFieldMask());
}
@@ -1412,11 +1381,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1465,11 +1438,15 @@ public java.lang.String getFilter() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1518,11 +1495,15 @@ public com.google.protobuf.ByteString getFilterBytes() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1570,11 +1551,15 @@ public Builder setFilter(java.lang.String value) {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -1618,11 +1603,15 @@ public Builder clearFilter() {
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -2054,12 +2043,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2087,12 +2082,18 @@ public boolean hasCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2126,12 +2127,18 @@ public com.google.protobuf.Duration getCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2167,12 +2174,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2205,12 +2218,18 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2250,12 +2269,18 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2289,12 +2314,18 @@ public Builder clearCompareDuration() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2322,12 +2353,18 @@ public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2359,12 +2396,18 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -2389,122 +2432,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
return compareDurationBuilder_;
}
- private java.lang.Object having_ = "";
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- public java.lang.String getHaving() {
- java.lang.Object ref = having_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- having_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- public com.google.protobuf.ByteString getHavingBytes() {
- java.lang.Object ref = having_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- having_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The having to set.
- * @return This builder for chaining.
- */
- public Builder setHaving(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- having_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearHaving() {
-
- having_ = getDefaultInstance().getHaving();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @param value The bytes for having to set.
- * @return This builder for chaining.
- */
- public Builder setHavingBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- having_ = value;
- onChanged();
- return this;
- }
-
private com.google.protobuf.FieldMask fieldMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask,
@@ -2840,6 +2767,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java
index df4de4ce8..a6b19b43a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java
@@ -89,11 +89,15 @@ public interface ListFindingsRequestOrBuilder
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -132,11 +136,15 @@ public interface ListFindingsRequestOrBuilder
* event_time: `=`, `>`, `<`, `>=`, `<=`
* Usage: This should be milliseconds since epoch or an RFC3339 string.
* Examples:
- * "event_time = \"2019-06-10T16:07:18-07:00\""
- * "event_time = 1560208038000"
+ * `event_time = "2019-06-10T16:07:18-07:00"`
+ * `event_time = 1560208038000`
* security_marks.marks: `=`, `:`
* source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
* For example, `source_properties.size = 100` is a valid filter string.
+ * Use a partial match on the empty string to filter based on a property
+ * existing: `source_properties.my_property : ""`
+ * Use a negated partial match on the empty string to filter based on a
+ * property not existing: `-source_properties.my_property : ""`
*
*
* string filter = 2;
@@ -261,12 +269,18 @@ public interface ListFindingsRequestOrBuilder
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -292,12 +306,18 @@ public interface ListFindingsRequestOrBuilder
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -323,12 +343,18 @@ public interface ListFindingsRequestOrBuilder
* two times don't affect the result. For example, the results aren't affected
* if the finding is made inactive and then active again.
* Possible "state_change" values when compare_duration is specified:
- * * "CHANGED": indicates that the finding was present at the start of
- * compare_duration, but changed its state at read_time.
- * * "UNCHANGED": indicates that the finding was present at the start of
- * compare_duration and did not change state at read_time.
- * * "ADDED": indicates that the finding was not present at the start
- * of compare_duration, but was present at read_time.
+ * * "CHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration, but changed its
+ * state at read_time.
+ * * "UNCHANGED": indicates that the finding was present and matched the given
+ * filter at the start of compare_duration and did not change
+ * state at read_time.
+ * * "ADDED": indicates that the finding did not match the given filter or
+ * was not present at the start of compare_duration, but was
+ * present at read_time.
+ * * "REMOVED": indicates that the finding was present and matched the
+ * filter at the start of compare_duration, but did not match
+ * the filter at read_time.
* If compare_duration is not specified, then the only possible state_change
* is "UNUSED", which will be the state_change set for all findings present at
* read_time.
@@ -338,35 +364,6 @@ public interface ListFindingsRequestOrBuilder
*/
com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The having.
- */
- java.lang.String getHaving();
- /**
- *
- *
- *
- * Filter that specifies what fields to further filter on *after* the query
- * filter has been executed. Currently only `finding.state` and `state_change`
- * are supported and requires compare_duration to be specified.
- *
- *
- * string having = 6;
- *
- * @return The bytes for having.
- */
- com.google.protobuf.ByteString getHavingBytes();
-
/**
*
*
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java
index 60c72183f..c432cc776 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java
@@ -577,6 +577,10 @@ public StateChange findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -748,7 +752,7 @@ public interface ResourceOrBuilder
*
*
*
- * Information related to the Google Cloud Platform (GCP) resource that is
+ * Information related to the Google Cloud resource that is
* associated with this finding.
*
*
@@ -888,6 +892,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -911,6 +916,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -936,6 +942,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The projectName.
*/
+ @java.lang.Override
public java.lang.String getProjectName() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
@@ -958,6 +965,7 @@ public java.lang.String getProjectName() {
*
* @return The bytes for projectName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getProjectNameBytes() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
@@ -983,6 +991,7 @@ public com.google.protobuf.ByteString getProjectNameBytes() {
*
* @return The projectDisplayName.
*/
+ @java.lang.Override
public java.lang.String getProjectDisplayName() {
java.lang.Object ref = projectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1005,6 +1014,7 @@ public java.lang.String getProjectDisplayName() {
*
* @return The bytes for projectDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
java.lang.Object ref = projectDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1030,6 +1040,7 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
*
* @return The parentName.
*/
+ @java.lang.Override
public java.lang.String getParentName() {
java.lang.Object ref = parentName_;
if (ref instanceof java.lang.String) {
@@ -1052,6 +1063,7 @@ public java.lang.String getParentName() {
*
* @return The bytes for parentName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentNameBytes() {
java.lang.Object ref = parentName_;
if (ref instanceof java.lang.String) {
@@ -1077,6 +1089,7 @@ public com.google.protobuf.ByteString getParentNameBytes() {
*
* @return The parentDisplayName.
*/
+ @java.lang.Override
public java.lang.String getParentDisplayName() {
java.lang.Object ref = parentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1099,6 +1112,7 @@ public java.lang.String getParentDisplayName() {
*
* @return The bytes for parentDisplayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentDisplayNameBytes() {
java.lang.Object ref = parentDisplayName_;
if (ref instanceof java.lang.String) {
@@ -1339,7 +1353,7 @@ protected Builder newBuilderForType(
*
*
*
- * Information related to the Google Cloud Platform (GCP) resource that is
+ * Information related to the Google Cloud resource that is
* associated with this finding.
*
*
@@ -2162,6 +2176,7 @@ public com.google.protobuf.Parser.google.cloud.securitycenter.v1p1beta1.Finding finding = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
@@ -2209,6 +2226,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -2225,6 +2243,7 @@ public int getStateChangeValue() {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
.StateChange
getStateChange() {
@@ -2256,6 +2275,7 @@ public int getStateChangeValue() {
*
* @return Whether the resource field is set.
*/
+ @java.lang.Override
public boolean hasResource() {
return resource_ != null;
}
@@ -2272,6 +2292,7 @@ public boolean hasResource() {
*
* @return The resource.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
.Resource
getResource() {
@@ -2291,6 +2312,7 @@ public boolean hasResource() {
* .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
.ResourceOrBuilder
getResourceOrBuilder() {
@@ -2908,6 +2930,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
*
* @return The enum numeric value on the wire for stateChange.
*/
+ @java.lang.Override
public int getStateChangeValue() {
return stateChange_;
}
@@ -2926,6 +2949,7 @@ public int getStateChangeValue() {
* @return This builder for chaining.
*/
public Builder setStateChangeValue(int value) {
+
stateChange_ = value;
onChanged();
return this;
@@ -2943,6 +2967,7 @@ public Builder setStateChangeValue(int value) {
*
* @return The stateChange.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
.StateChange
getStateChange() {
@@ -3304,6 +3329,7 @@ public com.google.protobuf.Parser.google.protobuf.Timestamp read_time = 2;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
return getReadTime();
}
@@ -3429,6 +3462,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -3452,6 +3486,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -3477,6 +3512,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
@@ -4638,6 +4674,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The totalSize.
*/
+ @java.lang.Override
public int getTotalSize() {
return totalSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java
index a34adaa88..acbb80644 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java
@@ -141,6 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -166,6 +167,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -193,6 +195,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* @return The pageToken.
*/
+ @java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -217,6 +220,7 @@ public java.lang.String getPageToken() {
*
* @return The bytes for pageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
@@ -243,6 +247,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
@@ -859,6 +864,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
* @return The pageSize.
*/
+ @java.lang.Override
public int getPageSize() {
return pageSize_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java
index 62ec19636..417036bc7 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java
@@ -146,6 +146,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1;
*
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1;
*/
+ @java.lang.Override
public java.util.List extends com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>
getSourcesOrBuilderList() {
return sources_;
@@ -165,6 +167,7 @@ public java.util.Listrepeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1;
*/
+ @java.lang.Override
public int getSourcesCount() {
return sources_.size();
}
@@ -177,6 +180,7 @@ public int getSourcesCount() {
*
* repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) {
return sources_.get(index);
}
@@ -189,6 +193,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) {
*
* repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder(int index) {
return sources_.get(index);
}
@@ -207,6 +212,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBui
*
* @return The nextPageToken.
*/
+ @java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
@@ -230,6 +236,7 @@ public java.lang.String getNextPageToken() {
*
* @return The bytes for nextPageToken.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java
index 0f12ffce9..8ea158618 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java
@@ -22,9 +22,10 @@
*
*
*
- * Cloud Security Command Center (Cloud SCC) notification configs.
- * A notification config is a Cloud SCC resource that contains the configuration
- * to send notifications for create/update events of findings, assets and etc.
+ * Security Command Center notification configs.
+ * A notification config is a Security Command Center resource that contains the
+ * configuration to send notifications for create/update events of findings,
+ * assets and etc.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig}
@@ -268,6 +269,10 @@ public EventType findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -485,6 +490,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The filter.
*/
+ @java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -522,6 +528,7 @@ public java.lang.String getFilter() {
*
* @return The bytes for filter.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
@@ -1178,6 +1185,7 @@ public NotifyConfigCase getNotifyConfigCase() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -1203,6 +1211,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -1228,6 +1237,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The description.
*/
+ @java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -1250,6 +1260,7 @@ public java.lang.String getDescription() {
*
* @return The bytes for description.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -1276,6 +1287,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
* @return The enum numeric value on the wire for eventType.
*/
+ @java.lang.Override
public int getEventTypeValue() {
return eventType_;
}
@@ -1291,6 +1303,7 @@ public int getEventTypeValue() {
*
* @return The eventType.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result =
@@ -1306,7 +1319,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType ge
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -1314,6 +1327,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType ge
*
* @return The pubsubTopic.
*/
+ @java.lang.Override
public java.lang.String getPubsubTopic() {
java.lang.Object ref = pubsubTopic_;
if (ref instanceof java.lang.String) {
@@ -1329,7 +1343,7 @@ public java.lang.String getPubsubTopic() {
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -1337,6 +1351,7 @@ public java.lang.String getPubsubTopic() {
*
* @return The bytes for pubsubTopic.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getPubsubTopicBytes() {
java.lang.Object ref = pubsubTopic_;
if (ref instanceof java.lang.String) {
@@ -1356,13 +1371,14 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The serviceAccount.
*/
+ @java.lang.Override
public java.lang.String getServiceAccount() {
java.lang.Object ref = serviceAccount_;
if (ref instanceof java.lang.String) {
@@ -1379,13 +1395,14 @@ public java.lang.String getServiceAccount() {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for serviceAccount.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getServiceAccountBytes() {
java.lang.Object ref = serviceAccount_;
if (ref instanceof java.lang.String) {
@@ -1412,6 +1429,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
*
* @return Whether the streamingConfig field is set.
*/
+ @java.lang.Override
public boolean hasStreamingConfig() {
return notifyConfigCase_ == 6;
}
@@ -1428,6 +1446,7 @@ public boolean hasStreamingConfig() {
*
* @return The streamingConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig
getStreamingConfig() {
if (notifyConfigCase_ == 6) {
@@ -1448,6 +1467,7 @@ public boolean hasStreamingConfig() {
* .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder
getStreamingConfigOrBuilder() {
if (notifyConfigCase_ == 6) {
@@ -1693,9 +1713,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud Security Command Center (Cloud SCC) notification configs.
- * A notification config is a Cloud SCC resource that contains the configuration
- * to send notifications for create/update events of findings, assets and etc.
+ * Security Command Center notification configs.
+ * A notification config is a Security Command Center resource that contains the
+ * configuration to send notifications for create/update events of findings,
+ * assets and etc.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig}
@@ -2154,6 +2175,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for eventType.
*/
+ @java.lang.Override
public int getEventTypeValue() {
return eventType_;
}
@@ -2171,6 +2193,7 @@ public int getEventTypeValue() {
* @return This builder for chaining.
*/
public Builder setEventTypeValue(int value) {
+
eventType_ = value;
onChanged();
return this;
@@ -2187,6 +2210,7 @@ public Builder setEventTypeValue(int value) {
*
* @return The eventType.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result =
@@ -2243,7 +2267,7 @@ public Builder clearEventType() {
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -2266,7 +2290,7 @@ public java.lang.String getPubsubTopic() {
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -2289,7 +2313,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -2311,7 +2335,7 @@ public Builder setPubsubTopic(java.lang.String value) {
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -2329,7 +2353,7 @@ public Builder clearPubsubTopic() {
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -2355,7 +2379,7 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -2378,7 +2402,7 @@ public java.lang.String getServiceAccount() {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -2401,7 +2425,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -2423,7 +2447,7 @@ public Builder setServiceAccount(java.lang.String value) {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -2441,7 +2465,7 @@ public Builder clearServiceAccount() {
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -2478,6 +2502,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
*
* @return Whether the streamingConfig field is set.
*/
+ @java.lang.Override
public boolean hasStreamingConfig() {
return notifyConfigCase_ == 6;
}
@@ -2494,6 +2519,7 @@ public boolean hasStreamingConfig() {
*
* @return The streamingConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig
getStreamingConfig() {
if (streamingConfigBuilder_ == null) {
@@ -2650,6 +2676,7 @@ public Builder clearStreamingConfig() {
* .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder
getStreamingConfigOrBuilder() {
if ((notifyConfigCase_ == 6) && (streamingConfigBuilder_ != null)) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java
index f978276dd..7b2034f36 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java
@@ -110,7 +110,7 @@ public interface NotificationConfigOrBuilder
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -123,7 +123,7 @@ public interface NotificationConfigOrBuilder
*
*
*
- * The PubSub topic to send notifications to. Its format is
+ * The Pub/Sub topic to send notifications to. Its format is
* "projects/[project_id]/topics/[topic]".
*
*
@@ -138,7 +138,7 @@ public interface NotificationConfigOrBuilder
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -151,7 +151,7 @@ public interface NotificationConfigOrBuilder
*
*
* Output only. The service account that needs "pubsub.topics.publish"
- * permission to publish to the PubSub topic.
+ * permission to publish to the Pub/Sub topic.
*
*
* string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java
index a1173bdb6..22ee4cfca 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java
@@ -22,7 +22,7 @@
*
*
*
- * Cloud SCC's Notification
+ * Security Command Center's Notification
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage}
@@ -93,6 +93,23 @@ private NotificationMessage(
event_ = subBuilder.buildPartial();
}
eventCase_ = 2;
+ break;
+ }
+ case 26:
+ {
+ com.google.cloud.securitycenter.v1p1beta1.Resource.Builder subBuilder = null;
+ if (resource_ != null) {
+ subBuilder = resource_.toBuilder();
+ }
+ resource_ =
+ input.readMessage(
+ com.google.cloud.securitycenter.v1p1beta1.Resource.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(resource_);
+ resource_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -186,6 +203,7 @@ public EventCase getEventCase() {
*
* @return The notificationConfigName.
*/
+ @java.lang.Override
public java.lang.String getNotificationConfigName() {
java.lang.Object ref = notificationConfigName_;
if (ref instanceof java.lang.String) {
@@ -208,6 +226,7 @@ public java.lang.String getNotificationConfigName() {
*
* @return The bytes for notificationConfigName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNotificationConfigNameBytes() {
java.lang.Object ref = notificationConfigName_;
if (ref instanceof java.lang.String) {
@@ -233,6 +252,7 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() {
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return eventCase_ == 2;
}
@@ -248,6 +268,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
if (eventCase_ == 2) {
return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_;
@@ -264,6 +285,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
*
* .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
if (eventCase_ == 2) {
return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_;
@@ -271,6 +293,54 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
return com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance();
}
+ public static final int RESOURCE_FIELD_NUMBER = 3;
+ private com.google.cloud.securitycenter.v1p1beta1.Resource resource_;
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ *
+ * @return Whether the resource field is set.
+ */
+ @java.lang.Override
+ public boolean hasResource() {
+ return resource_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ *
+ * @return The resource.
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()
+ : resource_;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOrBuilder() {
+ return getResource();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -291,6 +361,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (eventCase_ == 2) {
output.writeMessage(2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_);
}
+ if (resource_ != null) {
+ output.writeMessage(3, getResource());
+ }
unknownFields.writeTo(output);
}
@@ -308,6 +381,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_);
}
+ if (resource_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -325,6 +401,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) obj;
if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false;
+ if (hasResource() != other.hasResource()) return false;
+ if (hasResource()) {
+ if (!getResource().equals(other.getResource())) return false;
+ }
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 2:
@@ -346,6 +426,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NOTIFICATION_CONFIG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getNotificationConfigName().hashCode();
+ if (hasResource()) {
+ hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ }
switch (eventCase_) {
case 2:
hash = (37 * hash) + FINDING_FIELD_NUMBER;
@@ -459,7 +543,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud SCC's Notification
+ * Security Command Center's Notification
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage}
@@ -502,6 +586,12 @@ public Builder clear() {
super.clear();
notificationConfigName_ = "";
+ if (resourceBuilder_ == null) {
+ resource_ = null;
+ } else {
+ resource_ = null;
+ resourceBuilder_ = null;
+ }
eventCase_ = 0;
event_ = null;
return this;
@@ -540,6 +630,11 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage buildPartia
result.event_ = findingBuilder_.build();
}
}
+ if (resourceBuilder_ == null) {
+ result.resource_ = resource_;
+ } else {
+ result.resource_ = resourceBuilder_.build();
+ }
result.eventCase_ = eventCase_;
onBuilt();
return result;
@@ -596,6 +691,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationM
notificationConfigName_ = other.notificationConfigName_;
onChanged();
}
+ if (other.hasResource()) {
+ mergeResource(other.getResource());
+ }
switch (other.getEventCase()) {
case FINDING:
{
@@ -775,6 +873,7 @@ public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString val
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return eventCase_ == 2;
}
@@ -790,6 +889,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
if (findingBuilder_ == null) {
if (eventCase_ == 2) {
@@ -928,6 +1028,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuild
*
* .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
if ((eventCase_ == 2) && (findingBuilder_ != null)) {
return findingBuilder_.getMessageOrBuilder();
@@ -973,6 +1074,192 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
return findingBuilder_;
}
+ private com.google.cloud.securitycenter.v1p1beta1.Resource resource_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1p1beta1.Resource,
+ com.google.cloud.securitycenter.v1p1beta1.Resource.Builder,
+ com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>
+ resourceBuilder_;
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ *
+ * @return Whether the resource field is set.
+ */
+ public boolean hasResource() {
+ return resourceBuilder_ != null || resource_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ *
+ * @return The resource.
+ */
+ public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() {
+ if (resourceBuilder_ == null) {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()
+ : resource_;
+ } else {
+ return resourceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.Resource value) {
+ if (resourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ resourceBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ public Builder setResource(
+ com.google.cloud.securitycenter.v1p1beta1.Resource.Builder builderForValue) {
+ if (resourceBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ resourceBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.Resource value) {
+ if (resourceBuilder_ == null) {
+ if (resource_ != null) {
+ resource_ =
+ com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder(resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ resourceBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ public Builder clearResource() {
+ if (resourceBuilder_ == null) {
+ resource_ = null;
+ onChanged();
+ } else {
+ resource_ = null;
+ resourceBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ public com.google.cloud.securitycenter.v1p1beta1.Resource.Builder getResourceBuilder() {
+
+ onChanged();
+ return getResourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOrBuilder() {
+ if (resourceBuilder_ != null) {
+ return resourceBuilder_.getMessageOrBuilder();
+ } else {
+ return resource_ == null
+ ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()
+ : resource_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1p1beta1.Resource,
+ com.google.cloud.securitycenter.v1p1beta1.Resource.Builder,
+ com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>
+ getResourceFieldBuilder() {
+ if (resourceBuilder_ == null) {
+ resourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.securitycenter.v1p1beta1.Resource,
+ com.google.cloud.securitycenter.v1p1beta1.Resource.Builder,
+ com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>(
+ getResource(), getParentForChildren(), isClean());
+ resource_ = null;
+ }
+ return resourceBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java
index 886769a79..41bbd477f 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java
@@ -86,5 +86,40 @@ public interface NotificationMessageOrBuilder
*/
com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder();
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ *
+ * @return Whether the resource field is set.
+ */
+ boolean hasResource();
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ *
+ * @return The resource.
+ */
+ com.google.cloud.securitycenter.v1p1beta1.Resource getResource();
+ /**
+ *
+ *
+ *
+ * The Cloud resource tied to the notification.
+ *
+ *
+ * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
+ */
+ com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOrBuilder();
+
public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.EventCase getEventCase();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java
index d65f78fa7..bcb4bbe20 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java
@@ -45,17 +45,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".securitycenter.v1p1beta1\032\034google/api/an"
+ "notations.proto\0321google/cloud/securityce"
+ "nter/v1p1beta1/asset.proto\0323google/cloud"
- + "/securitycenter/v1p1beta1/finding.proto\""
- + "\203\001\n\023NotificationMessage\022 \n\030notification_"
- + "config_name\030\001 \001(\t\022A\n\007finding\030\002 \001(\0132..goo"
- + "gle.cloud.securitycenter.v1p1beta1.Findi"
- + "ngH\000B\007\n\005eventB\375\001\n)com.google.cloud.secur"
- + "itycenter.v1p1beta1P\001ZSgoogle.golang.org"
- + "/genproto/googleapis/cloud/securitycente"
- + "r/v1p1beta1;securitycenter\252\002%Google.Clou"
- + "d.SecurityCenter.V1P1Beta1\312\002%Google\\Clou"
- + "d\\SecurityCenter\\V1p1beta1\352\002(Google::Clo"
- + "ud::SecurityCenter::V1p1beta1b\006proto3"
+ + "/securitycenter/v1p1beta1/finding.proto\032"
+ + "4google/cloud/securitycenter/v1p1beta1/r"
+ + "esource.proto\"\306\001\n\023NotificationMessage\022 \n"
+ + "\030notification_config_name\030\001 \001(\t\022A\n\007findi"
+ + "ng\030\002 \001(\0132..google.cloud.securitycenter.v"
+ + "1p1beta1.FindingH\000\022A\n\010resource\030\003 \001(\0132/.g"
+ + "oogle.cloud.securitycenter.v1p1beta1.Res"
+ + "ourceB\007\n\005eventB\375\001\n)com.google.cloud.secu"
+ + "ritycenter.v1p1beta1P\001ZSgoogle.golang.or"
+ + "g/genproto/googleapis/cloud/securitycent"
+ + "er/v1p1beta1;securitycenter\252\002%Google.Clo"
+ + "ud.SecurityCenter.V1P1Beta1\312\002%Google\\Clo"
+ + "ud\\SecurityCenter\\V1p1beta1\352\002(Google::Cl"
+ + "oud::SecurityCenter::V1p1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -64,6 +67,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(),
com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(),
+ com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(),
});
internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -71,11 +75,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor,
new java.lang.String[] {
- "NotificationConfigName", "Finding", "Event",
+ "NotificationConfigName", "Finding", "Resource", "Event",
});
com.google.api.AnnotationsProto.getDescriptor();
com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor();
com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor();
+ com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java
index 3706059f7..3a4d73441 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java
@@ -22,8 +22,8 @@
*
*
*
- * User specified settings that are attached to the Cloud Security Command
- * Center (Cloud SCC) organization.
+ * User specified settings that are attached to the Security Command
+ * Center organization.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings}
@@ -471,6 +471,10 @@ public InclusionMode findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -583,6 +587,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) {
*
* @return The enum numeric value on the wire for inclusionMode.
*/
+ @java.lang.Override
public int getInclusionModeValue() {
return inclusionMode_;
}
@@ -599,6 +604,7 @@ public int getInclusionModeValue() {
*
* @return The inclusionMode.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
.InclusionMode
getInclusionMode() {
@@ -1201,6 +1207,7 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for inclusionMode.
*/
+ @java.lang.Override
public int getInclusionModeValue() {
return inclusionMode_;
}
@@ -1219,6 +1226,7 @@ public int getInclusionModeValue() {
* @return This builder for chaining.
*/
public Builder setInclusionModeValue(int value) {
+
inclusionMode_ = value;
onChanged();
return this;
@@ -1236,6 +1244,7 @@ public Builder setInclusionModeValue(int value) {
*
* @return The inclusionMode.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
.InclusionMode
getInclusionMode() {
@@ -1370,6 +1379,7 @@ public com.google.protobuf.Parser
- * User specified settings that are attached to the Cloud Security Command
- * Center (Cloud SCC) organization.
+ * User specified settings that are attached to the Security Command
+ * Center organization.
*
*
* Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings}
@@ -1986,6 +2001,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enableAssetDiscovery.
*/
+ @java.lang.Override
public boolean getEnableAssetDiscovery() {
return enableAssetDiscovery_;
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java
new file mode 100644
index 000000000..05d2df450
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java
@@ -0,0 +1,1359 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1p1beta1/resource.proto
+
+package com.google.cloud.securitycenter.v1p1beta1;
+
+/**
+ *
+ *
+ *
+ * Information related to the Google Cloud resource.
+ *
+ *
+ * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource}
+ */
+public final class Resource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Resource)
+ ResourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Resource.newBuilder() to construct.
+ private Resource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Resource() {
+ name_ = "";
+ project_ = "";
+ projectDisplayName_ = "";
+ parent_ = "";
+ parentDisplayName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Resource();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Resource(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ project_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ projectDisplayName_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parent_ = s;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parentDisplayName_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.securitycenter.v1p1beta1.ResourceProto
+ .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.securitycenter.v1p1beta1.ResourceProto
+ .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.securitycenter.v1p1beta1.Resource.class,
+ com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object project_;
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The project.
+ */
+ @java.lang.Override
+ public java.lang.String getProject() {
+ java.lang.Object ref = project_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ project_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The bytes for project.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectBytes() {
+ java.lang.Object ref = project_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ project_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object projectDisplayName_;
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The projectDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectDisplayName() {
+ java.lang.Object ref = projectDisplayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectDisplayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The bytes for projectDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
+ java.lang.Object ref = projectDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5;
+ private volatile java.lang.Object parentDisplayName_;
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The parentDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getParentDisplayName() {
+ java.lang.Object ref = parentDisplayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parentDisplayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The bytes for parentDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentDisplayNameBytes() {
+ java.lang.Object ref = parentDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parentDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getProjectBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_);
+ }
+ if (!getProjectDisplayNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectDisplayName_);
+ }
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_);
+ }
+ if (!getParentDisplayNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parentDisplayName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getProjectBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_);
+ }
+ if (!getProjectDisplayNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectDisplayName_);
+ }
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_);
+ }
+ if (!getParentDisplayNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Resource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.securitycenter.v1p1beta1.Resource other =
+ (com.google.cloud.securitycenter.v1p1beta1.Resource) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getProject().equals(other.getProject())) return false;
+ if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false;
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getParentDisplayName().equals(other.getParentDisplayName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + PROJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getProject().hashCode();
+ hash = (37 * hash) + PROJECT_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectDisplayName().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PARENT_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getParentDisplayName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Resource prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Information related to the Google Cloud resource.
+ *
+ *
+ * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object project_ = "";
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The project.
+ */
+ public java.lang.String getProject() {
+ java.lang.Object ref = project_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ project_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The bytes for project.
+ */
+ public com.google.protobuf.ByteString getProjectBytes() {
+ java.lang.Object ref = project_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ project_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @param value The project to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProject(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ project_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProject() {
+
+ project_ = getDefaultInstance().getProject();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @param value The bytes for project to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ project_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectDisplayName_ = "";
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The projectDisplayName.
+ */
+ public java.lang.String getProjectDisplayName() {
+ java.lang.Object ref = projectDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The bytes for projectDisplayName.
+ */
+ public com.google.protobuf.ByteString getProjectDisplayNameBytes() {
+ java.lang.Object ref = projectDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @param value The projectDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ projectDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectDisplayName() {
+
+ projectDisplayName_ = getDefaultInstance().getProjectDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @param value The bytes for projectDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ projectDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object parentDisplayName_ = "";
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The parentDisplayName.
+ */
+ public java.lang.String getParentDisplayName() {
+ java.lang.Object ref = parentDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parentDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The bytes for parentDisplayName.
+ */
+ public com.google.protobuf.ByteString getParentDisplayNameBytes() {
+ java.lang.Object ref = parentDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parentDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @param value The parentDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parentDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParentDisplayName() {
+
+ parentDisplayName_ = getDefaultInstance().getParentDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @param value The bytes for parentDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parentDisplayName_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Resource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Resource)
+ private static final com.google.cloud.securitycenter.v1p1beta1.Resource DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Resource();
+ }
+
+ public static com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The full resource name of the resource. See:
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The project.
+ */
+ java.lang.String getProject();
+ /**
+ *
+ *
+ *
+ * The full resource name of project that the resource belongs to.
+ *
+ *
+ * string project = 2;
+ *
+ * @return The bytes for project.
+ */
+ com.google.protobuf.ByteString getProjectBytes();
+
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The projectDisplayName.
+ */
+ java.lang.String getProjectDisplayName();
+ /**
+ *
+ *
+ *
+ * The human readable name of project that the resource belongs to.
+ *
+ *
+ * string project_display_name = 3;
+ *
+ * @return The bytes for projectDisplayName.
+ */
+ com.google.protobuf.ByteString getProjectDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * The full resource name of resource's parent.
+ *
+ *
+ * string parent = 4;
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The parentDisplayName.
+ */
+ java.lang.String getParentDisplayName();
+ /**
+ *
+ *
+ *
+ * The human readable name of resource's parent.
+ *
+ *
+ * string parent_display_name = 5;
+ *
+ * @return The bytes for parentDisplayName.
+ */
+ com.google.protobuf.ByteString getParentDisplayNameBytes();
+}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java
new file mode 100644
index 000000000..29886a593
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/securitycenter/v1p1beta1/resource.proto
+
+package com.google.cloud.securitycenter.v1p1beta1;
+
+public final class ResourceProto {
+ private ResourceProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n4google/cloud/securitycenter/v1p1beta1/"
+ + "resource.proto\022%google.cloud.securitycen"
+ + "ter.v1p1beta1\032\034google/api/annotations.pr"
+ + "oto\"t\n\010Resource\022\014\n\004name\030\001 \001(\t\022\017\n\007project"
+ + "\030\002 \001(\t\022\034\n\024project_display_name\030\003 \001(\t\022\016\n\006"
+ + "parent\030\004 \001(\t\022\033\n\023parent_display_name\030\005 \001("
+ + "\tB\214\002\n)com.google.cloud.securitycenter.v1"
+ + "p1beta1B\rResourceProtoP\001ZSgoogle.golang."
+ + "org/genproto/googleapis/cloud/securityce"
+ + "nter/v1p1beta1;securitycenter\252\002%Google.C"
+ + "loud.SecurityCenter.V1p1Beta1\312\002%Google\\C"
+ + "loud\\SecurityCenter\\V1p1beta1\352\002(Google::"
+ + "Cloud::SecurityCenter::V1p1beta1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ });
+ internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor,
+ new java.lang.String[] {
+ "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java
index 2d7307e2b..1553c10ec 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java
@@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The parent.
*/
+ @java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
@@ -152,6 +153,7 @@ public java.lang.String getParent() {
*
* @return The bytes for parent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java
index e6c2b46f5..da83aed3e 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java
@@ -271,6 +271,10 @@ public State findValueByNumber(int number) {
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
return getDescriptor().getValues().get(ordinal());
}
@@ -318,6 +322,7 @@ private State(int value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -332,6 +337,7 @@ public int getStateValue() {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result =
@@ -354,6 +360,7 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State
*
* @return Whether the duration field is set.
*/
+ @java.lang.Override
public boolean hasDuration() {
return duration_ != null;
}
@@ -368,6 +375,7 @@ public boolean hasDuration() {
*
* @return The duration.
*/
+ @java.lang.Override
public com.google.protobuf.Duration getDuration() {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
@@ -380,6 +388,7 @@ public com.google.protobuf.Duration getDuration() {
*
* .google.protobuf.Duration duration = 2;
*/
+ @java.lang.Override
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
return getDuration();
}
@@ -757,6 +766,7 @@ public Builder mergeFrom(
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -774,6 +784,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -790,6 +801,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result =
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java
index 9a6182e02..84f02a8d5 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java
@@ -22,9 +22,9 @@
*
*
*
- * User specified security marks that are attached to the parent Cloud Security
- * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
- * SCC organization -- they can be modified and viewed by all users who have
+ * User specified security marks that are attached to the parent Security
+ * Command Center resource. Security marks are scoped within a Security Command
+ * Center organization -- they can be modified and viewed by all users who have
* proper permissions on the organization.
*
*
@@ -156,6 +156,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -182,6 +183,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -234,6 +236,7 @@ public int getMarksCount() {
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public boolean containsMarks(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -241,6 +244,7 @@ public boolean containsMarks(java.lang.String key) {
return internalGetMarks().getMap().containsKey(key);
}
/** Use {@link #getMarksMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -300,6 +306,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -492,9 +499,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * User specified security marks that are attached to the parent Cloud Security
- * Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
- * SCC organization -- they can be modified and viewed by all users who have
+ * User specified security marks that are attached to the parent Security
+ * Command Center resource. Security marks are scoped within a Security Command
+ * Center organization -- they can be modified and viewed by all users who have
* proper permissions on the organization.
*
*
@@ -843,6 +850,7 @@ public int getMarksCount() {
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public boolean containsMarks(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -850,6 +858,7 @@ public boolean containsMarks(java.lang.String key) {
return internalGetMarks().getMap().containsKey(key);
}
/** Use {@link #getMarksMap()} instead. */
+ @java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.util.Mapmap<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
throw new java.lang.NullPointerException();
@@ -909,6 +920,7 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
*
* map<string, string> marks = 2;
*/
+ @java.lang.Override
public java.lang.String getMarksOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java
index 967432d30..6d7b62b14 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksName.java
@@ -34,10 +34,10 @@ public class SecurityMarksName implements ResourceName {
@Deprecated
protected SecurityMarksName() {}
- private static final PathTemplate ORGANIZATION_ASSET_PATH_TEMPLATE =
+ private static final PathTemplate ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE =
PathTemplate.createWithoutUrlEncoding(
"organizations/{organization}/assets/{asset}/securityMarks");
- private static final PathTemplate ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE =
+ private static final PathTemplate ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE =
PathTemplate.createWithoutUrlEncoding(
"organizations/{organization}/sources/{source}/findings/{finding}/securityMarks");
@@ -69,14 +69,14 @@ public String getFinding() {
private SecurityMarksName(Builder builder) {
organization = Preconditions.checkNotNull(builder.getOrganization());
asset = Preconditions.checkNotNull(builder.getAsset());
- pathTemplate = ORGANIZATION_ASSET_PATH_TEMPLATE;
+ pathTemplate = ORGANIZATION_ASSET_SECURITY_MARKS_PATH_TEMPLATE;
}
- private SecurityMarksName(OrganizationSourceFindingBuilder builder) {
+ private SecurityMarksName(OrganizationSourceFindingSecurityMarksBuilder builder) {
organization = Preconditions.checkNotNull(builder.getOrganization());
source = Preconditions.checkNotNull(builder.getSource());
finding = Preconditions.checkNotNull(builder.getFinding());
- pathTemplate = ORGANIZATION_SOURCE_FINDING_PATH_TEMPLATE;
+ pathTemplate = ORGANIZATION_SOURCE_FINDING_SECURITY_MARKS_PATH_TEMPLATE;
}
public static Builder newBuilder() {
@@ -84,13 +84,14 @@ public static Builder newBuilder() {
}
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
- public static Builder newOrganizationAssetBuilder() {
+ public static Builder newOrganizationAssetSecurityMarksBuilder() {
return new Builder();
}
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
- public static OrganizationSourceFindingBuilder newOrganizationSourceFindingBuilder() {
- return new OrganizationSourceFindingBuilder();
+ public static OrganizationSourceFindingSecurityMarksBuilder
+ newOrganizationSourceFindingSecurityMarksBuilder() {
+ return new OrganizationSourceFindingSecurityMarksBuilder();
}
public Builder toBuilder() {
@@ -98,18 +99,25 @@ public Builder toBuilder() {
}
public static SecurityMarksName of(String organization, String asset) {
- return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build();
+ return newOrganizationAssetSecurityMarksBuilder()
+ .setOrganization(organization)
+ .setAsset(asset)
+ .build();
}
@BetaApi("The static create methods are not stable yet and may be changed in the future.")
- public static SecurityMarksName ofOrganizationAssetName(String organization, String asset) {
- return newOrganizationAssetBuilder().setOrganization(organization).setAsset(asset).build();
+ public static SecurityMarksName ofOrganizationAssetSecurityMarksName(
+ String organization, String asset) {
+ return newOrganizationAssetSecurityMarksBuilder()
+ .setOrganization(organization)
+ .setAsset(asset)
+ .build();
}
@BetaApi("The static create methods are not stable yet and may be changed in the future.")
- public static SecurityMarksName ofOrganizationSourceFindingName(
+ public static SecurityMarksName ofOrganizationSourceFindingSecurityMarksName(
String organization, String source, String finding) {
- return newOrganizationSourceFindingBuilder()
+ return newOrganizationSourceFindingSecurityMarksBuilder()
.setOrganization(organization)
.setSource(source)
.setFinding(finding)
@@ -121,14 +129,14 @@ public static String format(String organization, String asset) {
}
@BetaApi("The static format methods are not stable yet and may be changed in the future.")
- public static String formatOrganizationAssetName(String organization, String asset) {
+ public static String formatOrganizationAssetSecurityMarksName(String organization, String asset) {
return newBuilder().setOrganization(organization).setAsset(asset).build().toString();
}
@BetaApi("The static format methods are not stable yet and may be changed in the future.")
- public static String formatOrganizationSourceFindingName(
+ public static String formatOrganizationSourceFindingSecurityMarksName(
String organization, String source, String finding) {
- return newOrganizationSourceFindingBuilder()
+ return newOrganizationSourceFindingSecurityMarksBuilder()
.setOrganization(organization)
.setSource(source)
.setFinding(finding)
@@ -140,13 +148,15 @@ public static SecurityMarksName parse(String formattedString) {
if (formattedString.isEmpty()) {
return null;
}
- if (ORGANIZATION_ASSET_PATH_TEMPLATE.matches(formattedString)) {
- Map.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
@@ -790,6 +797,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
* @return The enum numeric value on the wire for state.
*/
+ @java.lang.Override
public int getStateValue() {
return state_;
}
@@ -808,6 +816,7 @@ public int getStateValue() {
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
+
state_ = value;
onChanged();
return this;
@@ -825,6 +834,7 @@ public Builder setStateValue(int value) {
*
* @return The state.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() {
@SuppressWarnings("deprecation")
com.google.cloud.securitycenter.v1p1beta1.Finding.State result =
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java
index 3b7d71c0f..33baea7e1 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java
@@ -22,7 +22,7 @@
*
*
*
- * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * Security Command Center finding source. A finding source
* is an entity or a mechanism that can produce a finding. A source is like a
* container of findings that come from the same scanner, logger, monitor, etc.
*
@@ -145,6 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The name.
*/
+ @java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -170,6 +171,7 @@ public java.lang.String getName() {
*
* @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
@@ -199,6 +201,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* @return The displayName.
*/
+ @java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
@@ -225,6 +228,7 @@ public java.lang.String getDisplayName() {
*
* @return The bytes for displayName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
@@ -245,7 +249,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -256,6 +260,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
* @return The description.
*/
+ @java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -273,7 +278,7 @@ public java.lang.String getDescription() {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -284,6 +289,7 @@ public java.lang.String getDescription() {
*
* @return The bytes for description.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
@@ -477,7 +483,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Cloud Security Command Center's (Cloud SCC) finding source. A finding source
+ * Security Command Center finding source. A finding source
* is an entity or a mechanism that can produce a finding. A source is like a
* container of findings that come from the same scanner, logger, monitor, etc.
*
@@ -901,7 +907,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -929,7 +935,7 @@ public java.lang.String getDescription() {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -957,7 +963,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -984,7 +990,7 @@ public Builder setDescription(java.lang.String value) {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -1007,7 +1013,7 @@ public Builder clearDescription() {
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java
index 24588eeea..ec80e91eb 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java
@@ -93,7 +93,7 @@ public interface SourceOrBuilder
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
@@ -111,7 +111,7 @@ public interface SourceOrBuilder
*
* The description of the source (max of 1024 characters).
* Example:
- * "Cloud Security Scanner is a web security scanner for common
+ * "Web Security Scanner is a web security scanner for common
* vulnerabilities in App Engine applications. It can automatically
* scan and detect four common vulnerabilities, including cross-site-scripting
* (XSS), Flash injection, mixed content (HTTP in HTTPS), and
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java
index 547c1dfcb..939ed7e3a 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java
@@ -153,6 +153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the finding field is set.
*/
+ @java.lang.Override
public boolean hasFinding() {
return finding_ != null;
}
@@ -173,6 +174,7 @@ public boolean hasFinding() {
*
* @return The finding.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
return finding_ == null
? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()
@@ -193,6 +195,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
* .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
return getFinding();
}
@@ -215,6 +218,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -234,6 +238,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -251,6 +256,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
index 100b9b0a9..2994bf955 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the notificationConfig field is set.
*/
+ @java.lang.Override
public boolean hasNotificationConfig() {
return notificationConfig_ != null;
}
@@ -168,6 +169,7 @@ public boolean hasNotificationConfig() {
*
* @return The notificationConfig.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() {
return notificationConfig_ == null
? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()
@@ -184,6 +186,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat
* .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder
getNotificationConfigOrBuilder() {
return getNotificationConfig();
@@ -203,6 +206,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -218,6 +222,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -231,6 +236,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
index fe2b16072..1b893c660 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
@@ -152,6 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the organizationSettings field is set.
*/
+ @java.lang.Override
public boolean hasOrganizationSettings() {
return organizationSettings_ != null;
}
@@ -168,6 +169,7 @@ public boolean hasOrganizationSettings() {
*
* @return The organizationSettings.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings() {
return organizationSettings_ == null
? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance()
@@ -184,6 +186,7 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganiz
* .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder
getOrganizationSettingsOrBuilder() {
return getOrganizationSettings();
@@ -203,6 +206,7 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganiz
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -218,6 +222,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -231,6 +236,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
index 615fa1bf7..db25bd1a6 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
@@ -164,6 +164,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the securityMarks field is set.
*/
+ @java.lang.Override
public boolean hasSecurityMarks() {
return securityMarks_ != null;
}
@@ -180,6 +181,7 @@ public boolean hasSecurityMarks() {
*
* @return The securityMarks.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() {
return securityMarks_ == null
? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()
@@ -196,6 +198,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
* .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
getSecurityMarksOrBuilder() {
return getSecurityMarks();
@@ -217,6 +220,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -234,6 +238,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -249,6 +254,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
@@ -268,6 +274,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
* @return Whether the startTime field is set.
*/
+ @java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
@@ -284,6 +291,7 @@ public boolean hasStartTime() {
*
* @return The startTime.
*/
+ @java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
@@ -298,6 +306,7 @@ public com.google.protobuf.Timestamp getStartTime() {
*
* .google.protobuf.Timestamp start_time = 3;
*/
+ @java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
index 085a1bc52..0efff707f 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
@@ -148,6 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the source field is set.
*/
+ @java.lang.Override
public boolean hasSource() {
return source_ != null;
}
@@ -164,6 +165,7 @@ public boolean hasSource() {
*
* @return The source.
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.Source getSource() {
return source_ == null
? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()
@@ -180,6 +182,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() {
* .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
+ @java.lang.Override
public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() {
return getSource();
}
@@ -198,6 +201,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil
*
* @return Whether the updateMask field is set.
*/
+ @java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
@@ -213,6 +217,7 @@ public boolean hasUpdateMask() {
*
* @return The updateMask.
*/
+ @java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
@@ -226,6 +231,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
*
* .google.protobuf.FieldMask update_mask = 2;
*/
+ @java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
index aaa18bcba..bfcae3688 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-//
syntax = "proto3";
@@ -30,30 +29,31 @@ option java_package = "com.google.cloud.securitycenter.v1p1beta1";
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1";
option ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1";
-// Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
-// Platform (GCP) resource.
+// Security Command Center representation of a Google Cloud
+// resource.
//
-// The Asset is a Cloud SCC resource that captures information about a single
-// GCP resource. All modifications to an Asset are only within the context of
-// Cloud SCC and don't affect the referenced GCP resource.
+// The Asset is a Security Command Center resource that captures information
+// about a single Google Cloud resource. All modifications to an Asset are only
+// within the context of Security Command Center and don't affect the referenced
+// Google Cloud resource.
message Asset {
option (google.api.resource) = {
type: "securitycenter.googleapis.com/Asset"
pattern: "organizations/{organization}/assets/{asset}"
};
- // Cloud SCC managed properties. These properties are managed by Cloud SCC and
- // cannot be modified by the user.
+ // Security Command Center managed properties. These properties are managed by
+ // Security Command Center and cannot be modified by the user.
message SecurityCenterProperties {
- // The full resource name of the GCP resource this asset
+ // The full resource name of the Google Cloud resource this asset
// represents. This field is immutable after create time. See:
// https://cloud.google.com/apis/design/resource_names#full_resource_name
string resource_name = 1;
- // The type of the GCP resource. Examples include: APPLICATION,
+ // The type of the Google Cloud resource. Examples include: APPLICATION,
// PROJECT, and ORGANIZATION. This is a case insensitive field defined by
- // Cloud SCC and/or the producer of the resource and is immutable
- // after create time.
+ // Security Command Center and/or the producer of the resource and is
+ // immutable after create time.
string resource_type = 2;
// The full resource name of the immediate parent of the resource. See:
@@ -77,12 +77,13 @@ message Asset {
string resource_project_display_name = 8;
}
- // IAM Policy information associated with the GCP resource described by the
- // Cloud SCC asset. This information is managed and defined by the GCP
- // resource and cannot be modified by the user.
+ // Cloud IAM Policy information associated with the Google Cloud resource
+ // described by the Security Command Center asset. This information is managed
+ // and defined by the Google Cloud resource and cannot be modified by the
+ // user.
message IamPolicy {
// The JSON representation of the Policy associated with the asset.
- // See https://cloud.google.com/iam/reference/rest/v1/Policy for
+ // See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
// format details.
string policy_blob = 1;
}
@@ -93,27 +94,28 @@ message Asset {
// "organizations/{organization_id}/assets/{asset_id}".
string name = 1;
- // Cloud SCC managed properties. These properties are managed by
- // Cloud SCC and cannot be modified by the user.
+ // Security Command Center managed properties. These properties are managed by
+ // Security Command Center and cannot be modified by the user.
SecurityCenterProperties security_center_properties = 2;
// Resource managed properties. These properties are managed and defined by
- // the GCP resource and cannot be modified by the user.
+ // the Google Cloud resource and cannot be modified by the user.
map