From 1e975b4ada521368934d10e61290c2a41eee51b2 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 14 Mar 2019 00:50:15 -0700 Subject: [PATCH] Regenerate securitycenter client --- .../securitycenter/v1/GroupAssetsRequest.java | 175 ------------------ .../v1/GroupAssetsRequestOrBuilder.java | 25 --- .../v1/GroupFindingsRequest.java | 175 ------------------ .../v1/GroupFindingsRequestOrBuilder.java | 25 --- .../securitycenter/v1/ListAssetsRequest.java | 175 ------------------ .../v1/ListAssetsRequestOrBuilder.java | 25 --- .../v1/ListFindingsRequest.java | 175 ------------------ .../v1/ListFindingsRequestOrBuilder.java | 25 --- .../v1/SecuritycenterService.java | 125 ++++++------- .../v1/securitycenter_service.proto | 28 +-- .../synth.metadata | 10 +- 11 files changed, 67 insertions(+), 896 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index a6cb10133240..60b5924dcccd 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -26,7 +26,6 @@ private GroupAssetsRequest() { parent_ = ""; filter_ = ""; groupBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private GroupAssetsRequest( readTime_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -498,53 +490,6 @@ 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; - */ - 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; - */ - 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_; /** @@ -637,9 +582,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_); } @@ -670,9 +612,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_); } @@ -707,7 +646,6 @@ public boolean equals(final java.lang.Object obj) { if (hasReadTime()) { result = result && getReadTime().equals(other.getReadTime()); } - result = result && getHaving().equals(other.getHaving()); result = result && getPageToken().equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); result = result && unknownFields.equals(other.unknownFields); @@ -735,8 +673,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; @@ -905,8 +841,6 @@ public Builder clear() { readTime_ = null; readTimeBuilder_ = null; } - having_ = ""; - pageToken_ = ""; pageSize_ = 0; @@ -951,7 +885,6 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { } else { result.readTime_ = readTimeBuilder_.build(); } - result.having_ = having_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; onBuilt(); @@ -1022,10 +955,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsRequest o if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -2062,110 +1991,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; - */ - 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; - */ - 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; - */ - 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; - */ - 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; - */ - 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_ = ""; /** * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java index d213fa6fb270..56a1dee4ee8a 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -263,31 +263,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; - */ - 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; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index 35bbf22866a8..fcc33bbfdae6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -26,7 +26,6 @@ private GroupFindingsRequest() { parent_ = ""; filter_ = ""; groupBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private GroupFindingsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -493,53 +485,6 @@ 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; - */ - 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; - */ - 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,9 +577,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_); } @@ -665,9 +607,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_); } @@ -702,7 +641,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { result = result && getCompareDuration().equals(other.getCompareDuration()); } - result = result && getHaving().equals(other.getHaving()); result = result && getPageToken().equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); result = result && unknownFields.equals(other.unknownFields); @@ -730,8 +668,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; @@ -900,8 +836,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - pageToken_ = ""; pageSize_ = 0; @@ -946,7 +880,6 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; onBuilt(); @@ -1017,10 +950,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRequest if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -2043,110 +1972,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; - */ - 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; - */ - 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; - */ - 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; - */ - 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; - */ - 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_ = ""; /** * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java index 7f6ed23a6616..28e70e904286 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -258,31 +258,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; - */ - 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; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index 89f6093979cf..4dd033794a61 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -26,7 +26,6 @@ private ListAssetsRequest() { parent_ = ""; filter_ = ""; orderBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private ListAssetsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -503,53 +495,6 @@ 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; - */ - 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; - */ - 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_; /** @@ -690,9 +635,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()); } @@ -726,9 +668,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()); } @@ -766,7 +705,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { result = result && getCompareDuration().equals(other.getCompareDuration()); } - result = result && getHaving().equals(other.getHaving()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); @@ -798,8 +736,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(); @@ -971,8 +907,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { @@ -1023,7 +957,6 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { @@ -1099,10 +1032,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsRequest ot if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } @@ -2114,110 +2043,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; - */ - 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; - */ - 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; - */ - 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; - */ - 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; - */ - 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_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java index f66ea585751b..ee09babbeeba 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -253,31 +253,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; - */ - 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; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index 0987f9b8273a..b061bedc7738 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -26,7 +26,6 @@ private ListFindingsRequest() { parent_ = ""; filter_ = ""; orderBy_ = ""; - having_ = ""; pageToken_ = ""; pageSize_ = 0; } @@ -104,13 +103,6 @@ private ListFindingsRequest( compareDuration_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - having_ = s; break; } case 58: @@ -503,53 +495,6 @@ 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; - */ - 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; - */ - 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_; /** @@ -687,9 +632,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()); } @@ -723,9 +665,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()); } @@ -763,7 +702,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCompareDuration()) { result = result && getCompareDuration().equals(other.getCompareDuration()); } - result = result && getHaving().equals(other.getHaving()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); @@ -795,8 +733,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(); @@ -969,8 +905,6 @@ public Builder clear() { compareDuration_ = null; compareDurationBuilder_ = null; } - having_ = ""; - if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { @@ -1021,7 +955,6 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { } else { result.compareDuration_ = compareDurationBuilder_.build(); } - result.having_ = having_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { @@ -1097,10 +1030,6 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsRequest if (other.hasCompareDuration()) { mergeCompareDuration(other.getCompareDuration()); } - if (!other.getHaving().isEmpty()) { - having_ = other.having_; - onChanged(); - } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } @@ -2112,110 +2041,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; - */ - 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; - */ - 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; - */ - 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; - */ - 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; - */ - 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_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java index 77f4daefa6c5..fe3376385d11 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -253,31 +253,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; - */ - 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; - */ - com.google.protobuf.ByteString getHavingBytes(); - /** * * diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java index acd430ecef07..f1bc76e24cd5 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -140,62 +140,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&.google.cloud.securitycenter.v1.Source\"" + ".\n\036GetOrganizationSettingsRequest\022\014\n\004nam" + "e\030\001 \001(\t\" \n\020GetSourceRequest\022\014\n\004name\030\001 \001(" - + "\t\"\341\001\n\022GroupAssetsRequest\022\016\n\006parent\030\001 \001(\t" + + "\t\"\327\001\n\022GroupAssetsRequest\022\016\n\006parent\030\001 \001(\t" + "\022\016\n\006filter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(\t\0223\n\020co" + "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" + "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\016\n\006having\030\006 \001(\t\022\022\n\npage_t" - + "oken\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\270\001\n\023GroupA" - + "ssetsResponse\022E\n\020group_by_results\030\001 \003(\0132" - + "+.google.cloud.securitycenter.v1.GroupRe" - + "sult\022-\n\tread_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\n" - + "total_size\030\004 \001(\005\"\343\001\n\024GroupFindingsReques" - + "t\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010gro" - + "up_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google." - + "protobuf.Timestamp\0223\n\020compare_duration\030\005" - + " \001(\0132\031.google.protobuf.Duration\022\016\n\006havin" - + "g\030\006 \001(\t\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size" - + "\030\010 \001(\005\"\272\001\n\025GroupFindingsResponse\022E\n\020grou" - + "p_by_results\030\001 \003(\0132+.google.cloud.securi" - + "tycenter.v1.GroupResult\022-\n\tread_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022\027\n\017next_p" - + "age_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\270\001\n\013" - + "GroupResult\022O\n\nproperties\030\001 \003(\0132;.google" - + ".cloud.securitycenter.v1.GroupResult.Pro" - + "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value:\0028\001\"K\n\022ListSourcesReq" - + "uest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t" - + "\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesRespon" - + "se\0227\n\007sources\030\001 \003(\0132&.google.cloud.secur" - + "itycenter.v1.Source\022\027\n\017next_page_token\030\002" - + " \001(\t\"\220\002\n\021ListAssetsRequest\022\016\n\006parent\030\001 \001" - + "(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\t" - + "read_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "amp\0223\n\020compare_duration\030\005 \001(\0132\031.google.p" - + "rotobuf.Duration\022\016\n\006having\030\006 \001(\t\022.\n\nfiel" - + "d_mask\030\007 \001(\0132\032.google.protobuf.FieldMask" - + "\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"" - + "\303\003\n\022ListAssetsResponse\022`\n\023list_assets_re" - + "sults\030\001 \003(\0132C.google.cloud.securitycente" - + "r.v1.ListAssetsResponse.ListAssetsResult" - + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" - + "l_size\030\004 \001(\005\032\356\001\n\020ListAssetsResult\0224\n\005ass" - + "et\030\001 \001(\0132%.google.cloud.securitycenter.v" - + "1.Asset\022e\n\014state_change\030\002 \001(\0162O.google.c" - + "loud.securitycenter.v1.ListAssetsRespons" - + "e.ListAssetsResult.StateChange\"=\n\013StateC" - + "hange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020" - + "\002\022\n\n\006ACTIVE\020\003\"\222\002\n\023ListFindingsRequest\022\016\n" - + "\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_b" - + "y\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.prot" - + "obuf.Timestamp\0223\n\020compare_duration\030\005 \001(\013" - + "2\031.google.protobuf.Duration\022\016\n\006having\030\006 " - + "\001(\t\022.\n\nfield_mask\030\007 \001(\0132\032.google.protobu" - + "f.FieldMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_" - + "size\030\t \001(\005\"\345\003\n\024ListFindingsResponse\022f\n\025l" + + "obuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpa" + + "ge_size\030\010 \001(\005J\004\010\006\020\007\"\270\001\n\023GroupAssetsRespo" + + "nse\022E\n\020group_by_results\030\001 \003(\0132+.google.c" + + "loud.securitycenter.v1.GroupResult\022-\n\tre" + + "ad_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size" + + "\030\004 \001(\005\"\331\001\n\024GroupFindingsRequest\022\016\n\006paren" + + "t\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020\n\010group_by\030\003 \001(" + + "\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestamp\0223\n\020compare_duration\030\005 \001(\0132\031.goo" + + "gle.protobuf.Duration\022\022\n\npage_token\030\007 \001(" + + "\t\022\021\n\tpage_size\030\010 \001(\005J\004\010\006\020\007\"\272\001\n\025GroupFind" + + "ingsResponse\022E\n\020group_by_results\030\001 \003(\0132+" + + ".google.cloud.securitycenter.v1.GroupRes" + + "ult\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\nt" + + "otal_size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nprope" + + "rties\030\001 \003(\0132;.google.cloud.securitycente" + + "r.v1.GroupResult.PropertiesEntry\022\r\n\005coun" + + "t\030\002 \001(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" + + "%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:\002" + + "8\001\"K\n\022ListSourcesRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"" + + "g\n\023ListSourcesResponse\0227\n\007sources\030\001 \003(\0132" + + "&.google.cloud.securitycenter.v1.Source\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\206\002\n\021ListAssetsR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\020" + + "\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0223\n\020compare_durat" + + "ion\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\n" + + "field_mask\030\007 \001(\0132\032.google.protobuf.Field" + + "Mask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t " + + "\001(\005J\004\010\006\020\007\"\303\003\n\022ListAssetsResponse\022`\n\023list" + + "_assets_results\030\001 \003(\0132C.google.cloud.sec" + + "uritycenter.v1.ListAssetsResponse.ListAs" + + "setsResult\022-\n\tread_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\027\n\017next_page_token\030\003 \001" + + "(\t\022\022\n\ntotal_size\030\004 \001(\005\032\356\001\n\020ListAssetsRes" + + "ult\0224\n\005asset\030\001 \001(\0132%.google.cloud.securi" + + "tycenter.v1.Asset\022e\n\014state_change\030\002 \001(\0162" + + "O.google.cloud.securitycenter.v1.ListAss" + + "etsResponse.ListAssetsResult.StateChange" + + "\"=\n\013StateChange\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013" + + "\n\007REMOVED\020\002\022\n\n\006ACTIVE\020\003\"\210\002\n\023ListFindings" + + "Request\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022" + + "\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0223\n\020compare_dura" + + "tion\030\005 \001(\0132\031.google.protobuf.Duration\022.\n" + + "\nfield_mask\030\007 \001(\0132\032.google.protobuf.Fiel" + + "dMask\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t" + + " \001(\005J\004\010\006\020\007\"\345\003\n\024ListFindingsResponse\022f\n\025l" + "ist_findings_results\030\001 \003(\0132G.google.clou" + "d.securitycenter.v1.ListFindingsResponse" + ".ListFindingsResult\022-\n\tread_time\030\002 \001(\0132\032" @@ -382,14 +381,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, new java.lang.String[] { - "Parent", - "Filter", - "GroupBy", - "CompareDuration", - "ReadTime", - "Having", - "PageToken", - "PageSize", + "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = getDescriptor().getMessageTypes().get(5); @@ -405,14 +397,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, new java.lang.String[] { - "Parent", - "Filter", - "GroupBy", - "ReadTime", - "CompareDuration", - "Having", - "PageToken", - "PageSize", + "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = getDescriptor().getMessageTypes().get(7); @@ -467,7 +452,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "OrderBy", "ReadTime", "CompareDuration", - "Having", "FieldMask", "PageToken", "PageSize", @@ -501,7 +485,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "OrderBy", "ReadTime", "CompareDuration", - "Having", "FieldMask", "PageToken", "PageSize", diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto index f49fb8528d0f..7a5d2e744505 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -331,11 +331,6 @@ message GroupAssetsRequest { // NOW. google.protobuf.Timestamp read_time = 5; - // 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; - // The value returned by the last `GroupAssetsResponse`; indicates // that this is a continuation of a prior `GroupAssets` call, and that the // system should return the next page of data. @@ -344,6 +339,8 @@ message GroupAssetsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 8; + + reserved 6; } // Response message for grouping by assets. @@ -446,11 +443,6 @@ message GroupFindingsRequest { // `group_by`. google.protobuf.Duration compare_duration = 5; - // 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; - // The value returned by the last `GroupFindingsResponse`; indicates // that this is a continuation of a prior `GroupFindings` call, and // that the system should return the next page of data. @@ -459,6 +451,8 @@ message GroupFindingsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 8; + + reserved 6; } // Response message for group by findings. @@ -591,11 +585,6 @@ message ListAssetsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // 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; - // Optional. // // A field mask to specify the ListAssetsResult fields to be listed in the @@ -611,6 +600,8 @@ message ListAssetsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 9; + + reserved 6; } // Response message for listing assets. @@ -735,11 +726,6 @@ message ListFindingsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // 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; - // Optional. // // A field mask to specify the Finding fields to be listed in the response. @@ -754,6 +740,8 @@ message ListFindingsRequest { // The maximum number of results to return in a single response. Default is // 10, minimum is 1, maximum is 1000. int32 page_size = 9; + + reserved 6; } // Response message for listing findings. diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index e0717b650ab4..9d1ae46819c9 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-12T07:50:35.842098Z", + "updateTime": "2019-03-14T07:50:15.054260Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.16", - "dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319" + "version": "0.16.17", + "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78", - "internalRef": "237945492" + "sha": "d05a746ba27b89374c7407c88c0d5dabfb0afc7c", + "internalRef": "238372434" } } ],