Skip to content

Commit c4146e5

Browse files
chore(deps): [cloudasset] Update gapic-generator-java to 2.26.0 (#9869)
* feat: add support for directly attached and effective tags docs: clarify comments for tags and effective tags Clients can search resources filtered by effective tags and start to use the new `tags` field instead of old `tag_key`, `tag_value`, `tag_value_id` fields to access directly attached tags. PiperOrigin-RevId: 567554529 Source-Link: googleapis/googleapis@1a3ea87 Source-Link: https://github.com/googleapis/googleapis-gen/commit/df4f7ba41a807a193b48afdba8d4aef35636875a Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiZGY0ZjdiYTQxYTgwN2ExOTNiNDhhZmRiYThkNGFlZjM1NjM2ODc1YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(deps): Update gapic-generator-java to 2.26.0 PiperOrigin-RevId: 567624307 Source-Link: googleapis/googleapis@2ecf4de Source-Link: https://github.com/googleapis/googleapis-gen/commit/a5cfbd9a05b3a134e92886114db776fb33cec9f2 Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiYTVjZmJkOWEwNWIzYTEzNGU5Mjg4NjExNGRiNzc2ZmIzM2NlYzlmMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8802448 commit c4146e5

26 files changed

Lines changed: 7146 additions & 1245 deletions

File tree

‎java-asset/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.22.0</version>
23+
<version>26.23.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.27.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.28.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

‎java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java‎

Lines changed: 58 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,47 +1100,71 @@ public final UnaryCallable<DeleteFeedRequest, Empty> deleteFeedCallable() {
11001100
* the specified `scope`.
11011101
* <p>Examples:
11021102
* <ul>
1103-
* <li>`name:Important` to find Google Cloud resources whose name contains "Important" as a
1103+
* <li>`name:Important` to find Google Cloud resources whose name contains `Important` as a
11041104
* word.
1105-
* <li>`name=Important` to find the Google Cloud resource whose name is exactly "Important".
1105+
* <li>`name=Important` to find the Google Cloud resource whose name is exactly `Important`.
11061106
* <li>`displayName:Impor&#42;` to find Google Cloud resources whose display name contains
1107-
* "Impor" as a prefix of any word in the field.
1107+
* `Impor` as a prefix of any word in the field.
11081108
* <li>`location:us-west&#42;` to find Google Cloud resources whose location contains both
1109-
* "us" and "west" as prefixes.
1110-
* <li>`labels:prod` to find Google Cloud resources whose labels contain "prod" as a key or
1109+
* `us` and `west` as prefixes.
1110+
* <li>`labels:prod` to find Google Cloud resources whose labels contain `prod` as a key or
11111111
* value.
1112-
* <li>`labels.env:prod` to find Google Cloud resources that have a label "env" and its
1113-
* value is "prod".
1114-
* <li>`labels.env:&#42;` to find Google Cloud resources that have a label "env".
1112+
* <li>`labels.env:prod` to find Google Cloud resources that have a label `env` and its
1113+
* value is `prod`.
1114+
* <li>`labels.env:&#42;` to find Google Cloud resources that have a label `env`.
1115+
* <li>`tagKeys:env` to find Google Cloud resources that have directly attached tags where
1116+
* the
1117+
* [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
1118+
* .`namespacedName` contains `env`.
1119+
* <li>`tagValues:prod&#42;` to find Google Cloud resources that have directly attached tags
1120+
* where the
1121+
* [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1122+
* .`namespacedName` contains a word prefixed by `prod`.
1123+
* <li>`tagValueIds=tagValues/123` to find Google Cloud resources that have directly
1124+
* attached tags where the
1125+
* [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1126+
* .`name` is exactly `tagValues/123`.
1127+
* <li>`effectiveTagKeys:env` to find Google Cloud resources that have directly attached or
1128+
* inherited tags where the
1129+
* [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
1130+
* .`namespacedName` contains `env`.
1131+
* <li>`effectiveTagValues:prod&#42;` to find Google Cloud resources that have directly
1132+
* attached or inherited tags where the
1133+
* [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1134+
* .`namespacedName` contains a word prefixed by `prod`.
1135+
* <li>`effectiveTagValueIds=tagValues/123` to find Google Cloud resources that have
1136+
* directly attached or inherited tags where the
1137+
* [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1138+
* .`name` is exactly `tagValues/123`.
11151139
* <li>`kmsKey:key` to find Google Cloud resources encrypted with a customer-managed
1116-
* encryption key whose name contains "key" as a word. This field is deprecated. Please
1140+
* encryption key whose name contains `key` as a word. This field is deprecated. Please
11171141
* use the `kmsKeys` field to retrieve Cloud KMS key information.
11181142
* <li>`kmsKeys:key` to find Google Cloud resources encrypted with customer-managed
1119-
* encryption keys whose name contains the word "key".
1143+
* encryption keys whose name contains the word `key`.
11201144
* <li>`relationships:instance-group-1` to find Google Cloud resources that have
1121-
* relationships with "instance-group-1" in the related resource name.
1145+
* relationships with `instance-group-1` in the related resource name.
11221146
* <li>`relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine instances that have
1123-
* relationships of type "INSTANCE_TO_INSTANCEGROUP".
1147+
* relationships of type `INSTANCE_TO_INSTANCEGROUP`.
11241148
* <li>`relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find Compute Engine
1125-
* instances that have relationships with "instance-group-1" in the Compute Engine
1126-
* instance group resource name, for relationship type "INSTANCE_TO_INSTANCEGROUP".
1127-
* <li>`state:ACTIVE` to find Google Cloud resources whose state contains "ACTIVE" as a
1149+
* instances that have relationships with `instance-group-1` in the Compute Engine
1150+
* instance group resource name, for relationship type `INSTANCE_TO_INSTANCEGROUP`.
1151+
* <li>`state:ACTIVE` to find Google Cloud resources whose state contains `ACTIVE` as a
11281152
* word.
11291153
* <li>`NOT state:ACTIVE` to find Google Cloud resources whose state doesn't contain
1130-
* "ACTIVE" as a word.
1154+
* `ACTIVE` as a word.
11311155
* <li>`createTime&lt;1609459200` to find Google Cloud resources that were created before
1132-
* "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00
1133-
* UTC" in seconds.
1156+
* `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of `2021-01-01
1157+
* 00:00:00 UTC` in seconds.
11341158
* <li>`updateTime&gt;1609459200` to find Google Cloud resources that were updated after
1135-
* "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00
1136-
* UTC" in seconds.
1137-
* <li>`Important` to find Google Cloud resources that contain "Important" as a word in any
1159+
* `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of `2021-01-01
1160+
* 00:00:00 UTC` in seconds.
1161+
* <li>`Important` to find Google Cloud resources that contain `Important` as a word in any
11381162
* of the searchable fields.
1139-
* <li>`Impor&#42;` to find Google Cloud resources that contain "Impor" as a prefix of any
1163+
* <li>`Impor&#42;` to find Google Cloud resources that contain `Impor` as a prefix of any
11401164
* word in any of the searchable fields.
11411165
* <li>`Important location:(us-west1 OR global)` to find Google Cloud resources that contain
1142-
* "Important" as a word in any of the searchable fields and are also located in the
1143-
* "us-west1" region or the "global" location.
1166+
* `Important` as a word in any of the searchable fields and are also located in the
1167+
* `us-west1` region or the `global` location.
11441168
* </ul>
11451169
*
11461170
* @param assetTypes Optional. A list of asset types that this request searches for. If empty, it
@@ -1745,18 +1769,18 @@ public final UnaryCallable<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveC
17451769

17461770
// AUTO-GENERATED DOCUMENTATION AND METHOD.
17471771
/**
1748-
* Issue a job that queries assets using a SQL statement compatible with [BigQuery Standard
1749-
* SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1772+
* Issue a job that queries assets using a SQL statement compatible with [BigQuery
1773+
* SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
17501774
*
17511775
* <p>If the query execution finishes within timeout and there's no pagination, the full query
17521776
* results will be returned in the `QueryAssetsResponse`.
17531777
*
17541778
* <p>Otherwise, full query results can be obtained by issuing extra requests with the
17551779
* `job_reference` from the a previous `QueryAssets` call.
17561780
*
1757-
* <p>Note, the query result has approximately 10 GB limitation enforced by BigQuery
1758-
* https://cloud.google.com/bigquery/docs/best-practices-performance-output, queries return larger
1759-
* results will result in errors.
1781+
* <p>Note, the query result has approximately 10 GB limitation enforced by
1782+
* [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output). Queries
1783+
* return larger results will result in errors.
17601784
*
17611785
* <p>Sample code:
17621786
*
@@ -1788,18 +1812,18 @@ public final QueryAssetsResponse queryAssets(QueryAssetsRequest request) {
17881812

17891813
// AUTO-GENERATED DOCUMENTATION AND METHOD.
17901814
/**
1791-
* Issue a job that queries assets using a SQL statement compatible with [BigQuery Standard
1792-
* SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1815+
* Issue a job that queries assets using a SQL statement compatible with [BigQuery
1816+
* SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
17931817
*
17941818
* <p>If the query execution finishes within timeout and there's no pagination, the full query
17951819
* results will be returned in the `QueryAssetsResponse`.
17961820
*
17971821
* <p>Otherwise, full query results can be obtained by issuing extra requests with the
17981822
* `job_reference` from the a previous `QueryAssets` call.
17991823
*
1800-
* <p>Note, the query result has approximately 10 GB limitation enforced by BigQuery
1801-
* https://cloud.google.com/bigquery/docs/best-practices-performance-output, queries return larger
1802-
* results will result in errors.
1824+
* <p>Note, the query result has approximately 10 GB limitation enforced by
1825+
* [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output). Queries
1826+
* return larger results will result in errors.
18031827
*
18041828
* <p>Sample code:
18051829
*

‎java-asset/google-cloud-asset/src/main/resources/META-INF/native-image/com.google.cloud.asset.v1/reflect-config.json‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,24 @@
11691169
"allDeclaredClasses": true,
11701170
"allPublicClasses": true
11711171
},
1172+
{
1173+
"name": "com.google.cloud.asset.v1.EffectiveTagDetails",
1174+
"queryAllDeclaredConstructors": true,
1175+
"queryAllPublicConstructors": true,
1176+
"queryAllDeclaredMethods": true,
1177+
"allPublicMethods": true,
1178+
"allDeclaredClasses": true,
1179+
"allPublicClasses": true
1180+
},
1181+
{
1182+
"name": "com.google.cloud.asset.v1.EffectiveTagDetails$Builder",
1183+
"queryAllDeclaredConstructors": true,
1184+
"queryAllPublicConstructors": true,
1185+
"queryAllDeclaredMethods": true,
1186+
"allPublicMethods": true,
1187+
"allDeclaredClasses": true,
1188+
"allPublicClasses": true
1189+
},
11721190
{
11731191
"name": "com.google.cloud.asset.v1.ExportAssetsRequest",
11741192
"queryAllDeclaredConstructors": true,
@@ -2285,6 +2303,24 @@
22852303
"allDeclaredClasses": true,
22862304
"allPublicClasses": true
22872305
},
2306+
{
2307+
"name": "com.google.cloud.asset.v1.Tag",
2308+
"queryAllDeclaredConstructors": true,
2309+
"queryAllPublicConstructors": true,
2310+
"queryAllDeclaredMethods": true,
2311+
"allPublicMethods": true,
2312+
"allDeclaredClasses": true,
2313+
"allPublicClasses": true
2314+
},
2315+
{
2316+
"name": "com.google.cloud.asset.v1.Tag$Builder",
2317+
"queryAllDeclaredConstructors": true,
2318+
"queryAllPublicConstructors": true,
2319+
"queryAllDeclaredMethods": true,
2320+
"allPublicMethods": true,
2321+
"allDeclaredClasses": true,
2322+
"allPublicClasses": true
2323+
},
22882324
{
22892325
"name": "com.google.cloud.asset.v1.TemporalAsset",
22902326
"queryAllDeclaredConstructors": true,

‎java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java‎

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class AssetServiceGrpc {
3232

3333
private AssetServiceGrpc() {}
3434

35-
public static final String SERVICE_NAME = "google.cloud.asset.v1.AssetService";
35+
public static final java.lang.String SERVICE_NAME = "google.cloud.asset.v1.AssetService";
3636

3737
// Static method descriptors that strictly reflect the proto.
3838
private static volatile io.grpc.MethodDescriptor<
@@ -1349,16 +1349,14 @@ default void analyzeMove(
13491349
*
13501350
* <pre>
13511351
* Issue a job that queries assets using a SQL statement compatible with
1352-
* [BigQuery Standard
1353-
* SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1352+
* [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
13541353
* If the query execution finishes within timeout and there's no pagination,
13551354
* the full query results will be returned in the `QueryAssetsResponse`.
13561355
* Otherwise, full query results can be obtained by issuing extra requests
13571356
* with the `job_reference` from the a previous `QueryAssets` call.
13581357
* Note, the query result has approximately 10 GB limitation enforced by
1359-
* BigQuery
1360-
* https://cloud.google.com/bigquery/docs/best-practices-performance-output,
1361-
* queries return larger results will result in errors.
1358+
* [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
1359+
* Queries return larger results will result in errors.
13621360
* </pre>
13631361
*/
13641362
default void queryAssets(
@@ -1799,16 +1797,14 @@ public void analyzeMove(
17991797
*
18001798
* <pre>
18011799
* Issue a job that queries assets using a SQL statement compatible with
1802-
* [BigQuery Standard
1803-
* SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1800+
* [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
18041801
* If the query execution finishes within timeout and there's no pagination,
18051802
* the full query results will be returned in the `QueryAssetsResponse`.
18061803
* Otherwise, full query results can be obtained by issuing extra requests
18071804
* with the `job_reference` from the a previous `QueryAssets` call.
18081805
* Note, the query result has approximately 10 GB limitation enforced by
1809-
* BigQuery
1810-
* https://cloud.google.com/bigquery/docs/best-practices-performance-output,
1811-
* queries return larger results will result in errors.
1806+
* [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
1807+
* Queries return larger results will result in errors.
18121808
* </pre>
18131809
*/
18141810
public void queryAssets(
@@ -2221,16 +2217,14 @@ public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove(
22212217
*
22222218
* <pre>
22232219
* Issue a job that queries assets using a SQL statement compatible with
2224-
* [BigQuery Standard
2225-
* SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
2220+
* [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
22262221
* If the query execution finishes within timeout and there's no pagination,
22272222
* the full query results will be returned in the `QueryAssetsResponse`.
22282223
* Otherwise, full query results can be obtained by issuing extra requests
22292224
* with the `job_reference` from the a previous `QueryAssets` call.
22302225
* Note, the query result has approximately 10 GB limitation enforced by
2231-
* BigQuery
2232-
* https://cloud.google.com/bigquery/docs/best-practices-performance-output,
2233-
* queries return larger results will result in errors.
2226+
* [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
2227+
* Queries return larger results will result in errors.
22342228
* </pre>
22352229
*/
22362230
public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets(
@@ -2616,16 +2610,14 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
26162610
*
26172611
* <pre>
26182612
* Issue a job that queries assets using a SQL statement compatible with
2619-
* [BigQuery Standard
2620-
* SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
2613+
* [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
26212614
* If the query execution finishes within timeout and there's no pagination,
26222615
* the full query results will be returned in the `QueryAssetsResponse`.
26232616
* Otherwise, full query results can be obtained by issuing extra requests
26242617
* with the `job_reference` from the a previous `QueryAssets` call.
26252618
* Note, the query result has approximately 10 GB limitation enforced by
2626-
* BigQuery
2627-
* https://cloud.google.com/bigquery/docs/best-practices-performance-output,
2628-
* queries return larger results will result in errors.
2619+
* [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
2620+
* Queries return larger results will result in errors.
26292621
* </pre>
26302622
*/
26312623
public com.google.common.util.concurrent.ListenableFuture<
@@ -3145,9 +3137,9 @@ private static final class AssetServiceFileDescriptorSupplier
31453137
private static final class AssetServiceMethodDescriptorSupplier
31463138
extends AssetServiceBaseDescriptorSupplier
31473139
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
3148-
private final String methodName;
3140+
private final java.lang.String methodName;
31493141

3150-
AssetServiceMethodDescriptorSupplier(String methodName) {
3142+
AssetServiceMethodDescriptorSupplier(java.lang.String methodName) {
31513143
this.methodName = methodName;
31523144
}
31533145

‎java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class AssetServiceGrpc {
3232

3333
private AssetServiceGrpc() {}
3434

35-
public static final String SERVICE_NAME = "google.cloud.asset.v1p1beta1.AssetService";
35+
public static final java.lang.String SERVICE_NAME = "google.cloud.asset.v1p1beta1.AssetService";
3636

3737
// Static method descriptors that strictly reflect the proto.
3838
private static volatile io.grpc.MethodDescriptor<
@@ -508,9 +508,9 @@ private static final class AssetServiceFileDescriptorSupplier
508508
private static final class AssetServiceMethodDescriptorSupplier
509509
extends AssetServiceBaseDescriptorSupplier
510510
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
511-
private final String methodName;
511+
private final java.lang.String methodName;
512512

513-
AssetServiceMethodDescriptorSupplier(String methodName) {
513+
AssetServiceMethodDescriptorSupplier(java.lang.String methodName) {
514514
this.methodName = methodName;
515515
}
516516

‎java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class AssetServiceGrpc {
3232

3333
private AssetServiceGrpc() {}
3434

35-
public static final String SERVICE_NAME = "google.cloud.asset.v1p2beta1.AssetService";
35+
public static final java.lang.String SERVICE_NAME = "google.cloud.asset.v1p2beta1.AssetService";
3636

3737
// Static method descriptors that strictly reflect the proto.
3838
private static volatile io.grpc.MethodDescriptor<
@@ -776,9 +776,9 @@ private static final class AssetServiceFileDescriptorSupplier
776776
private static final class AssetServiceMethodDescriptorSupplier
777777
extends AssetServiceBaseDescriptorSupplier
778778
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
779-
private final String methodName;
779+
private final java.lang.String methodName;
780780

781-
AssetServiceMethodDescriptorSupplier(String methodName) {
781+
AssetServiceMethodDescriptorSupplier(java.lang.String methodName) {
782782
this.methodName = methodName;
783783
}
784784

0 commit comments

Comments
 (0)